blob: 28fba4107e3489a6081480a78a83a20903e9c06b [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
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000708OPTIMIZE_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
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001377 --enable-libcpp Use libc++ if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 --enable-bindings Build specific language bindings:
1407 all,auto,none,{binding-name} (default=auto)
1408 --enable-libffi Check for the presence of libffi (default is NO)
1409 --enable-ltdl-install install libltdl
1410
John Criswell451f67f2003-10-16 01:45:35 +00001411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-llvmsrc Location of LLVM Source Code
1415 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001416 --with-optimize-option Select the compiler options to use for optimized
1417 builds
1418 --with-extra-options Specify additional options to compile LLVM with
1419 --with-extra-ld-options Specify additional options to link LLVM with
1420 --with-ocaml-libdir Specify install location for ocaml bindings (default
1421 is stdlib)
1422 --with-clang-resource-dir
1423 Relative directory from the Clang binary for
1424 resource files
1425 --with-c-include-dirs Colon separated list of directories clang will
1426 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001427 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001428 --with-binutils-include Specify path to binutils/include/ containing
1429 plugin-api.h file for gold plugin.
1430 --with-bug-report-url Specify the URL where bug reports should be
1431 submitted (default=http://llvm.org/bugs/)
1432 --with-tclinclude directory where tcl headers are
1433 --with-udis86=<path> Use udis86 external x86 disassembler library
1434 --with-oprofile=<prefix>
1435 Tell OProfile >= 0.9.4 how to symbolize JIT output
1436
1437Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
1446 CPP C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001450
1451Report bugs to <bugs@yourdomain>.
1452_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001453ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001459 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001460 ac_builddir=.
1461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
John Criswell451f67f2003-10-16 01:45:35 +00001465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001477
1478case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001479 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001480 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001491esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001493
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001502 else
1503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001506 done
1507fi
1508
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001509test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001510if $ac_init_version; then
1511 cat <<\_ACEOF
1512[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001514
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001515Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001520 exit
John Criswell451f67f2003-10-16 01:45:35 +00001521fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001522cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001523This file contains any messages produced by compilers while
1524running configure, to aid debugging if configure makes a mistake.
1525
1526It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001527generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001528
1529 $ $0 $@
1530
1531_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001532exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001533{
1534cat <<_ASUNAME
1535## --------- ##
1536## Platform. ##
1537## --------- ##
1538
1539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1540uname -m = `(uname -m) 2>/dev/null || echo unknown`
1541uname -r = `(uname -r) 2>/dev/null || echo unknown`
1542uname -s = `(uname -s) 2>/dev/null || echo unknown`
1543uname -v = `(uname -v) 2>/dev/null || echo unknown`
1544
1545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1546/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1547
1548/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1549/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001551/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001552/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1553/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1554/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1555
1556_ASUNAME
1557
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 echo "PATH: $as_dir"
1564done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001565IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001566
1567} >&5
1568
1569cat >&5 <<_ACEOF
1570
1571
1572## ----------- ##
1573## Core tests. ##
1574## ----------- ##
1575
1576_ACEOF
1577
1578
1579# Keep a trace of the command line.
1580# Strip out --no-create and --no-recursion so they do not pile up.
1581# Strip out --silent because we don't want to record it for future runs.
1582# Also quote any args containing shell meta-characters.
1583# Make two passes to allow for proper duplicate-argument suppression.
1584ac_configure_args=
1585ac_configure_args0=
1586ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001587ac_must_keep_next=false
1588for ac_pass in 1 2
1589do
1590 for ac_arg
1591 do
1592 case $ac_arg in
1593 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595 | -silent | --silent | --silen | --sile | --sil)
1596 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001597 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001598 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599 esac
1600 case $ac_pass in
1601 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1602 2)
1603 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1604 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001605 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001606 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001607 case $ac_arg in
1608 *=* | --config-cache | -C | -disable-* | --disable-* \
1609 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1610 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1611 | -with-* | --with-* | -without-* | --without-* | --x)
1612 case "$ac_configure_args0 " in
1613 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614 esac
1615 ;;
1616 -* ) ac_must_keep_next=true ;;
1617 esac
John Criswell451f67f2003-10-16 01:45:35 +00001618 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001619 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001620 ;;
1621 esac
1622 done
1623done
1624$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1625$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1626
1627# When interrupted or exit'd, cleanup temporary files, and complete
1628# config.log. We remove comments because anyway the quotes in there
1629# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001630# WARNING: Use '\'' to represent an apostrophe within the trap.
1631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001632trap 'exit_status=$?
1633 # Save into config.log some information that might help in debugging.
1634 {
1635 echo
1636
1637 cat <<\_ASBOX
1638## ---------------- ##
1639## Cache variables. ##
1640## ---------------- ##
1641_ASBOX
1642 echo
1643 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001644(
1645 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1646 eval ac_val=\$$ac_var
1647 case $ac_val in #(
1648 *${as_nl}*)
1649 case $ac_var in #(
1650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1652 esac
1653 case $ac_var in #(
1654 _ | IFS | as_nl) ;; #(
1655 *) $as_unset $ac_var ;;
1656 esac ;;
1657 esac
1658 done
John Criswell451f67f2003-10-16 01:45:35 +00001659 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1661 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001662 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001663 "s/'\''/'\''\\\\'\'''\''/g;
1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001666 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001668 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001669 esac |
1670 sort
1671)
John Criswell451f67f2003-10-16 01:45:35 +00001672 echo
1673
1674 cat <<\_ASBOX
1675## ----------------- ##
1676## Output variables. ##
1677## ----------------- ##
1678_ASBOX
1679 echo
1680 for ac_var in $ac_subst_vars
1681 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001682 eval ac_val=\$$ac_var
1683 case $ac_val in
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1685 esac
1686 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001687 done | sort
1688 echo
1689
1690 if test -n "$ac_subst_files"; then
1691 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001692## ------------------- ##
1693## File substitutions. ##
1694## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001695_ASBOX
1696 echo
1697 for ac_var in $ac_subst_files
1698 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001699 eval ac_val=\$$ac_var
1700 case $ac_val in
1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702 esac
1703 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001704 done | sort
1705 echo
1706 fi
1707
1708 if test -s confdefs.h; then
1709 cat <<\_ASBOX
1710## ----------- ##
1711## confdefs.h. ##
1712## ----------- ##
1713_ASBOX
1714 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001715 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001716 echo
1717 fi
1718 test "$ac_signal" != 0 &&
1719 echo "$as_me: caught signal $ac_signal"
1720 echo "$as_me: exit $exit_status"
1721 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001722 rm -f core *.core core.conftest.* &&
1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001724 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001725' 0
John Criswell451f67f2003-10-16 01:45:35 +00001726for ac_signal in 1 2 13 15; do
1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1728done
1729ac_signal=0
1730
1731# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001732rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001733
1734# Predefined preprocessor variables.
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE_NAME "$PACKAGE_NAME"
1738_ACEOF
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_VERSION "$PACKAGE_VERSION"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_STRING "$PACKAGE_STRING"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1758_ACEOF
1759
1760
1761# Let the site file select an alternate cache file if it wants to.
1762# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001763if test -n "$CONFIG_SITE"; then
1764 set x "$CONFIG_SITE"
1765elif test "x$prefix" != xNONE; then
1766 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1767else
1768 set x "$ac_default_prefix/share/config.site" \
1769 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001770fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771shift
1772for ac_site_file
1773do
John Criswell451f67f2003-10-16 01:45:35 +00001774 if test -r "$ac_site_file"; then
1775 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776echo "$as_me: loading site script $ac_site_file" >&6;}
1777 sed 's/^/| /' "$ac_site_file" >&5
1778 . "$ac_site_file"
1779 fi
1780done
1781
1782if test -r "$cache_file"; then
1783 # Some versions of bash will fail to source /dev/null (special
1784 # files actually), so we avoid doing that.
1785 if test -f "$cache_file"; then
1786 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787echo "$as_me: loading cache $cache_file" >&6;}
1788 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001789 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1790 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001791 esac
1792 fi
1793else
1794 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795echo "$as_me: creating cache $cache_file" >&6;}
1796 >$cache_file
1797fi
1798
1799# Check that the precious variables saved in the cache have kept the same
1800# value.
1801ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001802for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001803 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1804 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001805 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1806 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001807 case $ac_old_set,$ac_new_set in
1808 set,)
1809 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1811 ac_cache_corrupted=: ;;
1812 ,set)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,);;
1817 *)
1818 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001819 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001820echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001821 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001822echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001826 fi;;
1827 esac
1828 # Pass precious variables to config.status.
1829 if test "$ac_new_set" = set; then
1830 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001831 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001832 *) ac_arg=$ac_var=$ac_new_val ;;
1833 esac
1834 case " $ac_configure_args " in
1835 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1836 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1837 esac
1838 fi
1839done
1840if $ac_cache_corrupted; then
1841 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1846fi
1847
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
John Criswell451f67f2003-10-16 01:45:35 +00001872ac_ext=c
1873ac_cpp='$CPP $CPPFLAGS'
1874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
1878
1879
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001880LLVM_SRC_ROOT="../.."
1881LLVM_OBJ_ROOT="../.."
1882
1883LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1884LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001885
1886
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001887# Check whether --with-llvmsrc was given.
1888if test "${with_llvmsrc+set}" = set; then
1889 withval=$with_llvmsrc; llvm_src="$withval"
1890else
1891 llvm_src="$LLVM_ABS_SRC_ROOT"
1892fi
1893
1894 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001895
1896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001897# Check whether --with-llvmobj was given.
1898if test "${with_llvmobj+set}" = set; then
1899 withval=$with_llvmobj; llvm_obj="$withval"
1900else
1901 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1902fi
Dan Gohman324f6082009-03-25 00:52:11 +00001903
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001904 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001906 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001907
1908
1909
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001910{ echo "$as_me:$LINENO: checking llvm-config" >&5
1911echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1912llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1913if ! test -f "$llvm_config_path" ; then
1914 llvm_config_path="no"
1915fi
1916{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1917echo "${ECHO_T}$llvm_config_path" >&6; }
1918
1919{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1920echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1921if test "$llvm_config_path" != no ; then
1922 llvm_package_version=`$llvm_config_path --version`
1923else
1924 llvm_package_version="unknown";
1925fi
1926{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1927echo "${ECHO_T}$llvm_package_version" >&6; }
1928LLVM_VERSION=$llvm_package_version
1929
1930
1931
1932
John Criswell451f67f2003-10-16 01:45:35 +00001933ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001934for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001935 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1947 fi
1948done
1949if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001952 { (exit 1); exit 1; }; }
1953fi
John Criswell451f67f2003-10-16 01:45:35 +00001954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001955# These three variables are undocumented and unsupported,
1956# and are intended to be withdrawn in a future Autoconf release.
1957# They can cause serious problems if a builder's source tree is in a directory
1958# whose full name contains unusual characters.
1959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001962
1963
1964
1965
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001966ac_ext=c
1967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1973 do
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997IFS=$as_save_IFS
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011 test -n "$CC" && break
2012 done
2013fi
2014if test -z "$CC"; then
2015 ac_ct_CC=$CC
2016 for ac_prog in clang llvm-gcc gcc
2017do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
2049else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055 test -n "$ac_ct_CC" && break
2056done
2057
2058 if test "x$ac_ct_CC" = x; then
2059 CC=""
2060 else
2061 case $cross_compiling:$ac_tool_warned in
2062yes:)
2063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069ac_tool_warned=yes ;;
2070esac
2071 CC=$ac_ct_CC
2072 fi
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
2086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
2090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115
2116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort. b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions. Remove them first so a
2147# subsequent execution test works.
2148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 esac
2155done
2156rm -f $ac_rmfiles
2157
2158if { (ac_try="$ac_link_default"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile. We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
2173for ac_file in $ac_files
2174do
2175 test -f "$ac_file" || continue
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 ;;
2179 [ab].out )
2180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
2183 *.* )
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185 then :; else
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 fi
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2192 # actually working.
2193 break;;
2194 * )
2195 break;;
2196 esac
2197done
2198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212{ echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6; }
2214
2215# Check that the compiler produces executables we can run. If not, either
2216# the compiler is broken, or we cross compile.
2217{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247{ echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251ac_clean_files=$ac_clean_files_save
2252# Check that the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261if { (ac_try="$ac_link"
2262case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_link") 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 break;;
2281 * ) break;;
2282 esac
2283done
2284else
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest$ac_cv_exeext
2293{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
2299{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
2310
2311int
2312main ()
2313{
2314
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
2320if { (ac_try="$ac_compile"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337done
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6; }
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
2355{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
2366
2367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_try") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_cv_prog_cc_g=yes
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 CFLAGS=""
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499
2500int
2501main ()
2502{
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (ac_try="$ac_compile"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 :
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_c_werror_flag=$ac_save_c_werror_flag
2548 CFLAGS="-g"
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_try") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_g=yes
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
2604fi
2605
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2614fi
2615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2621 CFLAGS="-g -O2"
2622 else
2623 CFLAGS="-g"
2624 fi
2625else
2626 if test "$GCC" = yes; then
2627 CFLAGS="-O2"
2628 else
2629 CFLAGS=
2630 fi
2631fi
2632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 ac_cv_prog_cc_c89=no
2638ac_save_CC=$CC
2639cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645#include <stdarg.h>
2646#include <stdio.h>
2647#include <sys/types.h>
2648#include <sys/stat.h>
2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650struct buf { int x; };
2651FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652static char *e (p, i)
2653 char **p;
2654 int i;
2655{
2656 return p[i];
2657}
2658static char *f (char * (*g) (char **, int), char **p, ...)
2659{
2660 char *s;
2661 va_list v;
2662 va_start (v,p);
2663 s = g (p, va_arg (v,int));
2664 va_end (v);
2665 return s;
2666}
2667
2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std. */
2675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2679#define FOO(x) 'x'
2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
2682int test (int i, double x);
2683struct s1 {int (*f) (int a);};
2684struct s2 {int (*f) (double a);};
2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686int argc;
2687char **argv;
2688int
2689main ()
2690{
2691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698do
2699 CC="$ac_save_CC $ac_arg"
2700 rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_try") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_c89=$ac_arg
2735else
2736 echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740fi
2741
2742rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
2744done
2745rm -f conftest.$ac_ext
2746CC=$ac_save_CC
2747
2748fi
2749# AC_CACHE_VAL
2750case "x$ac_cv_prog_cc_c89" in
2751 x)
2752 { echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6; } ;;
2754 xno)
2755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756echo "${ECHO_T}unsupported" >&6; } ;;
2757 *)
2758 CC="$CC $ac_cv_prog_cc_c89"
2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761esac
2762
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770ac_ext=cpp
2771ac_cpp='$CXXCPP $CPPFLAGS'
2772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2777 CXX=$CCC
2778 else
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2781 do
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CXX=$ac_cv_prog_CXX
2810if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812echo "${ECHO_T}$CXX" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819 test -n "$CXX" && break
2820 done
2821fi
2822if test -z "$CXX"; then
2823 ac_ct_CXX=$CXX
2824 for ac_prog in clang++ llvm-g++ g++
2825do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863 test -n "$ac_ct_CXX" && break
2864done
2865
2866 if test "x$ac_ct_CXX" = x; then
2867 CXX="g++"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet. If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&5
2874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879 CXX=$ac_ct_CXX
2880 fi
2881fi
2882
2883 fi
2884fi
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898{ (ac_try="$ac_compiler -v >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -V >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918
2919{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934#ifndef __GNUC__
2935 choke me
2936#endif
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_try") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_compiler_gnu=yes
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 ac_compiler_gnu=no
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990GXX=`test $ac_compiler_gnu = yes && echo yes`
2991ac_test_CXXFLAGS=${CXXFLAGS+set}
2992ac_save_CXXFLAGS=$CXXFLAGS
2993{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3000 ac_cv_prog_cxx_g=no
3001 CXXFLAGS="-g"
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CXXFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 CXXFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-g -O2"
3186 else
3187 CXXFLAGS="-g"
3188 fi
3189else
3190 if test "$GXX" = yes; then
3191 CXXFLAGS="-O2"
3192 else
3193 CXXFLAGS=
3194 fi
3195fi
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209# On Suns, sometimes $CPP names a directory.
3210if test -n "$CPP" && test -d "$CPP"; then
3211 CPP=
3212fi
3213if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 do
3220 ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
3242if { (ac_try="$ac_cpp conftest.$ac_ext"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 :
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 # Broken: fails on valid input.
3271continue
3272fi
3273
3274rm -f conftest.err conftest.$ac_ext
3275
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
3284#include <ac_nonexistent.h>
3285_ACEOF
3286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3310continue
3311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
3334else
3335 ac_cv_prog_CPP=$CPP
3336fi
3337{ echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6; }
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 else
3378 ac_cpp_err=
3379 fi
3380else
3381 ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
3392
3393rm -f conftest.err conftest.$ac_ext
3394
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424else
3425 ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3429continue
3430else
3431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445 :
3446else
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462
3463# Check whether --enable-polly was given.
3464if test "${enable_polly+set}" = set; then
3465 enableval=$enable_polly;
3466else
3467 enableval=default
3468fi
3469
3470case "$enableval" in
3471 yes) ENABLE_POLLY=1
3472 ;;
3473 no) ENABLE_POLLY=0
3474 ;;
3475 default) ENABLE_POLLY=1
3476 ;;
3477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3478echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3479 { (exit 1); exit 1; }; } ;;
3480esac
3481
3482
3483if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3484 LLVM_HAS_POLLY=1
3485
3486 subdirs="$subdirs tools/polly"
3487
3488fi
3489
3490
3491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3493 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3494echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3495 { (exit 1); exit 1; }; }
3496
3497{ echo "$as_me:$LINENO: checking build system type" >&5
3498echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3499if test "${ac_cv_build+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 ac_build_alias=$build_alias
3503test "x$ac_build_alias" = x &&
3504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3505test "x$ac_build_alias" = x &&
3506 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3507echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3508 { (exit 1); exit 1; }; }
3509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3511echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3512 { (exit 1); exit 1; }; }
3513
3514fi
3515{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3516echo "${ECHO_T}$ac_cv_build" >&6; }
3517case $ac_cv_build in
3518*-*-*) ;;
3519*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3520echo "$as_me: error: invalid value of canonical build" >&2;}
3521 { (exit 1); exit 1; }; };;
3522esac
3523build=$ac_cv_build
3524ac_save_IFS=$IFS; IFS='-'
3525set x $ac_cv_build
3526shift
3527build_cpu=$1
3528build_vendor=$2
3529shift; shift
3530# Remember, the first character of IFS is used to create $*,
3531# except with old shells:
3532build_os=$*
3533IFS=$ac_save_IFS
3534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537{ echo "$as_me:$LINENO: checking host system type" >&5
3538echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3539if test "${ac_cv_host+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3544else
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3547echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3548 { (exit 1); exit 1; }; }
3549fi
3550
3551fi
3552{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3553echo "${ECHO_T}$ac_cv_host" >&6; }
3554case $ac_cv_host in
3555*-*-*) ;;
3556*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3557echo "$as_me: error: invalid value of canonical host" >&2;}
3558 { (exit 1); exit 1; }; };;
3559esac
3560host=$ac_cv_host
3561ac_save_IFS=$IFS; IFS='-'
3562set x $ac_cv_host
3563shift
3564host_cpu=$1
3565host_vendor=$2
3566shift; shift
3567# Remember, the first character of IFS is used to create $*,
3568# except with old shells:
3569host_os=$*
3570IFS=$ac_save_IFS
3571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3572
3573
3574{ echo "$as_me:$LINENO: checking target system type" >&5
3575echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3576if test "${ac_cv_target+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test "x$target_alias" = x; then
3580 ac_cv_target=$ac_cv_host
3581else
3582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3585 { (exit 1); exit 1; }; }
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3590echo "${ECHO_T}$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
3593*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3594echo "$as_me: error: invalid value of canonical target" >&2;}
3595 { (exit 1); exit 1; }; };;
3596esac
3597target=$ac_cv_target
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_target
3600shift
3601target_cpu=$1
3602target_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606target_os=$*
3607IFS=$ac_save_IFS
3608case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609
3610
3611# The aliases save the names the user supplied, while $host etc.
3612# will get canonicalized.
3613test -n "$target_alias" &&
3614 test "$program_prefix$program_suffix$program_transform_name" = \
3615 NONENONEs,x,x, &&
3616 program_prefix=${target_alias}-
3617
3618{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3619echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3620if test "${llvm_cv_os_type+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 case $host in
3624 *-*-aix*)
3625 llvm_cv_link_all_option="-Wl,--whole-archive"
3626 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3627 llvm_cv_os_type="AIX"
3628 llvm_cv_platform_type="Unix" ;;
3629 *-*-irix*)
3630 llvm_cv_link_all_option="-Wl,--whole-archive"
3631 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3632 llvm_cv_os_type="IRIX"
3633 llvm_cv_platform_type="Unix" ;;
3634 *-*-cygwin*)
3635 llvm_cv_link_all_option="-Wl,--whole-archive"
3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637 llvm_cv_os_type="Cygwin"
3638 llvm_cv_platform_type="Unix" ;;
3639 *-*-darwin*)
3640 llvm_cv_link_all_option="-Wl,-all_load"
3641 llvm_cv_no_link_all_option="-Wl,-noall_load"
3642 llvm_cv_os_type="Darwin"
3643 llvm_cv_platform_type="Unix" ;;
3644 *-*-minix*)
3645 llvm_cv_link_all_option="-Wl,-all_load"
3646 llvm_cv_no_link_all_option="-Wl,-noall_load"
3647 llvm_cv_os_type="Minix"
3648 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003649 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003650 llvm_cv_link_all_option="-Wl,--whole-archive"
3651 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3652 llvm_cv_os_type="FreeBSD"
3653 llvm_cv_platform_type="Unix" ;;
3654 *-*-openbsd*)
3655 llvm_cv_link_all_option="-Wl,--whole-archive"
3656 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3657 llvm_cv_os_type="OpenBSD"
3658 llvm_cv_platform_type="Unix" ;;
3659 *-*-netbsd*)
3660 llvm_cv_link_all_option="-Wl,--whole-archive"
3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662 llvm_cv_os_type="NetBSD"
3663 llvm_cv_platform_type="Unix" ;;
3664 *-*-dragonfly*)
3665 llvm_cv_link_all_option="-Wl,--whole-archive"
3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667 llvm_cv_os_type="DragonFly"
3668 llvm_cv_platform_type="Unix" ;;
3669 *-*-hpux*)
3670 llvm_cv_link_all_option="-Wl,--whole-archive"
3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672 llvm_cv_os_type="HP-UX"
3673 llvm_cv_platform_type="Unix" ;;
3674 *-*-interix*)
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="Interix"
3678 llvm_cv_platform_type="Unix" ;;
3679 *-*-linux*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="Linux"
3683 llvm_cv_platform_type="Unix" ;;
3684 *-*-solaris*)
3685 llvm_cv_link_all_option="-Wl,-z,allextract"
3686 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3687 llvm_cv_os_type="SunOS"
3688 llvm_cv_platform_type="Unix" ;;
3689 *-*-auroraux*)
3690 llvm_cv_link_all_option="-Wl,-z,allextract"
3691 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3692 llvm_cv_os_type="AuroraUX"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-win32*)
3695 llvm_cv_link_all_option="-Wl,--whole-archive"
3696 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3697 llvm_cv_os_type="Win32"
3698 llvm_cv_platform_type="Win32" ;;
3699 *-*-mingw*)
3700 llvm_cv_link_all_option="-Wl,--whole-archive"
3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702 llvm_cv_os_type="MingW"
3703 llvm_cv_platform_type="Win32" ;;
3704 *-*-haiku*)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="Haiku"
3708 llvm_cv_platform_type="Unix" ;;
3709 *-unknown-eabi*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="Freestanding"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-unknown-elf*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="Freestanding"
3718 llvm_cv_platform_type="Unix" ;;
3719 *)
3720 llvm_cv_link_all_option=""
3721 llvm_cv_no_link_all_option=""
3722 llvm_cv_os_type="Unknown"
3723 llvm_cv_platform_type="Unknown" ;;
3724esac
3725fi
3726{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3727echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3728
3729{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3730echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3731if test "${llvm_cv_target_os_type+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 case $target in
3735 *-*-aix*)
3736 llvm_cv_target_os_type="AIX" ;;
3737 *-*-irix*)
3738 llvm_cv_target_os_type="IRIX" ;;
3739 *-*-cygwin*)
3740 llvm_cv_target_os_type="Cygwin" ;;
3741 *-*-darwin*)
3742 llvm_cv_target_os_type="Darwin" ;;
3743 *-*-minix*)
3744 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003745 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003746 llvm_cv_target_os_type="FreeBSD" ;;
3747 *-*-openbsd*)
3748 llvm_cv_target_os_type="OpenBSD" ;;
3749 *-*-netbsd*)
3750 llvm_cv_target_os_type="NetBSD" ;;
3751 *-*-dragonfly*)
3752 llvm_cv_target_os_type="DragonFly" ;;
3753 *-*-hpux*)
3754 llvm_cv_target_os_type="HP-UX" ;;
3755 *-*-interix*)
3756 llvm_cv_target_os_type="Interix" ;;
3757 *-*-linux*)
3758 llvm_cv_target_os_type="Linux" ;;
3759 *-*-solaris*)
3760 llvm_cv_target_os_type="SunOS" ;;
3761 *-*-auroraux*)
3762 llvm_cv_target_os_type="AuroraUX" ;;
3763 *-*-win32*)
3764 llvm_cv_target_os_type="Win32" ;;
3765 *-*-mingw*)
3766 llvm_cv_target_os_type="MingW" ;;
3767 *-*-haiku*)
3768 llvm_cv_target_os_type="Haiku" ;;
3769 *-*-rtems*)
3770 llvm_cv_target_os_type="RTEMS" ;;
3771 *-*-nacl*)
3772 llvm_cv_target_os_type="NativeClient" ;;
3773 *-unknown-eabi*)
3774 llvm_cv_target_os_type="Freestanding" ;;
3775 *)
3776 llvm_cv_target_os_type="Unknown" ;;
3777esac
3778fi
3779{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3780echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3781
3782if test "$llvm_cv_os_type" = "Unknown" ; then
3783 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3784echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3785 { (exit 1); exit 1; }; }
3786fi
3787
3788OS=$llvm_cv_os_type
3789
3790HOST_OS=$llvm_cv_os_type
3791
3792TARGET_OS=$llvm_cv_target_os_type
3793
3794
3795LINKALL=$llvm_cv_link_all_option
3796
3797NOLINKALL=$llvm_cv_no_link_all_option
3798
3799
3800case $llvm_cv_platform_type in
3801 Unix)
3802
3803cat >>confdefs.h <<\_ACEOF
3804#define LLVM_ON_UNIX 1
3805_ACEOF
3806
3807 LLVM_ON_UNIX=1
3808
3809 LLVM_ON_WIN32=0
3810
3811 ;;
3812 Win32)
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define LLVM_ON_WIN32 1
3816_ACEOF
3817
3818 LLVM_ON_UNIX=0
3819
3820 LLVM_ON_WIN32=1
3821
3822 ;;
3823esac
3824
3825{ echo "$as_me:$LINENO: checking target architecture" >&5
3826echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3827if test "${llvm_cv_target_arch+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 case $target in
3831 i?86-*) llvm_cv_target_arch="x86" ;;
3832 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3833 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3834 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003835 arm*-*) llvm_cv_target_arch="ARM" ;;
3836 mips-*) llvm_cv_target_arch="Mips" ;;
3837 xcore-*) llvm_cv_target_arch="XCore" ;;
3838 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003839 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003840 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3841 ptx-*) llvm_cv_target_arch="PTX" ;;
3842 *) llvm_cv_target_arch="Unknown" ;;
3843esac
3844fi
3845{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3846echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3847
3848if test "$llvm_cv_target_arch" = "Unknown" ; then
3849 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3850echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3851fi
3852
3853# Determine the LLVM native architecture for the target
3854case "$llvm_cv_target_arch" in
3855 x86) LLVM_NATIVE_ARCH="X86" ;;
3856 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3857 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3858esac
3859
3860ARCH=$llvm_cv_target_arch
3861
3862
3863
3864
3865{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871if test -z "$GREP"; then
3872set dummy grep ggrep; ac_prog_name=$2
3873if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_path_GREP_found=false
3877# Loop through the user's path and test for each of PROGNAME-LIST
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889case `"$ac_path_GREP" --version 2>&1` in
3890*GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892*)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915
3916 $ac_path_GREP_found && break 3
3917 done
3918done
3919
3920done
3921IFS=$as_save_IFS
3922
3923
3924fi
3925
3926GREP="$ac_cv_path_GREP"
3927if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931fi
3932
3933else
3934 ac_cv_path_GREP=$GREP
3935fi
3936
3937
3938fi
3939{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944{ echo "$as_me:$LINENO: checking for egrep" >&5
3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953if test -z "$EGREP"; then
3954set dummy egrep; ac_prog_name=$2
3955if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 ac_path_EGREP_found=false
3959# Loop through the user's path and test for each of PROGNAME-LIST
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997
3998 $ac_path_EGREP_found && break 3
3999 done
4000done
4001
4002done
4003IFS=$as_save_IFS
4004
4005
4006fi
4007
4008EGREP="$ac_cv_path_EGREP"
4009if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013fi
4014
4015else
4016 ac_cv_path_EGREP=$EGREP
4017fi
4018
4019
4020 fi
4021fi
4022{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4025
4026
4027{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4028echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4029if test "${ac_cv_header_stdc+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032 cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
4038#include <stdlib.h>
4039#include <stdarg.h>
4040#include <string.h>
4041#include <float.h>
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_cv_header_stdc=yes
4086else
4087 echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 ac_cv_header_stdc=no
4091fi
4092
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094
4095if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h. */
4103#include <string.h>
4104
4105_ACEOF
4106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "memchr" >/dev/null 2>&1; then
4108 :
4109else
4110 ac_cv_header_stdc=no
4111fi
4112rm -f conftest*
4113
4114fi
4115
4116if test $ac_cv_header_stdc = yes; then
4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124#include <stdlib.h>
4125
4126_ACEOF
4127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev/null 2>&1; then
4129 :
4130else
4131 ac_cv_header_stdc=no
4132fi
4133rm -f conftest*
4134
4135fi
4136
4137if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then
4140 :
4141else
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148#include <ctype.h>
4149#include <stdlib.h>
4150#if ((' ' & 0x0FF) == 0x020)
4151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153#else
4154# define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159#endif
4160
4161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162int
4163main ()
4164{
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 return 2;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest$ac_exeext
4174if { (ac_try="$ac_link"
4175case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_link") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 :
4194else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199( exit $ac_status )
4200ac_cv_header_stdc=no
4201fi
4202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203fi
4204
4205
4206fi
4207fi
4208{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4209echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4210if test $ac_cv_header_stdc = yes; then
4211
4212cat >>confdefs.h <<\_ACEOF
4213#define STDC_HEADERS 1
4214_ACEOF
4215
4216fi
4217
4218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4229 inttypes.h stdint.h unistd.h
4230do
4231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243$ac_includes_default
4244
4245#include <$ac_header>
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291ac_res=`eval echo '${'$as_ac_Header'}'`
4292 { echo "$as_me:$LINENO: result: $ac_res" >&5
4293echo "${ECHO_T}$ac_res" >&6; }
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4305echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4306if test "${ac_cv_c_bigendian+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 # See if sys/param.h defines the BYTE_ORDER macro.
4310cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#include <sys/types.h>
4317#include <sys/param.h>
4318
4319int
4320main ()
4321{
4322#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4323 bogus endian macros
4324#endif
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (ac_try="$ac_compile"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 # It does; now see whether it defined to BIG_ENDIAN or not.
4365cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <sys/types.h>
4372#include <sys/param.h>
4373
4374int
4375main ()
4376{
4377#if BYTE_ORDER != BIG_ENDIAN
4378 not big endian
4379#endif
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (ac_try="$ac_compile"
4387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_compile") 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413esac
4414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_try") 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_cv_c_bigendian=yes
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_cv_c_bigendian=no
4425fi
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428else
4429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 # It does not; compile a test program.
4433if test "$cross_compiling" = yes; then
4434 # try to guess the endianness by grepping values into an object file
4435 ac_cv_c_bigendian=unknown
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4443short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4444void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4445short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4446short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4447void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4448int
4449main ()
4450{
4451 _ascii (); _ebcdic ();
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456rm -f conftest.$ac_objext
4457if { (ac_try="$ac_compile"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4491 ac_cv_c_bigendian=yes
4492fi
4493if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4494 if test "$ac_cv_c_bigendian" = unknown; then
4495 ac_cv_c_bigendian=no
4496 else
4497 # finding both strings is unlikely to happen, but who knows?
4498 ac_cv_c_bigendian=unknown
4499 fi
4500fi
4501else
4502 echo "$as_me: failed program was:" >&5
4503sed 's/^/| /' conftest.$ac_ext >&5
4504
4505
4506fi
4507
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517int
4518main ()
4519{
4520
4521 /* Are we little or big endian? From Harbison&Steele. */
4522 union
4523 {
4524 long int l;
4525 char c[sizeof (long int)];
4526 } u;
4527 u.l = 1;
4528 return u.c[sizeof (long int) - 1] == 1;
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534rm -f conftest$ac_exeext
4535if { (ac_try="$ac_link"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_link") 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4545 { (case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_c_bigendian=no
4555else
4556 echo "$as_me: program exited with status $ac_status" >&5
4557echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560( exit $ac_status )
4561ac_cv_c_bigendian=yes
4562fi
4563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4564fi
4565
4566
4567fi
4568
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570fi
4571{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4572echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4573case $ac_cv_c_bigendian in
4574 yes)
4575 ENDIAN=big
4576 ;;
4577 no)
4578 ENDIAN=little
4579 ;;
4580 *)
4581 { { echo "$as_me:$LINENO: error: unknown endianness
4582presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4583echo "$as_me: error: unknown endianness
4584presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4585 { (exit 1); exit 1; }; } ;;
4586esac
4587
4588
4589if test "$cross_compiling" = yes; then
4590 LLVM_CROSS_COMPILING=1
4591
4592
4593{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4594echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4595if test "${ac_cv_build_exeext+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4599 ac_cv_build_exeext=.exe
4600else
4601 ac_build_prefix=${build_alias}-
4602
4603 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4604set dummy ${ac_build_prefix}gcc; ac_word=$2
4605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 if test -n "$BUILD_CC"; then
4611 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625done
4626IFS=$as_save_IFS
4627
4628fi
4629fi
4630BUILD_CC=$ac_cv_prog_BUILD_CC
4631if test -n "$BUILD_CC"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4633echo "${ECHO_T}$BUILD_CC" >&6; }
4634else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6; }
4637fi
4638
4639
4640 if test -z "$BUILD_CC"; then
4641 # Extract the first word of "gcc", so it can be a program name with args.
4642set dummy gcc; ac_word=$2
4643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 if test -n "$BUILD_CC"; then
4649 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_BUILD_CC="gcc"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662done
4663done
4664IFS=$as_save_IFS
4665
4666fi
4667fi
4668BUILD_CC=$ac_cv_prog_BUILD_CC
4669if test -n "$BUILD_CC"; then
4670 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4671echo "${ECHO_T}$BUILD_CC" >&6; }
4672else
4673 { echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6; }
4675fi
4676
4677
4678 if test -z "$BUILD_CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680set dummy cc; ac_word=$2
4681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686 if test -n "$BUILD_CC"; then
4687 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4688else
4689 ac_prog_rejected=no
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4699 continue
4700 fi
4701 ac_cv_prog_BUILD_CC="cc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705done
4706done
4707IFS=$as_save_IFS
4708
4709if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_BUILD_CC
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set BUILD_CC to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4719 fi
4720fi
4721fi
4722fi
4723BUILD_CC=$ac_cv_prog_BUILD_CC
4724if test -n "$BUILD_CC"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726echo "${ECHO_T}$BUILD_CC" >&6; }
4727else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
4730fi
4731
4732
4733 fi
4734 fi
4735 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4736echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4737 { (exit 1); exit 1; }; }
4738 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4739 rm -f conftest*
4740 echo 'int main () { return 0; }' > conftest.$ac_ext
4741 ac_cv_build_exeext=
4742 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4743 (eval $ac_build_link) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; then
4747 for file in conftest.*; do
4748 case $file in
4749 *.c | *.o | *.obj | *.dSYM) ;;
4750 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4751 esac
4752 done
4753 else
4754 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4755echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4756 { (exit 1); exit 1; }; }
4757 fi
4758 rm -f conftest*
4759 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4760fi
4761fi
4762
4763BUILD_EXEEXT=""
4764test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4765{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4766echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4767ac_build_exeext=$BUILD_EXEEXT
4768
4769 ac_build_prefix=${build_alias}-
4770 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4771set dummy ${ac_build_prefix}g++; ac_word=$2
4772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 if test -n "$BUILD_CXX"; then
4778 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797BUILD_CXX=$ac_cv_prog_BUILD_CXX
4798if test -n "$BUILD_CXX"; then
4799 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4800echo "${ECHO_T}$BUILD_CXX" >&6; }
4801else
4802 { echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6; }
4804fi
4805
4806
4807 if test -z "$BUILD_CXX"; then
4808 # Extract the first word of "g++", so it can be a program name with args.
4809set dummy g++; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 if test -n "$BUILD_CXX"; then
4816 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_BUILD_CXX="g++"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
4835BUILD_CXX=$ac_cv_prog_BUILD_CXX
4836if test -n "$BUILD_CXX"; then
4837 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4838echo "${ECHO_T}$BUILD_CXX" >&6; }
4839else
4840 { echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6; }
4842fi
4843
4844
4845 if test -z "$BUILD_CXX"; then
4846 # Extract the first word of "c++", so it can be a program name with args.
4847set dummy c++; ac_word=$2
4848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -n "$BUILD_CXX"; then
4854 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4855else
4856 ac_prog_rejected=no
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4865 ac_prog_rejected=yes
4866 continue
4867 fi
4868 ac_cv_prog_BUILD_CXX="c++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873done
4874IFS=$as_save_IFS
4875
4876if test $ac_prog_rejected = yes; then
4877 # We found a bogon in the path, so make sure we never use it.
4878 set dummy $ac_cv_prog_BUILD_CXX
4879 shift
4880 if test $# != 0; then
4881 # We chose a different compiler from the bogus one.
4882 # However, it has the same basename, so the bogon will be chosen
4883 # first if we set BUILD_CXX to just the basename; use the full file name.
4884 shift
4885 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4886 fi
4887fi
4888fi
4889fi
4890BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891if test -n "$BUILD_CXX"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893echo "${ECHO_T}$BUILD_CXX" >&6; }
4894else
4895 { echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6; }
4897fi
4898
4899
4900 fi
4901 fi
4902else
4903 LLVM_CROSS_COMPILING=0
4904
4905fi
4906
4907if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4908 cvsbuild="yes"
4909 optimize="no"
4910 CVSBUILD=CVSBUILD=1
4911
4912else
4913 cvsbuild="no"
4914 optimize="yes"
4915fi
4916
4917
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004918# Check whether --enable-libcpp was given.
4919if test "${enable_libcpp+set}" = set; then
4920 enableval=$enable_libcpp;
4921else
4922 enableval=default
4923fi
4924
4925case "$enableval" in
4926 yes) ENABLE_LIBCPP=1
4927 ;;
4928 no) ENABLE_LIBCPP=0
4929 ;;
4930 default) ENABLE_LIBCPP=0
4931;;
4932 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4933echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4934 { (exit 1); exit 1; }; } ;;
4935esac
4936
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004937# Check whether --enable-optimized was given.
4938if test "${enable_optimized+set}" = set; then
4939 enableval=$enable_optimized;
4940else
4941 enableval=$optimize
4942fi
4943
4944if test ${enableval} = "no" ; then
4945 ENABLE_OPTIMIZED=
4946
4947else
4948 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4949
4950fi
4951
4952# Check whether --enable-profiling was given.
4953if test "${enable_profiling+set}" = set; then
4954 enableval=$enable_profiling;
4955else
4956 enableval="no"
4957fi
4958
4959if test ${enableval} = "no" ; then
4960 ENABLE_PROFILING=
4961
4962else
4963 ENABLE_PROFILING=ENABLE_PROFILING=1
4964
4965fi
4966
4967# Check whether --enable-assertions was given.
4968if test "${enable_assertions+set}" = set; then
4969 enableval=$enable_assertions;
4970else
4971 enableval="yes"
4972fi
4973
4974if test ${enableval} = "yes" ; then
4975 DISABLE_ASSERTIONS=
4976
4977else
4978 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4979
4980fi
4981
4982# Check whether --enable-expensive-checks was given.
4983if test "${enable_expensive_checks+set}" = set; then
4984 enableval=$enable_expensive_checks;
4985else
4986 enableval="no"
4987fi
4988
4989if test ${enableval} = "yes" ; then
4990 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4991
4992 EXPENSIVE_CHECKS=yes
4993
4994else
4995 ENABLE_EXPENSIVE_CHECKS=
4996
4997 EXPENSIVE_CHECKS=no
4998
4999fi
5000
5001# Check whether --enable-debug-runtime was given.
5002if test "${enable_debug_runtime+set}" = set; then
5003 enableval=$enable_debug_runtime;
5004else
5005 enableval=no
5006fi
5007
5008if test ${enableval} = "no" ; then
5009 DEBUG_RUNTIME=
5010
5011else
5012 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5013
5014fi
5015
5016# Check whether --enable-debug-symbols was given.
5017if test "${enable_debug_symbols+set}" = set; then
5018 enableval=$enable_debug_symbols;
5019else
5020 enableval=no
5021fi
5022
5023if test ${enableval} = "no" ; then
5024 DEBUG_SYMBOLS=
5025
5026else
5027 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5028
5029fi
5030
5031# Check whether --enable-jit was given.
5032if test "${enable_jit+set}" = set; then
5033 enableval=$enable_jit;
5034else
5035 enableval=default
5036fi
5037
5038if test ${enableval} = "no"
5039then
5040 JIT=
5041
5042else
5043 case "$llvm_cv_target_arch" in
5044 x86) TARGET_HAS_JIT=1
5045 ;;
5046 Sparc) TARGET_HAS_JIT=0
5047 ;;
5048 PowerPC) TARGET_HAS_JIT=1
5049 ;;
5050 x86_64) TARGET_HAS_JIT=1
5051 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005052 ARM) TARGET_HAS_JIT=1
5053 ;;
5054 Mips) TARGET_HAS_JIT=1
5055 ;;
5056 XCore) TARGET_HAS_JIT=0
5057 ;;
5058 MSP430) TARGET_HAS_JIT=0
5059 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005060 Hexagon) TARGET_HAS_JIT=0
5061 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005062 MBlaze) TARGET_HAS_JIT=0
5063 ;;
5064 PTX) TARGET_HAS_JIT=0
5065 ;;
5066 *) TARGET_HAS_JIT=0
5067 ;;
5068 esac
5069fi
5070
5071# Check whether --enable-docs was given.
5072if test "${enable_docs+set}" = set; then
5073 enableval=$enable_docs;
5074else
5075 enableval=default
5076fi
5077
5078case "$enableval" in
5079 yes) ENABLE_DOCS=1
5080 ;;
5081 no) ENABLE_DOCS=0
5082 ;;
5083 default) ENABLE_DOCS=1
5084 ;;
5085 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5086echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088esac
5089
5090# Check whether --enable-doxygen was given.
5091if test "${enable_doxygen+set}" = set; then
5092 enableval=$enable_doxygen;
5093else
5094 enableval=default
5095fi
5096
5097case "$enableval" in
5098 yes) ENABLE_DOXYGEN=1
5099 ;;
5100 no) ENABLE_DOXYGEN=0
5101 ;;
5102 default) ENABLE_DOXYGEN=0
5103 ;;
5104 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5105echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5107esac
5108
5109# Check whether --enable-threads was given.
5110if test "${enable_threads+set}" = set; then
5111 enableval=$enable_threads;
5112else
5113 enableval=default
5114fi
5115
5116case "$enableval" in
5117 yes) ENABLE_THREADS=1
5118 ;;
5119 no) ENABLE_THREADS=0
5120 ;;
5121 default) ENABLE_THREADS=1
5122 ;;
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5124echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5126esac
5127
5128cat >>confdefs.h <<_ACEOF
5129#define ENABLE_THREADS $ENABLE_THREADS
5130_ACEOF
5131
5132
5133# Check whether --enable-pthreads was given.
5134if test "${enable_pthreads+set}" = set; then
5135 enableval=$enable_pthreads;
5136else
5137 enableval=default
5138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_PTHREADS=1
5142 ;;
5143 no) ENABLE_PTHREADS=0
5144 ;;
5145 default) ENABLE_PTHREADS=1
5146 ;;
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5150esac
5151
5152# Check whether --enable-pic was given.
5153if test "${enable_pic+set}" = set; then
5154 enableval=$enable_pic;
5155else
5156 enableval=default
5157fi
5158
5159case "$enableval" in
5160 yes) ENABLE_PIC=1
5161 ;;
5162 no) ENABLE_PIC=0
5163 ;;
5164 default) ENABLE_PIC=1
5165 ;;
5166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5167echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
5169esac
5170
5171cat >>confdefs.h <<_ACEOF
5172#define ENABLE_PIC $ENABLE_PIC
5173_ACEOF
5174
5175
5176# Check whether --enable-shared was given.
5177if test "${enable_shared+set}" = set; then
5178 enableval=$enable_shared;
5179else
5180 enableval=default
5181fi
5182
5183case "$enableval" in
5184 yes) ENABLE_SHARED=1
5185 ;;
5186 no) ENABLE_SHARED=0
5187 ;;
5188 default) ENABLE_SHARED=0
5189 ;;
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5193esac
5194
5195# Check whether --enable-embed-stdcxx was given.
5196if test "${enable_embed_stdcxx+set}" = set; then
5197 enableval=$enable_embed_stdcxx;
5198else
5199 enableval=default
5200fi
5201
5202case "$enableval" in
5203 yes) ENABLE_EMBED_STDCXX=1
5204 ;;
5205 no) ENABLE_EMBED_STDCXX=0
5206 ;;
5207 default) ENABLE_EMBED_STDCXX=1
5208 ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5210echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5212esac
5213
5214# Check whether --enable-timestamps was given.
5215if test "${enable_timestamps+set}" = set; then
5216 enableval=$enable_timestamps;
5217else
5218 enableval=default
5219fi
5220
5221case "$enableval" in
5222 yes) ENABLE_TIMESTAMPS=1
5223 ;;
5224 no) ENABLE_TIMESTAMPS=0
5225 ;;
5226 default) ENABLE_TIMESTAMPS=1
5227 ;;
5228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5229echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
5231esac
5232
5233cat >>confdefs.h <<_ACEOF
5234#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5235_ACEOF
5236
5237
5238TARGETS_TO_BUILD=""
5239# Check whether --enable-targets was given.
5240if test "${enable_targets+set}" = set; then
5241 enableval=$enable_targets;
5242else
5243 enableval=all
5244fi
5245
5246if test "$enableval" = host-only ; then
5247 enableval=host
5248fi
5249case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005250 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005251 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5252 case "$a_target" 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 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5260 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5261 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005262 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005263 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5264 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5265 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5266 host) case "$llvm_cv_target_arch" in
5267 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5268 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5269 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5270 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005271 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5272 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5273 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5274 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5275 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5276 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005277 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005278 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5279 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5280echo "$as_me: error: Can not set target to build" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5282 esac ;;
5283 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5284echo "$as_me: error: Unrecognized target $a_target" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286 esac
5287 done
5288 ;;
5289esac
5290TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5291
5292
5293# Determine whether we are building LLVM support for the native architecture.
5294# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5295for a_target in $TARGETS_TO_BUILD; do
5296 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5297
5298cat >>confdefs.h <<_ACEOF
5299#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5300_ACEOF
5301
5302 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5303 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5304 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5305 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5306 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5307 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5308 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005309 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5310 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5311 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005312
5313cat >>confdefs.h <<_ACEOF
5314#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5315_ACEOF
5316
5317
5318cat >>confdefs.h <<_ACEOF
5319#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5320_ACEOF
5321
5322
5323cat >>confdefs.h <<_ACEOF
5324#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5325_ACEOF
5326
5327
5328cat >>confdefs.h <<_ACEOF
5329#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5330_ACEOF
5331
5332 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5333
5334cat >>confdefs.h <<_ACEOF
5335#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5336_ACEOF
5337
5338 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005339 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5340
5341cat >>confdefs.h <<_ACEOF
5342#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5343_ACEOF
5344
5345 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005346 fi
5347done
5348
5349# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5350# target feature def files.
5351LLVM_ENUM_TARGETS=""
5352LLVM_ENUM_ASM_PRINTERS=""
5353LLVM_ENUM_ASM_PARSERS=""
5354LLVM_ENUM_DISASSEMBLERS=""
5355for target_to_build in $TARGETS_TO_BUILD; do
5356 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5357 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5358 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5359 fi
5360 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5361 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5362 fi
5363 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5364 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5365 fi
5366done
5367
5368
5369
5370
5371
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005372
5373# Check whether --with-optimize-option was given.
5374if test "${with_optimize_option+set}" = set; then
5375 withval=$with_optimize_option;
5376else
5377 withval=default
5378fi
5379
5380{ echo "$as_me:$LINENO: checking optimization flags" >&5
5381echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5382case "$withval" in
5383 default)
5384 case "$llvm_cv_os_type" in
5385 FreeBSD) optimize_option=-O2 ;;
5386 MingW) optimize_option=-O2 ;;
5387 *) optimize_option=-O3 ;;
5388 esac ;;
5389 *) optimize_option="$withval" ;;
5390esac
5391OPTIMIZE_OPTION=$optimize_option
5392
5393{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5394echo "${ECHO_T}$optimize_option" >&6; }
5395
5396
5397# Check whether --with-extra-options was given.
5398if test "${with_extra_options+set}" = set; then
5399 withval=$with_extra_options;
5400else
5401 withval=default
5402fi
5403
5404case "$withval" in
5405 default) EXTRA_OPTIONS= ;;
5406 *) EXTRA_OPTIONS=$withval ;;
5407esac
5408EXTRA_OPTIONS=$EXTRA_OPTIONS
5409
5410
5411
5412# Check whether --with-extra-ld-options was given.
5413if test "${with_extra_ld_options+set}" = set; then
5414 withval=$with_extra_ld_options;
5415else
5416 withval=default
5417fi
5418
5419case "$withval" in
5420 default) EXTRA_LD_OPTIONS= ;;
5421 *) EXTRA_LD_OPTIONS=$withval ;;
5422esac
5423EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5424
5425
5426# Check whether --enable-bindings was given.
5427if test "${enable_bindings+set}" = set; then
5428 enableval=$enable_bindings;
5429else
5430 enableval=default
5431fi
5432
5433BINDINGS_TO_BUILD=""
5434case "$enableval" in
5435 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5436 all ) BINDINGS_TO_BUILD="ocaml" ;;
5437 none | no) BINDINGS_TO_BUILD="" ;;
5438 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5439 case "$a_binding" in
5440 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5441 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5442echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5443 { (exit 1); exit 1; }; } ;;
5444 esac
5445 done
5446 ;;
5447esac
5448
5449
5450# Check whether --with-ocaml-libdir was given.
5451if test "${with_ocaml_libdir+set}" = set; then
5452 withval=$with_ocaml_libdir;
5453else
5454 withval=auto
5455fi
5456
5457case "$withval" in
5458 auto) with_ocaml_libdir="$withval" ;;
5459 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5460 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5461echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5462 { (exit 1); exit 1; }; } ;;
5463esac
5464
5465
5466# Check whether --with-clang-resource-dir was given.
5467if test "${with_clang_resource_dir+set}" = set; then
5468 withval=$with_clang_resource_dir;
5469else
5470 withval=""
5471fi
5472
5473
5474cat >>confdefs.h <<_ACEOF
5475#define CLANG_RESOURCE_DIR "$withval"
5476_ACEOF
5477
5478
5479
5480# Check whether --with-c-include-dirs was given.
5481if test "${with_c_include_dirs+set}" = set; then
5482 withval=$with_c_include_dirs;
5483else
5484 withval=""
5485fi
5486
5487
5488cat >>confdefs.h <<_ACEOF
5489#define C_INCLUDE_DIRS "$withval"
5490_ACEOF
5491
5492
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005493# Clang normally uses the system c++ headers and libraries. With this option,
5494# clang will use the ones provided by a gcc installation instead. This option should
5495# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005496
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005497# Check whether --with-gcc-toolchain was given.
5498if test "${with_gcc_toolchain+set}" = set; then
5499 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005500else
5501 withval=""
5502fi
5503
5504
5505cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005506#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005507_ACEOF
5508
5509
5510
5511# Check whether --with-binutils-include was given.
5512if test "${with_binutils_include+set}" = set; then
5513 withval=$with_binutils_include;
5514else
5515 withval=default
5516fi
5517
5518case "$withval" in
5519 default) WITH_BINUTILS_INCDIR=default ;;
5520 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5521 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5522echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5524esac
5525if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5526 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5527
5528 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5529 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5530 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5531echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5532 { (exit 1); exit 1; }; };
5533 fi
5534fi
5535
5536
5537# Check whether --with-bug-report-url was given.
5538if test "${with_bug_report_url+set}" = set; then
5539 withval=$with_bug_report_url;
5540else
5541 withval="http://llvm.org/bugs/"
5542fi
5543
5544
5545cat >>confdefs.h <<_ACEOF
5546#define BUG_REPORT_URL "$withval"
5547_ACEOF
5548
5549
5550# Check whether --enable-libffi was given.
5551if test "${enable_libffi+set}" = set; then
5552 enableval=$enable_libffi; case "$enableval" in
5553 yes) llvm_cv_enable_libffi="yes" ;;
5554 no) llvm_cv_enable_libffi="no" ;;
5555 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5556echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5557 { (exit 1); exit 1; }; } ;;
5558 esac
5559else
5560 llvm_cv_enable_libffi=no
5561fi
5562
5563
5564
5565{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5566echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5567if test "${lt_cv_path_NM+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 if test -n "$NM"; then
5571 # Let the user override the test.
5572 lt_cv_path_NM="$NM"
5573else
5574 lt_nm_to_check="${ac_tool_prefix}nm"
5575 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5576 lt_nm_to_check="$lt_nm_to_check nm"
5577 fi
5578 for lt_tmp_nm in $lt_nm_to_check; do
5579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5580 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5581 IFS="$lt_save_ifs"
5582 test -z "$ac_dir" && ac_dir=.
5583 tmp_nm="$ac_dir/$lt_tmp_nm"
5584 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5585 # Check to see if the nm accepts a BSD-compat flag.
5586 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5587 # nm: unknown option "B" ignored
5588 # Tru64's nm complains that /dev/null is an invalid object file
5589 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5590 */dev/null* | *'Invalid file or object type'*)
5591 lt_cv_path_NM="$tmp_nm -B"
5592 break
5593 ;;
5594 *)
5595 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5596 */dev/null*)
5597 lt_cv_path_NM="$tmp_nm -p"
5598 break
5599 ;;
5600 *)
5601 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5602 continue # so that we can try to find one that supports BSD flags
5603 ;;
5604 esac
5605 ;;
5606 esac
5607 fi
5608 done
5609 IFS="$lt_save_ifs"
5610 done
5611 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5612fi
5613fi
5614{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5615echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5616NM="$lt_cv_path_NM"
5617
5618
5619
5620{ echo "$as_me:$LINENO: checking for GNU make" >&5
5621echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5622if test "${llvm_cv_gnu_make_command+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 llvm_cv_gnu_make_command=''
5626 for a in "$MAKE" make gmake gnumake ; do
5627 if test -z "$a" ; then continue ; fi ;
5628 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5629 then
5630 llvm_cv_gnu_make_command=$a ;
5631 break;
5632 fi
5633 done
5634fi
5635{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5636echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5637 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5638 ifGNUmake='' ;
5639 else
5640 ifGNUmake='#' ;
5641 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5642echo "${ECHO_T}\"Not found\"" >&6; };
5643 fi
5644
5645
5646{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5647echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5648LN_S=$as_ln_s
5649if test "$LN_S" = "ln -s"; then
5650 { echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6; }
5652else
5653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5654echo "${ECHO_T}no, using $LN_S" >&6; }
5655fi
5656
5657# Extract the first word of "cmp", so it can be a program name with args.
5658set dummy cmp; ac_word=$2
5659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5661if test "${ac_cv_path_CMP+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664 case $CMP in
5665 [\\/]* | ?:[\\/]*)
5666 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5667 ;;
5668 *)
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681done
5682IFS=$as_save_IFS
5683
5684 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5685 ;;
5686esac
5687fi
5688CMP=$ac_cv_path_CMP
5689if test -n "$CMP"; then
5690 { echo "$as_me:$LINENO: result: $CMP" >&5
5691echo "${ECHO_T}$CMP" >&6; }
5692else
5693 { echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6; }
5695fi
5696
5697
5698# Extract the first word of "cp", so it can be a program name with args.
5699set dummy cp; ac_word=$2
5700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702if test "${ac_cv_path_CP+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 case $CP in
5706 [\\/]* | ?:[\\/]*)
5707 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5708 ;;
5709 *)
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722done
5723IFS=$as_save_IFS
5724
5725 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5726 ;;
5727esac
5728fi
5729CP=$ac_cv_path_CP
5730if test -n "$CP"; then
5731 { echo "$as_me:$LINENO: result: $CP" >&5
5732echo "${ECHO_T}$CP" >&6; }
5733else
5734 { echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6; }
5736fi
5737
5738
5739# Extract the first word of "date", so it can be a program name with args.
5740set dummy date; ac_word=$2
5741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5743if test "${ac_cv_path_DATE+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 case $DATE in
5747 [\\/]* | ?:[\\/]*)
5748 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5749 ;;
5750 *)
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763done
5764IFS=$as_save_IFS
5765
5766 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5767 ;;
5768esac
5769fi
5770DATE=$ac_cv_path_DATE
5771if test -n "$DATE"; then
5772 { echo "$as_me:$LINENO: result: $DATE" >&5
5773echo "${ECHO_T}$DATE" >&6; }
5774else
5775 { echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6; }
5777fi
5778
5779
5780# Extract the first word of "find", so it can be a program name with args.
5781set dummy find; ac_word=$2
5782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784if test "${ac_cv_path_FIND+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787 case $FIND in
5788 [\\/]* | ?:[\\/]*)
5789 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5790 ;;
5791 *)
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5802 fi
5803done
5804done
5805IFS=$as_save_IFS
5806
5807 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5808 ;;
5809esac
5810fi
5811FIND=$ac_cv_path_FIND
5812if test -n "$FIND"; then
5813 { echo "$as_me:$LINENO: result: $FIND" >&5
5814echo "${ECHO_T}$FIND" >&6; }
5815else
5816 { echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6; }
5818fi
5819
5820
5821# Extract the first word of "grep", so it can be a program name with args.
5822set dummy grep; ac_word=$2
5823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825if test "${ac_cv_path_GREP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828 case $GREP in
5829 [\\/]* | ?:[\\/]*)
5830 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5831 ;;
5832 *)
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845done
5846IFS=$as_save_IFS
5847
5848 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5849 ;;
5850esac
5851fi
5852GREP=$ac_cv_path_GREP
5853if test -n "$GREP"; then
5854 { echo "$as_me:$LINENO: result: $GREP" >&5
5855echo "${ECHO_T}$GREP" >&6; }
5856else
5857 { echo "$as_me:$LINENO: result: no" >&5
5858echo "${ECHO_T}no" >&6; }
5859fi
5860
5861
5862# Extract the first word of "mkdir", so it can be a program name with args.
5863set dummy mkdir; ac_word=$2
5864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866if test "${ac_cv_path_MKDIR+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 case $MKDIR in
5870 [\\/]* | ?:[\\/]*)
5871 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5872 ;;
5873 *)
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886done
5887IFS=$as_save_IFS
5888
5889 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5890 ;;
5891esac
5892fi
5893MKDIR=$ac_cv_path_MKDIR
5894if test -n "$MKDIR"; then
5895 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5896echo "${ECHO_T}$MKDIR" >&6; }
5897else
5898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
5900fi
5901
5902
5903# Extract the first word of "mv", so it can be a program name with args.
5904set dummy mv; ac_word=$2
5905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907if test "${ac_cv_path_MV+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910 case $MV in
5911 [\\/]* | ?:[\\/]*)
5912 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5913 ;;
5914 *)
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927done
5928IFS=$as_save_IFS
5929
5930 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5931 ;;
5932esac
5933fi
5934MV=$ac_cv_path_MV
5935if test -n "$MV"; then
5936 { echo "$as_me:$LINENO: result: $MV" >&5
5937echo "${ECHO_T}$MV" >&6; }
5938else
5939 { echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6; }
5941fi
5942
5943
5944if test -n "$ac_tool_prefix"; then
5945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5946set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_prog_RANLIB+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 if test -n "$RANLIB"; then
5953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972RANLIB=$ac_cv_prog_RANLIB
5973if test -n "$RANLIB"; then
5974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5975echo "${ECHO_T}$RANLIB" >&6; }
5976else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982fi
5983if test -z "$ac_cv_prog_RANLIB"; then
5984 ac_ct_RANLIB=$RANLIB
5985 # Extract the first word of "ranlib", so it can be a program name with args.
5986set dummy ranlib; ac_word=$2
5987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 if test -n "$ac_ct_RANLIB"; then
5993 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_ac_ct_RANLIB="ranlib"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6013if test -n "$ac_ct_RANLIB"; then
6014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6015echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6016else
6017 { echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6; }
6019fi
6020
6021 if test "x$ac_ct_RANLIB" = x; then
6022 RANLIB=":"
6023 else
6024 case $cross_compiling:$ac_tool_warned in
6025yes:)
6026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6027whose name does not start with the host triplet. If you think this
6028configuration is useful to you, please write to autoconf@gnu.org." >&5
6029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6030whose name does not start with the host triplet. If you think this
6031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6032ac_tool_warned=yes ;;
6033esac
6034 RANLIB=$ac_ct_RANLIB
6035 fi
6036else
6037 RANLIB="$ac_cv_prog_RANLIB"
6038fi
6039
6040if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}ar; ac_word=$2
6043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045if test "${ac_cv_prog_AR+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048 if test -n "$AR"; then
6049 ac_cv_prog_AR="$AR" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_AR="${ac_tool_prefix}ar"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062done
6063done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068AR=$ac_cv_prog_AR
6069if test -n "$AR"; then
6070 { echo "$as_me:$LINENO: result: $AR" >&5
6071echo "${ECHO_T}$AR" >&6; }
6072else
6073 { echo "$as_me:$LINENO: result: no" >&5
6074echo "${ECHO_T}no" >&6; }
6075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_AR"; then
6080 ac_ct_AR=$AR
6081 # Extract the first word of "ar", so it can be a program name with args.
6082set dummy ar; ac_word=$2
6083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088 if test -n "$ac_ct_AR"; then
6089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_ac_ct_AR="ar"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102done
6103done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_AR=$ac_cv_prog_ac_ct_AR
6109if test -n "$ac_ct_AR"; then
6110 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6111echo "${ECHO_T}$ac_ct_AR" >&6; }
6112else
6113 { echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6; }
6115fi
6116
6117 if test "x$ac_ct_AR" = x; then
6118 AR="false"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123whose name does not start with the host triplet. If you think this
6124configuration is useful to you, please write to autoconf@gnu.org." >&5
6125echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126whose name does not start with the host triplet. If you think this
6127configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6128ac_tool_warned=yes ;;
6129esac
6130 AR=$ac_ct_AR
6131 fi
6132else
6133 AR="$ac_cv_prog_AR"
6134fi
6135
6136# Extract the first word of "rm", so it can be a program name with args.
6137set dummy rm; ac_word=$2
6138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140if test "${ac_cv_path_RM+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 case $RM in
6144 [\\/]* | ?:[\\/]*)
6145 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6146 ;;
6147 *)
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159done
6160done
6161IFS=$as_save_IFS
6162
6163 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6164 ;;
6165esac
6166fi
6167RM=$ac_cv_path_RM
6168if test -n "$RM"; then
6169 { echo "$as_me:$LINENO: result: $RM" >&5
6170echo "${ECHO_T}$RM" >&6; }
6171else
6172 { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
6174fi
6175
6176
6177# Extract the first word of "sed", so it can be a program name with args.
6178set dummy sed; ac_word=$2
6179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181if test "${ac_cv_path_SED+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 case $SED in
6185 [\\/]* | ?:[\\/]*)
6186 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6187 ;;
6188 *)
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201done
6202IFS=$as_save_IFS
6203
6204 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6205 ;;
6206esac
6207fi
6208SED=$ac_cv_path_SED
6209if test -n "$SED"; then
6210 { echo "$as_me:$LINENO: result: $SED" >&5
6211echo "${ECHO_T}$SED" >&6; }
6212else
6213 { echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6; }
6215fi
6216
6217
6218# Extract the first word of "tar", so it can be a program name with args.
6219set dummy tar; ac_word=$2
6220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222if test "${ac_cv_path_TAR+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 case $TAR in
6226 [\\/]* | ?:[\\/]*)
6227 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6228 ;;
6229 *)
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242done
6243IFS=$as_save_IFS
6244
6245 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6246 ;;
6247esac
6248fi
6249TAR=$ac_cv_path_TAR
6250if test -n "$TAR"; then
6251 { echo "$as_me:$LINENO: result: $TAR" >&5
6252echo "${ECHO_T}$TAR" >&6; }
6253else
6254 { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
6256fi
6257
6258
6259# Extract the first word of "pwd", so it can be a program name with args.
6260set dummy pwd; ac_word=$2
6261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263if test "${ac_cv_path_BINPWD+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 case $BINPWD in
6267 [\\/]* | ?:[\\/]*)
6268 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6269 ;;
6270 *)
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282done
6283done
6284IFS=$as_save_IFS
6285
6286 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6287 ;;
6288esac
6289fi
6290BINPWD=$ac_cv_path_BINPWD
6291if test -n "$BINPWD"; then
6292 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6293echo "${ECHO_T}$BINPWD" >&6; }
6294else
6295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
6297fi
6298
6299
6300
6301# Extract the first word of "Graphviz", so it can be a program name with args.
6302set dummy Graphviz; ac_word=$2
6303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 case $GRAPHVIZ in
6309 [\\/]* | ?:[\\/]*)
6310 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6311 ;;
6312 *)
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326IFS=$as_save_IFS
6327
6328 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6329 ;;
6330esac
6331fi
6332GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6333if test -n "$GRAPHVIZ"; then
6334 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6335echo "${ECHO_T}$GRAPHVIZ" >&6; }
6336else
6337 { echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6; }
6339fi
6340
6341
6342if test "$GRAPHVIZ" != "echo Graphviz" ; then
6343
6344cat >>confdefs.h <<\_ACEOF
6345#define HAVE_GRAPHVIZ 1
6346_ACEOF
6347
6348 if test "$llvm_cv_os_type" = "MingW" ; then
6349 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6350 fi
6351
6352cat >>confdefs.h <<_ACEOF
6353#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6354_ACEOF
6355
6356fi
6357# Extract the first word of "dot", so it can be a program name with args.
6358set dummy dot; ac_word=$2
6359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361if test "${ac_cv_path_DOT+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364 case $DOT in
6365 [\\/]* | ?:[\\/]*)
6366 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6367 ;;
6368 *)
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380done
6381done
6382IFS=$as_save_IFS
6383
6384 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6385 ;;
6386esac
6387fi
6388DOT=$ac_cv_path_DOT
6389if test -n "$DOT"; then
6390 { echo "$as_me:$LINENO: result: $DOT" >&5
6391echo "${ECHO_T}$DOT" >&6; }
6392else
6393 { echo "$as_me:$LINENO: result: no" >&5
6394echo "${ECHO_T}no" >&6; }
6395fi
6396
6397
6398if test "$DOT" != "echo dot" ; then
6399
6400cat >>confdefs.h <<\_ACEOF
6401#define HAVE_DOT 1
6402_ACEOF
6403
6404 if test "$llvm_cv_os_type" = "MingW" ; then
6405 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6406 fi
6407
6408cat >>confdefs.h <<_ACEOF
6409#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6410_ACEOF
6411
6412fi
6413# Extract the first word of "fdp", so it can be a program name with args.
6414set dummy fdp; ac_word=$2
6415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417if test "${ac_cv_path_FDP+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420 case $FDP in
6421 [\\/]* | ?:[\\/]*)
6422 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6423 ;;
6424 *)
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436done
6437done
6438IFS=$as_save_IFS
6439
6440 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6441 ;;
6442esac
6443fi
6444FDP=$ac_cv_path_FDP
6445if test -n "$FDP"; then
6446 { echo "$as_me:$LINENO: result: $FDP" >&5
6447echo "${ECHO_T}$FDP" >&6; }
6448else
6449 { echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6; }
6451fi
6452
6453
6454if test "$FDP" != "echo fdp" ; then
6455
6456cat >>confdefs.h <<\_ACEOF
6457#define HAVE_FDP 1
6458_ACEOF
6459
6460 if test "$llvm_cv_os_type" = "MingW" ; then
6461 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6462 fi
6463
6464cat >>confdefs.h <<_ACEOF
6465#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6466_ACEOF
6467
6468fi
6469# Extract the first word of "neato", so it can be a program name with args.
6470set dummy neato; ac_word=$2
6471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473if test "${ac_cv_path_NEATO+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 case $NEATO in
6477 [\\/]* | ?:[\\/]*)
6478 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6479 ;;
6480 *)
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494IFS=$as_save_IFS
6495
6496 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6497 ;;
6498esac
6499fi
6500NEATO=$ac_cv_path_NEATO
6501if test -n "$NEATO"; then
6502 { echo "$as_me:$LINENO: result: $NEATO" >&5
6503echo "${ECHO_T}$NEATO" >&6; }
6504else
6505 { echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6; }
6507fi
6508
6509
6510if test "$NEATO" != "echo neato" ; then
6511
6512cat >>confdefs.h <<\_ACEOF
6513#define HAVE_NEATO 1
6514_ACEOF
6515
6516 if test "$llvm_cv_os_type" = "MingW" ; then
6517 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6518 fi
6519
6520cat >>confdefs.h <<_ACEOF
6521#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6522_ACEOF
6523
6524fi
6525# Extract the first word of "twopi", so it can be a program name with args.
6526set dummy twopi; ac_word=$2
6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529if test "${ac_cv_path_TWOPI+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 case $TWOPI in
6533 [\\/]* | ?:[\\/]*)
6534 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6535 ;;
6536 *)
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548done
6549done
6550IFS=$as_save_IFS
6551
6552 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6553 ;;
6554esac
6555fi
6556TWOPI=$ac_cv_path_TWOPI
6557if test -n "$TWOPI"; then
6558 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6559echo "${ECHO_T}$TWOPI" >&6; }
6560else
6561 { echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6; }
6563fi
6564
6565
6566if test "$TWOPI" != "echo twopi" ; then
6567
6568cat >>confdefs.h <<\_ACEOF
6569#define HAVE_TWOPI 1
6570_ACEOF
6571
6572 if test "$llvm_cv_os_type" = "MingW" ; then
6573 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6574 fi
6575
6576cat >>confdefs.h <<_ACEOF
6577#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6578_ACEOF
6579
6580fi
6581# Extract the first word of "circo", so it can be a program name with args.
6582set dummy circo; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_CIRCO+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $CIRCO in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6609 ;;
6610esac
6611fi
6612CIRCO=$ac_cv_path_CIRCO
6613if test -n "$CIRCO"; then
6614 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6615echo "${ECHO_T}$CIRCO" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622if test "$CIRCO" != "echo circo" ; then
6623
6624cat >>confdefs.h <<\_ACEOF
6625#define HAVE_CIRCO 1
6626_ACEOF
6627
6628 if test "$llvm_cv_os_type" = "MingW" ; then
6629 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6630 fi
6631
6632cat >>confdefs.h <<_ACEOF
6633#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6634_ACEOF
6635
6636fi
6637for ac_prog in gv gsview32
6638do
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640set dummy $ac_prog; ac_word=$2
6641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643if test "${ac_cv_path_GV+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 case $GV in
6647 [\\/]* | ?:[\\/]*)
6648 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6649 ;;
6650 *)
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664IFS=$as_save_IFS
6665
6666 ;;
6667esac
6668fi
6669GV=$ac_cv_path_GV
6670if test -n "$GV"; then
6671 { echo "$as_me:$LINENO: result: $GV" >&5
6672echo "${ECHO_T}$GV" >&6; }
6673else
6674 { echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6; }
6676fi
6677
6678
6679 test -n "$GV" && break
6680done
6681test -n "$GV" || GV="echo gv"
6682
6683if test "$GV" != "echo gv" ; then
6684
6685cat >>confdefs.h <<\_ACEOF
6686#define HAVE_GV 1
6687_ACEOF
6688
6689 if test "$llvm_cv_os_type" = "MingW" ; then
6690 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691 fi
6692
6693cat >>confdefs.h <<_ACEOF
6694#define LLVM_PATH_GV "$GV${EXEEXT}"
6695_ACEOF
6696
6697fi
6698# Extract the first word of "dotty", so it can be a program name with args.
6699set dummy dotty; ac_word=$2
6700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702if test "${ac_cv_path_DOTTY+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705 case $DOTTY in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722done
6723IFS=$as_save_IFS
6724
6725 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6726 ;;
6727esac
6728fi
6729DOTTY=$ac_cv_path_DOTTY
6730if test -n "$DOTTY"; then
6731 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6732echo "${ECHO_T}$DOTTY" >&6; }
6733else
6734 { echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6; }
6736fi
6737
6738
6739if test "$DOTTY" != "echo dotty" ; then
6740
6741cat >>confdefs.h <<\_ACEOF
6742#define HAVE_DOTTY 1
6743_ACEOF
6744
6745 if test "$llvm_cv_os_type" = "MingW" ; then
6746 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 fi
6748
6749cat >>confdefs.h <<_ACEOF
6750#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6751_ACEOF
6752
6753fi
6754# Extract the first word of "xdot.py", so it can be a program name with args.
6755set dummy xdot.py; ac_word=$2
6756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758if test "${ac_cv_path_XDOT_PY+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 case $XDOT_PY in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6764 ;;
6765 *)
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
6779IFS=$as_save_IFS
6780
6781 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6782 ;;
6783esac
6784fi
6785XDOT_PY=$ac_cv_path_XDOT_PY
6786if test -n "$XDOT_PY"; then
6787 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6788echo "${ECHO_T}$XDOT_PY" >&6; }
6789else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
6792fi
6793
6794
6795if test "$XDOT_PY" != "echo xdot.py" ; then
6796
6797cat >>confdefs.h <<\_ACEOF
6798#define HAVE_XDOT_PY 1
6799_ACEOF
6800
6801 if test "$llvm_cv_os_type" = "MingW" ; then
6802 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 fi
6804
6805cat >>confdefs.h <<_ACEOF
6806#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6807_ACEOF
6808
6809fi
6810
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006811# Find a good install program. We prefer a C program (faster),
6812# so one script is as good as another. But avoid the broken or
6813# incompatible versions:
6814# SysV /etc/install, /usr/sbin/install
6815# SunOS /usr/etc/install
6816# IRIX /sbin/install
6817# AIX /bin/install
6818# AmigaOS /C/install, which installs bootblocks on floppy discs
6819# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6820# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6821# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6822# OS/2's system install, which has a completely different semantic
6823# ./install, which can be erroneously created by make from ./install.sh.
6824{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6825echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6826if test -z "$INSTALL"; then
6827if test "${ac_cv_path_install+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 # Account for people who put trailing slashes in PATH elements.
6836case $as_dir/ in
6837 ./ | .// | /cC/* | \
6838 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6839 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6840 /usr/ucb/* ) ;;
6841 *)
6842 # OSF1 and SCO ODT 3.0 have their own names for install.
6843 # Don't use installbsd from OSF since it installs stuff as root
6844 # by default.
6845 for ac_prog in ginstall scoinst install; do
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6848 if test $ac_prog = install &&
6849 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6850 # AIX install. It has an incompatible calling convention.
6851 :
6852 elif test $ac_prog = install &&
6853 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6854 # program-specific install script used by HP pwplus--don't use.
6855 :
6856 else
6857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6858 break 3
6859 fi
6860 fi
6861 done
6862 done
6863 ;;
6864esac
6865done
6866IFS=$as_save_IFS
6867
6868
6869fi
6870 if test "${ac_cv_path_install+set}" = set; then
6871 INSTALL=$ac_cv_path_install
6872 else
6873 # As a last resort, use the slow shell script. Don't cache a
6874 # value for INSTALL within a source directory, because that will
6875 # break other packages using the cache if that directory is
6876 # removed, or if the value is a relative name.
6877 INSTALL=$ac_install_sh
6878 fi
6879fi
6880{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6881echo "${ECHO_T}$INSTALL" >&6; }
6882
6883# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6884# It thinks the first close brace ends the variable substitution.
6885test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6886
6887test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6888
6889test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6890
6891case "$INSTALL" in
6892 [\\/$]* | ?:[\\/]* ) ;;
6893 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6894esac
6895
6896# Extract the first word of "bzip2", so it can be a program name with args.
6897set dummy bzip2; ac_word=$2
6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_BZIP2+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 case $BZIP2 in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923 ;;
6924esac
6925fi
6926BZIP2=$ac_cv_path_BZIP2
6927if test -n "$BZIP2"; then
6928 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6929echo "${ECHO_T}$BZIP2" >&6; }
6930else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933fi
6934
6935
6936# Extract the first word of "cat", so it can be a program name with args.
6937set dummy cat; ac_word=$2
6938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_path_CAT+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 case $CAT in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961IFS=$as_save_IFS
6962
6963 ;;
6964esac
6965fi
6966CAT=$ac_cv_path_CAT
6967if test -n "$CAT"; then
6968 { echo "$as_me:$LINENO: result: $CAT" >&5
6969echo "${ECHO_T}$CAT" >&6; }
6970else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6; }
6973fi
6974
6975
6976# Extract the first word of "doxygen", so it can be a program name with args.
6977set dummy doxygen; ac_word=$2
6978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_DOXYGEN+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 case $DOXYGEN in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003 ;;
7004esac
7005fi
7006DOXYGEN=$ac_cv_path_DOXYGEN
7007if test -n "$DOXYGEN"; then
7008 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7009echo "${ECHO_T}$DOXYGEN" >&6; }
7010else
7011 { echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6; }
7013fi
7014
7015
7016# Extract the first word of "groff", so it can be a program name with args.
7017set dummy groff; ac_word=$2
7018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020if test "${ac_cv_path_GROFF+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 case $GROFF in
7024 [\\/]* | ?:[\\/]*)
7025 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7026 ;;
7027 *)
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040done
7041IFS=$as_save_IFS
7042
7043 ;;
7044esac
7045fi
7046GROFF=$ac_cv_path_GROFF
7047if test -n "$GROFF"; then
7048 { echo "$as_me:$LINENO: result: $GROFF" >&5
7049echo "${ECHO_T}$GROFF" >&6; }
7050else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
7053fi
7054
7055
7056# Extract the first word of "gzip", so it can be a program name with args.
7057set dummy gzip; ac_word=$2
7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_GZIPBIN+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 case $GZIPBIN in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081IFS=$as_save_IFS
7082
7083 ;;
7084esac
7085fi
7086GZIPBIN=$ac_cv_path_GZIPBIN
7087if test -n "$GZIPBIN"; then
7088 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7089echo "${ECHO_T}$GZIPBIN" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
7096# Extract the first word of "pod2html", so it can be a program name with args.
7097set dummy pod2html; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_POD2HTML+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $POD2HTML in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123 ;;
7124esac
7125fi
7126POD2HTML=$ac_cv_path_POD2HTML
7127if test -n "$POD2HTML"; then
7128 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7129echo "${ECHO_T}$POD2HTML" >&6; }
7130else
7131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
7133fi
7134
7135
7136# Extract the first word of "pod2man", so it can be a program name with args.
7137set dummy pod2man; ac_word=$2
7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_POD2MAN+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 case $POD2MAN in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163 ;;
7164esac
7165fi
7166POD2MAN=$ac_cv_path_POD2MAN
7167if test -n "$POD2MAN"; then
7168 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7169echo "${ECHO_T}$POD2MAN" >&6; }
7170else
7171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
7173fi
7174
7175
7176# Extract the first word of "pdfroff", so it can be a program name with args.
7177set dummy pdfroff; ac_word=$2
7178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180if test "${ac_cv_path_PDFROFF+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183 case $PDFROFF in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201IFS=$as_save_IFS
7202
7203 ;;
7204esac
7205fi
7206PDFROFF=$ac_cv_path_PDFROFF
7207if test -n "$PDFROFF"; then
7208 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7209echo "${ECHO_T}$PDFROFF" >&6; }
7210else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
7213fi
7214
7215
7216# Extract the first word of "runtest", so it can be a program name with args.
7217set dummy runtest; ac_word=$2
7218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220if test "${ac_cv_path_RUNTEST+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 case $RUNTEST in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241IFS=$as_save_IFS
7242
7243 ;;
7244esac
7245fi
7246RUNTEST=$ac_cv_path_RUNTEST
7247if test -n "$RUNTEST"; then
7248 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7249echo "${ECHO_T}$RUNTEST" >&6; }
7250else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255
7256
7257no_itcl=true
7258{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7259echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7260
7261# Check whether --with-tclinclude was given.
7262if test "${with_tclinclude+set}" = set; then
7263 withval=$with_tclinclude; with_tclinclude=${withval}
7264else
7265 with_tclinclude=''
7266fi
7267
7268if test "${ac_cv_path_tclsh+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271
7272if test x"${with_tclinclude}" != x ; then
7273 if test -f ${with_tclinclude}/tclsh ; then
7274 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7275 elif test -f ${with_tclinclude}/src/tclsh ; then
7276 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7277 else
7278 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7279echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7280 { (exit 1); exit 1; }; }
7281 fi
7282fi
7283fi
7284
7285
7286if test x"${ac_cv_path_tclsh}" = x ; then
7287 { echo "$as_me:$LINENO: result: none" >&5
7288echo "${ECHO_T}none" >&6; }
7289 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
7290do
7291 # Extract the first word of "$ac_prog", so it can be a program name with args.
7292set dummy $ac_prog; ac_word=$2
7293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_TCLSH+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 case $TCLSH in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314done
7315done
7316IFS=$as_save_IFS
7317
7318 ;;
7319esac
7320fi
7321TCLSH=$ac_cv_path_TCLSH
7322if test -n "$TCLSH"; then
7323 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7324echo "${ECHO_T}$TCLSH" >&6; }
7325else
7326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
7328fi
7329
7330
7331 test -n "$TCLSH" && break
7332done
7333
7334 if test x"${TCLSH}" = x ; then
7335 ac_cv_path_tclsh='';
7336 else
7337 ac_cv_path_tclsh="${TCLSH}";
7338 fi
7339else
7340 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7341echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7342 TCLSH="${ac_cv_path_tclsh}"
7343
7344fi
7345
7346# Extract the first word of "zip", so it can be a program name with args.
7347set dummy zip; ac_word=$2
7348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7350if test "${ac_cv_path_ZIP+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353 case $ZIP in
7354 [\\/]* | ?:[\\/]*)
7355 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7356 ;;
7357 *)
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369done
7370done
7371IFS=$as_save_IFS
7372
7373 ;;
7374esac
7375fi
7376ZIP=$ac_cv_path_ZIP
7377if test -n "$ZIP"; then
7378 { echo "$as_me:$LINENO: result: $ZIP" >&5
7379echo "${ECHO_T}$ZIP" >&6; }
7380else
7381 { echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6; }
7383fi
7384
7385
7386for ac_prog in ocamlc
7387do
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389set dummy $ac_prog; ac_word=$2
7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_OCAMLC+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 case $OCAMLC in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415 ;;
7416esac
7417fi
7418OCAMLC=$ac_cv_path_OCAMLC
7419if test -n "$OCAMLC"; then
7420 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7421echo "${ECHO_T}$OCAMLC" >&6; }
7422else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428 test -n "$OCAMLC" && break
7429done
7430
7431for ac_prog in ocamlopt
7432do
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434set dummy $ac_prog; ac_word=$2
7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 case $OCAMLOPT in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458IFS=$as_save_IFS
7459
7460 ;;
7461esac
7462fi
7463OCAMLOPT=$ac_cv_path_OCAMLOPT
7464if test -n "$OCAMLOPT"; then
7465 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7466echo "${ECHO_T}$OCAMLOPT" >&6; }
7467else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
7470fi
7471
7472
7473 test -n "$OCAMLOPT" && break
7474done
7475
7476for ac_prog in ocamldep
7477do
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479set dummy $ac_prog; ac_word=$2
7480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 case $OCAMLDEP in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502done
7503IFS=$as_save_IFS
7504
7505 ;;
7506esac
7507fi
7508OCAMLDEP=$ac_cv_path_OCAMLDEP
7509if test -n "$OCAMLDEP"; then
7510 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7511echo "${ECHO_T}$OCAMLDEP" >&6; }
7512else
7513 { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
7515fi
7516
7517
7518 test -n "$OCAMLDEP" && break
7519done
7520
7521for ac_prog in ocamldoc
7522do
7523 # Extract the first word of "$ac_prog", so it can be a program name with args.
7524set dummy $ac_prog; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $OCAMLDOC in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
7550 ;;
7551esac
7552fi
7553OCAMLDOC=$ac_cv_path_OCAMLDOC
7554if test -n "$OCAMLDOC"; then
7555 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7556echo "${ECHO_T}$OCAMLDOC" >&6; }
7557else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560fi
7561
7562
7563 test -n "$OCAMLDOC" && break
7564done
7565
7566for ac_prog in gas as
7567do
7568 # Extract the first word of "$ac_prog", so it can be a program name with args.
7569set dummy $ac_prog; ac_word=$2
7570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572if test "${ac_cv_path_GAS+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574else
7575 case $GAS in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7578 ;;
7579 *)
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593IFS=$as_save_IFS
7594
7595 ;;
7596esac
7597fi
7598GAS=$ac_cv_path_GAS
7599if test -n "$GAS"; then
7600 { echo "$as_me:$LINENO: result: $GAS" >&5
7601echo "${ECHO_T}$GAS" >&6; }
7602else
7603 { echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6; }
7605fi
7606
7607
7608 test -n "$GAS" && break
7609done
7610
7611
7612{ echo "$as_me:$LINENO: checking for linker version" >&5
7613echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7614if test "${llvm_cv_link_version+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617
7618 version_string="$(ld -v 2>&1 | head -1)"
7619
7620 # Check for ld64.
7621 if (echo "$version_string" | grep -q "ld64"); then
7622 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7623 else
7624 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7625 fi
7626
7627fi
7628{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7629echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7630
7631cat >>confdefs.h <<_ACEOF
7632#define HOST_LINK_VERSION "$llvm_cv_link_version"
7633_ACEOF
7634
7635
7636
7637{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7638echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7639if test "${llvm_cv_link_use_r+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642 ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648 oldcflags="$CFLAGS"
7649 CFLAGS="$CFLAGS -Wl,-R."
7650 cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h. */
7656
7657int
7658main ()
7659{
7660
7661 ;
7662 return 0;
7663}
7664_ACEOF
7665rm -f conftest.$ac_objext conftest$ac_exeext
7666if { (ac_try="$ac_link"
7667case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670esac
7671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_link") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_try") 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 llvm_cv_link_use_r=yes
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 llvm_cv_link_use_r=no
7705fi
7706
7707rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 CFLAGS="$oldcflags"
7710 ac_ext=c
7711ac_cpp='$CPP $CPPFLAGS'
7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717fi
7718{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720if test "$llvm_cv_link_use_r" = yes ; then
7721
7722cat >>confdefs.h <<\_ACEOF
7723#define HAVE_LINK_R 1
7724_ACEOF
7725
7726 fi
7727
7728
7729{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7730echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7731if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740 oldcflags="$CFLAGS"
7741 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748
7749int
7750main ()
7751{
7752
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (ac_try="$ac_link"
7759case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772 { (case "(($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_try") 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 llvm_cv_link_use_export_dynamic=yes
7792else
7793 echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 llvm_cv_link_use_export_dynamic=no
7797fi
7798
7799rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 CFLAGS="$oldcflags"
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809fi
7810{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7811echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7812if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7813
7814cat >>confdefs.h <<\_ACEOF
7815#define HAVE_LINK_EXPORT_DYNAMIC 1
7816_ACEOF
7817
7818 fi
7819
7820
7821{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7822echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7823if test "${llvm_cv_link_use_version_script+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832 oldcflags="$CFLAGS"
7833
7834 # The following code is from the autoconf manual,
7835 # "11.13: Limitations of Usual Tools".
7836 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7837 # Use mktemp if possible; otherwise fall back on mkdir,
7838 # with $RANDOM to make collisions less likely.
7839 : ${TMPDIR=/tmp}
7840 {
7841 tmp=`
7842 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7843 ` &&
7844 test -n "$tmp" && test -d "$tmp"
7845 } || {
7846 tmp=$TMPDIR/foo$$-$RANDOM
7847 (umask 077 && mkdir "$tmp")
7848 } || exit $?
7849
7850 echo "{" > "$tmp/export.map"
7851 echo " global: main;" >> "$tmp/export.map"
7852 echo " local: *;" >> "$tmp/export.map"
7853 echo "};" >> "$tmp/export.map"
7854
7855 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863int
7864main ()
7865{
7866
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (ac_try="$ac_link"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_try") 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_try") 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 llvm_cv_link_use_version_script=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 llvm_cv_link_use_version_script=no
7911fi
7912
7913rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 rm "$tmp/export.map"
7916 rmdir "$tmp"
7917 CFLAGS="$oldcflags"
7918 ac_ext=c
7919ac_cpp='$CPP $CPPFLAGS'
7920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923
7924
7925fi
7926{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7927echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7928if test "$llvm_cv_link_use_version_script" = yes ; then
7929 HAVE_LINK_VERSION_SCRIPT=1
7930
7931 fi
7932
7933
7934
7935
7936{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7937echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7938if test "${ac_cv_c_const+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941 cat >conftest.$ac_ext <<_ACEOF
7942/* confdefs.h. */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h. */
7947
7948int
7949main ()
7950{
7951/* FIXME: Include the comments suggested by Paul. */
7952#ifndef __cplusplus
7953 /* Ultrix mips cc rejects this. */
7954 typedef int charset[2];
7955 const charset x;
7956 /* SunOS 4.1.1 cc rejects this. */
7957 char const *const *ccp;
7958 char **p;
7959 /* NEC SVR4.0.2 mips cc rejects this. */
7960 struct point {int x, y;};
7961 static struct point const zero = {0,0};
7962 /* AIX XL C 1.02.0.0 rejects this.
7963 It does not let you subtract one const X* pointer from another in
7964 an arm of an if-expression whose if-part is not a constant
7965 expression */
7966 const char *g = "string";
7967 ccp = &g + (g ? g-g : 0);
7968 /* HPUX 7.0 cc rejects these. */
7969 ++ccp;
7970 p = (char**) ccp;
7971 ccp = (char const *const *) p;
7972 { /* SCO 3.2v4 cc rejects this. */
7973 char *t;
7974 char const *s = 0 ? (char *) 0 : (char const *) 0;
7975
7976 *t++ = 0;
7977 if (s) return 0;
7978 }
7979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7980 int x[] = {25, 17};
7981 const int *foo = &x[0];
7982 ++foo;
7983 }
7984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7985 typedef const int *iptr;
7986 iptr p = 0;
7987 ++p;
7988 }
7989 { /* AIX XL C 1.02.0.0 rejects this saying
7990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7991 struct s { int j; const int *ap[3]; };
7992 struct s *b; b->j = 5;
7993 }
7994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7995 const int foo = 10;
7996 if (!foo) return 0;
7997 }
7998 return !x[0] && !zero.x;
7999#endif
8000
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext
8006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8020 { (case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023esac
8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_try") 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest.$ac_objext'
8030 { (case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_try") 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_cv_c_const=yes
8040else
8041 echo "$as_me: failed program was:" >&5
8042sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 ac_cv_c_const=no
8045fi
8046
8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048fi
8049{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8050echo "${ECHO_T}$ac_cv_c_const" >&6; }
8051if test $ac_cv_c_const = no; then
8052
8053cat >>confdefs.h <<\_ACEOF
8054#define const
8055_ACEOF
8056
8057fi
8058
8059
8060
8061
8062
8063
8064ac_header_dirent=no
8065for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8066 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8067{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8068echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078#include <sys/types.h>
8079#include <$ac_hdr>
8080
8081int
8082main ()
8083{
8084if ((DIR *) 0)
8085return 0;
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (ac_try="$ac_compile"
8092case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8105 { (case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_try") 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 eval "$as_ac_Header=yes"
8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 eval "$as_ac_Header=no"
8130fi
8131
8132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133fi
8134ac_res=`eval echo '${'$as_ac_Header'}'`
8135 { echo "$as_me:$LINENO: result: $ac_res" >&5
8136echo "${ECHO_T}$ac_res" >&6; }
8137if test `eval echo '${'$as_ac_Header'}'` = yes; then
8138 cat >>confdefs.h <<_ACEOF
8139#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8140_ACEOF
8141
8142ac_header_dirent=$ac_hdr; break
8143fi
8144
8145done
8146# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8147if test $ac_header_dirent = dirent.h; then
8148 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8149echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8150if test "${ac_cv_search_opendir+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152else
8153 ac_func_search_save_LIBS=$LIBS
8154cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h. */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h. */
8160
8161/* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8164#ifdef __cplusplus
8165extern "C"
8166#endif
8167char opendir ();
8168int
8169main ()
8170{
8171return opendir ();
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176for ac_lib in '' dir; do
8177 if test -z "$ac_lib"; then
8178 ac_res="none required"
8179 else
8180 ac_res=-l$ac_lib
8181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8182 fi
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184if { (ac_try="$ac_link"
8185case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest$ac_exeext'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_search_opendir=$ac_res
8218else
8219 echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222
8223fi
8224
8225rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext
8227 if test "${ac_cv_search_opendir+set}" = set; then
8228 break
8229fi
8230done
8231if test "${ac_cv_search_opendir+set}" = set; then
8232 :
8233else
8234 ac_cv_search_opendir=no
8235fi
8236rm conftest.$ac_ext
8237LIBS=$ac_func_search_save_LIBS
8238fi
8239{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8240echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8241ac_res=$ac_cv_search_opendir
8242if test "$ac_res" != no; then
8243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8244
8245fi
8246
8247else
8248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8249echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8250if test "${ac_cv_search_opendir+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253 ac_func_search_save_LIBS=$LIBS
8254cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260
8261/* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8264#ifdef __cplusplus
8265extern "C"
8266#endif
8267char opendir ();
8268int
8269main ()
8270{
8271return opendir ();
8272 ;
8273 return 0;
8274}
8275_ACEOF
8276for ac_lib in '' x; do
8277 if test -z "$ac_lib"; then
8278 ac_res="none required"
8279 else
8280 ac_res=-l$ac_lib
8281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8282 fi
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (ac_try="$ac_link"
8285case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288esac
8289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_search_opendir=$ac_res
8318else
8319 echo "$as_me: failed program was:" >&5
8320sed 's/^/| /' conftest.$ac_ext >&5
8321
8322
8323fi
8324
8325rm -f core conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext
8327 if test "${ac_cv_search_opendir+set}" = set; then
8328 break
8329fi
8330done
8331if test "${ac_cv_search_opendir+set}" = set; then
8332 :
8333else
8334 ac_cv_search_opendir=no
8335fi
8336rm conftest.$ac_ext
8337LIBS=$ac_func_search_save_LIBS
8338fi
8339{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8340echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8341ac_res=$ac_cv_search_opendir
8342if test "$ac_res" != no; then
8343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8344
8345fi
8346
8347fi
8348
8349
8350for ac_header in dlfcn.h
8351do
8352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358fi
8359ac_res=`eval echo '${'$as_ac_Header'}'`
8360 { echo "$as_me:$LINENO: result: $ac_res" >&5
8361echo "${ECHO_T}$ac_res" >&6; }
8362else
8363 # Is the header compilable?
8364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8366cat >conftest.$ac_ext <<_ACEOF
8367/* confdefs.h. */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h. */
8372$ac_includes_default
8373#include <$ac_header>
8374_ACEOF
8375rm -f conftest.$ac_objext
8376if { (ac_try="$ac_compile"
8377case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8390 { (case "(($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_try") 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_header_compiler=yes
8410else
8411 echo "$as_me: failed program was:" >&5
8412sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 ac_header_compiler=no
8415fi
8416
8417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8419echo "${ECHO_T}$ac_header_compiler" >&6; }
8420
8421# Is the header present?
8422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8424cat >conftest.$ac_ext <<_ACEOF
8425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
8430#include <$ac_header>
8431_ACEOF
8432if { (ac_try="$ac_cpp conftest.$ac_ext"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_c_preproc_warn_flag
8447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8448 else
8449 ac_cpp_err=
8450 fi
8451else
8452 ac_cpp_err=yes
8453fi
8454if test -z "$ac_cpp_err"; then
8455 ac_header_preproc=yes
8456else
8457 echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 ac_header_preproc=no
8461fi
8462
8463rm -f conftest.err conftest.$ac_ext
8464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8465echo "${ECHO_T}$ac_header_preproc" >&6; }
8466
8467# So? What about this header?
8468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8469 yes:no: )
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8474 ac_header_preproc=yes
8475 ;;
8476 no:yes:* )
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8489 ( cat <<\_ASBOX
8490## ------------------------------ ##
8491## Report this to bugs@yourdomain ##
8492## ------------------------------ ##
8493_ASBOX
8494 ) | sed "s/^/$as_me: WARNING: /" >&2
8495 ;;
8496esac
8497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 eval "$as_ac_Header=\$ac_header_preproc"
8503fi
8504ac_res=`eval echo '${'$as_ac_Header'}'`
8505 { echo "$as_me:$LINENO: result: $ac_res" >&5
8506echo "${ECHO_T}$ac_res" >&6; }
8507
8508fi
8509if test `eval echo '${'$as_ac_Header'}'` = yes; then
8510 cat >>confdefs.h <<_ACEOF
8511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512_ACEOF
8513
8514fi
8515
8516done
8517
8518# Check whether --enable-ltdl-install was given.
8519if test "${enable_ltdl_install+set}" = set; then
8520 enableval=$enable_ltdl_install;
8521fi
8522
8523
8524
8525
8526if test x"${enable_ltdl_install-no}" != xno; then
8527 INSTALL_LTDL_TRUE=
8528 INSTALL_LTDL_FALSE='#'
8529else
8530 INSTALL_LTDL_TRUE='#'
8531 INSTALL_LTDL_FALSE=
8532fi
8533
8534
8535
8536if test x"${enable_ltdl_convenience-no}" != xno; then
8537 CONVENIENCE_LTDL_TRUE=
8538 CONVENIENCE_LTDL_FALSE='#'
8539else
8540 CONVENIENCE_LTDL_TRUE='#'
8541 CONVENIENCE_LTDL_FALSE=
8542fi
8543
8544
8545{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8546echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547library_names_spec=
8548libname_spec='lib$name'
8549soname_spec=
8550shrext_cmds=".so"
8551postinstall_cmds=
8552postuninstall_cmds=
8553finish_cmds=
8554finish_eval=
8555shlibpath_var=
8556shlibpath_overrides_runpath=unknown
8557version_type=none
8558dynamic_linker="$host_os ld.so"
8559sys_lib_dlsearch_path_spec="/lib /usr/lib"
8560if test "$GCC" = yes; then
8561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8562 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8563 # if the path contains ";" then we assume it to be the separator
8564 # otherwise default to the standard path separator (i.e. ":") - it is
8565 # assumed that no part of a normal pathname contains ";" but that should
8566 # okay in the real world where ";" in dirpaths is itself problematic.
8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8568 else
8569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8570 fi
8571else
8572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8573fi
8574need_lib_prefix=unknown
8575hardcode_into_libs=no
8576
8577# when you set need_version to no, make sure it does not cause -set_version
8578# flags to be left without arguments
8579need_version=unknown
8580
8581case $host_os in
8582aix3*)
8583 version_type=linux
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8585 shlibpath_var=LIBPATH
8586
8587 # AIX 3 has no versioning support, so we append a major version to the name.
8588 soname_spec='${libname}${release}${shared_ext}$major'
8589 ;;
8590
8591aix4* | aix5*)
8592 version_type=linux
8593 need_lib_prefix=no
8594 need_version=no
8595 hardcode_into_libs=yes
8596 if test "$host_cpu" = ia64; then
8597 # AIX 5 supports IA64
8598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 else
8601 # With GCC up to 2.95.x, collect2 would create an import file
8602 # for dependence libraries. The import file would start with
8603 # the line `#! .'. This would cause the generated library to
8604 # depend on `.', always an invalid library. This was fixed in
8605 # development snapshots of GCC prior to 3.0.
8606 case $host_os in
8607 aix4 | aix4.[01] | aix4.[01].*)
8608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8609 echo ' yes '
8610 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8611 :
8612 else
8613 can_build_shared=no
8614 fi
8615 ;;
8616 esac
8617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8618 # soname into executable. Probably we can add versioning support to
8619 # collect2, so additional links can be useful in future.
8620 if test "$aix_use_runtimelinking" = yes; then
8621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8622 # instead of lib<name>.a to let people know that these are not
8623 # typical AIX shared libraries.
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 else
8626 # We preserve .a as extension for shared libraries through AIX4.2
8627 # and later when we are not doing run time linking.
8628 library_names_spec='${libname}${release}.a $libname.a'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 fi
8631 shlibpath_var=LIBPATH
8632 fi
8633 ;;
8634
8635amigaos*)
8636 library_names_spec='$libname.ixlibrary $libname.a'
8637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8638 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'
8639 ;;
8640
8641beos*)
8642 library_names_spec='${libname}${shared_ext}'
8643 dynamic_linker="$host_os ld.so"
8644 shlibpath_var=LIBRARY_PATH
8645 ;;
8646
8647bsdi[45]*)
8648 version_type=linux
8649 need_version=no
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651 soname_spec='${libname}${release}${shared_ext}$major'
8652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8656 # the default ld.so.conf also contains /usr/contrib/lib and
8657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8658 # libtool to hard-code these into programs
8659 ;;
8660
8661cygwin* | mingw* | pw32*)
8662 version_type=windows
8663 shrext_cmds=".dll"
8664 need_version=no
8665 need_lib_prefix=no
8666
8667 case $GCC,$host_os in
8668 yes,cygwin* | yes,mingw* | yes,pw32*)
8669 library_names_spec='$libname.dll.a'
8670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8671 postinstall_cmds='base_file=`basename \${file}`~
8672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8673 dldir=$destdir/`dirname \$dlpath`~
8674 test -d \$dldir || mkdir -p \$dldir~
8675 $install_prog $dir/$dlname \$dldir/$dlname~
8676 chmod a+x \$dldir/$dlname'
8677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8678 dlpath=$dir/\$dldll~
8679 $rm \$dlpath'
8680 shlibpath_overrides_runpath=yes
8681
8682 case $host_os in
8683 cygwin*)
8684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8687 ;;
8688 mingw*)
8689 # MinGW DLLs use traditional 'lib' prefix
8690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8693 # It is most probably a Windows format PATH printed by
8694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8695 # path with ; separators, and with drive letters. We can handle the
8696 # drive letters (cygwin fileutils understands them), so leave them,
8697 # especially as we might pass files found there to a mingw objdump,
8698 # which wouldn't understand a cygwinified path. Ahh.
8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8700 else
8701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8702 fi
8703 ;;
8704 pw32*)
8705 # pw32 DLLs use 'pw' prefix rather than 'lib'
8706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 ;;
8708 esac
8709 ;;
8710
8711 *)
8712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8713 ;;
8714 esac
8715 dynamic_linker='Win32 ld.exe'
8716 # FIXME: first we should search . and the directory the executable is in
8717 shlibpath_var=PATH
8718 ;;
8719
8720darwin* | rhapsody*)
8721 dynamic_linker="$host_os dyld"
8722 version_type=darwin
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8726 soname_spec='${libname}${release}${major}$shared_ext'
8727 shlibpath_overrides_runpath=yes
8728 shlibpath_var=DYLD_LIBRARY_PATH
8729 shrext_cmds='.dylib'
8730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8731 if test "$GCC" = yes; then
8732 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"`
8733 else
8734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8735 fi
8736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8737 ;;
8738
8739dgux*)
8740 version_type=linux
8741 need_lib_prefix=no
8742 need_version=no
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 ;;
8747
Rafael Espindola48381e52012-01-31 17:18:47 +00008748freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008749 dynamic_linker=no
8750 ;;
8751
8752kfreebsd*-gnu)
8753 version_type=linux
8754 need_lib_prefix=no
8755 need_version=no
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=no
8760 hardcode_into_libs=yes
8761 dynamic_linker='GNU ld.so'
8762 ;;
8763
8764freebsd* | dragonfly*)
8765 # DragonFly does not have aout. When/if they implement a new
8766 # versioning mechanism, adjust this.
8767 if test -x /usr/bin/objformat; then
8768 objformat=`/usr/bin/objformat`
8769 else
8770 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008771 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008772 *) objformat=elf ;;
8773 esac
8774 fi
8775 version_type=freebsd-$objformat
8776 case $version_type in
8777 freebsd-elf*)
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8779 need_version=no
8780 need_lib_prefix=no
8781 ;;
8782 freebsd-*)
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8784 need_version=yes
8785 ;;
8786 esac
8787 shlibpath_var=LD_LIBRARY_PATH
8788 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008789 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008790 shlibpath_overrides_runpath=yes
8791 ;;
8792 freebsd3.[01]* | freebsdelf3.[01]*)
8793 shlibpath_overrides_runpath=yes
8794 hardcode_into_libs=yes
8795 ;;
8796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8798 shlibpath_overrides_runpath=no
8799 hardcode_into_libs=yes
8800 ;;
8801 freebsd*) # from 4.6 on
8802 shlibpath_overrides_runpath=yes
8803 hardcode_into_libs=yes
8804 ;;
8805 esac
8806 ;;
8807
8808gnu*)
8809 version_type=linux
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 hardcode_into_libs=yes
8816 ;;
8817
8818hpux9* | hpux10* | hpux11*)
8819 # Give a soname corresponding to the major version so that dld.sl refuses to
8820 # link against other versions.
8821 version_type=sunos
8822 need_lib_prefix=no
8823 need_version=no
8824 case $host_cpu in
8825 ia64*)
8826 shrext_cmds='.so'
8827 hardcode_into_libs=yes
8828 dynamic_linker="$host_os dld.so"
8829 shlibpath_var=LD_LIBRARY_PATH
8830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 if test "X$HPUX_IA64_MODE" = X32; then
8834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8835 else
8836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8837 fi
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839 ;;
8840 hppa*64*)
8841 shrext_cmds='.sl'
8842 hardcode_into_libs=yes
8843 dynamic_linker="$host_os dld.sl"
8844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850 ;;
8851 *)
8852 shrext_cmds='.sl'
8853 dynamic_linker="$host_os dld.sl"
8854 shlibpath_var=SHLIB_PATH
8855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 ;;
8859 esac
8860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8861 postinstall_cmds='chmod 555 $lib'
8862 ;;
8863
8864interix3*)
8865 version_type=linux
8866 need_lib_prefix=no
8867 need_version=no
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8871 shlibpath_var=LD_LIBRARY_PATH
8872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8874 ;;
8875
8876irix5* | irix6* | nonstopux*)
8877 case $host_os in
8878 nonstopux*) version_type=nonstopux ;;
8879 *)
8880 if test "$lt_cv_prog_gnu_ld" = yes; then
8881 version_type=linux
8882 else
8883 version_type=irix
8884 fi ;;
8885 esac
8886 need_lib_prefix=no
8887 need_version=no
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8890 case $host_os in
8891 irix5* | nonstopux*)
8892 libsuff= shlibsuff=
8893 ;;
8894 *)
8895 case $LD in # libtool.m4 will add one of these switches to LD
8896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8897 libsuff= shlibsuff= libmagic=32-bit;;
8898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8899 libsuff=32 shlibsuff=N32 libmagic=N32;;
8900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8902 *) libsuff= shlibsuff= libmagic=never-match;;
8903 esac
8904 ;;
8905 esac
8906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8907 shlibpath_overrides_runpath=no
8908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8910 hardcode_into_libs=yes
8911 ;;
8912
8913# No shared lib support for Linux oldld, aout, or coff.
8914linux*oldld* | linux*aout* | linux*coff*)
8915 dynamic_linker=no
8916 ;;
8917
8918# This must be Linux ELF.
8919linux*)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 shlibpath_overrides_runpath=no
8928 # This implies no fast_install, which is unacceptable.
8929 # Some rework will be needed to allow for fast_install
8930 # before this can be enabled.
8931 hardcode_into_libs=yes
8932
8933 # Append ld.so.conf contents to the search path
8934 if test -f /etc/ld.so.conf; then
8935 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' ' '`
8936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8937 fi
8938
8939 # We used to test for /lib/ld.so.1 and disable shared libraries on
8940 # powerpc, because MkLinux only supported shared libraries with the
8941 # GNU dynamic linker. Since this was broken with cross compilers,
8942 # most powerpc-linux boxes support dynamic linking these days and
8943 # people can always --disable-shared, the test was removed, and we
8944 # assume the GNU/Linux dynamic linker is in use.
8945 dynamic_linker='GNU/Linux ld.so'
8946 ;;
8947
8948knetbsd*-gnu)
8949 version_type=linux
8950 need_lib_prefix=no
8951 need_version=no
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=no
8956 hardcode_into_libs=yes
8957 dynamic_linker='GNU ld.so'
8958 ;;
8959
8960netbsd*)
8961 version_type=sunos
8962 need_lib_prefix=no
8963 need_version=no
8964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8967 dynamic_linker='NetBSD (a.out) ld.so'
8968 else
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 dynamic_linker='NetBSD ld.elf_so'
8972 fi
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=yes
8975 hardcode_into_libs=yes
8976 ;;
8977
8978newsos6)
8979 version_type=linux
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984
8985nto-qnx*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8993 ;;
8994
8995openbsd*)
8996 version_type=sunos
8997 sys_lib_dlsearch_path_spec="/usr/lib"
8998 need_lib_prefix=no
8999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9000 case $host_os in
9001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9002 *) need_version=no ;;
9003 esac
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9008 case $host_os in
9009 openbsd2.[89] | openbsd2.[89].*)
9010 shlibpath_overrides_runpath=no
9011 ;;
9012 *)
9013 shlibpath_overrides_runpath=yes
9014 ;;
9015 esac
9016 else
9017 shlibpath_overrides_runpath=yes
9018 fi
9019 ;;
9020
9021os2*)
9022 libname_spec='$name'
9023 shrext_cmds=".dll"
9024 need_lib_prefix=no
9025 library_names_spec='$libname${shared_ext} $libname.a'
9026 dynamic_linker='OS/2 ld.exe'
9027 shlibpath_var=LIBPATH
9028 ;;
9029
9030osf3* | osf4* | osf5*)
9031 version_type=osf
9032 need_lib_prefix=no
9033 need_version=no
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9039 ;;
9040
9041solaris*)
9042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9050 # ldd complains unless libraries are executable
9051 postinstall_cmds='chmod +x $lib'
9052 ;;
9053
9054sunos4*)
9055 version_type=sunos
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9060 if test "$with_gnu_ld" = yes; then
9061 need_lib_prefix=no
9062 fi
9063 need_version=yes
9064 ;;
9065
9066sysv4 | sysv4.3*)
9067 version_type=linux
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 case $host_vendor in
9072 sni)
9073 shlibpath_overrides_runpath=no
9074 need_lib_prefix=no
9075 export_dynamic_flag_spec='${wl}-Blargedynsym'
9076 runpath_var=LD_RUN_PATH
9077 ;;
9078 siemens)
9079 need_lib_prefix=no
9080 ;;
9081 motorola)
9082 need_lib_prefix=no
9083 need_version=no
9084 shlibpath_overrides_runpath=no
9085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9086 ;;
9087 esac
9088 ;;
9089
9090sysv4*MP*)
9091 if test -d /usr/nec ;then
9092 version_type=linux
9093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9094 soname_spec='$libname${shared_ext}.$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 fi
9097 ;;
9098
9099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9100 version_type=freebsd-elf
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 hardcode_into_libs=yes
9107 if test "$with_gnu_ld" = yes; then
9108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9109 shlibpath_overrides_runpath=no
9110 else
9111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9112 shlibpath_overrides_runpath=yes
9113 case $host_os in
9114 sco3.2v5*)
9115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9116 ;;
9117 esac
9118 fi
9119 sys_lib_dlsearch_path_spec='/usr/lib'
9120 ;;
9121
9122uts4*)
9123 version_type=linux
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 ;;
9128
9129*)
9130 dynamic_linker=no
9131 ;;
9132esac
9133{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9134echo "${ECHO_T}$dynamic_linker" >&6; }
9135test "$dynamic_linker" = no && can_build_shared=no
9136
9137variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9138if test "$GCC" = yes; then
9139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9140fi
9141
9142
9143{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9144echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9145if test "${libltdl_cv_shlibext+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147else
9148
9149module=yes
9150eval libltdl_cv_shlibext=$shrext_cmds
9151
9152fi
9153{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9154echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9155if test -n "$libltdl_cv_shlibext"; then
9156
9157cat >>confdefs.h <<_ACEOF
9158#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9159_ACEOF
9160
9161fi
9162
9163
9164{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9165echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9166if test "${libltdl_cv_shlibpath_var+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168else
9169 libltdl_cv_shlibpath_var="$shlibpath_var"
9170fi
9171{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9172echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9173if test -n "$libltdl_cv_shlibpath_var"; then
9174
9175cat >>confdefs.h <<_ACEOF
9176#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9177_ACEOF
9178
9179fi
9180
9181
9182{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9183echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9184if test "${libltdl_cv_sys_search_path+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9188fi
9189{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9190echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9191if test -n "$libltdl_cv_sys_search_path"; then
9192 sys_search_path=
9193 for dir in $libltdl_cv_sys_search_path; do
9194 if test -z "$sys_search_path"; then
9195 sys_search_path="$dir"
9196 else
9197 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9198 fi
9199 done
9200
9201cat >>confdefs.h <<_ACEOF
9202#define LTDL_SYSSEARCHPATH "$sys_search_path"
9203_ACEOF
9204
9205fi
9206
9207{ echo "$as_me:$LINENO: checking for objdir" >&5
9208echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9209if test "${libltdl_cv_objdir+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212 libltdl_cv_objdir="$objdir"
9213 if test -n "$objdir"; then
9214 :
9215 else
9216 rm -f .libs 2>/dev/null
9217 mkdir .libs 2>/dev/null
9218 if test -d .libs; then
9219 libltdl_cv_objdir=.libs
9220 else
9221 # MS-DOS does not allow filenames that begin with a dot.
9222 libltdl_cv_objdir=_libs
9223 fi
9224 rmdir .libs 2>/dev/null
9225 fi
9226
9227fi
9228{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9229echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9230
9231cat >>confdefs.h <<_ACEOF
9232#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9233_ACEOF
9234
9235
9236
9237
9238
9239
9240# Check for command to grab the raw symbol name followed by C symbol from nm.
9241{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9242echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9243if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246
9247# These are sane defaults that work on at least a few old systems.
9248# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9249
9250# Character class describing NM global symbol codes.
9251symcode='[BCDEGRST]'
9252
9253# Regexp to match symbols that can be accessed directly from C.
9254sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9255
9256# Transform an extracted symbol line into a proper C declaration
9257lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9258
9259# Transform an extracted symbol line into symbol name and symbol address
9260lt_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'"
9261
9262# Define system-specific variables.
9263case $host_os in
9264aix*)
9265 symcode='[BCDT]'
9266 ;;
9267cygwin* | mingw* | pw32*)
9268 symcode='[ABCDGISTW]'
9269 ;;
9270hpux*) # Its linker distinguishes data from code symbols
9271 if test "$host_cpu" = ia64; then
9272 symcode='[ABCDEGRST]'
9273 fi
9274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9275 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'"
9276 ;;
9277linux*)
9278 if test "$host_cpu" = ia64; then
9279 symcode='[ABCDGIRSTW]'
9280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9281 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'"
9282 fi
9283 ;;
9284irix* | nonstopux*)
9285 symcode='[BCDEGRST]'
9286 ;;
9287osf*)
9288 symcode='[BCDEGQRST]'
9289 ;;
9290solaris*)
9291 symcode='[BDRT]'
9292 ;;
9293sco3.2v5*)
9294 symcode='[DT]'
9295 ;;
9296sysv4.2uw2*)
9297 symcode='[DT]'
9298 ;;
9299sysv5* | sco5v6* | unixware* | OpenUNIX*)
9300 symcode='[ABDT]'
9301 ;;
9302sysv4)
9303 symcode='[DFNSTU]'
9304 ;;
9305esac
9306
9307# Handle CRLF in mingw tool chain
9308opt_cr=
9309case $build_os in
9310mingw*)
9311 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9312 ;;
9313esac
9314
9315# If we're using GNU nm, then use its standard symbol codes.
9316case `$NM -V 2>&1` in
9317*GNU* | *'with BFD'*)
9318 symcode='[ABCDGIRSTW]' ;;
9319esac
9320
9321# Try without a prefix undercore, then with it.
9322for ac_symprfx in "" "_"; do
9323
9324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9325 symxfrm="\\1 $ac_symprfx\\2 \\2"
9326
9327 # Write the raw and C identifiers.
9328 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9329
9330 # Check to see that the pipe works correctly.
9331 pipe_works=no
9332
9333 rm -f conftest*
9334 cat > conftest.$ac_ext <<EOF
9335#ifdef __cplusplus
9336extern "C" {
9337#endif
9338char nm_test_var;
9339void nm_test_func(){}
9340#ifdef __cplusplus
9341}
9342#endif
9343int main(){nm_test_var='a';nm_test_func();return(0);}
9344EOF
9345
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; then
9351 # Now try to grab the symbols.
9352 nlist=conftest.nm
9353 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9354 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && test -s "$nlist"; then
9358 # Try sorting and uniquifying the output.
9359 if sort "$nlist" | uniq > "$nlist"T; then
9360 mv -f "$nlist"T "$nlist"
9361 else
9362 rm -f "$nlist"T
9363 fi
9364
9365 # Make sure that we snagged all the symbols we need.
9366 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9367 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9368 cat <<EOF > conftest.$ac_ext
9369#ifdef __cplusplus
9370extern "C" {
9371#endif
9372
9373EOF
9374 # Now generate the symbol file.
9375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9376
9377 cat <<EOF >> conftest.$ac_ext
9378#if defined (__STDC__) && __STDC__
9379# define lt_ptr_t void *
9380#else
9381# define lt_ptr_t char *
9382# define const
9383#endif
9384
9385/* The mapping between symbol names and symbols. */
9386const struct {
9387 const char *name;
9388 lt_ptr_t address;
9389}
9390lt_preloaded_symbols[] =
9391{
9392EOF
9393 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9394 cat <<\EOF >> conftest.$ac_ext
9395 {0, (lt_ptr_t) 0}
9396};
9397
9398#ifdef __cplusplus
9399}
9400#endif
9401EOF
9402 # Now try linking the two files.
9403 mv conftest.$ac_objext conftstm.$ac_objext
9404 lt_save_LIBS="$LIBS"
9405 lt_save_CFLAGS="$CFLAGS"
9406 LIBS="conftstm.$ac_objext"
9407 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9413 pipe_works=yes
9414 fi
9415 LIBS="$lt_save_LIBS"
9416 CFLAGS="$lt_save_CFLAGS"
9417 else
9418 echo "cannot find nm_test_func in $nlist" >&5
9419 fi
9420 else
9421 echo "cannot find nm_test_var in $nlist" >&5
9422 fi
9423 else
9424 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9425 fi
9426 else
9427 echo "$progname: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 fi
9430 rm -f conftest* conftst*
9431
9432 # Do not use the global_symbol_pipe unless it works.
9433 if test "$pipe_works" = yes; then
9434 break
9435 else
9436 lt_cv_sys_global_symbol_pipe=
9437 fi
9438done
9439
9440fi
9441
9442if test -z "$lt_cv_sys_global_symbol_pipe"; then
9443 lt_cv_sys_global_symbol_to_cdecl=
9444fi
9445if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9446 { echo "$as_me:$LINENO: result: failed" >&5
9447echo "${ECHO_T}failed" >&6; }
9448else
9449 { echo "$as_me:$LINENO: result: ok" >&5
9450echo "${ECHO_T}ok" >&6; }
9451fi
9452
9453
9454{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9455echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9456if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9460 libltdl_cv_preloaded_symbols=yes
9461 else
9462 libltdl_cv_preloaded_symbols=no
9463 fi
9464
9465fi
9466{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9467echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9468if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9469
9470cat >>confdefs.h <<\_ACEOF
9471#define HAVE_PRELOADED_SYMBOLS 1
9472_ACEOF
9473
9474fi
9475
9476LIBADD_DL=
9477
9478ac_ext=c
9479ac_cpp='$CPP $CPPFLAGS'
9480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484
9485{ echo "$as_me:$LINENO: checking for shl_load" >&5
9486echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9487if test "${ac_cv_func_shl_load+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489else
9490 cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498#define shl_load innocuous_shl_load
9499
9500/* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char shl_load (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9504
9505#ifdef __STDC__
9506# include <limits.h>
9507#else
9508# include <assert.h>
9509#endif
9510
9511#undef shl_load
9512
9513/* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516#ifdef __cplusplus
9517extern "C"
9518#endif
9519char shl_load ();
9520/* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523#if defined __stub_shl_load || defined __stub___shl_load
9524choke me
9525#endif
9526
9527int
9528main ()
9529{
9530return shl_load ();
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (ac_try="$ac_link"
9537case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540esac
9541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_try") 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9563esac
9564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_try") 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_func_shl_load=yes
9570else
9571 echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ac_cv_func_shl_load=no
9575fi
9576
9577rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579fi
9580{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9581echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9582if test $ac_cv_func_shl_load = yes; then
9583
9584cat >>confdefs.h <<\_ACEOF
9585#define HAVE_SHL_LOAD 1
9586_ACEOF
9587
9588else
9589 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9590echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9591if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594 ac_check_lib_save_LIBS=$LIBS
9595LIBS="-ldld $LIBS"
9596cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602
9603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609char shl_load ();
9610int
9611main ()
9612{
9613return shl_load ();
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618rm -f conftest.$ac_objext conftest$ac_exeext
9619if { (ac_try="$ac_link"
9620case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623esac
9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_lib_dld_shl_load=yes
9653else
9654 echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_cv_lib_dld_shl_load=no
9658fi
9659
9660rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662LIBS=$ac_check_lib_save_LIBS
9663fi
9664{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9665echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9666if test $ac_cv_lib_dld_shl_load = yes; then
9667
9668cat >>confdefs.h <<\_ACEOF
9669#define HAVE_SHL_LOAD 1
9670_ACEOF
9671
9672 LIBADD_DL="$LIBADD_DL -ldld"
9673else
9674 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9675echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9676if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679 ac_check_lib_save_LIBS=$LIBS
9680LIBS="-ldl $LIBS"
9681cat >conftest.$ac_ext <<_ACEOF
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
9687
9688/* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691#ifdef __cplusplus
9692extern "C"
9693#endif
9694char dlopen ();
9695int
9696main ()
9697{
9698return dlopen ();
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703rm -f conftest.$ac_objext conftest$ac_exeext
9704if { (ac_try="$ac_link"
9705case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708esac
9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_lib_dl_dlopen=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_cv_lib_dl_dlopen=no
9743fi
9744
9745rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747LIBS=$ac_check_lib_save_LIBS
9748fi
9749{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9751if test $ac_cv_lib_dl_dlopen = yes; then
9752
9753cat >>confdefs.h <<\_ACEOF
9754#define HAVE_LIBDL 1
9755_ACEOF
9756
9757 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9758else
9759 cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765#if HAVE_DLFCN_H
9766# include <dlfcn.h>
9767#endif
9768
9769int
9770main ()
9771{
9772dlopen(0, 0);
9773 ;
9774 return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
9778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811
9812cat >>confdefs.h <<\_ACEOF
9813#define HAVE_LIBDL 1
9814_ACEOF
9815 libltdl_cv_func_dlopen="yes"
9816else
9817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9821echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9822if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 ac_check_lib_save_LIBS=$LIBS
9826LIBS="-lsvld $LIBS"
9827cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833
9834/* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840char dlopen ();
9841int
9842main ()
9843{
9844return dlopen ();
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
9850if { (ac_try="$ac_link"
9851case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_lib_svld_dlopen=yes
9884else
9885 echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ac_cv_lib_svld_dlopen=no
9889fi
9890
9891rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893LIBS=$ac_check_lib_save_LIBS
9894fi
9895{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9896echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9897if test $ac_cv_lib_svld_dlopen = yes; then
9898
9899cat >>confdefs.h <<\_ACEOF
9900#define HAVE_LIBDL 1
9901_ACEOF
9902
9903 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9904else
9905 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9906echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9907if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 ac_check_lib_save_LIBS=$LIBS
9911LIBS="-ldld $LIBS"
9912cat >conftest.$ac_ext <<_ACEOF
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
9917/* end confdefs.h. */
9918
9919/* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922#ifdef __cplusplus
9923extern "C"
9924#endif
9925char dld_link ();
9926int
9927main ()
9928{
9929return dld_link ();
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (ac_try="$ac_link"
9936case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939esac
9940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } &&
9948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9949 { (case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_try") 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_cv_lib_dld_dld_link=yes
9969else
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_cv_lib_dld_dld_link=no
9974fi
9975
9976rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978LIBS=$ac_check_lib_save_LIBS
9979fi
9980{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9981echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9982if test $ac_cv_lib_dld_dld_link = yes; then
9983
9984cat >>confdefs.h <<\_ACEOF
9985#define HAVE_DLD 1
9986_ACEOF
9987
9988 LIBADD_DL="$LIBADD_DL -ldld"
9989else
9990 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9991echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9992if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995 cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003#define _dyld_func_lookup innocuous__dyld_func_lookup
10004
10005/* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char _dyld_func_lookup (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10009
10010#ifdef __STDC__
10011# include <limits.h>
10012#else
10013# include <assert.h>
10014#endif
10015
10016#undef _dyld_func_lookup
10017
10018/* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021#ifdef __cplusplus
10022extern "C"
10023#endif
10024char _dyld_func_lookup ();
10025/* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10029choke me
10030#endif
10031
10032int
10033main ()
10034{
10035return _dyld_func_lookup ();
10036 ;
10037 return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext conftest$ac_exeext
10041if { (ac_try="$ac_link"
10042case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_func__dyld_func_lookup=yes
10075else
10076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 ac_cv_func__dyld_func_lookup=no
10080fi
10081
10082rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084fi
10085{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10086echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10087if test $ac_cv_func__dyld_func_lookup = yes; then
10088
10089cat >>confdefs.h <<\_ACEOF
10090#define HAVE_DYLD 1
10091_ACEOF
10092
10093fi
10094
10095
10096fi
10097
10098
10099fi
10100
10101
10102fi
10103
10104rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106
10107fi
10108
10109
10110fi
10111
10112
10113fi
10114
10115
10116if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10117then
10118 lt_save_LIBS="$LIBS"
10119 LIBS="$LIBS $LIBADD_DL"
10120
10121for ac_func in dlerror
10122do
10123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129 cat >conftest.$ac_ext <<_ACEOF
10130/* confdefs.h. */
10131_ACEOF
10132cat confdefs.h >>conftest.$ac_ext
10133cat >>conftest.$ac_ext <<_ACEOF
10134/* end confdefs.h. */
10135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10137#define $ac_func innocuous_$ac_func
10138
10139/* System header to define __stub macros and hopefully few prototypes,
10140 which can conflict with char $ac_func (); below.
10141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142 <limits.h> exists even on freestanding compilers. */
10143
10144#ifdef __STDC__
10145# include <limits.h>
10146#else
10147# include <assert.h>
10148#endif
10149
10150#undef $ac_func
10151
10152/* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10155#ifdef __cplusplus
10156extern "C"
10157#endif
10158char $ac_func ();
10159/* The GNU C library defines this for functions which it implements
10160 to always fail with ENOSYS. Some functions are actually named
10161 something starting with __ and the normal name is an alias. */
10162#if defined __stub_$ac_func || defined __stub___$ac_func
10163choke me
10164#endif
10165
10166int
10167main ()
10168{
10169return $ac_func ();
10170 ;
10171 return 0;
10172}
10173_ACEOF
10174rm -f conftest.$ac_objext conftest$ac_exeext
10175if { (ac_try="$ac_link"
10176case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179esac
10180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10189 { (case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_try") 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202esac
10203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 eval "$as_ac_var=yes"
10209else
10210 echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 eval "$as_ac_var=no"
10214fi
10215
10216rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218fi
10219ac_res=`eval echo '${'$as_ac_var'}'`
10220 { echo "$as_me:$LINENO: result: $ac_res" >&5
10221echo "${ECHO_T}$ac_res" >&6; }
10222if test `eval echo '${'$as_ac_var'}'` = yes; then
10223 cat >>confdefs.h <<_ACEOF
10224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225_ACEOF
10226
10227fi
10228done
10229
10230 LIBS="$lt_save_LIBS"
10231fi
10232ac_ext=c
10233ac_cpp='$CPP $CPPFLAGS'
10234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238
10239
10240{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10241echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10242if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244else
10245 ac_cv_sys_symbol_underscore=no
10246 cat > conftest.$ac_ext <<EOF
10247void nm_test_func(){}
10248int main(){nm_test_func;return 0;}
10249EOF
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; then
10255 # Now try to grab the symbols.
10256 ac_nlist=conftest.nm
10257 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10258 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && test -s "$ac_nlist"; then
10262 # See whether the symbols have a leading underscore.
10263 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10264 ac_cv_sys_symbol_underscore=yes
10265 else
10266 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10267 :
10268 else
10269 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10270 fi
10271 fi
10272 else
10273 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10274 fi
10275 else
10276 echo "configure: failed program was:" >&5
10277 cat conftest.c >&5
10278 fi
10279 rm -rf conftest*
10280
10281fi
10282{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10283echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10284
10285
10286if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10287 if test x"$libltdl_cv_func_dlopen" = xyes ||
10288 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10289 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10290echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10291if test "${libltdl_cv_need_uscore+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 libltdl_cv_need_uscore=unknown
10295 save_LIBS="$LIBS"
10296 LIBS="$LIBS $LIBADD_DL"
10297 if test "$cross_compiling" = yes; then :
10298 libltdl_cv_need_uscore=cross
10299else
10300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301 lt_status=$lt_dlunknown
10302 cat > conftest.$ac_ext <<EOF
Eric Christopherc4b22712012-03-26 21:56:56 +000010303#line 10303 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010304#include "confdefs.h"
10305
10306#if HAVE_DLFCN_H
10307#include <dlfcn.h>
10308#endif
10309
10310#include <stdio.h>
10311
10312#ifdef RTLD_GLOBAL
10313# define LT_DLGLOBAL RTLD_GLOBAL
10314#else
10315# ifdef DL_GLOBAL
10316# define LT_DLGLOBAL DL_GLOBAL
10317# else
10318# define LT_DLGLOBAL 0
10319# endif
10320#endif
10321
10322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323 find out it does not work in some platform. */
10324#ifndef LT_DLLAZY_OR_NOW
10325# ifdef RTLD_LAZY
10326# define LT_DLLAZY_OR_NOW RTLD_LAZY
10327# else
10328# ifdef DL_LAZY
10329# define LT_DLLAZY_OR_NOW DL_LAZY
10330# else
10331# ifdef RTLD_NOW
10332# define LT_DLLAZY_OR_NOW RTLD_NOW
10333# else
10334# ifdef DL_NOW
10335# define LT_DLLAZY_OR_NOW DL_NOW
10336# else
10337# define LT_DLLAZY_OR_NOW 0
10338# endif
10339# endif
10340# endif
10341# endif
10342#endif
10343
10344#ifdef __cplusplus
10345extern "C" void exit (int);
10346#endif
10347
10348void fnord() { int i=42;}
10349int main ()
10350{
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10353
10354 if (self)
10355 {
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10359 }
10360 else
10361 puts (dlerror ());
10362
10363 exit (status);
10364}
10365EOF
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10372 lt_status=$?
10373 case x$lt_status in
10374 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10375 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10376 x$lt_dlunknown|x*) ;;
10377 esac
10378 else :
10379 # compilation failed
10380
10381 fi
10382fi
10383rm -fr conftest*
10384
10385 LIBS="$save_LIBS"
10386
10387fi
10388{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10389echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10390 fi
10391fi
10392
10393if test x"$libltdl_cv_need_uscore" = xyes; then
10394
10395cat >>confdefs.h <<\_ACEOF
10396#define NEED_USCORE 1
10397_ACEOF
10398
10399fi
10400
10401
10402{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10403echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10404if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 # PORTME does your system automatically load deplibs for dlopen?
10408 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10409 # For now, we just catch OSes we know something about -- in the
10410 # future, we'll try test this programmatically.
10411 libltdl_cv_sys_dlopen_deplibs=unknown
10412 case "$host_os" in
10413 aix3*|aix4.1.*|aix4.2.*)
10414 # Unknown whether this is true for these versions of AIX, but
10415 # we want this `case' here to explicitly catch those versions.
10416 libltdl_cv_sys_dlopen_deplibs=unknown
10417 ;;
10418 aix[45]*)
10419 libltdl_cv_sys_dlopen_deplibs=yes
10420 ;;
10421 darwin*)
10422 # Assuming the user has installed a libdl from somewhere, this is true
10423 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10424 libltdl_cv_sys_dlopen_deplibs=yes
10425 ;;
10426 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10427 # GNU and its variants, using gnu ld.so (Glibc)
10428 libltdl_cv_sys_dlopen_deplibs=yes
10429 ;;
10430 hpux10*|hpux11*)
10431 libltdl_cv_sys_dlopen_deplibs=yes
10432 ;;
10433 interix*)
10434 libltdl_cv_sys_dlopen_deplibs=yes
10435 ;;
10436 irix[12345]*|irix6.[01]*)
10437 # Catch all versions of IRIX before 6.2, and indicate that we don't
10438 # know how it worked for any of those versions.
10439 libltdl_cv_sys_dlopen_deplibs=unknown
10440 ;;
10441 irix*)
10442 # The case above catches anything before 6.2, and it's known that
10443 # at 6.2 and later dlopen does load deplibs.
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 netbsd*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
10449 openbsd*)
10450 libltdl_cv_sys_dlopen_deplibs=yes
10451 ;;
10452 osf[1234]*)
10453 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10454 # it did *not* use an RPATH in a shared library to find objects the
10455 # library depends on, so we explicitly say `no'.
10456 libltdl_cv_sys_dlopen_deplibs=no
10457 ;;
10458 osf5.0|osf5.0a|osf5.1)
10459 # dlopen *does* load deplibs and with the right loader patch applied
10460 # it even uses RPATH in a shared library to search for shared objects
10461 # that the library depends on, but there's no easy way to know if that
10462 # patch is installed. Since this is the case, all we can really
10463 # say is unknown -- it depends on the patch being installed. If
10464 # it is, this changes to `yes'. Without it, it would be `no'.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10466 ;;
10467 osf*)
10468 # the two cases above should catch all versions of osf <= 5.1. Read
10469 # the comments above for what we know about them.
10470 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10471 # is used to find them so we can finally say `yes'.
10472 libltdl_cv_sys_dlopen_deplibs=yes
10473 ;;
10474 solaris*)
10475 libltdl_cv_sys_dlopen_deplibs=yes
10476 ;;
10477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10478 libltdl_cv_sys_dlopen_deplibs=yes
10479 ;;
10480 esac
10481
10482fi
10483{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10484echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10485if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10486
10487cat >>confdefs.h <<\_ACEOF
10488#define LTDL_DLOPEN_DEPLIBS 1
10489_ACEOF
10490
10491fi
10492
10493
10494for ac_header in argz.h
10495do
10496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502fi
10503ac_res=`eval echo '${'$as_ac_Header'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505echo "${ECHO_T}$ac_res" >&6; }
10506else
10507 # Is the header compilable?
10508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10510cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h. */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h. */
10516$ac_includes_default
10517#include <$ac_header>
10518_ACEOF
10519rm -f conftest.$ac_objext
10520if { (ac_try="$ac_compile"
10521case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524esac
10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547esac
10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_header_compiler=yes
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_header_compiler=no
10559fi
10560
10561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10563echo "${ECHO_T}$ac_header_compiler" >&6; }
10564
10565# Is the header present?
10566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10568cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574#include <$ac_header>
10575_ACEOF
10576if { (ac_try="$ac_cpp conftest.$ac_ext"
10577case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580esac
10581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } >/dev/null; then
10589 if test -s conftest.err; then
10590 ac_cpp_err=$ac_c_preproc_warn_flag
10591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10592 else
10593 ac_cpp_err=
10594 fi
10595else
10596 ac_cpp_err=yes
10597fi
10598if test -z "$ac_cpp_err"; then
10599 ac_header_preproc=yes
10600else
10601 echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 ac_header_preproc=no
10605fi
10606
10607rm -f conftest.err conftest.$ac_ext
10608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10609echo "${ECHO_T}$ac_header_preproc" >&6; }
10610
10611# So? What about this header?
10612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10613 yes:no: )
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10618 ac_header_preproc=yes
10619 ;;
10620 no:yes:* )
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10633 ( cat <<\_ASBOX
10634## ------------------------------ ##
10635## Report this to bugs@yourdomain ##
10636## ------------------------------ ##
10637_ASBOX
10638 ) | sed "s/^/$as_me: WARNING: /" >&2
10639 ;;
10640esac
10641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645else
10646 eval "$as_ac_Header=\$ac_header_preproc"
10647fi
10648ac_res=`eval echo '${'$as_ac_Header'}'`
10649 { echo "$as_me:$LINENO: result: $ac_res" >&5
10650echo "${ECHO_T}$ac_res" >&6; }
10651
10652fi
10653if test `eval echo '${'$as_ac_Header'}'` = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656_ACEOF
10657
10658fi
10659
10660done
10661
10662
10663{ echo "$as_me:$LINENO: checking for error_t" >&5
10664echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10665if test "${ac_cv_type_error_t+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668 cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674#if HAVE_ARGZ_H
10675# include <argz.h>
10676#endif
10677
10678typedef error_t ac__type_new_;
10679int
10680main ()
10681{
10682if ((ac__type_new_ *) 0)
10683 return 0;
10684if (sizeof (ac__type_new_))
10685 return 0;
10686 ;
10687 return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext
10691if { (ac_try="$ac_compile"
10692case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_cv_type_error_t=yes
10725else
10726 echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ac_cv_type_error_t=no
10730fi
10731
10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733fi
10734{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10735echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10736if test $ac_cv_type_error_t = yes; then
10737
10738cat >>confdefs.h <<_ACEOF
10739#define HAVE_ERROR_T 1
10740_ACEOF
10741
10742
10743else
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define error_t int
10747_ACEOF
10748
10749fi
10750
10751
10752
10753
10754
10755
10756
10757for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10758do
10759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10773#define $ac_func innocuous_$ac_func
10774
10775/* System header to define __stub macros and hopefully few prototypes,
10776 which can conflict with char $ac_func (); below.
10777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10778 <limits.h> exists even on freestanding compilers. */
10779
10780#ifdef __STDC__
10781# include <limits.h>
10782#else
10783# include <assert.h>
10784#endif
10785
10786#undef $ac_func
10787
10788/* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10791#ifdef __cplusplus
10792extern "C"
10793#endif
10794char $ac_func ();
10795/* The GNU C library defines this for functions which it implements
10796 to always fail with ENOSYS. Some functions are actually named
10797 something starting with __ and the normal name is an alias. */
10798#if defined __stub_$ac_func || defined __stub___$ac_func
10799choke me
10800#endif
10801
10802int
10803main ()
10804{
10805return $ac_func ();
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext conftest$ac_exeext
10811if { (ac_try="$ac_link"
10812case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_link") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; } &&
10834 { ac_try='test -s conftest$ac_exeext'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838esac
10839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 eval "$as_ac_var=yes"
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 eval "$as_ac_var=no"
10850fi
10851
10852rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854fi
10855ac_res=`eval echo '${'$as_ac_var'}'`
10856 { echo "$as_me:$LINENO: result: $ac_res" >&5
10857echo "${ECHO_T}$ac_res" >&6; }
10858if test `eval echo '${'$as_ac_var'}'` = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10861_ACEOF
10862
10863fi
10864done
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10894 stdio.h unistd.h
10895do
10896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902fi
10903ac_res=`eval echo '${'$as_ac_Header'}'`
10904 { echo "$as_me:$LINENO: result: $ac_res" >&5
10905echo "${ECHO_T}$ac_res" >&6; }
10906else
10907 # Is the header compilable?
10908{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10910cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h. */
10916$ac_includes_default
10917#include <$ac_header>
10918_ACEOF
10919rm -f conftest.$ac_objext
10920if { (ac_try="$ac_compile"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_header_compiler=yes
10954else
10955 echo "$as_me: failed program was:" >&5
10956sed 's/^/| /' conftest.$ac_ext >&5
10957
10958 ac_header_compiler=no
10959fi
10960
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10963echo "${ECHO_T}$ac_header_compiler" >&6; }
10964
10965# Is the header present?
10966{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10968cat >conftest.$ac_ext <<_ACEOF
10969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974#include <$ac_header>
10975_ACEOF
10976if { (ac_try="$ac_cpp conftest.$ac_ext"
10977case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } >/dev/null; then
10989 if test -s conftest.err; then
10990 ac_cpp_err=$ac_c_preproc_warn_flag
10991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10992 else
10993 ac_cpp_err=
10994 fi
10995else
10996 ac_cpp_err=yes
10997fi
10998if test -z "$ac_cpp_err"; then
10999 ac_header_preproc=yes
11000else
11001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 ac_header_preproc=no
11005fi
11006
11007rm -f conftest.err conftest.$ac_ext
11008{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11009echo "${ECHO_T}$ac_header_preproc" >&6; }
11010
11011# So? What about this header?
11012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11013 yes:no: )
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11018 ac_header_preproc=yes
11019 ;;
11020 no:yes:* )
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11033 ( cat <<\_ASBOX
11034## ------------------------------ ##
11035## Report this to bugs@yourdomain ##
11036## ------------------------------ ##
11037_ASBOX
11038 ) | sed "s/^/$as_me: WARNING: /" >&2
11039 ;;
11040esac
11041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 eval "$as_ac_Header=\$ac_header_preproc"
11047fi
11048ac_res=`eval echo '${'$as_ac_Header'}'`
11049 { echo "$as_me:$LINENO: result: $ac_res" >&5
11050echo "${ECHO_T}$ac_res" >&6; }
11051
11052fi
11053if test `eval echo '${'$as_ac_Header'}'` = yes; then
11054 cat >>confdefs.h <<_ACEOF
11055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11056_ACEOF
11057
11058fi
11059
11060done
11061
11062
11063
11064
11065
11066for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11067do
11068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074fi
11075ac_res=`eval echo '${'$as_ac_Header'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077echo "${ECHO_T}$ac_res" >&6; }
11078else
11079 # Is the header compilable?
11080{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11082cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088$ac_includes_default
11089#include <$ac_header>
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (ac_try="$ac_compile"
11093case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096esac
11097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 ac_header_compiler=yes
11126else
11127 echo "$as_me: failed program was:" >&5
11128sed 's/^/| /' conftest.$ac_ext >&5
11129
11130 ac_header_compiler=no
11131fi
11132
11133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11135echo "${ECHO_T}$ac_header_compiler" >&6; }
11136
11137# Is the header present?
11138{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11140cat >conftest.$ac_ext <<_ACEOF
11141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
11146#include <$ac_header>
11147_ACEOF
11148if { (ac_try="$ac_cpp conftest.$ac_ext"
11149case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } >/dev/null; then
11161 if test -s conftest.err; then
11162 ac_cpp_err=$ac_c_preproc_warn_flag
11163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11164 else
11165 ac_cpp_err=
11166 fi
11167else
11168 ac_cpp_err=yes
11169fi
11170if test -z "$ac_cpp_err"; then
11171 ac_header_preproc=yes
11172else
11173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ac_header_preproc=no
11177fi
11178
11179rm -f conftest.err conftest.$ac_ext
11180{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11181echo "${ECHO_T}$ac_header_preproc" >&6; }
11182
11183# So? What about this header?
11184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11185 yes:no: )
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11190 ac_header_preproc=yes
11191 ;;
11192 no:yes:* )
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11205 ( cat <<\_ASBOX
11206## ------------------------------ ##
11207## Report this to bugs@yourdomain ##
11208## ------------------------------ ##
11209_ASBOX
11210 ) | sed "s/^/$as_me: WARNING: /" >&2
11211 ;;
11212esac
11213{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 eval "$as_ac_Header=\$ac_header_preproc"
11219fi
11220ac_res=`eval echo '${'$as_ac_Header'}'`
11221 { echo "$as_me:$LINENO: result: $ac_res" >&5
11222echo "${ECHO_T}$ac_res" >&6; }
11223
11224fi
11225if test `eval echo '${'$as_ac_Header'}'` = yes; then
11226 cat >>confdefs.h <<_ACEOF
11227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11228_ACEOF
11229
11230fi
11231
11232done
11233
11234
11235
11236for ac_header in string.h strings.h
11237do
11238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244fi
11245ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247echo "${ECHO_T}$ac_res" >&6; }
11248else
11249 # Is the header compilable?
11250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11252cat >conftest.$ac_ext <<_ACEOF
11253/* confdefs.h. */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h. */
11258$ac_includes_default
11259#include <$ac_header>
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (ac_try="$ac_compile"
11263case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_compile") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest.$ac_objext'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 ac_header_compiler=yes
11296else
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 ac_header_compiler=no
11301fi
11302
11303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11305echo "${ECHO_T}$ac_header_compiler" >&6; }
11306
11307# Is the header present?
11308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11310cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316#include <$ac_header>
11317_ACEOF
11318if { (ac_try="$ac_cpp conftest.$ac_ext"
11319case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev/null; then
11331 if test -s conftest.err; then
11332 ac_cpp_err=$ac_c_preproc_warn_flag
11333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 else
11335 ac_cpp_err=
11336 fi
11337else
11338 ac_cpp_err=yes
11339fi
11340if test -z "$ac_cpp_err"; then
11341 ac_header_preproc=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 ac_header_preproc=no
11347fi
11348
11349rm -f conftest.err conftest.$ac_ext
11350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11351echo "${ECHO_T}$ac_header_preproc" >&6; }
11352
11353# So? What about this header?
11354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11355 yes:no: )
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11360 ac_header_preproc=yes
11361 ;;
11362 no:yes:* )
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11375 ( cat <<\_ASBOX
11376## ------------------------------ ##
11377## Report this to bugs@yourdomain ##
11378## ------------------------------ ##
11379_ASBOX
11380 ) | sed "s/^/$as_me: WARNING: /" >&2
11381 ;;
11382esac
11383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 eval "$as_ac_Header=\$ac_header_preproc"
11389fi
11390ac_res=`eval echo '${'$as_ac_Header'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392echo "${ECHO_T}$ac_res" >&6; }
11393
11394fi
11395if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398_ACEOF
11399 break
11400fi
11401
11402done
11403
11404
11405
11406
11407for ac_func in strchr index
11408do
11409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423#define $ac_func innocuous_$ac_func
11424
11425/* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11429
11430#ifdef __STDC__
11431# include <limits.h>
11432#else
11433# include <assert.h>
11434#endif
11435
11436#undef $ac_func
11437
11438/* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441#ifdef __cplusplus
11442extern "C"
11443#endif
11444char $ac_func ();
11445/* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448#if defined __stub_$ac_func || defined __stub___$ac_func
11449choke me
11450#endif
11451
11452int
11453main ()
11454{
11455return $ac_func ();
11456 ;
11457 return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext conftest$ac_exeext
11461if { (ac_try="$ac_link"
11462case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest$ac_exeext'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 eval "$as_ac_var=yes"
11495else
11496 echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 eval "$as_ac_var=no"
11500fi
11501
11502rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
11504fi
11505ac_res=`eval echo '${'$as_ac_var'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507echo "${ECHO_T}$ac_res" >&6; }
11508if test `eval echo '${'$as_ac_var'}'` = yes; then
11509 cat >>confdefs.h <<_ACEOF
11510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11511_ACEOF
11512 break
11513fi
11514done
11515
11516
11517
11518for ac_func in strrchr rindex
11519do
11520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11521{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11523if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525else
11526 cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
11532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11534#define $ac_func innocuous_$ac_func
11535
11536/* System header to define __stub macros and hopefully few prototypes,
11537 which can conflict with char $ac_func (); below.
11538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11539 <limits.h> exists even on freestanding compilers. */
11540
11541#ifdef __STDC__
11542# include <limits.h>
11543#else
11544# include <assert.h>
11545#endif
11546
11547#undef $ac_func
11548
11549/* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552#ifdef __cplusplus
11553extern "C"
11554#endif
11555char $ac_func ();
11556/* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559#if defined __stub_$ac_func || defined __stub___$ac_func
11560choke me
11561#endif
11562
11563int
11564main ()
11565{
11566return $ac_func ();
11567 ;
11568 return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext conftest$ac_exeext
11572if { (ac_try="$ac_link"
11573case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576esac
11577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_link") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11586 { (case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_try") 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest$ac_exeext'
11596 { (case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_try") 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 eval "$as_ac_var=yes"
11606else
11607 echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 eval "$as_ac_var=no"
11611fi
11612
11613rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615fi
11616ac_res=`eval echo '${'$as_ac_var'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618echo "${ECHO_T}$ac_res" >&6; }
11619if test `eval echo '${'$as_ac_var'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11622_ACEOF
11623 break
11624fi
11625done
11626
11627
11628
11629for ac_func in memcpy bcopy
11630do
11631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 cat >conftest.$ac_ext <<_ACEOF
11638/* confdefs.h. */
11639_ACEOF
11640cat confdefs.h >>conftest.$ac_ext
11641cat >>conftest.$ac_ext <<_ACEOF
11642/* end confdefs.h. */
11643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11645#define $ac_func innocuous_$ac_func
11646
11647/* System header to define __stub macros and hopefully few prototypes,
11648 which can conflict with char $ac_func (); below.
11649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650 <limits.h> exists even on freestanding compilers. */
11651
11652#ifdef __STDC__
11653# include <limits.h>
11654#else
11655# include <assert.h>
11656#endif
11657
11658#undef $ac_func
11659
11660/* Override any GCC internal prototype to avoid an error.
11661 Use char because int might match the return type of a GCC
11662 builtin and then its argument prototype would still apply. */
11663#ifdef __cplusplus
11664extern "C"
11665#endif
11666char $ac_func ();
11667/* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670#if defined __stub_$ac_func || defined __stub___$ac_func
11671choke me
11672#endif
11673
11674int
11675main ()
11676{
11677return $ac_func ();
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext conftest$ac_exeext
11683if { (ac_try="$ac_link"
11684case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_link") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11697 { (case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_try") 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest$ac_exeext'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 eval "$as_ac_var=yes"
11717else
11718 echo "$as_me: failed program was:" >&5
11719sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 eval "$as_ac_var=no"
11722fi
11723
11724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726fi
11727ac_res=`eval echo '${'$as_ac_var'}'`
11728 { echo "$as_me:$LINENO: result: $ac_res" >&5
11729echo "${ECHO_T}$ac_res" >&6; }
11730if test `eval echo '${'$as_ac_var'}'` = yes; then
11731 cat >>confdefs.h <<_ACEOF
11732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11733_ACEOF
11734 break
11735fi
11736done
11737
11738
11739
11740for ac_func in memmove strcmp
11741do
11742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756#define $ac_func innocuous_$ac_func
11757
11758/* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11762
11763#ifdef __STDC__
11764# include <limits.h>
11765#else
11766# include <assert.h>
11767#endif
11768
11769#undef $ac_func
11770
11771/* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11774#ifdef __cplusplus
11775extern "C"
11776#endif
11777char $ac_func ();
11778/* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781#if defined __stub_$ac_func || defined __stub___$ac_func
11782choke me
11783#endif
11784
11785int
11786main ()
11787{
11788return $ac_func ();
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
11794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "$as_ac_var=yes"
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 eval "$as_ac_var=no"
11833fi
11834
11835rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837fi
11838ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840echo "${ECHO_T}$ac_res" >&6; }
11841if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844_ACEOF
11845
11846fi
11847done
11848
11849
11850
11851
11852for ac_func in closedir opendir readdir
11853do
11854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11868#define $ac_func innocuous_$ac_func
11869
11870/* System header to define __stub macros and hopefully few prototypes,
11871 which can conflict with char $ac_func (); below.
11872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11873 <limits.h> exists even on freestanding compilers. */
11874
11875#ifdef __STDC__
11876# include <limits.h>
11877#else
11878# include <assert.h>
11879#endif
11880
11881#undef $ac_func
11882
11883/* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886#ifdef __cplusplus
11887extern "C"
11888#endif
11889char $ac_func ();
11890/* The GNU C library defines this for functions which it implements
11891 to always fail with ENOSYS. Some functions are actually named
11892 something starting with __ and the normal name is an alias. */
11893#if defined __stub_$ac_func || defined __stub___$ac_func
11894choke me
11895#endif
11896
11897int
11898main ()
11899{
11900return $ac_func ();
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905rm -f conftest.$ac_objext conftest$ac_exeext
11906if { (ac_try="$ac_link"
11907case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_link") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933esac
11934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 eval "$as_ac_var=no"
11945fi
11946
11947rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949fi
11950ac_res=`eval echo '${'$as_ac_var'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952echo "${ECHO_T}$ac_res" >&6; }
11953if test `eval echo '${'$as_ac_var'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11956_ACEOF
11957
11958fi
11959done
11960
11961
11962
11963{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11964echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11965
11966ICC=no
11967IXX=no
11968case $CC in
11969 icc*|icpc*)
11970 ICC=yes
11971 IXX=yes
11972 ;;
11973 *)
11974 ;;
11975esac
11976
11977if test "$GCC" != "yes" && test "$ICC" != "yes"
11978then
11979 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11980echo "$as_me: error: gcc|icc required but not found" >&2;}
11981 { (exit 1); exit 1; }; }
11982fi
11983
11984if test "$GXX" != "yes" && test "$IXX" != "yes"
11985then
11986 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11987echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11988 { (exit 1); exit 1; }; }
11989fi
11990
11991if test "$GCC" = "yes"
11992then
11993 cat >conftest.$ac_ext <<_ACEOF
11994#if !defined(__GNUC__) || __GNUC__ < 3
11995#error Unsupported GCC version
11996#endif
11997
11998_ACEOF
11999rm -f conftest.$ac_objext
12000if { (ac_try="$ac_compile"
12001case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004esac
12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_compile") 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12014 { (case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_try") 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 :
12034else
12035 echo "$as_me: failed program was:" >&5
12036sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12039echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12040 { (exit 1); exit 1; }; }
12041fi
12042
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044fi
12045
12046if test -z "$llvm_cv_gnu_make_command"
12047then
12048 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12049echo "$as_me: error: GNU Make required but not found" >&2;}
12050 { (exit 1); exit 1; }; }
12051fi
12052
12053{ echo "$as_me:$LINENO: result: ok" >&5
12054echo "${ECHO_T}ok" >&6; }
12055
12056{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12057echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012058NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012059
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012060NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012061
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012062COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12063
12064{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12065echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012066
12067
12068
12069{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12070echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12071if test "${ac_cv_lib_m_sin+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_check_lib_save_LIBS=$LIBS
12075LIBS="-lm $LIBS"
12076cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083/* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086#ifdef __cplusplus
12087extern "C"
12088#endif
12089char sin ();
12090int
12091main ()
12092{
12093return sin ();
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (ac_try="$ac_link"
12100case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_lib_m_sin=yes
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 ac_cv_lib_m_sin=no
12138fi
12139
12140rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142LIBS=$ac_check_lib_save_LIBS
12143fi
12144{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12145echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12146if test $ac_cv_lib_m_sin = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148#define HAVE_LIBM 1
12149_ACEOF
12150
12151 LIBS="-lm $LIBS"
12152
12153fi
12154
12155if test "$llvm_cv_os_type" = "MingW" ; then
12156
12157{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12158echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12159if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 ac_check_lib_save_LIBS=$LIBS
12163LIBS="-limagehlp $LIBS"
12164cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170
12171
12172int
12173main ()
12174{
12175return main ();
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext conftest$ac_exeext
12181if { (ac_try="$ac_link"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_link") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_imagehlp_main=yes
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_cv_lib_imagehlp_main=no
12220fi
12221
12222rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224LIBS=$ac_check_lib_save_LIBS
12225fi
12226{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12227echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12228if test $ac_cv_lib_imagehlp_main = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230#define HAVE_LIBIMAGEHLP 1
12231_ACEOF
12232
12233 LIBS="-limagehlp $LIBS"
12234
12235fi
12236
12237
12238{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12239echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12240if test "${ac_cv_lib_psapi_main+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 ac_check_lib_save_LIBS=$LIBS
12244LIBS="-lpsapi $LIBS"
12245cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h. */
12251
12252
12253int
12254main ()
12255{
12256return main ();
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261rm -f conftest.$ac_objext conftest$ac_exeext
12262if { (ac_try="$ac_link"
12263case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266esac
12267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289esac
12290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_cv_lib_psapi_main=yes
12296else
12297 echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 ac_cv_lib_psapi_main=no
12301fi
12302
12303rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305LIBS=$ac_check_lib_save_LIBS
12306fi
12307{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12308echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12309if test $ac_cv_lib_psapi_main = yes; then
12310 cat >>confdefs.h <<_ACEOF
12311#define HAVE_LIBPSAPI 1
12312_ACEOF
12313
12314 LIBS="-lpsapi $LIBS"
12315
12316fi
12317
12318fi
12319
12320{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12321echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12322if test "${ac_cv_search_dlopen+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 ac_func_search_save_LIBS=$LIBS
12326cat >conftest.$ac_ext <<_ACEOF
12327/* confdefs.h. */
12328_ACEOF
12329cat confdefs.h >>conftest.$ac_ext
12330cat >>conftest.$ac_ext <<_ACEOF
12331/* end confdefs.h. */
12332
12333/* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336#ifdef __cplusplus
12337extern "C"
12338#endif
12339char dlopen ();
12340int
12341main ()
12342{
12343return dlopen ();
12344 ;
12345 return 0;
12346}
12347_ACEOF
12348for ac_lib in '' dl; do
12349 if test -z "$ac_lib"; then
12350 ac_res="none required"
12351 else
12352 ac_res=-l$ac_lib
12353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12354 fi
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356if { (ac_try="$ac_link"
12357case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_cv_search_dlopen=$ac_res
12390else
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394
12395fi
12396
12397rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext
12399 if test "${ac_cv_search_dlopen+set}" = set; then
12400 break
12401fi
12402done
12403if test "${ac_cv_search_dlopen+set}" = set; then
12404 :
12405else
12406 ac_cv_search_dlopen=no
12407fi
12408rm conftest.$ac_ext
12409LIBS=$ac_func_search_save_LIBS
12410fi
12411{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12412echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12413ac_res=$ac_cv_search_dlopen
12414if test "$ac_res" != no; then
12415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12416
12417cat >>confdefs.h <<\_ACEOF
12418#define HAVE_DLOPEN 1
12419_ACEOF
12420
12421else
12422 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12423echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12424fi
12425
12426
12427if test "$llvm_cv_enable_libffi" = "yes" ; then
12428 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12429echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12430if test "${ac_cv_search_ffi_call+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432else
12433 ac_func_search_save_LIBS=$LIBS
12434cat >conftest.$ac_ext <<_ACEOF
12435/* confdefs.h. */
12436_ACEOF
12437cat confdefs.h >>conftest.$ac_ext
12438cat >>conftest.$ac_ext <<_ACEOF
12439/* end confdefs.h. */
12440
12441/* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12444#ifdef __cplusplus
12445extern "C"
12446#endif
12447char ffi_call ();
12448int
12449main ()
12450{
12451return ffi_call ();
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456for ac_lib in '' ffi; do
12457 if test -z "$ac_lib"; then
12458 ac_res="none required"
12459 else
12460 ac_res=-l$ac_lib
12461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12462 fi
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464if { (ac_try="$ac_link"
12465case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468esac
12469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_link") 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478 { (case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481esac
12482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_try") 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491esac
12492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_cv_search_ffi_call=$ac_res
12498else
12499 echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
12502
12503fi
12504
12505rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext
12507 if test "${ac_cv_search_ffi_call+set}" = set; then
12508 break
12509fi
12510done
12511if test "${ac_cv_search_ffi_call+set}" = set; then
12512 :
12513else
12514 ac_cv_search_ffi_call=no
12515fi
12516rm conftest.$ac_ext
12517LIBS=$ac_func_search_save_LIBS
12518fi
12519{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12520echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12521ac_res=$ac_cv_search_ffi_call
12522if test "$ac_res" != no; then
12523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12524
12525cat >>confdefs.h <<\_ACEOF
12526#define HAVE_FFI_CALL 1
12527_ACEOF
12528
12529else
12530 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12531echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12532 { (exit 1); exit 1; }; }
12533fi
12534
12535fi
12536
12537{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12538echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12539if test "${ac_cv_search_mallinfo+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 ac_func_search_save_LIBS=$LIBS
12543cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549
12550/* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12553#ifdef __cplusplus
12554extern "C"
12555#endif
12556char mallinfo ();
12557int
12558main ()
12559{
12560return mallinfo ();
12561 ;
12562 return 0;
12563}
12564_ACEOF
12565for ac_lib in '' malloc; do
12566 if test -z "$ac_lib"; then
12567 ac_res="none required"
12568 else
12569 ac_res=-l$ac_lib
12570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12571 fi
12572 rm -f conftest.$ac_objext conftest$ac_exeext
12573if { (ac_try="$ac_link"
12574case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_link") 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12587 { (case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_try") 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest$ac_exeext'
12597 { (case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600esac
12601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_try") 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_search_mallinfo=$ac_res
12607else
12608 echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611
12612fi
12613
12614rm -f core conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext
12616 if test "${ac_cv_search_mallinfo+set}" = set; then
12617 break
12618fi
12619done
12620if test "${ac_cv_search_mallinfo+set}" = set; then
12621 :
12622else
12623 ac_cv_search_mallinfo=no
12624fi
12625rm conftest.$ac_ext
12626LIBS=$ac_func_search_save_LIBS
12627fi
12628{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12629echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12630ac_res=$ac_cv_search_mallinfo
12631if test "$ac_res" != no; then
12632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12633
12634cat >>confdefs.h <<\_ACEOF
12635#define HAVE_MALLINFO 1
12636_ACEOF
12637
12638fi
12639
12640
12641if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12642
12643{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12644echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12645if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 ac_check_lib_save_LIBS=$LIBS
12649LIBS="-lpthread $LIBS"
12650cat >conftest.$ac_ext <<_ACEOF
12651/* confdefs.h. */
12652_ACEOF
12653cat confdefs.h >>conftest.$ac_ext
12654cat >>conftest.$ac_ext <<_ACEOF
12655/* end confdefs.h. */
12656
12657/* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660#ifdef __cplusplus
12661extern "C"
12662#endif
12663char pthread_mutex_init ();
12664int
12665main ()
12666{
12667return pthread_mutex_init ();
12668 ;
12669 return 0;
12670}
12671_ACEOF
12672rm -f conftest.$ac_objext conftest$ac_exeext
12673if { (ac_try="$ac_link"
12674case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_link") 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; } &&
12696 { ac_try='test -s conftest$ac_exeext'
12697 { (case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_try") 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12706 ac_cv_lib_pthread_pthread_mutex_init=yes
12707else
12708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 ac_cv_lib_pthread_pthread_mutex_init=no
12712fi
12713
12714rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716LIBS=$ac_check_lib_save_LIBS
12717fi
12718{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12719echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12720if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12721 cat >>confdefs.h <<_ACEOF
12722#define HAVE_LIBPTHREAD 1
12723_ACEOF
12724
12725 LIBS="-lpthread $LIBS"
12726
12727fi
12728
12729 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12730echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12731if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12733else
12734 ac_func_search_save_LIBS=$LIBS
12735cat >conftest.$ac_ext <<_ACEOF
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
12741
12742/* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12745#ifdef __cplusplus
12746extern "C"
12747#endif
12748char pthread_mutex_lock ();
12749int
12750main ()
12751{
12752return pthread_mutex_lock ();
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757for ac_lib in '' pthread; do
12758 if test -z "$ac_lib"; then
12759 ac_res="none required"
12760 else
12761 ac_res=-l$ac_lib
12762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12763 fi
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765if { (ac_try="$ac_link"
12766case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_link") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12779 { (case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_try") 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; } &&
12788 { ac_try='test -s conftest$ac_exeext'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792esac
12793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_search_pthread_mutex_lock=$ac_res
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803
12804fi
12805
12806rm -f core conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext
12808 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12809 break
12810fi
12811done
12812if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12813 :
12814else
12815 ac_cv_search_pthread_mutex_lock=no
12816fi
12817rm conftest.$ac_ext
12818LIBS=$ac_func_search_save_LIBS
12819fi
12820{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12821echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12822ac_res=$ac_cv_search_pthread_mutex_lock
12823if test "$ac_res" != no; then
12824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12825
12826cat >>confdefs.h <<\_ACEOF
12827#define HAVE_PTHREAD_MUTEX_LOCK 1
12828_ACEOF
12829
12830fi
12831
12832 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12833echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12834if test "${ac_cv_search_pthread_rwlock_init+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_rwlock_init ();
12852int
12853main ()
12854{
12855return pthread_rwlock_init ();
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_rwlock_init=$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_rwlock_init+set}" = set; then
12912 break
12913fi
12914done
12915if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12916 :
12917else
12918 ac_cv_search_pthread_rwlock_init=no
12919fi
12920rm conftest.$ac_ext
12921LIBS=$ac_func_search_save_LIBS
12922fi
12923{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12924echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12925ac_res=$ac_cv_search_pthread_rwlock_init
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_RWLOCK_INIT 1
12931_ACEOF
12932
12933fi
12934
12935 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12936echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12937if test "${ac_cv_search_pthread_getspecific+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_getspecific ();
12955int
12956main ()
12957{
12958return pthread_getspecific ();
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_getspecific=$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_getspecific+set}" = set; then
13015 break
13016fi
13017done
13018if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13019 :
13020else
13021 ac_cv_search_pthread_getspecific=no
13022fi
13023rm conftest.$ac_ext
13024LIBS=$ac_func_search_save_LIBS
13025fi
13026{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13027echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13028ac_res=$ac_cv_search_pthread_getspecific
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_GETSPECIFIC 1
13034_ACEOF
13035
13036fi
13037
13038fi
13039
13040
13041# Check whether --with-udis86 was given.
13042if test "${with_udis86+set}" = set; then
13043 withval=$with_udis86;
13044 USE_UDIS86=1
13045
13046 case "$withval" in
13047 /usr/lib|yes) ;;
13048 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13049 esac
13050
13051{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13052echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13053if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
13056 ac_check_lib_save_LIBS=$LIBS
13057LIBS="-ludis86 $LIBS"
13058cat >conftest.$ac_ext <<_ACEOF
13059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064
13065/* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
13068#ifdef __cplusplus
13069extern "C"
13070#endif
13071char ud_init ();
13072int
13073main ()
13074{
13075return ud_init ();
13076 ;
13077 return 0;
13078}
13079_ACEOF
13080rm -f conftest.$ac_objext conftest$ac_exeext
13081if { (ac_try="$ac_link"
13082case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085esac
13086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_link") 2>conftest.er1
13088 ac_status=$?
13089 grep -v '^ *+' conftest.er1 >conftest.err
13090 rm -f conftest.er1
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13095 { (case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098esac
13099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_try") 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest$ac_exeext'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_cv_lib_udis86_ud_init=yes
13115else
13116 echo "$as_me: failed program was:" >&5
13117sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ac_cv_lib_udis86_ud_init=no
13120fi
13121
13122rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124LIBS=$ac_check_lib_save_LIBS
13125fi
13126{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13127echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13128if test $ac_cv_lib_udis86_ud_init = yes; then
13129 cat >>confdefs.h <<_ACEOF
13130#define HAVE_LIBUDIS86 1
13131_ACEOF
13132
13133 LIBS="-ludis86 $LIBS"
13134
13135else
13136
13137 echo "Error! You need to have libudis86 around."
13138 exit -1
13139
13140fi
13141
13142
13143else
13144 USE_UDIS86=0
13145
13146fi
13147
13148
13149cat >>confdefs.h <<_ACEOF
13150#define USE_UDIS86 $USE_UDIS86
13151_ACEOF
13152
13153
13154
13155# Check whether --with-oprofile was given.
13156if test "${with_oprofile+set}" = set; then
13157 withval=$with_oprofile;
13158 USE_OPROFILE=1
13159
13160 case "$withval" in
13161 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13162 no) llvm_cv_oppath=
13163 USE_OPROFILE=0
13164 ;;
13165 *) llvm_cv_oppath="${withval}/lib/oprofile"
13166 CPPFLAGS="-I${withval}/include";;
13167 esac
13168 if test -n "$llvm_cv_oppath" ; then
13169 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13170 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13171echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13172if test "${ac_cv_search_bfd_init+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174else
13175 ac_func_search_save_LIBS=$LIBS
13176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
13183/* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186#ifdef __cplusplus
13187extern "C"
13188#endif
13189char bfd_init ();
13190int
13191main ()
13192{
13193return bfd_init ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198for ac_lib in '' bfd; do
13199 if test -z "$ac_lib"; then
13200 ac_res="none required"
13201 else
13202 ac_res=-l$ac_lib
13203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13204 fi
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206if { (ac_try="$ac_link"
13207case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210esac
13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_link") 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233esac
13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_search_bfd_init=$ac_res
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244
13245fi
13246
13247rm -f core conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext
13249 if test "${ac_cv_search_bfd_init+set}" = set; then
13250 break
13251fi
13252done
13253if test "${ac_cv_search_bfd_init+set}" = set; then
13254 :
13255else
13256 ac_cv_search_bfd_init=no
13257fi
13258rm conftest.$ac_ext
13259LIBS=$ac_func_search_save_LIBS
13260fi
13261{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13262echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13263ac_res=$ac_cv_search_bfd_init
13264if test "$ac_res" != no; then
13265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13266
13267fi
13268
13269 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13270echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13271if test "${ac_cv_search_op_open_agent+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274 ac_func_search_save_LIBS=$LIBS
13275cat >conftest.$ac_ext <<_ACEOF
13276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
13280/* end confdefs.h. */
13281
13282/* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13285#ifdef __cplusplus
13286extern "C"
13287#endif
13288char op_open_agent ();
13289int
13290main ()
13291{
13292return op_open_agent ();
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297for ac_lib in '' opagent; do
13298 if test -z "$ac_lib"; then
13299 ac_res="none required"
13300 else
13301 ac_res=-l$ac_lib
13302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13303 fi
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_search_op_open_agent=$ac_res
13339else
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343
13344fi
13345
13346rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext
13348 if test "${ac_cv_search_op_open_agent+set}" = set; then
13349 break
13350fi
13351done
13352if test "${ac_cv_search_op_open_agent+set}" = set; then
13353 :
13354else
13355 ac_cv_search_op_open_agent=no
13356fi
13357rm conftest.$ac_ext
13358LIBS=$ac_func_search_save_LIBS
13359fi
13360{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13361echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13362ac_res=$ac_cv_search_op_open_agent
13363if test "$ac_res" != no; then
13364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365
13366else
13367
13368 echo "Error! You need to have libopagent around."
13369 exit -1
13370
13371fi
13372
13373 if test "${ac_cv_header_opagent_h+set}" = set; then
13374 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13375echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13376if test "${ac_cv_header_opagent_h+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378fi
13379{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13380echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13381else
13382 # Is the header compilable?
13383{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13384echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13385cat >conftest.$ac_ext <<_ACEOF
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
13391$ac_includes_default
13392#include <opagent.h>
13393_ACEOF
13394rm -f conftest.$ac_objext
13395if { (ac_try="$ac_compile"
13396case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13409 { (case "(($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_try") 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_header_compiler=yes
13429else
13430 echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_header_compiler=no
13434fi
13435
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13438echo "${ECHO_T}$ac_header_compiler" >&6; }
13439
13440# Is the header present?
13441{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13442echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13443cat >conftest.$ac_ext <<_ACEOF
13444/* confdefs.h. */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h. */
13449#include <opagent.h>
13450_ACEOF
13451if { (ac_try="$ac_cpp conftest.$ac_ext"
13452case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null; then
13464 if test -s conftest.err; then
13465 ac_cpp_err=$ac_c_preproc_warn_flag
13466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467 else
13468 ac_cpp_err=
13469 fi
13470else
13471 ac_cpp_err=yes
13472fi
13473if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_header_preproc=no
13480fi
13481
13482rm -f conftest.err conftest.$ac_ext
13483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13484echo "${ECHO_T}$ac_header_preproc" >&6; }
13485
13486# So? What about this header?
13487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13488 yes:no: )
13489 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13490echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13492echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13493 ac_header_preproc=yes
13494 ;;
13495 no:yes:* )
13496 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13497echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13499echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13501echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13503echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13505echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13507echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13508 ( cat <<\_ASBOX
13509## ------------------------------ ##
13510## Report this to bugs@yourdomain ##
13511## ------------------------------ ##
13512_ASBOX
13513 ) | sed "s/^/$as_me: WARNING: /" >&2
13514 ;;
13515esac
13516{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13517echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13518if test "${ac_cv_header_opagent_h+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520else
13521 ac_cv_header_opagent_h=$ac_header_preproc
13522fi
13523{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13524echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13525
13526fi
13527if test $ac_cv_header_opagent_h = yes; then
13528 :
13529else
13530
13531 echo "Error! You need to have opagent.h around."
13532 exit -1
13533
13534fi
13535
13536
13537 fi
13538
13539else
13540
13541 USE_OPROFILE=0
13542
13543
13544fi
13545
13546
13547cat >>confdefs.h <<_ACEOF
13548#define USE_OPROFILE $USE_OPROFILE
13549_ACEOF
13550
13551
13552
13553
13554
13555
13556
13557
13558ac_header_dirent=no
13559for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13560 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13561{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13562echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 cat >conftest.$ac_ext <<_ACEOF
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
13572#include <sys/types.h>
13573#include <$ac_hdr>
13574
13575int
13576main ()
13577{
13578if ((DIR *) 0)
13579return 0;
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584rm -f conftest.$ac_objext
13585if { (ac_try="$ac_compile"
13586case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_compile") 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13599 { (case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_try") 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 eval "$as_ac_Header=yes"
13619else
13620 echo "$as_me: failed program was:" >&5
13621sed 's/^/| /' conftest.$ac_ext >&5
13622
13623 eval "$as_ac_Header=no"
13624fi
13625
13626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627fi
13628ac_res=`eval echo '${'$as_ac_Header'}'`
13629 { echo "$as_me:$LINENO: result: $ac_res" >&5
13630echo "${ECHO_T}$ac_res" >&6; }
13631if test `eval echo '${'$as_ac_Header'}'` = yes; then
13632 cat >>confdefs.h <<_ACEOF
13633#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13634_ACEOF
13635
13636ac_header_dirent=$ac_hdr; break
13637fi
13638
13639done
13640# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13641if test $ac_header_dirent = dirent.h; then
13642 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13643echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13644if test "${ac_cv_search_opendir+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647 ac_func_search_save_LIBS=$LIBS
13648cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654
13655/* Override any GCC internal prototype to avoid an error.
13656 Use char because int might match the return type of a GCC
13657 builtin and then its argument prototype would still apply. */
13658#ifdef __cplusplus
13659extern "C"
13660#endif
13661char opendir ();
13662int
13663main ()
13664{
13665return opendir ();
13666 ;
13667 return 0;
13668}
13669_ACEOF
13670for ac_lib in '' dir; do
13671 if test -z "$ac_lib"; then
13672 ac_res="none required"
13673 else
13674 ac_res=-l$ac_lib
13675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13676 fi
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678if { (ac_try="$ac_link"
13679case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682esac
13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_link") 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13711 ac_cv_search_opendir=$ac_res
13712else
13713 echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716
13717fi
13718
13719rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext
13721 if test "${ac_cv_search_opendir+set}" = set; then
13722 break
13723fi
13724done
13725if test "${ac_cv_search_opendir+set}" = set; then
13726 :
13727else
13728 ac_cv_search_opendir=no
13729fi
13730rm conftest.$ac_ext
13731LIBS=$ac_func_search_save_LIBS
13732fi
13733{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13734echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13735ac_res=$ac_cv_search_opendir
13736if test "$ac_res" != no; then
13737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13738
13739fi
13740
13741else
13742 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13743echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13744if test "${ac_cv_search_opendir+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746else
13747 ac_func_search_save_LIBS=$LIBS
13748cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754
13755/* Override any GCC internal prototype to avoid an error.
13756 Use char because int might match the return type of a GCC
13757 builtin and then its argument prototype would still apply. */
13758#ifdef __cplusplus
13759extern "C"
13760#endif
13761char opendir ();
13762int
13763main ()
13764{
13765return opendir ();
13766 ;
13767 return 0;
13768}
13769_ACEOF
13770for ac_lib in '' x; do
13771 if test -z "$ac_lib"; then
13772 ac_res="none required"
13773 else
13774 ac_res=-l$ac_lib
13775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13776 fi
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778if { (ac_try="$ac_link"
13779case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; } &&
13801 { ac_try='test -s conftest$ac_exeext'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_search_opendir=$ac_res
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816
13817fi
13818
13819rm -f core conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext
13821 if test "${ac_cv_search_opendir+set}" = set; then
13822 break
13823fi
13824done
13825if test "${ac_cv_search_opendir+set}" = set; then
13826 :
13827else
13828 ac_cv_search_opendir=no
13829fi
13830rm conftest.$ac_ext
13831LIBS=$ac_func_search_save_LIBS
13832fi
13833{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13834echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13835ac_res=$ac_cv_search_opendir
13836if test "$ac_res" != no; then
13837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13838
13839fi
13840
13841fi
13842
13843{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13844echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13845if test "${ac_cv_header_mmap_anon+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847else
13848 ac_ext=c
13849ac_cpp='$CPP $CPPFLAGS'
13850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853
13854 cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860#include <sys/mman.h>
13861#include <unistd.h>
13862#include <fcntl.h>
13863int
13864main ()
13865{
13866mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13867 ;
13868 return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext
13872if { (ac_try="$ac_compile"
13873case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_compile") 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899esac
13900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_cv_header_mmap_anon=yes
13906else
13907 echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 ac_cv_header_mmap_anon=no
13911fi
13912
13913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 ac_ext=c
13915ac_cpp='$CPP $CPPFLAGS'
13916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920
13921fi
13922{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13923echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13924if test "$ac_cv_header_mmap_anon" = yes; then
13925
13926cat >>confdefs.h <<\_ACEOF
13927#define HAVE_MMAP_ANONYMOUS 1
13928_ACEOF
13929
13930fi
13931
13932{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13933echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13934if test "${ac_cv_header_stat_broken+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936else
13937 cat >conftest.$ac_ext <<_ACEOF
13938/* confdefs.h. */
13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h. */
13943#include <sys/types.h>
13944#include <sys/stat.h>
13945
13946#if defined S_ISBLK && defined S_IFDIR
13947# if S_ISBLK (S_IFDIR)
13948You lose.
13949# endif
13950#endif
13951
13952#if defined S_ISBLK && defined S_IFCHR
13953# if S_ISBLK (S_IFCHR)
13954You lose.
13955# endif
13956#endif
13957
13958#if defined S_ISLNK && defined S_IFREG
13959# if S_ISLNK (S_IFREG)
13960You lose.
13961# endif
13962#endif
13963
13964#if defined S_ISSOCK && defined S_IFREG
13965# if S_ISSOCK (S_IFREG)
13966You lose.
13967# endif
13968#endif
13969
13970_ACEOF
13971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13972 $EGREP "You lose" >/dev/null 2>&1; then
13973 ac_cv_header_stat_broken=yes
13974else
13975 ac_cv_header_stat_broken=no
13976fi
13977rm -f conftest*
13978
13979fi
13980{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13981echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13982if test $ac_cv_header_stat_broken = yes; then
13983
13984cat >>confdefs.h <<\_ACEOF
13985#define STAT_MACROS_BROKEN 1
13986_ACEOF
13987
13988fi
13989
13990{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13991echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13992if test "${ac_cv_header_sys_wait_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001#include <sys/types.h>
14002#include <sys/wait.h>
14003#ifndef WEXITSTATUS
14004# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14005#endif
14006#ifndef WIFEXITED
14007# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14008#endif
14009
14010int
14011main ()
14012{
14013 int s;
14014 wait (&s);
14015 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020rm -f conftest.$ac_objext
14021if { (ac_try="$ac_compile"
14022case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025esac
14026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_compile") 2>conftest.er1
14028 ac_status=$?
14029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14035 { (case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038esac
14039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_try") 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048esac
14049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_header_sys_wait_h=yes
14055else
14056 echo "$as_me: failed program was:" >&5
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ac_cv_header_sys_wait_h=no
14060fi
14061
14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063fi
14064{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14065echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14066if test $ac_cv_header_sys_wait_h = yes; then
14067
14068cat >>confdefs.h <<\_ACEOF
14069#define HAVE_SYS_WAIT_H 1
14070_ACEOF
14071
14072fi
14073
14074{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14075echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14076if test "${ac_cv_header_time+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078else
14079 cat >conftest.$ac_ext <<_ACEOF
14080/* confdefs.h. */
14081_ACEOF
14082cat confdefs.h >>conftest.$ac_ext
14083cat >>conftest.$ac_ext <<_ACEOF
14084/* end confdefs.h. */
14085#include <sys/types.h>
14086#include <sys/time.h>
14087#include <time.h>
14088
14089int
14090main ()
14091{
14092if ((struct tm *) 0)
14093return 0;
14094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (ac_try="$ac_compile"
14100case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103esac
14104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest.$ac_objext'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_header_time=yes
14133else
14134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_cv_header_time=no
14138fi
14139
14140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14141fi
14142{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14143echo "${ECHO_T}$ac_cv_header_time" >&6; }
14144if test $ac_cv_header_time = yes; then
14145
14146cat >>confdefs.h <<\_ACEOF
14147#define TIME_WITH_SYS_TIME 1
14148_ACEOF
14149
14150fi
14151
14152
14153
14154
14155
14156
14157
14158
14159for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14160do
14161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167fi
14168ac_res=`eval echo '${'$as_ac_Header'}'`
14169 { echo "$as_me:$LINENO: result: $ac_res" >&5
14170echo "${ECHO_T}$ac_res" >&6; }
14171else
14172 # Is the header compilable?
14173{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181$ac_includes_default
14182#include <$ac_header>
14183_ACEOF
14184rm -f conftest.$ac_objext
14185if { (ac_try="$ac_compile"
14186case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199 { (case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_try") 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 ac_header_compiler=yes
14219else
14220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_header_compiler=no
14224fi
14225
14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14228echo "${ECHO_T}$ac_header_compiler" >&6; }
14229
14230# Is the header present?
14231{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14233cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
14239#include <$ac_header>
14240_ACEOF
14241if { (ac_try="$ac_cpp conftest.$ac_ext"
14242case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245esac
14246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } >/dev/null; then
14254 if test -s conftest.err; then
14255 ac_cpp_err=$ac_c_preproc_warn_flag
14256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14257 else
14258 ac_cpp_err=
14259 fi
14260else
14261 ac_cpp_err=yes
14262fi
14263if test -z "$ac_cpp_err"; then
14264 ac_header_preproc=yes
14265else
14266 echo "$as_me: failed program was:" >&5
14267sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 ac_header_preproc=no
14270fi
14271
14272rm -f conftest.err conftest.$ac_ext
14273{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14274echo "${ECHO_T}$ac_header_preproc" >&6; }
14275
14276# So? What about this header?
14277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14278 yes:no: )
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14283 ac_header_preproc=yes
14284 ;;
14285 no:yes:* )
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14298 ( cat <<\_ASBOX
14299## ------------------------------ ##
14300## Report this to bugs@yourdomain ##
14301## ------------------------------ ##
14302_ASBOX
14303 ) | sed "s/^/$as_me: WARNING: /" >&2
14304 ;;
14305esac
14306{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310else
14311 eval "$as_ac_Header=\$ac_header_preproc"
14312fi
14313ac_res=`eval echo '${'$as_ac_Header'}'`
14314 { echo "$as_me:$LINENO: result: $ac_res" >&5
14315echo "${ECHO_T}$ac_res" >&6; }
14316
14317fi
14318if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319 cat >>confdefs.h <<_ACEOF
14320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14321_ACEOF
14322
14323fi
14324
14325done
14326
14327
14328
14329
14330
14331
14332
14333for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14334do
14335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341fi
14342ac_res=`eval echo '${'$as_ac_Header'}'`
14343 { echo "$as_me:$LINENO: result: $ac_res" >&5
14344echo "${ECHO_T}$ac_res" >&6; }
14345else
14346 # Is the header compilable?
14347{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14349cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355$ac_includes_default
14356#include <$ac_header>
14357_ACEOF
14358rm -f conftest.$ac_objext
14359if { (ac_try="$ac_compile"
14360case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363esac
14364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_header_compiler=yes
14393else
14394 echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_header_compiler=no
14398fi
14399
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402echo "${ECHO_T}$ac_header_compiler" >&6; }
14403
14404# Is the header present?
14405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14407cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413#include <$ac_header>
14414_ACEOF
14415if { (ac_try="$ac_cpp conftest.$ac_ext"
14416case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419esac
14420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev/null; then
14428 if test -s conftest.err; then
14429 ac_cpp_err=$ac_c_preproc_warn_flag
14430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14431 else
14432 ac_cpp_err=
14433 fi
14434else
14435 ac_cpp_err=yes
14436fi
14437if test -z "$ac_cpp_err"; then
14438 ac_header_preproc=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_header_preproc=no
14444fi
14445
14446rm -f conftest.err conftest.$ac_ext
14447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448echo "${ECHO_T}$ac_header_preproc" >&6; }
14449
14450# So? What about this header?
14451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 yes:no: )
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14458 ;;
14459 no:yes:* )
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14472 ( cat <<\_ASBOX
14473## ------------------------------ ##
14474## Report this to bugs@yourdomain ##
14475## ------------------------------ ##
14476_ASBOX
14477 ) | sed "s/^/$as_me: WARNING: /" >&2
14478 ;;
14479esac
14480{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 eval "$as_ac_Header=\$ac_header_preproc"
14486fi
14487ac_res=`eval echo '${'$as_ac_Header'}'`
14488 { echo "$as_me:$LINENO: result: $ac_res" >&5
14489echo "${ECHO_T}$ac_res" >&6; }
14490
14491fi
14492if test `eval echo '${'$as_ac_Header'}'` = yes; then
14493 cat >>confdefs.h <<_ACEOF
14494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495_ACEOF
14496
14497fi
14498
14499done
14500
14501
14502
14503for ac_header in utime.h windows.h
14504do
14505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511fi
14512ac_res=`eval echo '${'$as_ac_Header'}'`
14513 { echo "$as_me:$LINENO: result: $ac_res" >&5
14514echo "${ECHO_T}$ac_res" >&6; }
14515else
14516 # Is the header compilable?
14517{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14519cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525$ac_includes_default
14526#include <$ac_header>
14527_ACEOF
14528rm -f conftest.$ac_objext
14529if { (ac_try="$ac_compile"
14530case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14533esac
14534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_compile") 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_header_compiler=yes
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 ac_header_compiler=no
14568fi
14569
14570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14572echo "${ECHO_T}$ac_header_compiler" >&6; }
14573
14574# Is the header present?
14575{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14577cat >conftest.$ac_ext <<_ACEOF
14578/* confdefs.h. */
14579_ACEOF
14580cat confdefs.h >>conftest.$ac_ext
14581cat >>conftest.$ac_ext <<_ACEOF
14582/* end confdefs.h. */
14583#include <$ac_header>
14584_ACEOF
14585if { (ac_try="$ac_cpp conftest.$ac_ext"
14586case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } >/dev/null; then
14598 if test -s conftest.err; then
14599 ac_cpp_err=$ac_c_preproc_warn_flag
14600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14601 else
14602 ac_cpp_err=
14603 fi
14604else
14605 ac_cpp_err=yes
14606fi
14607if test -z "$ac_cpp_err"; then
14608 ac_header_preproc=yes
14609else
14610 echo "$as_me: failed program was:" >&5
14611sed 's/^/| /' conftest.$ac_ext >&5
14612
14613 ac_header_preproc=no
14614fi
14615
14616rm -f conftest.err conftest.$ac_ext
14617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14618echo "${ECHO_T}$ac_header_preproc" >&6; }
14619
14620# So? What about this header?
14621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14622 yes:no: )
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14627 ac_header_preproc=yes
14628 ;;
14629 no:yes:* )
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14642 ( cat <<\_ASBOX
14643## ------------------------------ ##
14644## Report this to bugs@yourdomain ##
14645## ------------------------------ ##
14646_ASBOX
14647 ) | sed "s/^/$as_me: WARNING: /" >&2
14648 ;;
14649esac
14650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
14655 eval "$as_ac_Header=\$ac_header_preproc"
14656fi
14657ac_res=`eval echo '${'$as_ac_Header'}'`
14658 { echo "$as_me:$LINENO: result: $ac_res" >&5
14659echo "${ECHO_T}$ac_res" >&6; }
14660
14661fi
14662if test `eval echo '${'$as_ac_Header'}'` = yes; then
14663 cat >>confdefs.h <<_ACEOF
14664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14665_ACEOF
14666
14667fi
14668
14669done
14670
14671
14672
14673
14674
14675
14676for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14677do
14678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684fi
14685ac_res=`eval echo '${'$as_ac_Header'}'`
14686 { echo "$as_me:$LINENO: result: $ac_res" >&5
14687echo "${ECHO_T}$ac_res" >&6; }
14688else
14689 # Is the header compilable?
14690{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14692cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698$ac_includes_default
14699#include <$ac_header>
14700_ACEOF
14701rm -f conftest.$ac_objext
14702if { (ac_try="$ac_compile"
14703case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_compile") 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14716 { (case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719esac
14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_try") 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_header_compiler=yes
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
14740 ac_header_compiler=no
14741fi
14742
14743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14745echo "${ECHO_T}$ac_header_compiler" >&6; }
14746
14747# Is the header present?
14748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14750cat >conftest.$ac_ext <<_ACEOF
14751/* confdefs.h. */
14752_ACEOF
14753cat confdefs.h >>conftest.$ac_ext
14754cat >>conftest.$ac_ext <<_ACEOF
14755/* end confdefs.h. */
14756#include <$ac_header>
14757_ACEOF
14758if { (ac_try="$ac_cpp conftest.$ac_ext"
14759case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762esac
14763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } >/dev/null; then
14771 if test -s conftest.err; then
14772 ac_cpp_err=$ac_c_preproc_warn_flag
14773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14774 else
14775 ac_cpp_err=
14776 fi
14777else
14778 ac_cpp_err=yes
14779fi
14780if test -z "$ac_cpp_err"; then
14781 ac_header_preproc=yes
14782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_header_preproc=no
14787fi
14788
14789rm -f conftest.err conftest.$ac_ext
14790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14791echo "${ECHO_T}$ac_header_preproc" >&6; }
14792
14793# So? What about this header?
14794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14795 yes:no: )
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14800 ac_header_preproc=yes
14801 ;;
14802 no:yes:* )
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14815 ( cat <<\_ASBOX
14816## ------------------------------ ##
14817## Report this to bugs@yourdomain ##
14818## ------------------------------ ##
14819_ASBOX
14820 ) | sed "s/^/$as_me: WARNING: /" >&2
14821 ;;
14822esac
14823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828 eval "$as_ac_Header=\$ac_header_preproc"
14829fi
14830ac_res=`eval echo '${'$as_ac_Header'}'`
14831 { echo "$as_me:$LINENO: result: $ac_res" >&5
14832echo "${ECHO_T}$ac_res" >&6; }
14833
14834fi
14835if test `eval echo '${'$as_ac_Header'}'` = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14838_ACEOF
14839
14840fi
14841
14842done
14843
14844
14845
14846
14847
14848for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14849do
14850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856fi
14857ac_res=`eval echo '${'$as_ac_Header'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859echo "${ECHO_T}$ac_res" >&6; }
14860else
14861 # Is the header compilable?
14862{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871#include <$ac_header>
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (ac_try="$ac_compile"
14875case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_compile") 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901esac
14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_header_compiler=yes
14908else
14909 echo "$as_me: failed program was:" >&5
14910sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 ac_header_compiler=no
14913fi
14914
14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14917echo "${ECHO_T}$ac_header_compiler" >&6; }
14918
14919# Is the header present?
14920{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14922cat >conftest.$ac_ext <<_ACEOF
14923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
14927/* end confdefs.h. */
14928#include <$ac_header>
14929_ACEOF
14930if { (ac_try="$ac_cpp conftest.$ac_ext"
14931case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14934esac
14935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } >/dev/null; then
14943 if test -s conftest.err; then
14944 ac_cpp_err=$ac_c_preproc_warn_flag
14945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14946 else
14947 ac_cpp_err=
14948 fi
14949else
14950 ac_cpp_err=yes
14951fi
14952if test -z "$ac_cpp_err"; then
14953 ac_header_preproc=yes
14954else
14955 echo "$as_me: failed program was:" >&5
14956sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_header_preproc=no
14959fi
14960
14961rm -f conftest.err conftest.$ac_ext
14962{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14963echo "${ECHO_T}$ac_header_preproc" >&6; }
14964
14965# So? What about this header?
14966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14967 yes:no: )
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14972 ac_header_preproc=yes
14973 ;;
14974 no:yes:* )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14982echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14987 ( cat <<\_ASBOX
14988## ------------------------------ ##
14989## Report this to bugs@yourdomain ##
14990## ------------------------------ ##
14991_ASBOX
14992 ) | sed "s/^/$as_me: WARNING: /" >&2
14993 ;;
14994esac
14995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000 eval "$as_ac_Header=\$ac_header_preproc"
15001fi
15002ac_res=`eval echo '${'$as_ac_Header'}'`
15003 { echo "$as_me:$LINENO: result: $ac_res" >&5
15004echo "${ECHO_T}$ac_res" >&6; }
15005
15006fi
15007if test `eval echo '${'$as_ac_Header'}'` = yes; then
15008 cat >>confdefs.h <<_ACEOF
15009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010_ACEOF
15011
15012fi
15013
15014done
15015
15016
15017for ac_header in valgrind/valgrind.h
15018do
15019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025fi
15026ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028echo "${ECHO_T}$ac_res" >&6; }
15029else
15030 # Is the header compilable?
15031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15033cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039$ac_includes_default
15040#include <$ac_header>
15041_ACEOF
15042rm -f conftest.$ac_objext
15043if { (ac_try="$ac_compile"
15044case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047esac
15048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_header_compiler=yes
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_header_compiler=no
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086echo "${ECHO_T}$ac_header_compiler" >&6; }
15087
15088# Is the header present?
15089{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15091cat >conftest.$ac_ext <<_ACEOF
15092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
15097#include <$ac_header>
15098_ACEOF
15099if { (ac_try="$ac_cpp conftest.$ac_ext"
15100case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103esac
15104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null; then
15112 if test -s conftest.err; then
15113 ac_cpp_err=$ac_c_preproc_warn_flag
15114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15115 else
15116 ac_cpp_err=
15117 fi
15118else
15119 ac_cpp_err=yes
15120fi
15121if test -z "$ac_cpp_err"; then
15122 ac_header_preproc=yes
15123else
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ac_header_preproc=no
15128fi
15129
15130rm -f conftest.err conftest.$ac_ext
15131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15132echo "${ECHO_T}$ac_header_preproc" >&6; }
15133
15134# So? What about this header?
15135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 yes:no: )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15141 ac_header_preproc=yes
15142 ;;
15143 no:yes:* )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15156 ( cat <<\_ASBOX
15157## ------------------------------ ##
15158## Report this to bugs@yourdomain ##
15159## ------------------------------ ##
15160_ASBOX
15161 ) | sed "s/^/$as_me: WARNING: /" >&2
15162 ;;
15163esac
15164{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168else
15169 eval "$as_ac_Header=\$ac_header_preproc"
15170fi
15171ac_res=`eval echo '${'$as_ac_Header'}'`
15172 { echo "$as_me:$LINENO: result: $ac_res" >&5
15173echo "${ECHO_T}$ac_res" >&6; }
15174
15175fi
15176if test `eval echo '${'$as_ac_Header'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15179_ACEOF
15180
15181fi
15182
15183done
15184
15185
15186for ac_header in fenv.h
15187do
15188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194fi
15195ac_res=`eval echo '${'$as_ac_Header'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197echo "${ECHO_T}$ac_res" >&6; }
15198else
15199 # Is the header compilable?
15200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209#include <$ac_header>
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (ac_try="$ac_compile"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler=yes
15246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_header_compiler=no
15251fi
15252
15253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15255echo "${ECHO_T}$ac_header_compiler" >&6; }
15256
15257# Is the header present?
15258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15260cat >conftest.$ac_ext <<_ACEOF
15261/* confdefs.h. */
15262_ACEOF
15263cat confdefs.h >>conftest.$ac_ext
15264cat >>conftest.$ac_ext <<_ACEOF
15265/* end confdefs.h. */
15266#include <$ac_header>
15267_ACEOF
15268if { (ac_try="$ac_cpp conftest.$ac_ext"
15269case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } >/dev/null; then
15281 if test -s conftest.err; then
15282 ac_cpp_err=$ac_c_preproc_warn_flag
15283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15284 else
15285 ac_cpp_err=
15286 fi
15287else
15288 ac_cpp_err=yes
15289fi
15290if test -z "$ac_cpp_err"; then
15291 ac_header_preproc=yes
15292else
15293 echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ac_header_preproc=no
15297fi
15298
15299rm -f conftest.err conftest.$ac_ext
15300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15301echo "${ECHO_T}$ac_header_preproc" >&6; }
15302
15303# So? What about this header?
15304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15305 yes:no: )
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15310 ac_header_preproc=yes
15311 ;;
15312 no:yes:* )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15325 ( cat <<\_ASBOX
15326## ------------------------------ ##
15327## Report this to bugs@yourdomain ##
15328## ------------------------------ ##
15329_ASBOX
15330 ) | sed "s/^/$as_me: WARNING: /" >&2
15331 ;;
15332esac
15333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338 eval "$as_ac_Header=\$ac_header_preproc"
15339fi
15340ac_res=`eval echo '${'$as_ac_Header'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342echo "${ECHO_T}$ac_res" >&6; }
15343
15344fi
15345if test `eval echo '${'$as_ac_Header'}'` = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348_ACEOF
15349
15350fi
15351
15352done
15353
15354if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15355
15356for ac_header in pthread.h
15357do
15358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364fi
15365ac_res=`eval echo '${'$as_ac_Header'}'`
15366 { echo "$as_me:$LINENO: result: $ac_res" >&5
15367echo "${ECHO_T}$ac_res" >&6; }
15368else
15369 # Is the header compilable?
15370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379#include <$ac_header>
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (ac_try="$ac_compile"
15383case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386esac
15387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_compile") 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15396 { (case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399esac
15400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_try") 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest.$ac_objext'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_header_compiler=yes
15416else
15417 echo "$as_me: failed program was:" >&5
15418sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_header_compiler=no
15421fi
15422
15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15425echo "${ECHO_T}$ac_header_compiler" >&6; }
15426
15427# Is the header present?
15428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15430cat >conftest.$ac_ext <<_ACEOF
15431/* confdefs.h. */
15432_ACEOF
15433cat confdefs.h >>conftest.$ac_ext
15434cat >>conftest.$ac_ext <<_ACEOF
15435/* end confdefs.h. */
15436#include <$ac_header>
15437_ACEOF
15438if { (ac_try="$ac_cpp conftest.$ac_ext"
15439case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } >/dev/null; then
15451 if test -s conftest.err; then
15452 ac_cpp_err=$ac_c_preproc_warn_flag
15453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15454 else
15455 ac_cpp_err=
15456 fi
15457else
15458 ac_cpp_err=yes
15459fi
15460if test -z "$ac_cpp_err"; then
15461 ac_header_preproc=yes
15462else
15463 echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 ac_header_preproc=no
15467fi
15468
15469rm -f conftest.err conftest.$ac_ext
15470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15471echo "${ECHO_T}$ac_header_preproc" >&6; }
15472
15473# So? What about this header?
15474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15475 yes:no: )
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15480 ac_header_preproc=yes
15481 ;;
15482 no:yes:* )
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15495 ( cat <<\_ASBOX
15496## ------------------------------ ##
15497## Report this to bugs@yourdomain ##
15498## ------------------------------ ##
15499_ASBOX
15500 ) | sed "s/^/$as_me: WARNING: /" >&2
15501 ;;
15502esac
15503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507else
15508 eval "$as_ac_Header=\$ac_header_preproc"
15509fi
15510ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result: $ac_res" >&5
15512echo "${ECHO_T}$ac_res" >&6; }
15513
15514fi
15515if test `eval echo '${'$as_ac_Header'}'` = yes; then
15516 cat >>confdefs.h <<_ACEOF
15517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15518_ACEOF
15519 HAVE_PTHREAD=1
15520
15521else
15522 HAVE_PTHREAD=0
15523
15524fi
15525
15526done
15527
15528else
15529 HAVE_PTHREAD=0
15530
15531fi
15532
15533if test "$llvm_cv_enable_libffi" = "yes" ; then
15534
15535
15536for ac_header in ffi.h ffi/ffi.h
15537do
15538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544fi
15545ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547echo "${ECHO_T}$ac_res" >&6; }
15548else
15549 # Is the header compilable?
15550{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558$ac_includes_default
15559#include <$ac_header>
15560_ACEOF
15561rm -f conftest.$ac_objext
15562if { (ac_try="$ac_compile"
15563case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15596else
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_header_compiler=no
15601fi
15602
15603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605echo "${ECHO_T}$ac_header_compiler" >&6; }
15606
15607# Is the header present?
15608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616#include <$ac_header>
15617_ACEOF
15618if { (ac_try="$ac_cpp conftest.$ac_ext"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637else
15638 ac_cpp_err=yes
15639fi
15640if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_preproc=no
15647fi
15648
15649rm -f conftest.err conftest.$ac_ext
15650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651echo "${ECHO_T}$ac_header_preproc" >&6; }
15652
15653# So? What about this header?
15654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655 yes:no: )
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15661 ;;
15662 no:yes:* )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 ( cat <<\_ASBOX
15676## ------------------------------ ##
15677## Report this to bugs@yourdomain ##
15678## ------------------------------ ##
15679_ASBOX
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15681 ;;
15682esac
15683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687else
15688 eval "$as_ac_Header=\$ac_header_preproc"
15689fi
15690ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692echo "${ECHO_T}$ac_res" >&6; }
15693
15694fi
15695if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15698_ACEOF
15699
15700fi
15701
15702done
15703
15704fi
15705
15706
15707for ac_header in CrashReporterClient.h
15708do
15709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715fi
15716ac_res=`eval echo '${'$as_ac_Header'}'`
15717 { echo "$as_me:$LINENO: result: $ac_res" >&5
15718echo "${ECHO_T}$ac_res" >&6; }
15719else
15720 # Is the header compilable?
15721{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15723cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730#include <$ac_header>
15731_ACEOF
15732rm -f conftest.$ac_objext
15733if { (ac_try="$ac_compile"
15734case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_compile") 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_header_compiler=yes
15767else
15768 echo "$as_me: failed program was:" >&5
15769sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_header_compiler=no
15772fi
15773
15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776echo "${ECHO_T}$ac_header_compiler" >&6; }
15777
15778# Is the header present?
15779{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787#include <$ac_header>
15788_ACEOF
15789if { (ac_try="$ac_cpp conftest.$ac_ext"
15790case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } >/dev/null; then
15802 if test -s conftest.err; then
15803 ac_cpp_err=$ac_c_preproc_warn_flag
15804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15805 else
15806 ac_cpp_err=
15807 fi
15808else
15809 ac_cpp_err=yes
15810fi
15811if test -z "$ac_cpp_err"; then
15812 ac_header_preproc=yes
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_header_preproc=no
15818fi
15819
15820rm -f conftest.err conftest.$ac_ext
15821{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822echo "${ECHO_T}$ac_header_preproc" >&6; }
15823
15824# So? What about this header?
15825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826 yes:no: )
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15831 ac_header_preproc=yes
15832 ;;
15833 no:yes:* )
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15846 ( cat <<\_ASBOX
15847## ------------------------------ ##
15848## Report this to bugs@yourdomain ##
15849## ------------------------------ ##
15850_ASBOX
15851 ) | sed "s/^/$as_me: WARNING: /" >&2
15852 ;;
15853esac
15854{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858else
15859 eval "$as_ac_Header=\$ac_header_preproc"
15860fi
15861ac_res=`eval echo '${'$as_ac_Header'}'`
15862 { echo "$as_me:$LINENO: result: $ac_res" >&5
15863echo "${ECHO_T}$ac_res" >&6; }
15864
15865fi
15866if test `eval echo '${'$as_ac_Header'}'` = yes; then
15867 cat >>confdefs.h <<_ACEOF
15868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15869_ACEOF
15870
15871fi
15872
15873done
15874
15875
15876{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15877echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15878cat >conftest.$ac_ext <<_ACEOF
15879/* confdefs.h. */
15880_ACEOF
15881cat confdefs.h >>conftest.$ac_ext
15882cat >>conftest.$ac_ext <<_ACEOF
15883/* end confdefs.h. */
15884extern const char *__crashreporter_info__;
15885 int main() {
15886 __crashreporter_info__ = "test";
15887 return 0;
15888 }
15889
15890_ACEOF
15891rm -f conftest.$ac_objext conftest$ac_exeext
15892if { (ac_try="$ac_link"
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_link") 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); } &&
15905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest$ac_exeext'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 { echo "$as_me:$LINENO: result: yes" >&5
15926echo "${ECHO_T}yes" >&6; }
15927
15928cat >>confdefs.h <<\_ACEOF
15929#define HAVE_CRASHREPORTER_INFO 1
15930_ACEOF
15931
15932else
15933 echo "$as_me: failed program was:" >&5
15934sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 { echo "$as_me:$LINENO: result: no" >&5
15937echo "${ECHO_T}no" >&6; }
15938
15939cat >>confdefs.h <<\_ACEOF
15940#define HAVE_CRASHREPORTER_INFO 0
15941_ACEOF
15942
15943fi
15944
15945rm -f core conftest.err conftest.$ac_objext \
15946 conftest$ac_exeext conftest.$ac_ext
15947
15948
15949
15950
15951 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15952echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15953if test "${ac_cv_huge_val_sanity+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955else
15956
15957 ac_ext=cpp
15958ac_cpp='$CXXCPP $CPPFLAGS'
15959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15962
15963 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopherb2bc6e42012-03-26 02:09:01 +000015964 CXXFLAGS+=" -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000015965 if test "$cross_compiling" = yes; then
15966 ac_cv_huge_val_sanity=yes
15967else
15968 cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974#include <math.h>
15975int
15976main ()
15977{
15978double x = HUGE_VAL; return x != x;
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest$ac_exeext
15984if { (ac_try="$ac_link"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997esac
15998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 ac_cv_huge_val_sanity=yes
16004else
16005 echo "$as_me: program exited with status $ac_status" >&5
16006echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009( exit $ac_status )
16010ac_cv_huge_val_sanity=no
16011fi
16012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16013fi
16014
16015
16016 CXXFLAGS=$ac_save_CXXFLAGS
16017 ac_ext=c
16018ac_cpp='$CPP $CPPFLAGS'
16019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16021ac_compiler_gnu=$ac_cv_c_compiler_gnu
16022
16023
16024fi
16025{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16026echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16027 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16028
16029
16030{ echo "$as_me:$LINENO: checking for pid_t" >&5
16031echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16032if test "${ac_cv_type_pid_t+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034else
16035 cat >conftest.$ac_ext <<_ACEOF
16036/* confdefs.h. */
16037_ACEOF
16038cat confdefs.h >>conftest.$ac_ext
16039cat >>conftest.$ac_ext <<_ACEOF
16040/* end confdefs.h. */
16041$ac_includes_default
16042typedef pid_t ac__type_new_;
16043int
16044main ()
16045{
16046if ((ac__type_new_ *) 0)
16047 return 0;
16048if (sizeof (ac__type_new_))
16049 return 0;
16050 ;
16051 return 0;
16052}
16053_ACEOF
16054rm -f conftest.$ac_objext
16055if { (ac_try="$ac_compile"
16056case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16059esac
16060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16069 { (case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072esac
16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_try") 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_type_pid_t=yes
16089else
16090 echo "$as_me: failed program was:" >&5
16091sed 's/^/| /' conftest.$ac_ext >&5
16092
16093 ac_cv_type_pid_t=no
16094fi
16095
16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097fi
16098{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16099echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16100if test $ac_cv_type_pid_t = yes; then
16101 :
16102else
16103
16104cat >>confdefs.h <<_ACEOF
16105#define pid_t int
16106_ACEOF
16107
16108fi
16109
16110{ echo "$as_me:$LINENO: checking for size_t" >&5
16111echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16112if test "${ac_cv_type_size_t+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114else
16115 cat >conftest.$ac_ext <<_ACEOF
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121$ac_includes_default
16122typedef size_t ac__type_new_;
16123int
16124main ()
16125{
16126if ((ac__type_new_ *) 0)
16127 return 0;
16128if (sizeof (ac__type_new_))
16129 return 0;
16130 ;
16131 return 0;
16132}
16133_ACEOF
16134rm -f conftest.$ac_objext
16135if { (ac_try="$ac_compile"
16136case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16139esac
16140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_compile") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (case "(($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_try") 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_type_size_t=yes
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 ac_cv_type_size_t=no
16174fi
16175
16176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177fi
16178{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16179echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16180if test $ac_cv_type_size_t = yes; then
16181 :
16182else
16183
16184cat >>confdefs.h <<_ACEOF
16185#define size_t unsigned int
16186_ACEOF
16187
16188fi
16189
16190
16191cat >>confdefs.h <<_ACEOF
16192#define RETSIGTYPE void
16193_ACEOF
16194
16195{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16196echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16197if test "${ac_cv_struct_tm+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206#include <sys/types.h>
16207#include <time.h>
16208
16209int
16210main ()
16211{
16212struct tm *tp; tp->tm_sec;
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (ac_try="$ac_compile"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_cv_struct_tm=time.h
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_cv_struct_tm=sys/time.h
16257fi
16258
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260fi
16261{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16262echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16263if test $ac_cv_struct_tm = sys/time.h; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define TM_IN_SYS_TIME 1
16267_ACEOF
16268
16269fi
16270
16271{ echo "$as_me:$LINENO: checking for int64_t" >&5
16272echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16273if test "${ac_cv_type_int64_t+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282$ac_includes_default
16283typedef int64_t ac__type_new_;
16284int
16285main ()
16286{
16287if ((ac__type_new_ *) 0)
16288 return 0;
16289if (sizeof (ac__type_new_))
16290 return 0;
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext
16296if { (ac_try="$ac_compile"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_type_int64_t=yes
16330else
16331 echo "$as_me: failed program was:" >&5
16332sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ac_cv_type_int64_t=no
16335fi
16336
16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338fi
16339{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16340echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16341if test $ac_cv_type_int64_t = yes; then
16342
16343cat >>confdefs.h <<_ACEOF
16344#define HAVE_INT64_T 1
16345_ACEOF
16346
16347
16348else
16349 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16350echo "$as_me: error: Type int64_t required but not found" >&2;}
16351 { (exit 1); exit 1; }; }
16352fi
16353
16354{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16355echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16356if test "${ac_cv_type_uint64_t+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16358else
16359 cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366typedef uint64_t ac__type_new_;
16367int
16368main ()
16369{
16370if ((ac__type_new_ *) 0)
16371 return 0;
16372if (sizeof (ac__type_new_))
16373 return 0;
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (ac_try="$ac_compile"
16380case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383esac
16384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_cv_type_uint64_t=yes
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_type_uint64_t=no
16418fi
16419
16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421fi
16422{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16423echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16424if test $ac_cv_type_uint64_t = yes; then
16425
16426cat >>confdefs.h <<_ACEOF
16427#define HAVE_UINT64_T 1
16428_ACEOF
16429
16430
16431else
16432 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16433echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16434if test "${ac_cv_type_u_int64_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443$ac_includes_default
16444typedef u_int64_t ac__type_new_;
16445int
16446main ()
16447{
16448if ((ac__type_new_ *) 0)
16449 return 0;
16450if (sizeof (ac__type_new_))
16451 return 0;
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456rm -f conftest.$ac_objext
16457if { (ac_try="$ac_compile"
16458case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_type_u_int64_t=yes
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 ac_cv_type_u_int64_t=no
16496fi
16497
16498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499fi
16500{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16501echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16502if test $ac_cv_type_u_int64_t = yes; then
16503
16504cat >>confdefs.h <<_ACEOF
16505#define HAVE_U_INT64_T 1
16506_ACEOF
16507
16508
16509else
16510 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16511echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16512 { (exit 1); exit 1; }; }
16513fi
16514
16515fi
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16527do
16528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533else
16534 cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16542#define $ac_func innocuous_$ac_func
16543
16544/* System header to define __stub macros and hopefully few prototypes,
16545 which can conflict with char $ac_func (); below.
16546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16547 <limits.h> exists even on freestanding compilers. */
16548
16549#ifdef __STDC__
16550# include <limits.h>
16551#else
16552# include <assert.h>
16553#endif
16554
16555#undef $ac_func
16556
16557/* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16560#ifdef __cplusplus
16561extern "C"
16562#endif
16563char $ac_func ();
16564/* The GNU C library defines this for functions which it implements
16565 to always fail with ENOSYS. Some functions are actually named
16566 something starting with __ and the normal name is an alias. */
16567#if defined __stub_$ac_func || defined __stub___$ac_func
16568choke me
16569#endif
16570
16571int
16572main ()
16573{
16574return $ac_func ();
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579rm -f conftest.$ac_objext conftest$ac_exeext
16580if { (ac_try="$ac_link"
16581case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_link") 2>conftest.er1
16587 ac_status=$?
16588 grep -v '^ *+' conftest.er1 >conftest.err
16589 rm -f conftest.er1
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
16593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16594 { (case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_try") 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607esac
16608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_try") 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$as_ac_var=yes"
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 eval "$as_ac_var=no"
16619fi
16620
16621rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623fi
16624ac_res=`eval echo '${'$as_ac_var'}'`
16625 { echo "$as_me:$LINENO: result: $ac_res" >&5
16626echo "${ECHO_T}$ac_res" >&6; }
16627if test `eval echo '${'$as_ac_var'}'` = yes; then
16628 cat >>confdefs.h <<_ACEOF
16629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16630_ACEOF
16631
16632fi
16633done
16634
16635
16636
16637
16638
16639for ac_func in powf fmodf strtof round
16640do
16641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 cat >conftest.$ac_ext <<_ACEOF
16648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
16653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655#define $ac_func innocuous_$ac_func
16656
16657/* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char $ac_func (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
16661
16662#ifdef __STDC__
16663# include <limits.h>
16664#else
16665# include <assert.h>
16666#endif
16667
16668#undef $ac_func
16669
16670/* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16673#ifdef __cplusplus
16674extern "C"
16675#endif
16676char $ac_func ();
16677/* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
16680#if defined __stub_$ac_func || defined __stub___$ac_func
16681choke me
16682#endif
16683
16684int
16685main ()
16686{
16687return $ac_func ();
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
16693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 eval "$as_ac_var=yes"
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 eval "$as_ac_var=no"
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736fi
16737ac_res=`eval echo '${'$as_ac_var'}'`
16738 { echo "$as_me:$LINENO: result: $ac_res" >&5
16739echo "${ECHO_T}$ac_res" >&6; }
16740if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743_ACEOF
16744
16745fi
16746done
16747
16748
16749
16750
16751
16752
16753for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16754do
16755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16769#define $ac_func innocuous_$ac_func
16770
16771/* System header to define __stub macros and hopefully few prototypes,
16772 which can conflict with char $ac_func (); below.
16773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16774 <limits.h> exists even on freestanding compilers. */
16775
16776#ifdef __STDC__
16777# include <limits.h>
16778#else
16779# include <assert.h>
16780#endif
16781
16782#undef $ac_func
16783
16784/* Override any GCC internal prototype to avoid an error.
16785 Use char because int might match the return type of a GCC
16786 builtin and then its argument prototype would still apply. */
16787#ifdef __cplusplus
16788extern "C"
16789#endif
16790char $ac_func ();
16791/* The GNU C library defines this for functions which it implements
16792 to always fail with ENOSYS. Some functions are actually named
16793 something starting with __ and the normal name is an alias. */
16794#if defined __stub_$ac_func || defined __stub___$ac_func
16795choke me
16796#endif
16797
16798int
16799main ()
16800{
16801return $ac_func ();
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext conftest$ac_exeext
16807if { (ac_try="$ac_link"
16808case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_link") 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest$ac_exeext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 eval "$as_ac_var=yes"
16841else
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 eval "$as_ac_var=no"
16846fi
16847
16848rm -f core conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850fi
16851ac_res=`eval echo '${'$as_ac_var'}'`
16852 { echo "$as_me:$LINENO: result: $ac_res" >&5
16853echo "${ECHO_T}$ac_res" >&6; }
16854if test `eval echo '${'$as_ac_var'}'` = yes; then
16855 cat >>confdefs.h <<_ACEOF
16856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16857_ACEOF
16858
16859fi
16860done
16861
16862
16863
16864
16865for ac_func in isatty mkdtemp mkstemp
16866do
16867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 cat >conftest.$ac_ext <<_ACEOF
16874/* confdefs.h. */
16875_ACEOF
16876cat confdefs.h >>conftest.$ac_ext
16877cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */
16879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16881#define $ac_func innocuous_$ac_func
16882
16883/* System header to define __stub macros and hopefully few prototypes,
16884 which can conflict with char $ac_func (); below.
16885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16886 <limits.h> exists even on freestanding compilers. */
16887
16888#ifdef __STDC__
16889# include <limits.h>
16890#else
16891# include <assert.h>
16892#endif
16893
16894#undef $ac_func
16895
16896/* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16899#ifdef __cplusplus
16900extern "C"
16901#endif
16902char $ac_func ();
16903/* The GNU C library defines this for functions which it implements
16904 to always fail with ENOSYS. Some functions are actually named
16905 something starting with __ and the normal name is an alias. */
16906#if defined __stub_$ac_func || defined __stub___$ac_func
16907choke me
16908#endif
16909
16910int
16911main ()
16912{
16913return $ac_func ();
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext conftest$ac_exeext
16919if { (ac_try="$ac_link"
16920case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_link") 2>conftest.er1
16926 ac_status=$?
16927 grep -v '^ *+' conftest.er1 >conftest.err
16928 rm -f conftest.er1
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
16932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 eval "$as_ac_var=yes"
16953else
16954 echo "$as_me: failed program was:" >&5
16955sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 eval "$as_ac_var=no"
16958fi
16959
16960rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962fi
16963ac_res=`eval echo '${'$as_ac_var'}'`
16964 { echo "$as_me:$LINENO: result: $ac_res" >&5
16965echo "${ECHO_T}$ac_res" >&6; }
16966if test `eval echo '${'$as_ac_var'}'` = yes; then
16967 cat >>confdefs.h <<_ACEOF
16968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16969_ACEOF
16970
16971fi
16972done
16973
16974
16975
16976
16977
16978
16979
16980for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16981do
16982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996#define $ac_func innocuous_$ac_func
16997
16998/* System header to define __stub macros and hopefully few prototypes,
16999 which can conflict with char $ac_func (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17002
17003#ifdef __STDC__
17004# include <limits.h>
17005#else
17006# include <assert.h>
17007#endif
17008
17009#undef $ac_func
17010
17011/* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
17014#ifdef __cplusplus
17015extern "C"
17016#endif
17017char $ac_func ();
17018/* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021#if defined __stub_$ac_func || defined __stub___$ac_func
17022choke me
17023#endif
17024
17025int
17026main ()
17027{
17028return $ac_func ();
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (ac_try="$ac_link"
17035case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 eval "$as_ac_var=yes"
17068else
17069 echo "$as_me: failed program was:" >&5
17070sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 eval "$as_ac_var=no"
17073fi
17074
17075rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077fi
17078ac_res=`eval echo '${'$as_ac_var'}'`
17079 { echo "$as_me:$LINENO: result: $ac_res" >&5
17080echo "${ECHO_T}$ac_res" >&6; }
17081if test `eval echo '${'$as_ac_var'}'` = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17084_ACEOF
17085
17086fi
17087done
17088
17089
17090
17091
17092for ac_func in strerror strerror_r setenv
17093do
17094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17095{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17099else
17100 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h. */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h. */
17106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17108#define $ac_func innocuous_$ac_func
17109
17110/* System header to define __stub macros and hopefully few prototypes,
17111 which can conflict with char $ac_func (); below.
17112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17113 <limits.h> exists even on freestanding compilers. */
17114
17115#ifdef __STDC__
17116# include <limits.h>
17117#else
17118# include <assert.h>
17119#endif
17120
17121#undef $ac_func
17122
17123/* Override any GCC internal prototype to avoid an error.
17124 Use char because int might match the return type of a GCC
17125 builtin and then its argument prototype would still apply. */
17126#ifdef __cplusplus
17127extern "C"
17128#endif
17129char $ac_func ();
17130/* The GNU C library defines this for functions which it implements
17131 to always fail with ENOSYS. Some functions are actually named
17132 something starting with __ and the normal name is an alias. */
17133#if defined __stub_$ac_func || defined __stub___$ac_func
17134choke me
17135#endif
17136
17137int
17138main ()
17139{
17140return $ac_func ();
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145rm -f conftest.$ac_objext conftest$ac_exeext
17146if { (ac_try="$ac_link"
17147case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150esac
17151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_link") 2>conftest.er1
17153 ac_status=$?
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173esac
17174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 eval "$as_ac_var=yes"
17180else
17181 echo "$as_me: failed program was:" >&5
17182sed 's/^/| /' conftest.$ac_ext >&5
17183
17184 eval "$as_ac_var=no"
17185fi
17186
17187rm -f core conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
17189fi
17190ac_res=`eval echo '${'$as_ac_var'}'`
17191 { echo "$as_me:$LINENO: result: $ac_res" >&5
17192echo "${ECHO_T}$ac_res" >&6; }
17193if test `eval echo '${'$as_ac_var'}'` = yes; then
17194 cat >>confdefs.h <<_ACEOF
17195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17196_ACEOF
17197
17198fi
17199done
17200
17201
17202
17203
17204
17205for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17206do
17207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
17213 cat >conftest.$ac_ext <<_ACEOF
17214/* confdefs.h. */
17215_ACEOF
17216cat confdefs.h >>conftest.$ac_ext
17217cat >>conftest.$ac_ext <<_ACEOF
17218/* end confdefs.h. */
17219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17221#define $ac_func innocuous_$ac_func
17222
17223/* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char $ac_func (); below.
17225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17226 <limits.h> exists even on freestanding compilers. */
17227
17228#ifdef __STDC__
17229# include <limits.h>
17230#else
17231# include <assert.h>
17232#endif
17233
17234#undef $ac_func
17235
17236/* Override any GCC internal prototype to avoid an error.
17237 Use char because int might match the return type of a GCC
17238 builtin and then its argument prototype would still apply. */
17239#ifdef __cplusplus
17240extern "C"
17241#endif
17242char $ac_func ();
17243/* The GNU C library defines this for functions which it implements
17244 to always fail with ENOSYS. Some functions are actually named
17245 something starting with __ and the normal name is an alias. */
17246#if defined __stub_$ac_func || defined __stub___$ac_func
17247choke me
17248#endif
17249
17250int
17251main ()
17252{
17253return $ac_func ();
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext conftest$ac_exeext
17259if { (ac_try="$ac_link"
17260case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_link") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 eval "$as_ac_var=yes"
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 eval "$as_ac_var=no"
17298fi
17299
17300rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302fi
17303ac_res=`eval echo '${'$as_ac_var'}'`
17304 { echo "$as_me:$LINENO: result: $ac_res" >&5
17305echo "${ECHO_T}$ac_res" >&6; }
17306if test `eval echo '${'$as_ac_var'}'` = yes; then
17307 cat >>confdefs.h <<_ACEOF
17308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309_ACEOF
17310
17311fi
17312done
17313
17314
17315
17316
17317
17318
17319for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17320do
17321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326else
17327 cat >conftest.$ac_ext <<_ACEOF
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17335#define $ac_func innocuous_$ac_func
17336
17337/* System header to define __stub macros and hopefully few prototypes,
17338 which can conflict with char $ac_func (); below.
17339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17340 <limits.h> exists even on freestanding compilers. */
17341
17342#ifdef __STDC__
17343# include <limits.h>
17344#else
17345# include <assert.h>
17346#endif
17347
17348#undef $ac_func
17349
17350/* Override any GCC internal prototype to avoid an error.
17351 Use char because int might match the return type of a GCC
17352 builtin and then its argument prototype would still apply. */
17353#ifdef __cplusplus
17354extern "C"
17355#endif
17356char $ac_func ();
17357/* The GNU C library defines this for functions which it implements
17358 to always fail with ENOSYS. Some functions are actually named
17359 something starting with __ and the normal name is an alias. */
17360#if defined __stub_$ac_func || defined __stub___$ac_func
17361choke me
17362#endif
17363
17364int
17365main ()
17366{
17367return $ac_func ();
17368 ;
17369 return 0;
17370}
17371_ACEOF
17372rm -f conftest.$ac_objext conftest$ac_exeext
17373if { (ac_try="$ac_link"
17374case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 eval "$as_ac_var=yes"
17407else
17408 echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
17411 eval "$as_ac_var=no"
17412fi
17413
17414rm -f core conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416fi
17417ac_res=`eval echo '${'$as_ac_var'}'`
17418 { echo "$as_me:$LINENO: result: $ac_res" >&5
17419echo "${ECHO_T}$ac_res" >&6; }
17420if test `eval echo '${'$as_ac_var'}'` = yes; then
17421 cat >>confdefs.h <<_ACEOF
17422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17423_ACEOF
17424
17425fi
17426done
17427
17428{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17429echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17430if test "${llvm_cv_c_printf_a+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 ac_ext=c
17434ac_cpp='$CPP $CPPFLAGS'
17435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17437ac_compiler_gnu=$ac_cv_c_compiler_gnu
17438
17439 if test "$cross_compiling" = yes; then
17440 llvmac_cv_c_printf_a=no
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443
17444 /* confdefs.h. */
17445_ACEOF
17446cat confdefs.h >>conftest.$ac_ext
17447cat >>conftest.$ac_ext <<_ACEOF
17448/* end confdefs.h. */
17449
17450#include <stdio.h>
17451#include <stdlib.h>
17452
17453int
17454main ()
17455{
17456
17457volatile double A, B;
17458char Buffer[100];
17459A = 1;
17460A /= 10.0;
17461sprintf(Buffer, "%a", A);
17462B = atof(Buffer);
17463if (A != B)
17464 return (1);
17465if (A != 0x1.999999999999ap-4)
17466 return (1);
17467return (0);
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest$ac_exeext
17473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486esac
17487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 llvm_cv_c_printf_a=yes
17493else
17494 echo "$as_me: program exited with status $ac_status" >&5
17495echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498( exit $ac_status )
17499llvmac_cv_c_printf_a=no
17500fi
17501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17502fi
17503
17504
17505 ac_ext=c
17506ac_cpp='$CPP $CPPFLAGS'
17507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
17511fi
17512{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17513echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17514 if test "$llvm_cv_c_printf_a" = "yes"; then
17515
17516cat >>confdefs.h <<\_ACEOF
17517#define HAVE_PRINTF_A 1
17518_ACEOF
17519
17520 fi
17521
17522
17523{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17524echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17525if test "${ac_cv_func_rand48+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528 ac_ext=cpp
17529ac_cpp='$CXXCPP $CPPFLAGS'
17530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17533
17534 cat >conftest.$ac_ext <<_ACEOF
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
17540#include <stdlib.h>
17541int
17542main ()
17543{
17544srand48(0);lrand48();drand48();
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext
17550if { (ac_try="$ac_compile"
17551case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_compile") 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17564 { (case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567esac
17568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_try") 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest.$ac_objext'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_func_rand48=yes
17584else
17585 echo "$as_me: failed program was:" >&5
17586sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ac_cv_func_rand48=no
17589fi
17590
17591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 ac_ext=c
17593ac_cpp='$CPP $CPPFLAGS'
17594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17596ac_compiler_gnu=$ac_cv_c_compiler_gnu
17597
17598fi
17599{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17600echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17601
17602if test "$ac_cv_func_rand48" = "yes" ; then
17603
17604cat >>confdefs.h <<\_ACEOF
17605#define HAVE_RAND48 1
17606_ACEOF
17607
17608fi
17609
17610
17611{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17612echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17613if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17615else
17616 cat >conftest.$ac_ext <<_ACEOF
17617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
17622$ac_includes_default
17623int
17624main ()
17625{
17626#ifndef strerror_s
17627 char *p = (char *) strerror_s;
17628 return !p;
17629#endif
17630
17631 ;
17632 return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext
17636if { (ac_try="$ac_compile"
17637case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_compile") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_have_decl_strerror_s=yes
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 ac_cv_have_decl_strerror_s=no
17675fi
17676
17677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678fi
17679{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17680echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17681if test $ac_cv_have_decl_strerror_s = yes; then
17682
17683cat >>confdefs.h <<_ACEOF
17684#define HAVE_DECL_STRERROR_S 1
17685_ACEOF
17686
17687
17688else
17689 cat >>confdefs.h <<_ACEOF
17690#define HAVE_DECL_STRERROR_S 0
17691_ACEOF
17692
17693
17694fi
17695
17696
17697
17698if test "$llvm_cv_os_type" = "MingW" ; then
17699 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17700echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17701if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704 ac_check_lib_save_LIBS=$LIBS
17705LIBS="-lgcc $LIBS"
17706cat >conftest.$ac_ext <<_ACEOF
17707/* confdefs.h. */
17708_ACEOF
17709cat confdefs.h >>conftest.$ac_ext
17710cat >>conftest.$ac_ext <<_ACEOF
17711/* end confdefs.h. */
17712
17713/* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17716#ifdef __cplusplus
17717extern "C"
17718#endif
17719char _alloca ();
17720int
17721main ()
17722{
17723return _alloca ();
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext conftest$ac_exeext
17729if { (ac_try="$ac_link"
17730case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733esac
17734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17762 ac_cv_lib_gcc__alloca=yes
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 ac_cv_lib_gcc__alloca=no
17768fi
17769
17770rm -f core conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772LIBS=$ac_check_lib_save_LIBS
17773fi
17774{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17775echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17776if test $ac_cv_lib_gcc__alloca = yes; then
17777
17778cat >>confdefs.h <<\_ACEOF
17779#define HAVE__ALLOCA 1
17780_ACEOF
17781
17782fi
17783
17784 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17785echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17786if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789 ac_check_lib_save_LIBS=$LIBS
17790LIBS="-lgcc $LIBS"
17791cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797
17798/* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char __alloca ();
17805int
17806main ()
17807{
17808return __alloca ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext conftest$ac_exeext
17814if { (ac_try="$ac_link"
17815case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831esac
17832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_lib_gcc___alloca=yes
17848else
17849 echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 ac_cv_lib_gcc___alloca=no
17853fi
17854
17855rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
17857LIBS=$ac_check_lib_save_LIBS
17858fi
17859{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17860echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17861if test $ac_cv_lib_gcc___alloca = yes; then
17862
17863cat >>confdefs.h <<\_ACEOF
17864#define HAVE___ALLOCA 1
17865_ACEOF
17866
17867fi
17868
17869 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17870echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17871if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873else
17874 ac_check_lib_save_LIBS=$LIBS
17875LIBS="-lgcc $LIBS"
17876cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
17881/* end confdefs.h. */
17882
17883/* Override any GCC internal prototype to avoid an error.
17884 Use char because int might match the return type of a GCC
17885 builtin and then its argument prototype would still apply. */
17886#ifdef __cplusplus
17887extern "C"
17888#endif
17889char __chkstk ();
17890int
17891main ()
17892{
17893return __chkstk ();
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext conftest$ac_exeext
17899if { (ac_try="$ac_link"
17900case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_link") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest$ac_exeext'
17923 { (case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17926esac
17927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_try") 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_lib_gcc___chkstk=yes
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_lib_gcc___chkstk=no
17938fi
17939
17940rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
17942LIBS=$ac_check_lib_save_LIBS
17943fi
17944{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17945echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17946if test $ac_cv_lib_gcc___chkstk = yes; then
17947
17948cat >>confdefs.h <<\_ACEOF
17949#define HAVE___CHKSTK 1
17950_ACEOF
17951
17952fi
17953
17954 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17955echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17956if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
17959 ac_check_lib_save_LIBS=$LIBS
17960LIBS="-lgcc $LIBS"
17961cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967
17968/* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971#ifdef __cplusplus
17972extern "C"
17973#endif
17974char ___chkstk ();
17975int
17976main ()
17977{
17978return ___chkstk ();
17979 ;
17980 return 0;
17981}
17982_ACEOF
17983rm -f conftest.$ac_objext conftest$ac_exeext
17984if { (ac_try="$ac_link"
17985case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988esac
17989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_gcc____chkstk=yes
18018else
18019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_gcc____chkstk=no
18023fi
18024
18025rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18027LIBS=$ac_check_lib_save_LIBS
18028fi
18029{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18030echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18031if test $ac_cv_lib_gcc____chkstk = yes; then
18032
18033cat >>confdefs.h <<\_ACEOF
18034#define HAVE____CHKSTK 1
18035_ACEOF
18036
18037fi
18038
18039
18040 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18041echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18042if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
18045 ac_check_lib_save_LIBS=$LIBS
18046LIBS="-lgcc $LIBS"
18047cat >conftest.$ac_ext <<_ACEOF
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
18053
18054/* Override any GCC internal prototype to avoid an error.
18055 Use char because int might match the return type of a GCC
18056 builtin and then its argument prototype would still apply. */
18057#ifdef __cplusplus
18058extern "C"
18059#endif
18060char __ashldi3 ();
18061int
18062main ()
18063{
18064return __ashldi3 ();
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext conftest$ac_exeext
18070if { (ac_try="$ac_link"
18071case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest$ac_exeext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_lib_gcc___ashldi3=yes
18104else
18105 echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 ac_cv_lib_gcc___ashldi3=no
18109fi
18110
18111rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113LIBS=$ac_check_lib_save_LIBS
18114fi
18115{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18116echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18117if test $ac_cv_lib_gcc___ashldi3 = yes; then
18118
18119cat >>confdefs.h <<\_ACEOF
18120#define HAVE___ASHLDI3 1
18121_ACEOF
18122
18123fi
18124
18125 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18126echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18127if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129else
18130 ac_check_lib_save_LIBS=$LIBS
18131LIBS="-lgcc $LIBS"
18132cat >conftest.$ac_ext <<_ACEOF
18133/* confdefs.h. */
18134_ACEOF
18135cat confdefs.h >>conftest.$ac_ext
18136cat >>conftest.$ac_ext <<_ACEOF
18137/* end confdefs.h. */
18138
18139/* Override any GCC internal prototype to avoid an error.
18140 Use char because int might match the return type of a GCC
18141 builtin and then its argument prototype would still apply. */
18142#ifdef __cplusplus
18143extern "C"
18144#endif
18145char __ashrdi3 ();
18146int
18147main ()
18148{
18149return __ashrdi3 ();
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext conftest$ac_exeext
18155if { (ac_try="$ac_link"
18156case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest$ac_exeext'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 ac_cv_lib_gcc___ashrdi3=yes
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193 ac_cv_lib_gcc___ashrdi3=no
18194fi
18195
18196rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198LIBS=$ac_check_lib_save_LIBS
18199fi
18200{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18201echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18202if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18203
18204cat >>confdefs.h <<\_ACEOF
18205#define HAVE___ASHRDI3 1
18206_ACEOF
18207
18208fi
18209
18210 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18211echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18212if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215 ac_check_lib_save_LIBS=$LIBS
18216LIBS="-lgcc $LIBS"
18217cat >conftest.$ac_ext <<_ACEOF
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
18223
18224/* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18227#ifdef __cplusplus
18228extern "C"
18229#endif
18230char __divdi3 ();
18231int
18232main ()
18233{
18234return __divdi3 ();
18235 ;
18236 return 0;
18237}
18238_ACEOF
18239rm -f conftest.$ac_objext conftest$ac_exeext
18240if { (ac_try="$ac_link"
18241case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18254 { (case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; } &&
18263 { ac_try='test -s conftest$ac_exeext'
18264 { (case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267esac
18268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_try") 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 ac_cv_lib_gcc___divdi3=yes
18274else
18275 echo "$as_me: failed program was:" >&5
18276sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 ac_cv_lib_gcc___divdi3=no
18279fi
18280
18281rm -f core conftest.err conftest.$ac_objext \
18282 conftest$ac_exeext conftest.$ac_ext
18283LIBS=$ac_check_lib_save_LIBS
18284fi
18285{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18286echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18287if test $ac_cv_lib_gcc___divdi3 = yes; then
18288
18289cat >>confdefs.h <<\_ACEOF
18290#define HAVE___DIVDI3 1
18291_ACEOF
18292
18293fi
18294
18295 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18296echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18297if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18299else
18300 ac_check_lib_save_LIBS=$LIBS
18301LIBS="-lgcc $LIBS"
18302cat >conftest.$ac_ext <<_ACEOF
18303/* confdefs.h. */
18304_ACEOF
18305cat confdefs.h >>conftest.$ac_ext
18306cat >>conftest.$ac_ext <<_ACEOF
18307/* end confdefs.h. */
18308
18309/* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315char __fixdfdi ();
18316int
18317main ()
18318{
18319return __fixdfdi ();
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext conftest$ac_exeext
18325if { (ac_try="$ac_link"
18326case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352esac
18353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 ac_cv_lib_gcc___fixdfdi=yes
18359else
18360 echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 ac_cv_lib_gcc___fixdfdi=no
18364fi
18365
18366rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368LIBS=$ac_check_lib_save_LIBS
18369fi
18370{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18371echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18372if test $ac_cv_lib_gcc___fixdfdi = yes; then
18373
18374cat >>confdefs.h <<\_ACEOF
18375#define HAVE___FIXDFDI 1
18376_ACEOF
18377
18378fi
18379
18380 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18381echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18382if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 ac_check_lib_save_LIBS=$LIBS
18386LIBS="-lgcc $LIBS"
18387cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393
18394/* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18397#ifdef __cplusplus
18398extern "C"
18399#endif
18400char __fixsfdi ();
18401int
18402main ()
18403{
18404return __fixsfdi ();
18405 ;
18406 return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext conftest$ac_exeext
18410if { (ac_try="$ac_link"
18411case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_link") 2>conftest.er1
18417 ac_status=$?
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427esac
18428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_lib_gcc___fixsfdi=yes
18444else
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 ac_cv_lib_gcc___fixsfdi=no
18449fi
18450
18451rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453LIBS=$ac_check_lib_save_LIBS
18454fi
18455{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18456echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18457if test $ac_cv_lib_gcc___fixsfdi = yes; then
18458
18459cat >>confdefs.h <<\_ACEOF
18460#define HAVE___FIXSFDI 1
18461_ACEOF
18462
18463fi
18464
18465 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18466echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18467if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469else
18470 ac_check_lib_save_LIBS=$LIBS
18471LIBS="-lgcc $LIBS"
18472cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h. */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h. */
18478
18479/* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482#ifdef __cplusplus
18483extern "C"
18484#endif
18485char __floatdidf ();
18486int
18487main ()
18488{
18489return __floatdidf ();
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext conftest$ac_exeext
18495if { (ac_try="$ac_link"
18496case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_lib_gcc___floatdidf=yes
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 ac_cv_lib_gcc___floatdidf=no
18534fi
18535
18536rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538LIBS=$ac_check_lib_save_LIBS
18539fi
18540{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18541echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18542if test $ac_cv_lib_gcc___floatdidf = yes; then
18543
18544cat >>confdefs.h <<\_ACEOF
18545#define HAVE___FLOATDIDF 1
18546_ACEOF
18547
18548fi
18549
18550 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18551echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18552if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 ac_check_lib_save_LIBS=$LIBS
18556LIBS="-lgcc $LIBS"
18557cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
18563
18564/* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567#ifdef __cplusplus
18568extern "C"
18569#endif
18570char __lshrdi3 ();
18571int
18572main ()
18573{
18574return __lshrdi3 ();
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext conftest$ac_exeext
18580if { (ac_try="$ac_link"
18581case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607esac
18608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_gcc___lshrdi3=yes
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_cv_lib_gcc___lshrdi3=no
18619fi
18620
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623LIBS=$ac_check_lib_save_LIBS
18624fi
18625{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18626echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18627if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18628
18629cat >>confdefs.h <<\_ACEOF
18630#define HAVE___LSHRDI3 1
18631_ACEOF
18632
18633fi
18634
18635 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18636echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18637if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 ac_check_lib_save_LIBS=$LIBS
18641LIBS="-lgcc $LIBS"
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648
18649/* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655char __moddi3 ();
18656int
18657main ()
18658{
18659return __moddi3 ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_gcc___moddi3=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_lib_gcc___moddi3=no
18704fi
18705
18706rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708LIBS=$ac_check_lib_save_LIBS
18709fi
18710{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18711echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18712if test $ac_cv_lib_gcc___moddi3 = yes; then
18713
18714cat >>confdefs.h <<\_ACEOF
18715#define HAVE___MODDI3 1
18716_ACEOF
18717
18718fi
18719
18720 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18721echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18722if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18724else
18725 ac_check_lib_save_LIBS=$LIBS
18726LIBS="-lgcc $LIBS"
18727cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
18733
18734/* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737#ifdef __cplusplus
18738extern "C"
18739#endif
18740char __udivdi3 ();
18741int
18742main ()
18743{
18744return __udivdi3 ();
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext conftest$ac_exeext
18750if { (ac_try="$ac_link"
18751case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_gcc___udivdi3=yes
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_lib_gcc___udivdi3=no
18789fi
18790
18791rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793LIBS=$ac_check_lib_save_LIBS
18794fi
18795{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18796echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18797if test $ac_cv_lib_gcc___udivdi3 = yes; then
18798
18799cat >>confdefs.h <<\_ACEOF
18800#define HAVE___UDIVDI3 1
18801_ACEOF
18802
18803fi
18804
18805 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18806echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18807if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
18810 ac_check_lib_save_LIBS=$LIBS
18811LIBS="-lgcc $LIBS"
18812cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h. */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h. */
18818
18819/* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822#ifdef __cplusplus
18823extern "C"
18824#endif
18825char __umoddi3 ();
18826int
18827main ()
18828{
18829return __umoddi3 ();
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext conftest$ac_exeext
18835if { (ac_try="$ac_link"
18836case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_gcc___umoddi3=yes
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_cv_lib_gcc___umoddi3=no
18874fi
18875
18876rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878LIBS=$ac_check_lib_save_LIBS
18879fi
18880{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18881echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18882if test $ac_cv_lib_gcc___umoddi3 = yes; then
18883
18884cat >>confdefs.h <<\_ACEOF
18885#define HAVE___UMODDI3 1
18886_ACEOF
18887
18888fi
18889
18890
18891 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18892echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18893if test "${ac_cv_lib_gcc___main+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896 ac_check_lib_save_LIBS=$LIBS
18897LIBS="-lgcc $LIBS"
18898cat >conftest.$ac_ext <<_ACEOF
18899/* confdefs.h. */
18900_ACEOF
18901cat confdefs.h >>conftest.$ac_ext
18902cat >>conftest.$ac_ext <<_ACEOF
18903/* end confdefs.h. */
18904
18905/* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18908#ifdef __cplusplus
18909extern "C"
18910#endif
18911char __main ();
18912int
18913main ()
18914{
18915return __main ();
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920rm -f conftest.$ac_objext conftest$ac_exeext
18921if { (ac_try="$ac_link"
18922case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18935 { (case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_try") 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; } &&
18944 { ac_try='test -s conftest$ac_exeext'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948esac
18949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_cv_lib_gcc___main=yes
18955else
18956 echo "$as_me: failed program was:" >&5
18957sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 ac_cv_lib_gcc___main=no
18960fi
18961
18962rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext conftest.$ac_ext
18964LIBS=$ac_check_lib_save_LIBS
18965fi
18966{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18967echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18968if test $ac_cv_lib_gcc___main = yes; then
18969
18970cat >>confdefs.h <<\_ACEOF
18971#define HAVE___MAIN 1
18972_ACEOF
18973
18974fi
18975
18976 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18977echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18978if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 ac_check_lib_save_LIBS=$LIBS
18982LIBS="-lgcc $LIBS"
18983cat >conftest.$ac_ext <<_ACEOF
18984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
18989
18990/* Override any GCC internal prototype to avoid an error.
18991 Use char because int might match the return type of a GCC
18992 builtin and then its argument prototype would still apply. */
18993#ifdef __cplusplus
18994extern "C"
18995#endif
18996char __cmpdi2 ();
18997int
18998main ()
18999{
19000return __cmpdi2 ();
19001 ;
19002 return 0;
19003}
19004_ACEOF
19005rm -f conftest.$ac_objext conftest$ac_exeext
19006if { (ac_try="$ac_link"
19007case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010esac
19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest$ac_exeext'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_lib_gcc___cmpdi2=yes
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 ac_cv_lib_gcc___cmpdi2=no
19045fi
19046
19047rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049LIBS=$ac_check_lib_save_LIBS
19050fi
19051{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19052echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19053if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19054
19055cat >>confdefs.h <<\_ACEOF
19056#define HAVE___CMPDI2 1
19057_ACEOF
19058
19059fi
19060
19061fi
19062
19063if test "$llvm_cv_os_type" = "MingW" ; then
19064 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19065echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19066 cat >conftest.$ac_ext <<_ACEOF
19067#include <windows.h>
19068#include <imagehlp.h>
19069extern void foo(PENUMLOADED_MODULES_CALLBACK);
19070extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19071_ACEOF
19072rm -f conftest.$ac_objext
19073if { (ac_try="$ac_compile"
19074case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_compile") 2>conftest.er1
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19087 { (case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_try") 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; } &&
19096 { ac_try='test -s conftest.$ac_objext'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106
19107 { echo "$as_me:$LINENO: result: yes" >&5
19108echo "${ECHO_T}yes" >&6; }
19109 llvm_cv_win32_elmcb_pcstr="PCSTR"
19110
19111else
19112 echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115
19116 { echo "$as_me:$LINENO: result: no" >&5
19117echo "${ECHO_T}no" >&6; }
19118 llvm_cv_win32_elmcb_pcstr="PSTR"
19119
19120fi
19121
19122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123
19124cat >>confdefs.h <<_ACEOF
19125#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19126_ACEOF
19127
19128fi
19129
19130
19131{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19132echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19133if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19135else
19136 ac_ext=cpp
19137ac_cpp='$CXXCPP $CPPFLAGS'
19138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19141
19142 cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
19148#include <math.h>
19149int
19150main ()
19151{
19152float f; isnan(f);
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (ac_try="$ac_compile"
19159case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162esac
19163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_compile") 2>conftest.er1
19165 ac_status=$?
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -f conftest.er1
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19172 { (case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_try") 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest.$ac_objext'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_func_isnan_in_math_h=yes
19192else
19193 echo "$as_me: failed program was:" >&5
19194sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 ac_cv_func_isnan_in_math_h=no
19197fi
19198
19199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 ac_ext=c
19201ac_cpp='$CPP $CPPFLAGS'
19202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19204ac_compiler_gnu=$ac_cv_c_compiler_gnu
19205
19206fi
19207{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19208echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19209
19210
19211if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19212
19213cat >>confdefs.h <<\_ACEOF
19214#define HAVE_ISNAN_IN_MATH_H 1
19215_ACEOF
19216
19217fi
19218
19219{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19220echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19221if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19223else
19224 ac_ext=cpp
19225ac_cpp='$CXXCPP $CPPFLAGS'
19226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19229
19230 cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h. */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h. */
19236#include <cmath>
19237int
19238main ()
19239{
19240float f; isnan(f);
19241 ;
19242 return 0;
19243}
19244_ACEOF
19245rm -f conftest.$ac_objext
19246if { (ac_try="$ac_compile"
19247case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250esac
19251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_compile") 2>conftest.er1
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try='test -s conftest.$ac_objext'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_cv_func_isnan_in_cmath=yes
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_cv_func_isnan_in_cmath=no
19285fi
19286
19287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 ac_ext=c
19289ac_cpp='$CPP $CPPFLAGS'
19290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292ac_compiler_gnu=$ac_cv_c_compiler_gnu
19293
19294fi
19295{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19296echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19297
19298if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19299
19300cat >>confdefs.h <<\_ACEOF
19301#define HAVE_ISNAN_IN_CMATH 1
19302_ACEOF
19303
19304fi
19305
19306{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19307echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19308if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19310else
19311 ac_ext=cpp
19312ac_cpp='$CXXCPP $CPPFLAGS'
19313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19316
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323#include <cmath>
19324int
19325main ()
19326{
19327float f; std::isnan(f);
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext
19333if { (ac_try="$ac_compile"
19334case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest.$ac_objext'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_func_std_isnan_in_cmath=yes
19367else
19368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_cv_func_std_isnan_in_cmath=no
19372fi
19373
19374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 ac_ext=c
19376ac_cpp='$CPP $CPPFLAGS'
19377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
19381fi
19382{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19383echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19384
19385if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19386
19387cat >>confdefs.h <<\_ACEOF
19388#define HAVE_STD_ISNAN_IN_CMATH 1
19389_ACEOF
19390
19391fi
19392
19393
19394{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19395echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19396if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399 ac_ext=cpp
19400ac_cpp='$CXXCPP $CPPFLAGS'
19401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19404
19405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411#include <math.h>
19412int
19413main ()
19414{
19415float f; isinf(f);
19416 ;
19417 return 0;
19418}
19419_ACEOF
19420rm -f conftest.$ac_objext
19421if { (ac_try="$ac_compile"
19422case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19435 { (case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_func_isinf_in_math_h=yes
19455else
19456 echo "$as_me: failed program was:" >&5
19457sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_cv_func_isinf_in_math_h=no
19460fi
19461
19462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 ac_ext=c
19464ac_cpp='$CPP $CPPFLAGS'
19465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468
19469fi
19470{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19471echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19472
19473if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19474
19475cat >>confdefs.h <<\_ACEOF
19476#define HAVE_ISINF_IN_MATH_H 1
19477_ACEOF
19478
19479fi
19480
19481{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19482echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19483if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485else
19486 ac_ext=cpp
19487ac_cpp='$CXXCPP $CPPFLAGS'
19488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19491
19492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
19498#include <cmath>
19499int
19500main ()
19501{
19502float f; isinf(f);
19503 ;
19504 return 0;
19505}
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (ac_try="$ac_compile"
19509case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_compile") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535esac
19536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 ac_cv_func_isinf_in_cmath=yes
19542else
19543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546 ac_cv_func_isinf_in_cmath=no
19547fi
19548
19549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 ac_ext=c
19551ac_cpp='$CPP $CPPFLAGS'
19552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555
19556fi
19557{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19558echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19559
19560if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19561
19562cat >>confdefs.h <<\_ACEOF
19563#define HAVE_ISINF_IN_CMATH 1
19564_ACEOF
19565
19566fi
19567
19568{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19569echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19570if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 ac_ext=cpp
19574ac_cpp='$CXXCPP $CPPFLAGS'
19575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19578
19579 cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585#include <cmath>
19586int
19587main ()
19588{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019589float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (ac_try="$ac_compile"
19596case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599esac
19600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_compile") 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612esac
19613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try='test -s conftest.$ac_objext'
19619 { (case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19622esac
19623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_try") 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_func_std_isinf_in_cmath=yes
19629else
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_cv_func_std_isinf_in_cmath=no
19634fi
19635
19636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 ac_ext=c
19638ac_cpp='$CPP $CPPFLAGS'
19639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641ac_compiler_gnu=$ac_cv_c_compiler_gnu
19642
19643fi
19644{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19645echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19646
19647if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19648
19649cat >>confdefs.h <<\_ACEOF
19650#define HAVE_STD_ISINF_IN_CMATH 1
19651_ACEOF
19652
19653fi
19654
19655{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19656echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19657if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659else
19660 ac_ext=cpp
19661ac_cpp='$CXXCPP $CPPFLAGS'
19662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19665
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672#include <ieeefp.h>
19673int
19674main ()
19675{
19676float f; finite(f);
19677 ;
19678 return 0;
19679}
19680_ACEOF
19681rm -f conftest.$ac_objext
19682if { (ac_try="$ac_compile"
19683case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709esac
19710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_cv_func_finite_in_ieeefp_h=yes
19716else
19717 echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720 ac_cv_func_finite_in_ieeefp_h=no
19721fi
19722
19723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 ac_ext=c
19725ac_cpp='$CPP $CPPFLAGS'
19726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728ac_compiler_gnu=$ac_cv_c_compiler_gnu
19729
19730fi
19731{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19732echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19733
19734if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19735
19736cat >>confdefs.h <<\_ACEOF
19737#define HAVE_FINITE_IN_IEEEFP_H 1
19738_ACEOF
19739
19740fi
19741
19742
19743
19744if test "$llvm_cv_platform_type" = "Unix" ; then
19745
19746
19747for ac_header in stdlib.h unistd.h
19748do
19749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755fi
19756ac_res=`eval echo '${'$as_ac_Header'}'`
19757 { echo "$as_me:$LINENO: result: $ac_res" >&5
19758echo "${ECHO_T}$ac_res" >&6; }
19759else
19760 # Is the header compilable?
19761{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19763cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769$ac_includes_default
19770#include <$ac_header>
19771_ACEOF
19772rm -f conftest.$ac_objext
19773if { (ac_try="$ac_compile"
19774case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19777esac
19778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_compile") 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_header_compiler=yes
19807else
19808 echo "$as_me: failed program was:" >&5
19809sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 ac_header_compiler=no
19812fi
19813
19814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19816echo "${ECHO_T}$ac_header_compiler" >&6; }
19817
19818# Is the header present?
19819{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19820echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19821cat >conftest.$ac_ext <<_ACEOF
19822/* confdefs.h. */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h. */
19827#include <$ac_header>
19828_ACEOF
19829if { (ac_try="$ac_cpp conftest.$ac_ext"
19830case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833esac
19834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } >/dev/null; then
19842 if test -s conftest.err; then
19843 ac_cpp_err=$ac_c_preproc_warn_flag
19844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19845 else
19846 ac_cpp_err=
19847 fi
19848else
19849 ac_cpp_err=yes
19850fi
19851if test -z "$ac_cpp_err"; then
19852 ac_header_preproc=yes
19853else
19854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_header_preproc=no
19858fi
19859
19860rm -f conftest.err conftest.$ac_ext
19861{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19862echo "${ECHO_T}$ac_header_preproc" >&6; }
19863
19864# So? What about this header?
19865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19866 yes:no: )
19867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19871 ac_header_preproc=yes
19872 ;;
19873 no:yes:* )
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19886 ( cat <<\_ASBOX
19887## ------------------------------ ##
19888## Report this to bugs@yourdomain ##
19889## ------------------------------ ##
19890_ASBOX
19891 ) | sed "s/^/$as_me: WARNING: /" >&2
19892 ;;
19893esac
19894{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
19899 eval "$as_ac_Header=\$ac_header_preproc"
19900fi
19901ac_res=`eval echo '${'$as_ac_Header'}'`
19902 { echo "$as_me:$LINENO: result: $ac_res" >&5
19903echo "${ECHO_T}$ac_res" >&6; }
19904
19905fi
19906if test `eval echo '${'$as_ac_Header'}'` = yes; then
19907 cat >>confdefs.h <<_ACEOF
19908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19909_ACEOF
19910
19911fi
19912
19913done
19914
19915
19916for ac_func in getpagesize
19917do
19918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19919{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19932#define $ac_func innocuous_$ac_func
19933
19934/* System header to define __stub macros and hopefully few prototypes,
19935 which can conflict with char $ac_func (); below.
19936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19937 <limits.h> exists even on freestanding compilers. */
19938
19939#ifdef __STDC__
19940# include <limits.h>
19941#else
19942# include <assert.h>
19943#endif
19944
19945#undef $ac_func
19946
19947/* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19950#ifdef __cplusplus
19951extern "C"
19952#endif
19953char $ac_func ();
19954/* The GNU C library defines this for functions which it implements
19955 to always fail with ENOSYS. Some functions are actually named
19956 something starting with __ and the normal name is an alias. */
19957#if defined __stub_$ac_func || defined __stub___$ac_func
19958choke me
19959#endif
19960
19961int
19962main ()
19963{
19964return $ac_func ();
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext conftest$ac_exeext
19970if { (ac_try="$ac_link"
19971case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_link") 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest$ac_exeext'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 eval "$as_ac_var=yes"
20004else
20005 echo "$as_me: failed program was:" >&5
20006sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 eval "$as_ac_var=no"
20009fi
20010
20011rm -f core conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20013fi
20014ac_res=`eval echo '${'$as_ac_var'}'`
20015 { echo "$as_me:$LINENO: result: $ac_res" >&5
20016echo "${ECHO_T}$ac_res" >&6; }
20017if test `eval echo '${'$as_ac_var'}'` = yes; then
20018 cat >>confdefs.h <<_ACEOF
20019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20020_ACEOF
20021
20022fi
20023done
20024
20025{ echo "$as_me:$LINENO: checking for working mmap" >&5
20026echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20027if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030 if test "$cross_compiling" = yes; then
20031 ac_cv_func_mmap_fixed_mapped=no
20032else
20033 cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039$ac_includes_default
20040/* malloc might have been renamed as rpl_malloc. */
20041#undef malloc
20042
20043/* Thanks to Mike Haertel and Jim Avera for this test.
20044 Here is a matrix of mmap possibilities:
20045 mmap private not fixed
20046 mmap private fixed at somewhere currently unmapped
20047 mmap private fixed at somewhere already mapped
20048 mmap shared not fixed
20049 mmap shared fixed at somewhere currently unmapped
20050 mmap shared fixed at somewhere already mapped
20051 For private mappings, we should verify that changes cannot be read()
20052 back from the file, nor mmap's back from the file at a different
20053 address. (There have been systems where private was not correctly
20054 implemented like the infamous i386 svr4.0, and systems where the
20055 VM page cache was not coherent with the file system buffer cache
20056 like early versions of FreeBSD and possibly contemporary NetBSD.)
20057 For shared mappings, we should conversely verify that changes get
20058 propagated back to all the places they're supposed to be.
20059
20060 Grep wants private fixed already mapped.
20061 The main things grep needs to know about mmap are:
20062 * does it exist and is it safe to write into the mmap'd area
20063 * how to use it (BSD variants) */
20064
20065#include <fcntl.h>
20066#include <sys/mman.h>
20067
20068#if !STDC_HEADERS && !HAVE_STDLIB_H
20069char *malloc ();
20070#endif
20071
20072/* This mess was copied from the GNU getpagesize.h. */
20073#if !HAVE_GETPAGESIZE
20074/* Assume that all systems that can run configure have sys/param.h. */
20075# if !HAVE_SYS_PARAM_H
20076# define HAVE_SYS_PARAM_H 1
20077# endif
20078
20079# ifdef _SC_PAGESIZE
20080# define getpagesize() sysconf(_SC_PAGESIZE)
20081# else /* no _SC_PAGESIZE */
20082# if HAVE_SYS_PARAM_H
20083# include <sys/param.h>
20084# ifdef EXEC_PAGESIZE
20085# define getpagesize() EXEC_PAGESIZE
20086# else /* no EXEC_PAGESIZE */
20087# ifdef NBPG
20088# define getpagesize() NBPG * CLSIZE
20089# ifndef CLSIZE
20090# define CLSIZE 1
20091# endif /* no CLSIZE */
20092# else /* no NBPG */
20093# ifdef NBPC
20094# define getpagesize() NBPC
20095# else /* no NBPC */
20096# ifdef PAGESIZE
20097# define getpagesize() PAGESIZE
20098# endif /* PAGESIZE */
20099# endif /* no NBPC */
20100# endif /* no NBPG */
20101# endif /* no EXEC_PAGESIZE */
20102# else /* no HAVE_SYS_PARAM_H */
20103# define getpagesize() 8192 /* punt totally */
20104# endif /* no HAVE_SYS_PARAM_H */
20105# endif /* no _SC_PAGESIZE */
20106
20107#endif /* no HAVE_GETPAGESIZE */
20108
20109int
20110main ()
20111{
20112 char *data, *data2, *data3;
20113 int i, pagesize;
20114 int fd;
20115
20116 pagesize = getpagesize ();
20117
20118 /* First, make a file with some known garbage in it. */
20119 data = (char *) malloc (pagesize);
20120 if (!data)
20121 return 1;
20122 for (i = 0; i < pagesize; ++i)
20123 *(data + i) = rand ();
20124 umask (0);
20125 fd = creat ("conftest.mmap", 0600);
20126 if (fd < 0)
20127 return 1;
20128 if (write (fd, data, pagesize) != pagesize)
20129 return 1;
20130 close (fd);
20131
20132 /* Next, try to mmap the file at a fixed address which already has
20133 something else allocated at it. If we can, also make sure that
20134 we see the same garbage. */
20135 fd = open ("conftest.mmap", O_RDWR);
20136 if (fd < 0)
20137 return 1;
20138 data2 = (char *) malloc (2 * pagesize);
20139 if (!data2)
20140 return 1;
20141 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20142 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20144 return 1;
20145 for (i = 0; i < pagesize; ++i)
20146 if (*(data + i) != *(data2 + i))
20147 return 1;
20148
20149 /* Finally, make sure that changes to the mapped area do not
20150 percolate back to the file as seen by read(). (This is a bug on
20151 some variants of i386 svr4.0.) */
20152 for (i = 0; i < pagesize; ++i)
20153 *(data2 + i) = *(data2 + i) + 1;
20154 data3 = (char *) malloc (pagesize);
20155 if (!data3)
20156 return 1;
20157 if (read (fd, data3, pagesize) != pagesize)
20158 return 1;
20159 for (i = 0; i < pagesize; ++i)
20160 if (*(data + i) != *(data3 + i))
20161 return 1;
20162 close (fd);
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest$ac_exeext
20167if { (ac_try="$ac_link"
20168case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171esac
20172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_link") 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180esac
20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_cv_func_mmap_fixed_mapped=yes
20187else
20188 echo "$as_me: program exited with status $ac_status" >&5
20189echo "$as_me: failed program was:" >&5
20190sed 's/^/| /' conftest.$ac_ext >&5
20191
20192( exit $ac_status )
20193ac_cv_func_mmap_fixed_mapped=no
20194fi
20195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20196fi
20197
20198
20199fi
20200{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20201echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20202if test $ac_cv_func_mmap_fixed_mapped = yes; then
20203
20204cat >>confdefs.h <<\_ACEOF
20205#define HAVE_MMAP 1
20206_ACEOF
20207
20208fi
20209rm -f conftest.mmap
20210
20211 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20212echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20213if test "${ac_cv_func_mmap_file+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215else
20216 ac_ext=c
20217ac_cpp='$CPP $CPPFLAGS'
20218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221
20222 if test "$cross_compiling" = yes; then
20223 ac_cv_func_mmap_file=no
20224else
20225 cat >conftest.$ac_ext <<_ACEOF
20226
20227 /* confdefs.h. */
20228_ACEOF
20229cat confdefs.h >>conftest.$ac_ext
20230cat >>conftest.$ac_ext <<_ACEOF
20231/* end confdefs.h. */
20232
20233#include <sys/types.h>
20234#include <sys/mman.h>
20235#include <fcntl.h>
20236
20237int
20238main ()
20239{
20240
20241 int fd;
20242 fd = creat ("foo",0777);
20243 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20244 unlink ("foo");
20245 return (fd != (int) MAP_FAILED);
20246 ;
20247 return 0;
20248}
20249_ACEOF
20250rm -f conftest$ac_exeext
20251if { (ac_try="$ac_link"
20252case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255esac
20256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_link") 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261 { (case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264esac
20265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_try") 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 ac_cv_func_mmap_file=yes
20271else
20272 echo "$as_me: program exited with status $ac_status" >&5
20273echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
20276( exit $ac_status )
20277ac_cv_func_mmap_file=no
20278fi
20279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20280fi
20281
20282
20283 ac_ext=c
20284ac_cpp='$CPP $CPPFLAGS'
20285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289
20290fi
20291{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20292echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20293if test "$ac_cv_func_mmap_file" = yes; then
20294
20295cat >>confdefs.h <<\_ACEOF
20296#define HAVE_MMAP_FILE
20297_ACEOF
20298
20299 MMAP_FILE=yes
20300
20301fi
20302
20303 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20304echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20305if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20307else
20308 if test "$llvm_cv_os_type" = "Interix" ; then
20309 ac_cv_need_dev_zero_for_mmap=yes
20310 else
20311 ac_cv_need_dev_zero_for_mmap=no
20312 fi
20313
20314fi
20315{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20316echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20317if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20318
20319cat >>confdefs.h <<\_ACEOF
20320#define NEED_DEV_ZERO_FOR_MMAP 1
20321_ACEOF
20322
20323fi
20324
20325 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20326 then
20327 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20328echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20329 fi
20330 if test "$ac_cv_func_mmap_file" = "no"
20331 then
20332 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20333echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20334 fi
20335fi
20336
20337{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20338echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20339ac_ext=cpp
20340ac_cpp='$CXXCPP $CPPFLAGS'
20341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20344
20345cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
20351int main() {
20352 volatile unsigned long val = 1;
20353 __sync_synchronize();
20354 __sync_val_compare_and_swap(&val, 1, 0);
20355 __sync_add_and_fetch(&val, 1);
20356 __sync_sub_and_fetch(&val, 1);
20357 return 0;
20358 }
20359
20360_ACEOF
20361rm -f conftest.$ac_objext conftest$ac_exeext
20362if { (ac_try="$ac_link"
20363case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>conftest.er1
20369 ac_status=$?
20370 grep -v '^ *+' conftest.er1 >conftest.err
20371 rm -f conftest.er1
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest$ac_exeext'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389esac
20390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_ext=c
20396ac_cpp='$CPP $CPPFLAGS'
20397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399ac_compiler_gnu=$ac_cv_c_compiler_gnu
20400
20401 { echo "$as_me:$LINENO: result: yes" >&5
20402echo "${ECHO_T}yes" >&6; }
20403
20404cat >>confdefs.h <<\_ACEOF
20405#define LLVM_HAS_ATOMICS 1
20406_ACEOF
20407
20408else
20409 echo "$as_me: failed program was:" >&5
20410sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 { echo "$as_me:$LINENO: result: no" >&5
20413echo "${ECHO_T}no" >&6; }
20414
20415cat >>confdefs.h <<\_ACEOF
20416#define LLVM_HAS_ATOMICS 0
20417_ACEOF
20418
20419 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20420echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20421fi
20422
20423rm -f core conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425
20426
20427if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20428 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20429echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20430if test "${llvm_cv_linux_mixed+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432else
20433 ac_ext=c
20434ac_cpp='$CPP $CPPFLAGS'
20435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437ac_compiler_gnu=$ac_cv_c_compiler_gnu
20438
20439 cat >conftest.$ac_ext <<_ACEOF
20440/* confdefs.h. */
20441_ACEOF
20442cat confdefs.h >>conftest.$ac_ext
20443cat >>conftest.$ac_ext <<_ACEOF
20444/* end confdefs.h. */
20445#ifndef __x86_64__
20446 error: Not x86-64 even if uname says so!
20447 #endif
20448
20449int
20450main ()
20451{
20452
20453 ;
20454 return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext
20458if { (ac_try="$ac_compile"
20459case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_compile") 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest.$ac_objext'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485esac
20486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 llvm_cv_linux_mixed=no
20492else
20493 echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 llvm_cv_linux_mixed=yes
20497fi
20498
20499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 ac_ext=c
20501ac_cpp='$CPP $CPPFLAGS'
20502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20504ac_compiler_gnu=$ac_cv_c_compiler_gnu
20505
20506
20507fi
20508{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20509echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20510
20511 if test "$llvm_cv_linux_mixed" = "yes"; then
20512 llvm_cv_target_arch="x86"
20513 ARCH="x86"
20514 fi
20515fi
20516
20517
20518for ac_func in __dso_handle
20519do
20520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20521{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20523if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525else
20526 cat >conftest.$ac_ext <<_ACEOF
20527/* confdefs.h. */
20528_ACEOF
20529cat confdefs.h >>conftest.$ac_ext
20530cat >>conftest.$ac_ext <<_ACEOF
20531/* end confdefs.h. */
20532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20534#define $ac_func innocuous_$ac_func
20535
20536/* System header to define __stub macros and hopefully few prototypes,
20537 which can conflict with char $ac_func (); below.
20538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20539 <limits.h> exists even on freestanding compilers. */
20540
20541#ifdef __STDC__
20542# include <limits.h>
20543#else
20544# include <assert.h>
20545#endif
20546
20547#undef $ac_func
20548
20549/* Override any GCC internal prototype to avoid an error.
20550 Use char because int might match the return type of a GCC
20551 builtin and then its argument prototype would still apply. */
20552#ifdef __cplusplus
20553extern "C"
20554#endif
20555char $ac_func ();
20556/* The GNU C library defines this for functions which it implements
20557 to always fail with ENOSYS. Some functions are actually named
20558 something starting with __ and the normal name is an alias. */
20559#if defined __stub_$ac_func || defined __stub___$ac_func
20560choke me
20561#endif
20562
20563int
20564main ()
20565{
20566return $ac_func ();
20567 ;
20568 return 0;
20569}
20570_ACEOF
20571rm -f conftest.$ac_objext conftest$ac_exeext
20572if { (ac_try="$ac_link"
20573case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20576esac
20577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_link") 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589esac
20590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest$ac_exeext'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 eval "$as_ac_var=yes"
20606else
20607 echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 eval "$as_ac_var=no"
20611fi
20612
20613rm -f core conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext conftest.$ac_ext
20615fi
20616ac_res=`eval echo '${'$as_ac_var'}'`
20617 { echo "$as_me:$LINENO: result: $ac_res" >&5
20618echo "${ECHO_T}$ac_res" >&6; }
20619if test `eval echo '${'$as_ac_var'}'` = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20622_ACEOF
20623
20624fi
20625done
20626
20627
20628SHLIBEXT=$libltdl_cv_shlibext
20629
20630
20631SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20632
20633
20634# Translate the various configuration directories and other basic
20635# information into substitutions that will end up in Makefile.config.in
20636# that these configured values can be used by the makefiles
20637if test "${prefix}" = "NONE" ; then
20638 prefix="/usr/local"
20639fi
20640eval LLVM_PREFIX="${prefix}";
20641eval LLVM_BINDIR="${prefix}/bin";
20642eval LLVM_LIBDIR="${prefix}/lib";
20643eval LLVM_DATADIR="${prefix}/share/llvm";
20644eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20645eval LLVM_ETCDIR="${prefix}/etc/llvm";
20646eval LLVM_INCLUDEDIR="${prefix}/include";
20647eval LLVM_INFODIR="${prefix}/info";
20648eval LLVM_MANDIR="${prefix}/man";
20649LLVM_CONFIGTIME=`date`
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661# Place the various directores into the config.h file as #defines so that we
20662# can know about the installation paths within LLVM.
20663
20664cat >>confdefs.h <<_ACEOF
20665#define LLVM_PREFIX "$LLVM_PREFIX"
20666_ACEOF
20667
20668
20669cat >>confdefs.h <<_ACEOF
20670#define LLVM_BINDIR "$LLVM_BINDIR"
20671_ACEOF
20672
20673
20674cat >>confdefs.h <<_ACEOF
20675#define LLVM_LIBDIR "$LLVM_LIBDIR"
20676_ACEOF
20677
20678
20679cat >>confdefs.h <<_ACEOF
20680#define LLVM_DATADIR "$LLVM_DATADIR"
20681_ACEOF
20682
20683
20684cat >>confdefs.h <<_ACEOF
20685#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20686_ACEOF
20687
20688
20689cat >>confdefs.h <<_ACEOF
20690#define LLVM_ETCDIR "$LLVM_ETCDIR"
20691_ACEOF
20692
20693
20694cat >>confdefs.h <<_ACEOF
20695#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20696_ACEOF
20697
20698
20699cat >>confdefs.h <<_ACEOF
20700#define LLVM_INFODIR "$LLVM_INFODIR"
20701_ACEOF
20702
20703
20704cat >>confdefs.h <<_ACEOF
20705#define LLVM_MANDIR "$LLVM_MANDIR"
20706_ACEOF
20707
20708
20709cat >>confdefs.h <<_ACEOF
20710#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20711_ACEOF
20712
20713
20714cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020715#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020716_ACEOF
20717
20718
20719# Determine which bindings to build.
20720if test "$BINDINGS_TO_BUILD" = auto ; then
20721 BINDINGS_TO_BUILD=""
20722 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20723 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20724 fi
20725fi
20726BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20727
20728
20729# This isn't really configurey, but it avoids having to repeat the list in
20730# other files.
20731ALL_BINDINGS=ocaml
20732
20733
20734# Do any work necessary to ensure that bindings have what they need.
20735binding_prereqs_failed=0
20736for a_binding in $BINDINGS_TO_BUILD ; do
20737 case "$a_binding" in
20738 ocaml)
20739 if test "x$OCAMLC" = x ; then
20740 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20741echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20742 binding_prereqs_failed=1
20743 fi
20744 if test "x$OCAMLDEP" = x ; then
20745 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20746echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20747 binding_prereqs_failed=1
20748 fi
20749 if test "x$OCAMLOPT" = x ; then
20750 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20751echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20752 fi
20753 if test "x$with_ocaml_libdir" != xauto ; then
20754 OCAML_LIBDIR=$with_ocaml_libdir
20755
20756 else
20757 ocaml_stdlib="`"$OCAMLC" -where`"
20758 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20759 then
20760 # ocaml stdlib is beneath our prefix; use stdlib
20761 OCAML_LIBDIR=$ocaml_stdlib
20762
20763 else
20764 # ocaml stdlib is outside our prefix; use libdir/ocaml
20765 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20766
20767 fi
20768 fi
20769 ;;
20770 esac
20771done
20772if test "$binding_prereqs_failed" = 1 ; then
20773 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20774echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20775 { (exit 1); exit 1; }; }
20776fi
20777
20778{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20779echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20780if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782else
20783 ac_ext=cpp
20784ac_cpp='$CXXCPP $CPPFLAGS'
20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789 oldcxxflags="$CXXFLAGS"
20790 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20791 cat >conftest.$ac_ext <<_ACEOF
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
20797
20798int
20799main ()
20800{
20801
20802 ;
20803 return 0;
20804}
20805_ACEOF
20806rm -f conftest.$ac_objext
20807if { (ac_try="$ac_compile"
20808case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811esac
20812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_compile") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20821 { (case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824esac
20825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_try") 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834esac
20835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 llvm_cv_cxx_visibility_inlines_hidden=yes
20841else
20842 echo "$as_me: failed program was:" >&5
20843sed 's/^/| /' conftest.$ac_ext >&5
20844
20845 llvm_cv_cxx_visibility_inlines_hidden=no
20846fi
20847
20848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 CXXFLAGS="$oldcxxflags"
20850 ac_ext=c
20851ac_cpp='$CPP $CPPFLAGS'
20852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854ac_compiler_gnu=$ac_cv_c_compiler_gnu
20855
20856
20857fi
20858{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20859echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20860if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20861 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20862
20863else
20864 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20865
20866fi
20867
20868
20869if test "$llvm_cv_link_use_r" = "yes" ; then
20870 RPATH="-Wl,-R"
20871else
20872 RPATH="-Wl,-rpath"
20873fi
20874
20875
20876if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20877 RDYNAMIC="-Wl,-export-dynamic"
20878else
20879 RDYNAMIC=""
20880fi
20881
20882
20883
Reid Spencer421ec052005-02-24 18:53:47 +000020884
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020885ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020886
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020887ac_config_files="$ac_config_files Makefile.llvm.config"
20888
John Criswell451f67f2003-10-16 01:45:35 +000020889
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020890ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020891
20892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020893ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020894
20895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020896ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020897
20898
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020899ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020900
20901
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020902ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020903
20904
20905
John Criswell451f67f2003-10-16 01:45:35 +000020906cat >confcache <<\_ACEOF
20907# This file is a shell script that caches the results of configure
20908# tests run on this system so they can be shared between configure
20909# scripts and configure runs, see configure's option --config-cache.
20910# It is not useful on other systems. If it contains results you don't
20911# want to keep, you may remove or edit it.
20912#
20913# config.status only pays attention to the cache file if you give it
20914# the --recheck option to rerun configure.
20915#
20916# `ac_cv_env_foo' variables (set or unset) will be overridden when
20917# loading this file, other *unset* `ac_cv_foo' will be assigned the
20918# following values.
20919
20920_ACEOF
20921
20922# The following way of writing the cache mishandles newlines in values,
20923# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020924# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020925# Ultrix sh set writes to stderr and can't be redirected directly,
20926# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020927(
20928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20929 eval ac_val=\$$ac_var
20930 case $ac_val in #(
20931 *${as_nl}*)
20932 case $ac_var in #(
20933 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20934echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20935 esac
20936 case $ac_var in #(
20937 _ | IFS | as_nl) ;; #(
20938 *) $as_unset $ac_var ;;
20939 esac ;;
20940 esac
20941 done
20942
John Criswell451f67f2003-10-16 01:45:35 +000020943 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20945 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020946 # `set' does not quote correctly, so add quotes (double-quote
20947 # substitution turns \\\\ into \\, and sed turns \\ into \).
20948 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020949 "s/'/'\\\\''/g;
20950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020951 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020952 *)
20953 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020955 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020956 esac |
20957 sort
20958) |
John Criswell451f67f2003-10-16 01:45:35 +000020959 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020960 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020961 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020962 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20964 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20966 :end' >>confcache
20967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20968 if test -w "$cache_file"; then
20969 test "x$cache_file" != "x/dev/null" &&
20970 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20971echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020972 cat confcache >$cache_file
20973 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020974 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20975echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020976 fi
20977fi
20978rm -f confcache
20979
20980test "x$prefix" = xNONE && prefix=$ac_default_prefix
20981# Let make expand exec_prefix.
20982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20983
John Criswell451f67f2003-10-16 01:45:35 +000020984# Transform confdefs.h into DEFS.
20985# Protect against shell expansion while executing Makefile rules.
20986# Protect against Makefile macro expansion.
20987#
20988# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020989# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000020990# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020991ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000020992t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020993:clear
20994s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020995t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020996s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020997t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020998b any
20999:quote
21000s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21001s/\[/\\&/g
21002s/\]/\\&/g
21003s/\$/$$/g
21004H
21005:any
21006${
21007 g
21008 s/^\n//
21009 s/\n/ /g
21010 p
21011}
21012'
21013DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021014
21015
21016ac_libobjs=
21017ac_ltlibobjs=
21018for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21019 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21021 ac_i=`echo "$ac_i" | sed "$ac_script"`
21022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21023 # will be set to the directory where LIBOBJS objects are built.
21024 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21025 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021026done
21027LIBOBJS=$ac_libobjs
21028
21029LTLIBOBJS=$ac_ltlibobjs
21030
21031
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021032if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21033 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21034Usually this means the macro was only invoked conditionally." >&5
21035echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21036Usually this means the macro was only invoked conditionally." >&2;}
21037 { (exit 1); exit 1; }; }
21038fi
21039if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21040 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21041Usually this means the macro was only invoked conditionally." >&5
21042echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21043Usually this means the macro was only invoked conditionally." >&2;}
21044 { (exit 1); exit 1; }; }
21045fi
John Criswell451f67f2003-10-16 01:45:35 +000021046
21047: ${CONFIG_STATUS=./config.status}
21048ac_clean_files_save=$ac_clean_files
21049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21050{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21051echo "$as_me: creating $CONFIG_STATUS" >&6;}
21052cat >$CONFIG_STATUS <<_ACEOF
21053#! $SHELL
21054# Generated by $as_me.
21055# Run this file to recreate the current configuration.
21056# Compiler output produced by configure, useful for debugging
21057# configure, is in config.log if it exists.
21058
21059debug=false
21060ac_cs_recheck=false
21061ac_cs_silent=false
21062SHELL=\${CONFIG_SHELL-$SHELL}
21063_ACEOF
21064
21065cat >>$CONFIG_STATUS <<\_ACEOF
21066## --------------------- ##
21067## M4sh Initialization. ##
21068## --------------------- ##
21069
Dan Gohman324f6082009-03-25 00:52:11 +000021070# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21072 emulate sh
21073 NULLCMD=:
21074 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21075 # is contrary to our usage. Disable this feature.
21076 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021077 setopt NO_GLOB_SUBST
21078else
21079 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021080fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021081BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021082DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021083
John Criswell451f67f2003-10-16 01:45:35 +000021084
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021085# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021086# Avoid depending upon Character Ranges.
21087as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21088as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21089as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21090as_cr_digits='0123456789'
21091as_cr_alnum=$as_cr_Letters$as_cr_digits
21092
21093# The user is always right.
21094if test "${PATH_SEPARATOR+set}" != set; then
21095 echo "#! /bin/sh" >conf$$.sh
21096 echo "exit 0" >>conf$$.sh
21097 chmod +x conf$$.sh
21098 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21099 PATH_SEPARATOR=';'
21100 else
21101 PATH_SEPARATOR=:
21102 fi
21103 rm -f conf$$.sh
21104fi
21105
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021106# Support unset when possible.
21107if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21108 as_unset=unset
21109else
21110 as_unset=false
21111fi
John Criswell451f67f2003-10-16 01:45:35 +000021112
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021113
21114# IFS
21115# We need space, tab and new line, in precisely that order. Quoting is
21116# there to prevent editors from complaining about space-tab.
21117# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21118# splitting by setting IFS to empty value.)
21119as_nl='
21120'
21121IFS=" "" $as_nl"
21122
21123# Find who we are. Look in the path if we contain no directory separator.
21124case $0 in
21125 *[\\/]* ) as_myself=$0 ;;
21126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021127for as_dir in $PATH
21128do
21129 IFS=$as_save_IFS
21130 test -z "$as_dir" && as_dir=.
21131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21132done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021133IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021134
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021135 ;;
21136esac
21137# We did not find ourselves, most probably we were run as `sh COMMAND'
21138# in which case we are not to be found in the path.
21139if test "x$as_myself" = x; then
21140 as_myself=$0
21141fi
21142if test ! -f "$as_myself"; then
21143 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21144 { (exit 1); exit 1; }
21145fi
21146
21147# Work around bugs in pre-3.0 UWIN ksh.
21148for as_var in ENV MAIL MAILPATH
21149do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21150done
21151PS1='$ '
21152PS2='> '
21153PS4='+ '
21154
21155# NLS nuisances.
21156for as_var in \
21157 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21158 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21159 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021160do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021161 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21162 eval $as_var=C; export $as_var
21163 else
21164 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21165 fi
21166done
21167
21168# Required to use basename.
21169if expr a : '\(a\)' >/dev/null 2>&1 &&
21170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21171 as_expr=expr
21172else
21173 as_expr=false
21174fi
21175
21176if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21177 as_basename=basename
21178else
21179 as_basename=false
21180fi
21181
21182
21183# Name of the executable.
21184as_me=`$as_basename -- "$0" ||
21185$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21186 X"$0" : 'X\(//\)$' \| \
21187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21188echo X/"$0" |
21189 sed '/^.*\/\([^/][^/]*\)\/*$/{
21190 s//\1/
21191 q
21192 }
21193 /^X\/\(\/\/\)$/{
21194 s//\1/
21195 q
21196 }
21197 /^X\/\(\/\).*/{
21198 s//\1/
21199 q
21200 }
21201 s/.*/./; q'`
21202
21203# CDPATH.
21204$as_unset CDPATH
21205
21206
21207
John Criswell451f67f2003-10-16 01:45:35 +000021208 as_lineno_1=$LINENO
21209 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021210 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021211 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021212
21213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21214 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021215 # line-number line after each line using $LINENO; the second 'sed'
21216 # does the real work. The second script uses 'N' to pair each
21217 # line-number line with the line containing $LINENO, and appends
21218 # trailing '-' during substitution so that $LINENO is not a special
21219 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021220 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021221 # scripts with optimization help from Paolo Bonzini. Blame Lee
21222 # E. McMahon (1931-1989) for sed's syntax. :-)
21223 sed -n '
21224 p
21225 /[$]LINENO/=
21226 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021227 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021228 s/[$]LINENO.*/&-/
21229 t lineno
21230 b
21231 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021232 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021233 :loop
21234 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021235 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021236 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021237 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021238 chmod +x "$as_me.lineno" ||
21239 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021240 { (exit 1); exit 1; }; }
21241
21242 # Don't try to exec as it changes $[0], causing all sort of problems
21243 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021244 # original and so on. Autoconf is especially sensitive to this).
21245 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021246 # Exit status is that of the last command.
21247 exit
21248}
21249
21250
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021251if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21252 as_dirname=dirname
21253else
21254 as_dirname=false
21255fi
21256
21257ECHO_C= ECHO_N= ECHO_T=
21258case `echo -n x` in
21259-n*)
21260 case `echo 'x\c'` in
21261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21262 *) ECHO_C='\c';;
21263 esac;;
21264*)
21265 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021266esac
21267
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021268if expr a : '\(a\)' >/dev/null 2>&1 &&
21269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021270 as_expr=expr
21271else
21272 as_expr=false
21273fi
21274
21275rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021276if test -d conf$$.dir; then
21277 rm -f conf$$.dir/conf$$.file
21278else
21279 rm -f conf$$.dir
21280 mkdir conf$$.dir
21281fi
John Criswell451f67f2003-10-16 01:45:35 +000021282echo >conf$$.file
21283if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021284 as_ln_s='ln -s'
21285 # ... but there are two gotchas:
21286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21288 # In both cases, we have to default to `cp -p'.
21289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021290 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021291elif ln conf$$.file conf$$ 2>/dev/null; then
21292 as_ln_s=ln
21293else
21294 as_ln_s='cp -p'
21295fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21297rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021298
21299if mkdir -p . 2>/dev/null; then
21300 as_mkdir_p=:
21301else
Reid Spencer9964cd82005-01-01 09:26:55 +000021302 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021303 as_mkdir_p=false
21304fi
21305
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021306# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21307# systems may use methods other than mode bits to determine executability.
21308cat >conf$$.file <<_ASEOF
21309#! /bin/sh
21310exit 0
21311_ASEOF
21312chmod +x conf$$.file
21313if test -x conf$$.file >/dev/null 2>&1; then
21314 as_executable_p="test -x"
21315else
21316 as_executable_p=:
21317fi
21318rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021319
21320# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021321as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021322
21323# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021324as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021325
21326
John Criswell451f67f2003-10-16 01:45:35 +000021327exec 6>&1
21328
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021329# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021330# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021331# values after options handling.
21332ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021333This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021334generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021335
21336 CONFIG_FILES = $CONFIG_FILES
21337 CONFIG_HEADERS = $CONFIG_HEADERS
21338 CONFIG_LINKS = $CONFIG_LINKS
21339 CONFIG_COMMANDS = $CONFIG_COMMANDS
21340 $ $0 $@
21341
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021342on `(hostname || uname -n) 2>/dev/null | sed 1q`
21343"
21344
John Criswell451f67f2003-10-16 01:45:35 +000021345_ACEOF
21346
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021347cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021348# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021349config_files="$ac_config_files"
21350config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021351
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021352_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021353
21354cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021355ac_cs_usage="\
21356\`$as_me' instantiates files from templates according to the
21357current configuration.
21358
21359Usage: $0 [OPTIONS] [FILE]...
21360
21361 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021362 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021363 -q, --quiet do not print progress messages
21364 -d, --debug don't remove temporary files
21365 --recheck update $as_me by reconfiguring in the same conditions
21366 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021367 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021368
21369Configuration files:
21370$config_files
21371
21372Configuration commands:
21373$config_commands
21374
21375Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021376
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021377_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021378cat >>$CONFIG_STATUS <<_ACEOF
21379ac_cs_version="\\
21380[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021381configured by $0, generated by GNU Autoconf 2.60,
21382 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021383
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021385This config.status script is free software; the Free Software Foundation
21386gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021387
21388ac_pwd='$ac_pwd'
21389srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021390INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021391_ACEOF
21392
21393cat >>$CONFIG_STATUS <<\_ACEOF
21394# If no file are specified by the user, then we need to provide default
21395# value. By we need to know if files were specified by the user.
21396ac_need_defaults=:
21397while test $# != 0
21398do
21399 case $1 in
21400 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021403 ac_shift=:
21404 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021405 *)
John Criswell451f67f2003-10-16 01:45:35 +000021406 ac_option=$1
21407 ac_optarg=$2
21408 ac_shift=shift
21409 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021410 esac
21411
21412 case $ac_option in
21413 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21415 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21417 echo "$ac_cs_version"; exit ;;
21418 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021419 debug=: ;;
21420 --file | --fil | --fi | --f )
21421 $ac_shift
21422 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21423 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021424 --he | --h | --help | --hel | -h )
21425 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21428 ac_cs_silent=: ;;
21429
21430 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021431 -*) { echo "$as_me: error: unrecognized option: $1
21432Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021433 { (exit 1); exit 1; }; } ;;
21434
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021435 *) ac_config_targets="$ac_config_targets $1"
21436 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021437
21438 esac
21439 shift
21440done
21441
21442ac_configure_extra_args=
21443
21444if $ac_cs_silent; then
21445 exec 6>/dev/null
21446 ac_configure_extra_args="$ac_configure_extra_args --silent"
21447fi
21448
21449_ACEOF
21450cat >>$CONFIG_STATUS <<_ACEOF
21451if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021452 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21453 CONFIG_SHELL=$SHELL
21454 export CONFIG_SHELL
21455 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021456fi
21457
21458_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021459cat >>$CONFIG_STATUS <<\_ACEOF
21460exec 5>>config.log
21461{
21462 echo
21463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21464## Running $as_me. ##
21465_ASBOX
21466 echo "$ac_log"
21467} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021468
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021469_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021470cat >>$CONFIG_STATUS <<_ACEOF
21471#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021472# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021473#
Reid Spencer421ec052005-02-24 18:53:47 +000021474llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021475
21476_ACEOF
21477
Dan Gohman324f6082009-03-25 00:52:11 +000021478cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479
21480# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021481for ac_config_target in $ac_config_targets
21482do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021483 case $ac_config_target in
21484 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21485 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021486 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021487 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21488 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21489 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21490 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21491 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21492
John Criswell451f67f2003-10-16 01:45:35 +000021493 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21494echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21495 { (exit 1); exit 1; }; };;
21496 esac
21497done
21498
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021499
John Criswell451f67f2003-10-16 01:45:35 +000021500# If the user did not use the arguments to specify the items to instantiate,
21501# then the envvar interface is used. Set only those that are not.
21502# We use the long form for the default assignment because of an extremely
21503# bizarre bug on SunOS 4.1.3.
21504if $ac_need_defaults; then
21505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21507fi
21508
21509# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021510# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021511# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021512# Hook for its removal unless debugging.
21513# Note that there is a small window in which the directory will not be cleaned:
21514# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021515$debug ||
21516{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021517 tmp=
21518 trap 'exit_status=$?
21519 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21520' 0
John Criswell451f67f2003-10-16 01:45:35 +000021521 trap '{ (exit 1); exit 1; }' 1 2 13 15
21522}
John Criswell451f67f2003-10-16 01:45:35 +000021523# Create a (secure) tmp directory for tmp files.
21524
21525{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021527 test -n "$tmp" && test -d "$tmp"
21528} ||
21529{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021530 tmp=./conf$$-$RANDOM
21531 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021532} ||
21533{
21534 echo "$me: cannot create a temporary directory in ." >&2
21535 { (exit 1); exit 1; }
21536}
21537
John Criswell451f67f2003-10-16 01:45:35 +000021538#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021539# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021540#
21541
21542# No need to generate the scripts if there are no CONFIG_FILES.
21543# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021544if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021545
21546_ACEOF
21547
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021548
21549
21550ac_delim='%!_!# '
21551for ac_last_try in false false false false false :; do
21552 cat >conf$$subs.sed <<_ACEOF
21553SHELL!$SHELL$ac_delim
21554PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21555PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21556PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21557PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21558PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21559PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21560exec_prefix!$exec_prefix$ac_delim
21561prefix!$prefix$ac_delim
21562program_transform_name!$program_transform_name$ac_delim
21563bindir!$bindir$ac_delim
21564sbindir!$sbindir$ac_delim
21565libexecdir!$libexecdir$ac_delim
21566datarootdir!$datarootdir$ac_delim
21567datadir!$datadir$ac_delim
21568sysconfdir!$sysconfdir$ac_delim
21569sharedstatedir!$sharedstatedir$ac_delim
21570localstatedir!$localstatedir$ac_delim
21571includedir!$includedir$ac_delim
21572oldincludedir!$oldincludedir$ac_delim
21573docdir!$docdir$ac_delim
21574infodir!$infodir$ac_delim
21575htmldir!$htmldir$ac_delim
21576dvidir!$dvidir$ac_delim
21577pdfdir!$pdfdir$ac_delim
21578psdir!$psdir$ac_delim
21579libdir!$libdir$ac_delim
21580localedir!$localedir$ac_delim
21581mandir!$mandir$ac_delim
21582DEFS!$DEFS$ac_delim
21583ECHO_C!$ECHO_C$ac_delim
21584ECHO_N!$ECHO_N$ac_delim
21585ECHO_T!$ECHO_T$ac_delim
21586LIBS!$LIBS$ac_delim
21587build_alias!$build_alias$ac_delim
21588host_alias!$host_alias$ac_delim
21589target_alias!$target_alias$ac_delim
21590LLVM_SRC!$LLVM_SRC$ac_delim
21591LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021592LLVM_VERSION!$LLVM_VERSION$ac_delim
21593CC!$CC$ac_delim
21594CFLAGS!$CFLAGS$ac_delim
21595LDFLAGS!$LDFLAGS$ac_delim
21596CPPFLAGS!$CPPFLAGS$ac_delim
21597ac_ct_CC!$ac_ct_CC$ac_delim
21598EXEEXT!$EXEEXT$ac_delim
21599OBJEXT!$OBJEXT$ac_delim
21600CXX!$CXX$ac_delim
21601CXXFLAGS!$CXXFLAGS$ac_delim
21602ac_ct_CXX!$ac_ct_CXX$ac_delim
21603CPP!$CPP$ac_delim
21604ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21605LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21606subdirs!$subdirs$ac_delim
21607build!$build$ac_delim
21608build_cpu!$build_cpu$ac_delim
21609build_vendor!$build_vendor$ac_delim
21610build_os!$build_os$ac_delim
21611host!$host$ac_delim
21612host_cpu!$host_cpu$ac_delim
21613host_vendor!$host_vendor$ac_delim
21614host_os!$host_os$ac_delim
21615target!$target$ac_delim
21616target_cpu!$target_cpu$ac_delim
21617target_vendor!$target_vendor$ac_delim
21618target_os!$target_os$ac_delim
21619OS!$OS$ac_delim
21620HOST_OS!$HOST_OS$ac_delim
21621TARGET_OS!$TARGET_OS$ac_delim
21622LINKALL!$LINKALL$ac_delim
21623NOLINKALL!$NOLINKALL$ac_delim
21624LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21625LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21626ARCH!$ARCH$ac_delim
21627ENDIAN!$ENDIAN$ac_delim
21628GREP!$GREP$ac_delim
21629EGREP!$EGREP$ac_delim
21630LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21631BUILD_CC!$BUILD_CC$ac_delim
21632BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21633BUILD_CXX!$BUILD_CXX$ac_delim
21634CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021635ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021636ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21637ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21638DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21639ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21640EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21641DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21642DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21643JIT!$JIT$ac_delim
21644TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21645ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21646ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21647ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21648ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21649ENABLE_PIC!$ENABLE_PIC$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021650_ACEOF
21651
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021652 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021653 break
21654 elif $ac_last_try; then
21655 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21656echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21657 { (exit 1); exit 1; }; }
21658 else
21659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021660 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021661done
21662
21663ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21664if test -n "$ac_eof"; then
21665 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21666 ac_eof=`expr $ac_eof + 1`
21667fi
21668
21669cat >>$CONFIG_STATUS <<_ACEOF
21670cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021671/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21672_ACEOF
21673sed '
21674s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21675s/^/s,@/; s/!/@,|#_!!_#|/
21676:n
21677t n
21678s/'"$ac_delim"'$/,g/; t
21679s/$/\\/; p
21680N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21681' >>$CONFIG_STATUS <conf$$subs.sed
21682rm -f conf$$subs.sed
21683cat >>$CONFIG_STATUS <<_ACEOF
21684CEOF$ac_eof
21685_ACEOF
21686
21687
21688ac_delim='%!_!# '
21689for ac_last_try in false false false false false :; do
21690 cat >conf$$subs.sed <<_ACEOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021691ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021692ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21693ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21694TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21695LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21696LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21697LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21698LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021699OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21700EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21701EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21702BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21703NM!$NM$ac_delim
21704ifGNUmake!$ifGNUmake$ac_delim
21705LN_S!$LN_S$ac_delim
21706CMP!$CMP$ac_delim
21707CP!$CP$ac_delim
21708DATE!$DATE$ac_delim
21709FIND!$FIND$ac_delim
21710MKDIR!$MKDIR$ac_delim
21711MV!$MV$ac_delim
21712RANLIB!$RANLIB$ac_delim
21713AR!$AR$ac_delim
21714RM!$RM$ac_delim
21715SED!$SED$ac_delim
21716TAR!$TAR$ac_delim
21717BINPWD!$BINPWD$ac_delim
21718GRAPHVIZ!$GRAPHVIZ$ac_delim
21719DOT!$DOT$ac_delim
21720FDP!$FDP$ac_delim
21721NEATO!$NEATO$ac_delim
21722TWOPI!$TWOPI$ac_delim
21723CIRCO!$CIRCO$ac_delim
21724GV!$GV$ac_delim
21725DOTTY!$DOTTY$ac_delim
21726XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021727INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21728INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21729INSTALL_DATA!$INSTALL_DATA$ac_delim
21730BZIP2!$BZIP2$ac_delim
21731CAT!$CAT$ac_delim
21732DOXYGEN!$DOXYGEN$ac_delim
21733GROFF!$GROFF$ac_delim
21734GZIPBIN!$GZIPBIN$ac_delim
21735POD2HTML!$POD2HTML$ac_delim
21736POD2MAN!$POD2MAN$ac_delim
21737PDFROFF!$PDFROFF$ac_delim
21738RUNTEST!$RUNTEST$ac_delim
21739TCLSH!$TCLSH$ac_delim
21740ZIP!$ZIP$ac_delim
21741OCAMLC!$OCAMLC$ac_delim
21742OCAMLOPT!$OCAMLOPT$ac_delim
21743OCAMLDEP!$OCAMLDEP$ac_delim
21744OCAMLDOC!$OCAMLDOC$ac_delim
21745GAS!$GAS$ac_delim
21746HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21747INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21748INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21749CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21750CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21751LIBADD_DL!$LIBADD_DL$ac_delim
21752NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21753NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021754COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021755USE_UDIS86!$USE_UDIS86$ac_delim
21756USE_OPROFILE!$USE_OPROFILE$ac_delim
21757HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21758HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21759MMAP_FILE!$MMAP_FILE$ac_delim
21760SHLIBEXT!$SHLIBEXT$ac_delim
21761SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21762LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21763LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21764LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21765LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21766LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21767LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21768LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21769LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21770LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21771LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21772BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21773ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21774OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21775ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21776RPATH!$RPATH$ac_delim
21777RDYNAMIC!$RDYNAMIC$ac_delim
21778LIBOBJS!$LIBOBJS$ac_delim
21779LTLIBOBJS!$LTLIBOBJS$ac_delim
21780_ACEOF
21781
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021783 break
21784 elif $ac_last_try; then
21785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787 { (exit 1); exit 1; }; }
21788 else
21789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21790 fi
21791done
21792
21793ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794if test -n "$ac_eof"; then
21795 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21796 ac_eof=`expr $ac_eof + 1`
21797fi
21798
21799cat >>$CONFIG_STATUS <<_ACEOF
21800cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021801/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21802_ACEOF
21803sed '
21804s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805s/^/s,@/; s/!/@,|#_!!_#|/
21806:n
21807t n
21808s/'"$ac_delim"'$/,g/; t
21809s/$/\\/; p
21810N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811' >>$CONFIG_STATUS <conf$$subs.sed
21812rm -f conf$$subs.sed
21813cat >>$CONFIG_STATUS <<_ACEOF
21814:end
21815s/|#_!!_#|//g
21816CEOF$ac_eof
21817_ACEOF
21818
21819
21820# VPATH may cause trouble with some makes, so we remove $(srcdir),
21821# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822# trailing colons and then remove the whole line if VPATH becomes empty
21823# (actually we leave an empty line to preserve line numbers).
21824if test "x$srcdir" = x.; then
21825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21826s/:*\$(srcdir):*/:/
21827s/:*\${srcdir}:*/:/
21828s/:*@srcdir@:*/:/
21829s/^\([^=]*=[ ]*\):*/\1/
21830s/:*$//
21831s/^[^=]*=[ ]*$//
21832}'
21833fi
21834
21835cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021836fi # test -n "$CONFIG_FILES"
21837
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021838
21839for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21840do
21841 case $ac_tag in
21842 :[FHLC]) ac_mode=$ac_tag; continue;;
21843 esac
21844 case $ac_mode$ac_tag in
21845 :[FHL]*:*);;
21846 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848 { (exit 1); exit 1; }; };;
21849 :[FH]-) ac_tag=-:-;;
21850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21851 esac
21852 ac_save_IFS=$IFS
21853 IFS=:
21854 set x $ac_tag
21855 IFS=$ac_save_IFS
21856 shift
21857 ac_file=$1
21858 shift
21859
21860 case $ac_mode in
21861 :L) ac_source=$1;;
21862 :[FH])
21863 ac_file_inputs=
21864 for ac_f
21865 do
21866 case $ac_f in
21867 -) ac_f="$tmp/stdin";;
21868 *) # Look for the file first in the build tree, then in the source tree
21869 # (if the path is not absolute). The absolute path cannot be DOS-style,
21870 # because $ac_f cannot contain `:'.
21871 test -f "$ac_f" ||
21872 case $ac_f in
21873 [\\/$]*) false;;
21874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21875 esac ||
21876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878 { (exit 1); exit 1; }; };;
21879 esac
21880 ac_file_inputs="$ac_file_inputs $ac_f"
21881 done
21882
21883 # Let's still pretend it is `configure' which instantiates (i.e., don't
21884 # use $as_me), people would be surprised to read:
21885 # /* config.h. Generated by config.status. */
21886 configure_input="Generated from "`IFS=:
21887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21888 if test x"$ac_file" != x-; then
21889 configure_input="$ac_file. $configure_input"
21890 { echo "$as_me:$LINENO: creating $ac_file" >&5
21891echo "$as_me: creating $ac_file" >&6;}
21892 fi
21893
21894 case $ac_tag in
21895 *:-:* | *:-) cat >"$tmp/stdin";;
21896 esac
21897 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021898 esac
21899
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021900 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021902 X"$ac_file" : 'X\(//\)[^/]' \| \
21903 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021905echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21907 s//\1/
21908 q
21909 }
21910 /^X\(\/\/\)[^/].*/{
21911 s//\1/
21912 q
21913 }
21914 /^X\(\/\/\)$/{
21915 s//\1/
21916 q
21917 }
21918 /^X\(\/\).*/{
21919 s//\1/
21920 q
21921 }
21922 s/.*/./; q'`
21923 { as_dir="$ac_dir"
21924 case $as_dir in #(
21925 -*) as_dir=./$as_dir;;
21926 esac
21927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021928 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021929 while :; do
21930 case $as_dir in #(
21931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932 *) as_qdir=$as_dir;;
21933 esac
21934 as_dirs="'$as_qdir' $as_dirs"
21935 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021937 X"$as_dir" : 'X\(//\)[^/]' \| \
21938 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021940echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\/\)[^/].*/{
21946 s//\1/
21947 q
21948 }
21949 /^X\(\/\/\)$/{
21950 s//\1/
21951 q
21952 }
21953 /^X\(\/\).*/{
21954 s//\1/
21955 q
21956 }
21957 s/.*/./; q'`
21958 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021959 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021960 test -z "$as_dirs" || eval "mkdir $as_dirs"
21961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021963 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021964 ac_builddir=.
21965
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021966case "$ac_dir" in
21967.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21968*)
John Criswell451f67f2003-10-16 01:45:35 +000021969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021970 # A ".." for each directory in $ac_dir_suffix.
21971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21972 case $ac_top_builddir_sub in
21973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21975 esac ;;
21976esac
21977ac_abs_top_builddir=$ac_pwd
21978ac_abs_builddir=$ac_pwd$ac_dir_suffix
21979# for backward compatibility:
21980ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021981
21982case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021983 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021984 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021985 ac_top_srcdir=$ac_top_builddir_sub
21986 ac_abs_top_srcdir=$ac_pwd ;;
21987 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021988 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021989 ac_top_srcdir=$srcdir
21990 ac_abs_top_srcdir=$srcdir ;;
21991 *) # Relative name.
21992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993 ac_top_srcdir=$ac_top_build_prefix$srcdir
21994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000021995esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021996ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000021997
Dan Gohman324f6082009-03-25 00:52:11 +000021998
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021999 case $ac_mode in
22000 :F)
22001 #
22002 # CONFIG_FILE
22003 #
Dan Gohman324f6082009-03-25 00:52:11 +000022004
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022005 case $INSTALL in
22006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22008 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022009_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022010
22011cat >>$CONFIG_STATUS <<\_ACEOF
22012# If the template does not know about datarootdir, expand it.
22013# FIXME: This hack should be removed a few years after 2.60.
22014ac_datarootdir_hack=; ac_datarootdir_seen=
22015
22016case `sed -n '/datarootdir/ {
22017 p
22018 q
22019}
22020/@datadir@/p
22021/@docdir@/p
22022/@infodir@/p
22023/@localedir@/p
22024/@mandir@/p
22025' $ac_file_inputs` in
22026*datarootdir*) ac_datarootdir_seen=yes;;
22027*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22030_ACEOF
22031cat >>$CONFIG_STATUS <<_ACEOF
22032 ac_datarootdir_hack='
22033 s&@datadir@&$datadir&g
22034 s&@docdir@&$docdir&g
22035 s&@infodir@&$infodir&g
22036 s&@localedir@&$localedir&g
22037 s&@mandir@&$mandir&g
22038 s&\\\${datarootdir}&$datarootdir&g' ;;
22039esac
22040_ACEOF
22041
22042# Neutralize VPATH when `$srcdir' = `.'.
22043# Shell code in configure.ac might set extrasub.
22044# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022045cat >>$CONFIG_STATUS <<_ACEOF
22046 sed "$ac_vpsub
22047$extrasub
22048_ACEOF
22049cat >>$CONFIG_STATUS <<\_ACEOF
22050:t
22051/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022052s&@configure_input@&$configure_input&;t t
22053s&@top_builddir@&$ac_top_builddir_sub&;t t
22054s&@srcdir@&$ac_srcdir&;t t
22055s&@abs_srcdir@&$ac_abs_srcdir&;t t
22056s&@top_srcdir@&$ac_top_srcdir&;t t
22057s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22058s&@builddir@&$ac_builddir&;t t
22059s&@abs_builddir@&$ac_abs_builddir&;t t
22060s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022061s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022062$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022063" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022064
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022065test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22068 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22069which seems to be undefined. Please make sure it is defined." >&5
22070echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22071which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022072
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022073 rm -f "$tmp/stdin"
22074 case $ac_file in
22075 -) cat "$tmp/out"; rm -f "$tmp/out";;
22076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022077 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022078 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022080
22081 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22082echo "$as_me: executing $ac_file commands" >&6;}
22083 ;;
22084 esac
22085
22086
22087 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022088 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22089 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22090 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22091 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22092 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22093 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22094 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22095 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22096 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22097 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022098
22099 esac
22100done # for ac_tag
22101
John Criswell451f67f2003-10-16 01:45:35 +000022102
22103{ (exit 0); exit 0; }
22104_ACEOF
22105chmod +x $CONFIG_STATUS
22106ac_clean_files=$ac_clean_files_save
22107
22108
22109# configure is writing to config.log, and then calls config.status.
22110# config.status does its own redirection, appending to config.log.
22111# Unfortunately, on DOS this fails, as config.log is still kept open
22112# by configure, so config.status won't be able to write to it; its
22113# output is simply discarded. So we exec the FD to /dev/null,
22114# effectively closing config.log, so it can be properly (re)opened and
22115# appended to by config.status. When coming back to configure, we
22116# need to make the FD available again.
22117if test "$no_create" != yes; then
22118 ac_cs_success=:
22119 ac_config_status_args=
22120 test "$silent" = yes &&
22121 ac_config_status_args="$ac_config_status_args --quiet"
22122 exec 5>/dev/null
22123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22124 exec 5>>config.log
22125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22126 # would make configure fail if this is the last instruction.
22127 $ac_cs_success || { (exit 1); exit 1; }
22128fi
22129
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022130#
22131# CONFIG_SUBDIRS section.
22132#
22133if test "$no_recursion" != yes; then
22134
22135 # Remove --cache-file and --srcdir arguments so they do not pile up.
22136 ac_sub_configure_args=
22137 ac_prev=
22138 eval "set x $ac_configure_args"
22139 shift
22140 for ac_arg
22141 do
22142 if test -n "$ac_prev"; then
22143 ac_prev=
22144 continue
22145 fi
22146 case $ac_arg in
22147 -cache-file | --cache-file | --cache-fil | --cache-fi \
22148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22149 ac_prev=cache_file ;;
22150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22152 | --c=*)
22153 ;;
22154 --config-cache | -C)
22155 ;;
22156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22157 ac_prev=srcdir ;;
22158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22159 ;;
22160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22161 ac_prev=prefix ;;
22162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22163 ;;
22164 *)
22165 case $ac_arg in
22166 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22167 esac
22168 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22169 esac
22170 done
22171
22172 # Always prepend --prefix to ensure using the same prefix
22173 # in subdir configurations.
22174 ac_arg="--prefix=$prefix"
22175 case $ac_arg in
22176 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22177 esac
22178 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22179
22180 ac_popdir=`pwd`
22181 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22182
22183 # Do not complain, so a configure script can configure whichever
22184 # parts of a large source tree are present.
22185 test -d "$srcdir/$ac_dir" || continue
22186
22187 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22188 echo "$as_me:$LINENO: $ac_msg" >&5
22189 echo "$ac_msg" >&6
22190 { as_dir="$ac_dir"
22191 case $as_dir in #(
22192 -*) as_dir=./$as_dir;;
22193 esac
22194 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22195 as_dirs=
22196 while :; do
22197 case $as_dir in #(
22198 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22199 *) as_qdir=$as_dir;;
22200 esac
22201 as_dirs="'$as_qdir' $as_dirs"
22202 as_dir=`$as_dirname -- "$as_dir" ||
22203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22204 X"$as_dir" : 'X\(//\)[^/]' \| \
22205 X"$as_dir" : 'X\(//\)$' \| \
22206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22207echo X"$as_dir" |
22208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\/\)[^/].*/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\/\)$/{
22217 s//\1/
22218 q
22219 }
22220 /^X\(\/\).*/{
22221 s//\1/
22222 q
22223 }
22224 s/.*/./; q'`
22225 test -d "$as_dir" && break
22226 done
22227 test -z "$as_dirs" || eval "mkdir $as_dirs"
22228 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22229echo "$as_me: error: cannot create directory $as_dir" >&2;}
22230 { (exit 1); exit 1; }; }; }
22231 ac_builddir=.
22232
22233case "$ac_dir" in
22234.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235*)
22236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22237 # A ".." for each directory in $ac_dir_suffix.
22238 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22239 case $ac_top_builddir_sub in
22240 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22241 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22242 esac ;;
22243esac
22244ac_abs_top_builddir=$ac_pwd
22245ac_abs_builddir=$ac_pwd$ac_dir_suffix
22246# for backward compatibility:
22247ac_top_builddir=$ac_top_build_prefix
22248
22249case $srcdir in
22250 .) # We are building in place.
22251 ac_srcdir=.
22252 ac_top_srcdir=$ac_top_builddir_sub
22253 ac_abs_top_srcdir=$ac_pwd ;;
22254 [\\/]* | ?:[\\/]* ) # Absolute name.
22255 ac_srcdir=$srcdir$ac_dir_suffix;
22256 ac_top_srcdir=$srcdir
22257 ac_abs_top_srcdir=$srcdir ;;
22258 *) # Relative name.
22259 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22260 ac_top_srcdir=$ac_top_build_prefix$srcdir
22261 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22262esac
22263ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22264
22265
22266 cd "$ac_dir"
22267
22268 # Check for guested configure; otherwise get Cygnus style configure.
22269 if test -f "$ac_srcdir/configure.gnu"; then
22270 ac_sub_configure=$ac_srcdir/configure.gnu
22271 elif test -f "$ac_srcdir/configure"; then
22272 ac_sub_configure=$ac_srcdir/configure
22273 elif test -f "$ac_srcdir/configure.in"; then
22274 # This should be Cygnus configure.
22275 ac_sub_configure=$ac_aux_dir/configure
22276 else
22277 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22278echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22279 ac_sub_configure=
22280 fi
22281
22282 # The recursion is here.
22283 if test -n "$ac_sub_configure"; then
22284 # Make the cache file name correct relative to the subdirectory.
22285 case $cache_file in
22286 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22287 *) # Relative name.
22288 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22289 esac
22290
22291 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22292echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22293 # The eval makes quoting arguments work.
22294 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22295 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22296 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22297echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22298 { (exit 1); exit 1; }; }
22299 fi
22300
22301 cd "$ac_popdir"
22302 done
22303fi
22304