blob: cc9fbfedf0a890e66da28370433f8c19cccab959 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
770SHLIBEXT
771SHLIBPATH_VAR
772LLVM_PREFIX
773LLVM_BINDIR
774LLVM_LIBDIR
775LLVM_DATADIR
776LLVM_DOCSDIR
777LLVM_ETCDIR
778LLVM_INCLUDEDIR
779LLVM_INFODIR
780LLVM_MANDIR
781LLVM_CONFIGTIME
782BINDINGS_TO_BUILD
783ALL_BINDINGS
784OCAML_LIBDIR
785ENABLE_VISIBILITY_INLINES_HIDDEN
786RPATH
787RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000788LIBOBJS
789LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000790ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000791 ac_precious_vars='build_alias
792host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000793target_alias
794CC
795CFLAGS
796LDFLAGS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
801CPP'
802ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000829# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000838includedir='${prefix}/include'
839oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000849
850ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000851ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000856 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000857 ac_prev=
858 continue
859 fi
860
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000861 case $ac_option in
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *) ac_optarg=yes ;;
864 esac
John Criswell451f67f2003-10-16 01:45:35 +0000865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000892 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000893 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000895 datadir=$ac_optarg ;;
896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
John Criswell451f67f2003-10-16 01:45:35 +0000904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000911 eval enable_$ac_feature=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000922
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000930 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
John Criswell451f67f2003-10-16 01:45:35 +0000963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
John Criswell451f67f2003-10-16 01:45:35 +0000992 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000993 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
John Criswell451f67f2003-10-16 01:45:35 +00001071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001126 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001127 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001128
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001135 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001136 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001167 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1185fi
1186
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001187# Be sure to have absolute directory names.
1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001192do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001193 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001194 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001197 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1216 cross_compiling=yes
1217 fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1234
1235
John Criswell451f67f2003-10-16 01:45:35 +00001236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001241$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001245echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001263 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001264 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001273 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001274fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001278 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
John Criswell451f67f2003-10-16 01:45:35 +00001296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
John Criswell451f67f2003-10-16 01:45:35 +00001324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001326 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001328 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001357_ACEOF
1358
1359 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001360
1361System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371 esac
1372 cat <<\_ACEOF
1373
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001374Optional Features:
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Dan Gohman3e6157d2011-10-25 00:05:42 +00001405 xcore, msp430, ptx, cbe, and cpp
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 (default=all)
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 %a (default is YES)
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1413
John Criswell451f67f2003-10-16 01:45:35 +00001414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001419 --with-optimize-option Select the compiler options to use for optimized
1420 builds
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1424 is stdlib)
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1427 resource files
1428 --with-c-include-dirs Colon separated list of directories clang will
1429 search for headers
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001458
1459Report bugs to <bugs@yourdomain>.
1460_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001461ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001467 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001468 ac_builddir=.
1469
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
John Criswell451f67f2003-10-16 01:45:35 +00001473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001485
1486case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001487 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001492 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001499esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001501
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001510 else
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001514 done
1515fi
1516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001518if $ac_init_version; then
1519 cat <<\_ACEOF
1520[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001521generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001522
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15242002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001528 exit
John Criswell451f67f2003-10-16 01:45:35 +00001529fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001530cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001531This file contains any messages produced by compilers while
1532running configure, to aid debugging if configure makes a mistake.
1533
1534It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001535generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001536
1537 $ $0 $@
1538
1539_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001540exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001541{
1542cat <<_ASUNAME
1543## --------- ##
1544## Platform. ##
1545## --------- ##
1546
1547hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1555
1556/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001559/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001560/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1563
1564_ASUNAME
1565
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1572done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001573IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001574
1575} >&5
1576
1577cat >&5 <<_ACEOF
1578
1579
1580## ----------- ##
1581## Core tests. ##
1582## ----------- ##
1583
1584_ACEOF
1585
1586
1587# Keep a trace of the command line.
1588# Strip out --no-create and --no-recursion so they do not pile up.
1589# Strip out --silent because we don't want to record it for future runs.
1590# Also quote any args containing shell meta-characters.
1591# Make two passes to allow for proper duplicate-argument suppression.
1592ac_configure_args=
1593ac_configure_args0=
1594ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001595ac_must_keep_next=false
1596for ac_pass in 1 2
1597do
1598 for ac_arg
1599 do
1600 case $ac_arg in
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1604 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001605 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 esac
1608 case $ac_pass in
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610 2)
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001613 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001614 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001615 case $ac_arg in
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622 esac
1623 ;;
1624 -* ) ac_must_keep_next=true ;;
1625 esac
John Criswell451f67f2003-10-16 01:45:35 +00001626 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001627 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001628 ;;
1629 esac
1630 done
1631done
1632$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635# When interrupted or exit'd, cleanup temporary files, and complete
1636# config.log. We remove comments because anyway the quotes in there
1637# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001638# WARNING: Use '\'' to represent an apostrophe within the trap.
1639# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001640trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1642 {
1643 echo
1644
1645 cat <<\_ASBOX
1646## ---------------- ##
1647## Cache variables. ##
1648## ---------------- ##
1649_ASBOX
1650 echo
1651 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001652(
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1655 case $ac_val in #(
1656 *${as_nl}*)
1657 case $ac_var in #(
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660 esac
1661 case $ac_var in #(
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1664 esac ;;
1665 esac
1666 done
John Criswell451f67f2003-10-16 01:45:35 +00001667 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001670 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001674 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001676 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001677 esac |
1678 sort
1679)
John Criswell451f67f2003-10-16 01:45:35 +00001680 echo
1681
1682 cat <<\_ASBOX
1683## ----------------- ##
1684## Output variables. ##
1685## ----------------- ##
1686_ASBOX
1687 echo
1688 for ac_var in $ac_subst_vars
1689 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001690 eval ac_val=\$$ac_var
1691 case $ac_val in
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 esac
1694 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001695 done | sort
1696 echo
1697
1698 if test -n "$ac_subst_files"; then
1699 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001700## ------------------- ##
1701## File substitutions. ##
1702## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001703_ASBOX
1704 echo
1705 for ac_var in $ac_subst_files
1706 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001707 eval ac_val=\$$ac_var
1708 case $ac_val in
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 esac
1711 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001712 done | sort
1713 echo
1714 fi
1715
1716 if test -s confdefs.h; then
1717 cat <<\_ASBOX
1718## ----------- ##
1719## confdefs.h. ##
1720## ----------- ##
1721_ASBOX
1722 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001724 echo
1725 fi
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1729 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001732 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001733' 0
John Criswell451f67f2003-10-16 01:45:35 +00001734for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736done
1737ac_signal=0
1738
1739# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001740rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001741
1742# Predefined preprocessor variables.
1743
1744cat >>confdefs.h <<_ACEOF
1745#define PACKAGE_NAME "$PACKAGE_NAME"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751_ACEOF
1752
1753
1754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_VERSION "$PACKAGE_VERSION"
1756_ACEOF
1757
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_STRING "$PACKAGE_STRING"
1761_ACEOF
1762
1763
1764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766_ACEOF
1767
1768
1769# Let the site file select an alternate cache file if it wants to.
1770# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775else
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001778fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001779shift
1780for ac_site_file
1781do
John Criswell451f67f2003-10-16 01:45:35 +00001782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1786 . "$ac_site_file"
1787 fi
1788done
1789
1790if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795echo "$as_me: loading cache $cache_file" >&6;}
1796 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001799 esac
1800 fi
1801else
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803echo "$as_me: creating cache $cache_file" >&6;}
1804 >$cache_file
1805fi
1806
1807# Check that the precious variables saved in the cache have kept the same
1808# value.
1809ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001810for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001815 case $ac_old_set,$ac_new_set in
1816 set,)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,set)
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1824 ,);;
1825 *)
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001830echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001832echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001833 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001834 fi;;
1835 esac
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1838 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001840 *) ac_arg=$ac_var=$ac_new_val ;;
1841 esac
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845 esac
1846 fi
1847done
1848if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1854fi
1855
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
John Criswell451f67f2003-10-16 01:45:35 +00001880ac_ext=c
1881ac_cpp='$CPP $CPPFLAGS'
1882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886
1887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001888LLVM_SRC_ROOT="../.."
1889LLVM_OBJ_ROOT="../.."
1890
1891LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001893
1894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001895# Check whether --with-llvmsrc was given.
1896if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1898else
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1900fi
1901
1902 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001903
1904
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001905# Check whether --with-llvmobj was given.
1906if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1908else
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910fi
Dan Gohman324f6082009-03-25 00:52:11 +00001911
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001912 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001913
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001914 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001915
1916
1917
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001918{ echo "$as_me:$LINENO: checking llvm-config" >&5
1919echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1923fi
1924{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925echo "${ECHO_T}$llvm_config_path" >&6; }
1926
1927{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1928echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1931else
1932 llvm_package_version="unknown";
1933fi
1934{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935echo "${ECHO_T}$llvm_package_version" >&6; }
1936LLVM_VERSION=$llvm_package_version
1937
1938
1939
1940
John Criswell451f67f2003-10-16 01:45:35 +00001941ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001942for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001951 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001960 { (exit 1); exit 1; }; }
1961fi
John Criswell451f67f2003-10-16 01:45:35 +00001962
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001970
1971
1972
1973
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1981 do
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005IFS=$as_save_IFS
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6; }
2013else
2014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
2016fi
2017
2018
2019 test -n "$CC" && break
2020 done
2021fi
2022if test -z "$CC"; then
2023 ac_ct_CC=$CC
2024 for ac_prog in clang llvm-gcc gcc
2025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
2028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049IFS=$as_save_IFS
2050
2051fi
2052fi
2053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6; }
2057else
2058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
2060fi
2061
2062
2063 test -n "$ac_ct_CC" && break
2064done
2065
2066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
2071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO: checking for C compiler version" >&5
2092ac_compiler=`set X $ac_compile; echo $2`
2093{ (ac_try="$ac_compiler --version >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -v >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113{ (ac_try="$ac_compiler -V >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123
2124cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139ac_clean_files_save=$ac_clean_files
2140ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141# Try to create an executable without -o first, disregard a.out.
2142# It will help us diagnose broken compilers, and finding out an intuition
2143# of exeext.
2144{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147#
2148# List of possible output files, starting from the most likely.
2149# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150# only as a last resort. b.out is created by i960 compilers.
2151ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152#
2153# The IRIX 6 linker writes into existing files which may not be
2154# executable, retaining their permissions. Remove them first so a
2155# subsequent execution test works.
2156ac_rmfiles=
2157for ac_file in $ac_files
2158do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163done
2164rm -f $ac_rmfiles
2165
2166if { (ac_try="$ac_link_default"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178# in a Makefile. We should not override ac_cv_exeext if it was cached,
2179# so that the user can short-circuit this test for compilers unknown to
2180# Autoconf.
2181for ac_file in $ac_files
2182do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186 ;;
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
2201 break;;
2202 * )
2203 break;;
2204 esac
2205done
2206test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220{ echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6; }
2222
2223# Check that the compiler produces executables we can run. If not, either
2224# the compiler is broken, or we cross compile.
2225{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 cross_compiling=no
2241 else
2242 if test "$cross_compiling" = maybe; then
2243 cross_compiling=yes
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2252 fi
2253 fi
2254fi
2255{ echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259ac_clean_files=$ac_clean_files_save
2260# Check that the compiler produces executables we can run. If not, either
2261# the compiler is broken, or we cross compile.
2262{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269if { (ac_try="$ac_link"
2270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
2283for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 break;;
2289 * ) break;;
2290 esac
2291done
2292else
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318
2319int
2320main ()
2321{
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (ac_try="$ac_compile"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2340 case $ac_file in
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 break;;
2344 esac
2345done
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2355fi
2356
2357rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358fi
2359{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360echo "${ECHO_T}$ac_cv_objext" >&6; }
2361OBJEXT=$ac_cv_objext
2362ac_objext=$OBJEXT
2363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375int
2376main ()
2377{
2378#ifndef __GNUC__
2379 choke me
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_compiler_gnu=yes
2421else
2422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
2426fi
2427
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2444 ac_cv_prog_cc_g=no
2445 CFLAGS="-g"
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452
2453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 ac_cv_prog_cc_g=yes
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 CFLAGS=""
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (ac_try="$ac_compile"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
2551else
2552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2556 CFLAGS="-g"
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cc_g=yes
2607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612fi
2613
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615fi
2616
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2622fi
2623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
2630 else
2631 CFLAGS="-g"
2632 fi
2633else
2634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
2636 else
2637 CFLAGS=
2638 fi
2639fi
2640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 ac_cv_prog_cc_c89=no
2646ac_save_CC=$CC
2647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748fi
2749
2750rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752done
2753rm -f conftest.$ac_ext
2754CC=$ac_save_CC
2755
2756fi
2757# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_c89" in
2759 x)
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6; } ;;
2762 xno)
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764echo "${ECHO_T}unsupported" >&6; } ;;
2765 *)
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769esac
2770
2771
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778ac_ext=cpp
2779ac_cpp='$CXXCPP $CPPFLAGS'
2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2785 CXX=$CCC
2786 else
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2789 do
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CXX=$ac_cv_prog_CXX
2818if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820echo "${ECHO_T}$CXX" >&6; }
2821else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6; }
2824fi
2825
2826
2827 test -n "$CXX" && break
2828 done
2829fi
2830if test -z "$CXX"; then
2831 ac_ct_CXX=$CXX
2832 for ac_prog in clang++ llvm-g++ g++
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865else
2866 { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871 test -n "$ac_ct_CXX" && break
2872done
2873
2874 if test "x$ac_ct_CXX" = x; then
2875 CXX="g++"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&5
2882echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CXX=$ac_ct_CXX
2888 fi
2889fi
2890
2891 fi
2892fi
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895ac_compiler=`set X $ac_compile; echo $2`
2896{ (ac_try="$ac_compiler --version >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -v >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -V >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_compiler_gnu=yes
2985else
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995fi
2996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998GXX=`test $ac_compiler_gnu = yes && echo yes`
2999ac_test_CXXFLAGS=${CXXFLAGS+set}
3000ac_save_CXXFLAGS=$CXXFLAGS
3001{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3008 ac_cv_prog_cxx_g=no
3009 CXXFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060else
3061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186fi
3187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-g -O2"
3194 else
3195 CXXFLAGS="-g"
3196 fi
3197else
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-O2"
3200 else
3201 CXXFLAGS=
3202 fi
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
3250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 else
3267 ac_cpp_err=
3268 fi
3269else
3270 ac_cpp_err=yes
3271fi
3272if test -z "$ac_cpp_err"; then
3273 :
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Broken: fails on valid input.
3279continue
3280fi
3281
3282rm -f conftest.err conftest.$ac_ext
3283
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
3294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3318continue
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
3327
3328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
3333if $ac_preproc_ok; then
3334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
3345{ echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6; }
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
3369if { (ac_try="$ac_cpp conftest.$ac_ext"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
3388else
3389 ac_cpp_err=yes
3390fi
3391if test -z "$ac_cpp_err"; then
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398continue
3399fi
3400
3401rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
3413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432else
3433 ac_cpp_err=yes
3434fi
3435if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3437continue
3438else
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
3446
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 :
3454else
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3460fi
3461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471# Check whether --enable-polly was given.
3472if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3474else
3475 enableval=default
3476fi
3477
3478case "$enableval" in
3479 yes) ENABLE_POLLY=1
3480 ;;
3481 no) ENABLE_POLLY=0
3482 ;;
3483 default) ENABLE_POLLY=1
3484 ;;
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3488esac
3489
3490
3491if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492 LLVM_HAS_POLLY=1
3493
3494 subdirs="$subdirs tools/polly"
3495
3496fi
3497
3498
3499# Make sure we can run config.sub.
3500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3504
3505{ echo "$as_me:$LINENO: checking build system type" >&5
3506echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_build_alias=$build_alias
3511test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3521
3522fi
3523{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524echo "${ECHO_T}$ac_cv_build" >&6; }
3525case $ac_cv_build in
3526*-*-*) ;;
3527*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3530esac
3531build=$ac_cv_build
3532ac_save_IFS=$IFS; IFS='-'
3533set x $ac_cv_build
3534shift
3535build_cpu=$1
3536build_vendor=$2
3537shift; shift
3538# Remember, the first character of IFS is used to create $*,
3539# except with old shells:
3540build_os=$*
3541IFS=$ac_save_IFS
3542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545{ echo "$as_me:$LINENO: checking host system type" >&5
3546echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3552else
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557fi
3558
3559fi
3560{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561echo "${ECHO_T}$ac_cv_host" >&6; }
3562case $ac_cv_host in
3563*-*-*) ;;
3564*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3567esac
3568host=$ac_cv_host
3569ac_save_IFS=$IFS; IFS='-'
3570set x $ac_cv_host
3571shift
3572host_cpu=$1
3573host_vendor=$2
3574shift; shift
3575# Remember, the first character of IFS is used to create $*,
3576# except with old shells:
3577host_os=$*
3578IFS=$ac_save_IFS
3579case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580
3581
3582{ echo "$as_me:$LINENO: checking target system type" >&5
3583echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3589else
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3594fi
3595
3596fi
3597{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598echo "${ECHO_T}$ac_cv_target" >&6; }
3599case $ac_cv_target in
3600*-*-*) ;;
3601*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3604esac
3605target=$ac_cv_target
3606ac_save_IFS=$IFS; IFS='-'
3607set x $ac_cv_target
3608shift
3609target_cpu=$1
3610target_vendor=$2
3611shift; shift
3612# Remember, the first character of IFS is used to create $*,
3613# except with old shells:
3614target_os=$*
3615IFS=$ac_save_IFS
3616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619# The aliases save the names the user supplied, while $host etc.
3620# will get canonicalized.
3621test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3623 NONENONEs,x,x, &&
3624 program_prefix=${target_alias}-
3625
3626{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 case $host in
3632 *-*-aix*)
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3637 *-*-irix*)
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3642 *-*-cygwin*)
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3647 *-*-darwin*)
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3652 *-*-minix*)
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3657 *-*-freebsd*)
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3662 *-*-openbsd*)
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3667 *-*-netbsd*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-dragonfly*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-hpux*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-interix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-linux*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-solaris*)
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-auroraux*)
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-win32*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3707 *-*-mingw*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3712 *-*-haiku*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-unknown-eabi*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-unknown-elf*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3727 *)
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3732esac
3733fi
3734{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 case $target in
3743 *-*-aix*)
3744 llvm_cv_target_os_type="AIX" ;;
3745 *-*-irix*)
3746 llvm_cv_target_os_type="IRIX" ;;
3747 *-*-cygwin*)
3748 llvm_cv_target_os_type="Cygwin" ;;
3749 *-*-darwin*)
3750 llvm_cv_target_os_type="Darwin" ;;
3751 *-*-minix*)
3752 llvm_cv_target_os_type="Minix" ;;
3753 *-*-freebsd*)
3754 llvm_cv_target_os_type="FreeBSD" ;;
3755 *-*-openbsd*)
3756 llvm_cv_target_os_type="OpenBSD" ;;
3757 *-*-netbsd*)
3758 llvm_cv_target_os_type="NetBSD" ;;
3759 *-*-dragonfly*)
3760 llvm_cv_target_os_type="DragonFly" ;;
3761 *-*-hpux*)
3762 llvm_cv_target_os_type="HP-UX" ;;
3763 *-*-interix*)
3764 llvm_cv_target_os_type="Interix" ;;
3765 *-*-linux*)
3766 llvm_cv_target_os_type="Linux" ;;
3767 *-*-solaris*)
3768 llvm_cv_target_os_type="SunOS" ;;
3769 *-*-auroraux*)
3770 llvm_cv_target_os_type="AuroraUX" ;;
3771 *-*-win32*)
3772 llvm_cv_target_os_type="Win32" ;;
3773 *-*-mingw*)
3774 llvm_cv_target_os_type="MingW" ;;
3775 *-*-haiku*)
3776 llvm_cv_target_os_type="Haiku" ;;
3777 *-*-rtems*)
3778 llvm_cv_target_os_type="RTEMS" ;;
3779 *-*-nacl*)
3780 llvm_cv_target_os_type="NativeClient" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_target_os_type="Freestanding" ;;
3783 *)
3784 llvm_cv_target_os_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796OS=$llvm_cv_os_type
3797
3798HOST_OS=$llvm_cv_os_type
3799
3800TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803LINKALL=$llvm_cv_link_all_option
3804
3805NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808case $llvm_cv_platform_type in
3809 Unix)
3810
3811cat >>confdefs.h <<\_ACEOF
3812#define LLVM_ON_UNIX 1
3813_ACEOF
3814
3815 LLVM_ON_UNIX=1
3816
3817 LLVM_ON_WIN32=0
3818
3819 ;;
3820 Win32)
3821
3822cat >>confdefs.h <<\_ACEOF
3823#define LLVM_ON_WIN32 1
3824_ACEOF
3825
3826 LLVM_ON_UNIX=0
3827
3828 LLVM_ON_WIN32=1
3829
3830 ;;
3831esac
3832
3833{ echo "$as_me:$LINENO: checking target architecture" >&5
3834echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 case $target in
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3844 arm*-*) llvm_cv_target_arch="ARM" ;;
3845 mips-*) llvm_cv_target_arch="Mips" ;;
3846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003848 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3849 ptx-*) llvm_cv_target_arch="PTX" ;;
3850 *) llvm_cv_target_arch="Unknown" ;;
3851esac
3852fi
3853{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3854echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3855
3856if test "$llvm_cv_target_arch" = "Unknown" ; then
3857 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3858echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3859fi
3860
3861# Determine the LLVM native architecture for the target
3862case "$llvm_cv_target_arch" in
3863 x86) LLVM_NATIVE_ARCH="X86" ;;
3864 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3865 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3866esac
3867
3868ARCH=$llvm_cv_target_arch
3869
3870
3871
3872
3873{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875if test "${ac_cv_path_GREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 # Extract the first word of "grep ggrep" to use in msg output
3879if test -z "$GREP"; then
3880set dummy grep ggrep; ac_prog_name=$2
3881if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 ac_path_GREP_found=false
3885# Loop through the user's path and test for each of PROGNAME-LIST
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in grep ggrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896 # Check for GNU $ac_path_GREP
3897case `"$ac_path_GREP" --version 2>&1` in
3898*GNU*)
3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3900*)
3901 ac_count=0
3902 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903 while :
3904 do
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 echo 'GREP' >> "conftest.nl"
3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 ac_count=`expr $ac_count + 1`
3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_GREP="$ac_path_GREP"
3915 ac_path_GREP_max=$ac_count
3916 fi
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3919 done
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921esac
3922
3923
3924 $ac_path_GREP_found && break 3
3925 done
3926done
3927
3928done
3929IFS=$as_save_IFS
3930
3931
3932fi
3933
3934GREP="$ac_cv_path_GREP"
3935if test -z "$GREP"; then
3936 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938 { (exit 1); exit 1; }; }
3939fi
3940
3941else
3942 ac_cv_path_GREP=$GREP
3943fi
3944
3945
3946fi
3947{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3950
3951
3952{ echo "$as_me:$LINENO: checking for egrep" >&5
3953echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954if test "${ac_cv_path_EGREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3959 else
3960 # Extract the first word of "egrep" to use in msg output
3961if test -z "$EGREP"; then
3962set dummy egrep; ac_prog_name=$2
3963if test "${ac_cv_path_EGREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 ac_path_EGREP_found=false
3967# Loop through the user's path and test for each of PROGNAME-LIST
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in egrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3977 # Check for GNU ac_path_EGREP and select it if it is found.
3978 # Check for GNU $ac_path_EGREP
3979case `"$ac_path_EGREP" --version 2>&1` in
3980*GNU*)
3981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3982*)
3983 ac_count=0
3984 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985 while :
3986 do
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 echo 'EGREP' >> "conftest.nl"
3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 ac_count=`expr $ac_count + 1`
3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_EGREP="$ac_path_EGREP"
3997 ac_path_EGREP_max=$ac_count
3998 fi
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4001 done
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003esac
4004
4005
4006 $ac_path_EGREP_found && break 3
4007 done
4008done
4009
4010done
4011IFS=$as_save_IFS
4012
4013
4014fi
4015
4016EGREP="$ac_cv_path_EGREP"
4017if test -z "$EGREP"; then
4018 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020 { (exit 1); exit 1; }; }
4021fi
4022
4023else
4024 ac_cv_path_EGREP=$EGREP
4025fi
4026
4027
4028 fi
4029fi
4030{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032 EGREP="$ac_cv_path_EGREP"
4033
4034
4035{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037if test "${ac_cv_header_stdc+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
4046#include <stdlib.h>
4047#include <stdarg.h>
4048#include <string.h>
4049#include <float.h>
4050
4051int
4052main ()
4053{
4054
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (ac_try="$ac_compile"
4061case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_header_stdc=yes
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 ac_cv_header_stdc=no
4099fi
4100
4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102
4103if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111#include <string.h>
4112
4113_ACEOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "memchr" >/dev/null 2>&1; then
4116 :
4117else
4118 ac_cv_header_stdc=no
4119fi
4120rm -f conftest*
4121
4122fi
4123
4124if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h. */
4132#include <stdlib.h>
4133
4134_ACEOF
4135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "free" >/dev/null 2>&1; then
4137 :
4138else
4139 ac_cv_header_stdc=no
4140fi
4141rm -f conftest*
4142
4143fi
4144
4145if test $ac_cv_header_stdc = yes; then
4146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147 if test "$cross_compiling" = yes; then
4148 :
4149else
4150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <ctype.h>
4157#include <stdlib.h>
4158#if ((' ' & 0x0FF) == 0x020)
4159# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4160# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161#else
4162# define ISLOWER(c) \
4163 (('a' <= (c) && (c) <= 'i') \
4164 || ('j' <= (c) && (c) <= 'r') \
4165 || ('s' <= (c) && (c) <= 'z'))
4166# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4167#endif
4168
4169#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170int
4171main ()
4172{
4173 int i;
4174 for (i = 0; i < 256; i++)
4175 if (XOR (islower (i), ISLOWER (i))
4176 || toupper (i) != TOUPPER (i))
4177 return 2;
4178 return 0;
4179}
4180_ACEOF
4181rm -f conftest$ac_exeext
4182if { (ac_try="$ac_link"
4183case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186esac
4187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_link") 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 :
4202else
4203 echo "$as_me: program exited with status $ac_status" >&5
4204echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207( exit $ac_status )
4208ac_cv_header_stdc=no
4209fi
4210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4211fi
4212
4213
4214fi
4215fi
4216{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4218if test $ac_cv_header_stdc = yes; then
4219
4220cat >>confdefs.h <<\_ACEOF
4221#define STDC_HEADERS 1
4222_ACEOF
4223
4224fi
4225
4226# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4238do
4239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245 cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
4251$ac_includes_default
4252
4253#include <$ac_header>
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (ac_try="$ac_compile"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 eval "$as_ac_Header=yes"
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 eval "$as_ac_Header=no"
4295fi
4296
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298fi
4299ac_res=`eval echo '${'$as_ac_Header'}'`
4300 { echo "$as_me:$LINENO: result: $ac_res" >&5
4301echo "${ECHO_T}$ac_res" >&6; }
4302if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303 cat >>confdefs.h <<_ACEOF
4304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305_ACEOF
4306
4307fi
4308
4309done
4310
4311
4312{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4313echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4314if test "${ac_cv_c_bigendian+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316else
4317 # See if sys/param.h defines the BYTE_ORDER macro.
4318cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h. */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h. */
4324#include <sys/types.h>
4325#include <sys/param.h>
4326
4327int
4328main ()
4329{
4330#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4331 bogus endian macros
4332#endif
4333
4334 ;
4335 return 0;
4336}
4337_ACEOF
4338rm -f conftest.$ac_objext
4339if { (ac_try="$ac_compile"
4340case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343esac
4344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4346 ac_status=$?
4347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 # It does; now see whether it defined to BIG_ENDIAN or not.
4373cat >conftest.$ac_ext <<_ACEOF
4374/* confdefs.h. */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h. */
4379#include <sys/types.h>
4380#include <sys/param.h>
4381
4382int
4383main ()
4384{
4385#if BYTE_ORDER != BIG_ENDIAN
4386 not big endian
4387#endif
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (ac_try="$ac_compile"
4395case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
4399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_c_bigendian=yes
4428else
4429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 ac_cv_c_bigendian=no
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436else
4437 echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 # It does not; compile a test program.
4441if test "$cross_compiling" = yes; then
4442 # try to guess the endianness by grepping values into an object file
4443 ac_cv_c_bigendian=unknown
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4451short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4452void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4453short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4454short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4455void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4456int
4457main ()
4458{
4459 _ascii (); _ebcdic ();
4460 ;
4461 return 0;
4462}
4463_ACEOF
4464rm -f conftest.$ac_objext
4465if { (ac_try="$ac_compile"
4466case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492esac
4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4499 ac_cv_c_bigendian=yes
4500fi
4501if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4502 if test "$ac_cv_c_bigendian" = unknown; then
4503 ac_cv_c_bigendian=no
4504 else
4505 # finding both strings is unlikely to happen, but who knows?
4506 ac_cv_c_bigendian=unknown
4507 fi
4508fi
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513
4514fi
4515
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517else
4518 cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524$ac_includes_default
4525int
4526main ()
4527{
4528
4529 /* Are we little or big endian? From Harbison&Steele. */
4530 union
4531 {
4532 long int l;
4533 char c[sizeof (long int)];
4534 } u;
4535 u.l = 1;
4536 return u.c[sizeof (long int) - 1] == 1;
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
4542rm -f conftest$ac_exeext
4543if { (ac_try="$ac_link"
4544case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547esac
4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_link") 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_c_bigendian=no
4563else
4564 echo "$as_me: program exited with status $ac_status" >&5
4565echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568( exit $ac_status )
4569ac_cv_c_bigendian=yes
4570fi
4571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572fi
4573
4574
4575fi
4576
4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578fi
4579{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4580echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4581case $ac_cv_c_bigendian in
4582 yes)
4583 ENDIAN=big
4584 ;;
4585 no)
4586 ENDIAN=little
4587 ;;
4588 *)
4589 { { echo "$as_me:$LINENO: error: unknown endianness
4590presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4591echo "$as_me: error: unknown endianness
4592presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4593 { (exit 1); exit 1; }; } ;;
4594esac
4595
4596
4597if test "$cross_compiling" = yes; then
4598 LLVM_CROSS_COMPILING=1
4599
4600
4601{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4602echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4603if test "${ac_cv_build_exeext+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4607 ac_cv_build_exeext=.exe
4608else
4609 ac_build_prefix=${build_alias}-
4610
4611 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4612set dummy ${ac_build_prefix}gcc; ac_word=$2
4613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 if test -n "$BUILD_CC"; then
4619 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638BUILD_CC=$ac_cv_prog_BUILD_CC
4639if test -n "$BUILD_CC"; then
4640 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4641echo "${ECHO_T}$BUILD_CC" >&6; }
4642else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648 if test -z "$BUILD_CC"; then
4649 # Extract the first word of "gcc", so it can be a program name with args.
4650set dummy gcc; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 if test -n "$BUILD_CC"; then
4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_BUILD_CC="gcc"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676BUILD_CC=$ac_cv_prog_BUILD_CC
4677if test -n "$BUILD_CC"; then
4678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679echo "${ECHO_T}$BUILD_CC" >&6; }
4680else
4681 { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
4683fi
4684
4685
4686 if test -z "$BUILD_CC"; then
4687 # Extract the first word of "cc", so it can be a program name with args.
4688set dummy cc; ac_word=$2
4689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696else
4697 ac_prog_rejected=no
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706 ac_prog_rejected=yes
4707 continue
4708 fi
4709 ac_cv_prog_BUILD_CC="cc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714done
4715IFS=$as_save_IFS
4716
4717if test $ac_prog_rejected = yes; then
4718 # We found a bogon in the path, so make sure we never use it.
4719 set dummy $ac_cv_prog_BUILD_CC
4720 shift
4721 if test $# != 0; then
4722 # We chose a different compiler from the bogus one.
4723 # However, it has the same basename, so the bogon will be chosen
4724 # first if we set BUILD_CC to just the basename; use the full file name.
4725 shift
4726 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4727 fi
4728fi
4729fi
4730fi
4731BUILD_CC=$ac_cv_prog_BUILD_CC
4732if test -n "$BUILD_CC"; then
4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734echo "${ECHO_T}$BUILD_CC" >&6; }
4735else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6; }
4738fi
4739
4740
4741 fi
4742 fi
4743 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4744echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4745 { (exit 1); exit 1; }; }
4746 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747 rm -f conftest*
4748 echo 'int main () { return 0; }' > conftest.$ac_ext
4749 ac_cv_build_exeext=
4750 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4751 (eval $ac_build_link) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 for file in conftest.*; do
4756 case $file in
4757 *.c | *.o | *.obj | *.dSYM) ;;
4758 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4759 esac
4760 done
4761 else
4762 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4763echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4764 { (exit 1); exit 1; }; }
4765 fi
4766 rm -f conftest*
4767 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4768fi
4769fi
4770
4771BUILD_EXEEXT=""
4772test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4773{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4774echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4775ac_build_exeext=$BUILD_EXEEXT
4776
4777 ac_build_prefix=${build_alias}-
4778 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4779set dummy ${ac_build_prefix}g++; ac_word=$2
4780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785 if test -n "$BUILD_CXX"; then
4786 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4787else
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799done
4800done
4801IFS=$as_save_IFS
4802
4803fi
4804fi
4805BUILD_CXX=$ac_cv_prog_BUILD_CXX
4806if test -n "$BUILD_CXX"; then
4807 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4808echo "${ECHO_T}$BUILD_CXX" >&6; }
4809else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6; }
4812fi
4813
4814
4815 if test -z "$BUILD_CXX"; then
4816 # Extract the first word of "g++", so it can be a program name with args.
4817set dummy g++; ac_word=$2
4818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 if test -n "$BUILD_CXX"; then
4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_BUILD_CXX="g++"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838done
4839IFS=$as_save_IFS
4840
4841fi
4842fi
4843BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844if test -n "$BUILD_CXX"; then
4845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846echo "${ECHO_T}$BUILD_CXX" >&6; }
4847else
4848 { echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6; }
4850fi
4851
4852
4853 if test -z "$BUILD_CXX"; then
4854 # Extract the first word of "c++", so it can be a program name with args.
4855set dummy c++; ac_word=$2
4856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863else
4864 ac_prog_rejected=no
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4873 ac_prog_rejected=yes
4874 continue
4875 fi
4876 ac_cv_prog_BUILD_CXX="c++"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881done
4882IFS=$as_save_IFS
4883
4884if test $ac_prog_rejected = yes; then
4885 # We found a bogon in the path, so make sure we never use it.
4886 set dummy $ac_cv_prog_BUILD_CXX
4887 shift
4888 if test $# != 0; then
4889 # We chose a different compiler from the bogus one.
4890 # However, it has the same basename, so the bogon will be chosen
4891 # first if we set BUILD_CXX to just the basename; use the full file name.
4892 shift
4893 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4894 fi
4895fi
4896fi
4897fi
4898BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899if test -n "$BUILD_CXX"; then
4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901echo "${ECHO_T}$BUILD_CXX" >&6; }
4902else
4903 { echo "$as_me:$LINENO: result: no" >&5
4904echo "${ECHO_T}no" >&6; }
4905fi
4906
4907
4908 fi
4909 fi
4910else
4911 LLVM_CROSS_COMPILING=0
4912
4913fi
4914
4915if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4916 cvsbuild="yes"
4917 optimize="no"
4918 CVSBUILD=CVSBUILD=1
4919
4920else
4921 cvsbuild="no"
4922 optimize="yes"
4923fi
4924
4925
4926# Check whether --enable-optimized was given.
4927if test "${enable_optimized+set}" = set; then
4928 enableval=$enable_optimized;
4929else
4930 enableval=$optimize
4931fi
4932
4933if test ${enableval} = "no" ; then
4934 ENABLE_OPTIMIZED=
4935
4936else
4937 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4938
4939fi
4940
4941# Check whether --enable-profiling was given.
4942if test "${enable_profiling+set}" = set; then
4943 enableval=$enable_profiling;
4944else
4945 enableval="no"
4946fi
4947
4948if test ${enableval} = "no" ; then
4949 ENABLE_PROFILING=
4950
4951else
4952 ENABLE_PROFILING=ENABLE_PROFILING=1
4953
4954fi
4955
4956# Check whether --enable-assertions was given.
4957if test "${enable_assertions+set}" = set; then
4958 enableval=$enable_assertions;
4959else
4960 enableval="yes"
4961fi
4962
4963if test ${enableval} = "yes" ; then
4964 DISABLE_ASSERTIONS=
4965
4966else
4967 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4968
4969fi
4970
4971# Check whether --enable-expensive-checks was given.
4972if test "${enable_expensive_checks+set}" = set; then
4973 enableval=$enable_expensive_checks;
4974else
4975 enableval="no"
4976fi
4977
4978if test ${enableval} = "yes" ; then
4979 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4980
4981 EXPENSIVE_CHECKS=yes
4982
4983else
4984 ENABLE_EXPENSIVE_CHECKS=
4985
4986 EXPENSIVE_CHECKS=no
4987
4988fi
4989
4990# Check whether --enable-debug-runtime was given.
4991if test "${enable_debug_runtime+set}" = set; then
4992 enableval=$enable_debug_runtime;
4993else
4994 enableval=no
4995fi
4996
4997if test ${enableval} = "no" ; then
4998 DEBUG_RUNTIME=
4999
5000else
5001 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5002
5003fi
5004
5005# Check whether --enable-debug-symbols was given.
5006if test "${enable_debug_symbols+set}" = set; then
5007 enableval=$enable_debug_symbols;
5008else
5009 enableval=no
5010fi
5011
5012if test ${enableval} = "no" ; then
5013 DEBUG_SYMBOLS=
5014
5015else
5016 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5017
5018fi
5019
5020# Check whether --enable-jit was given.
5021if test "${enable_jit+set}" = set; then
5022 enableval=$enable_jit;
5023else
5024 enableval=default
5025fi
5026
5027if test ${enableval} = "no"
5028then
5029 JIT=
5030
5031else
5032 case "$llvm_cv_target_arch" in
5033 x86) TARGET_HAS_JIT=1
5034 ;;
5035 Sparc) TARGET_HAS_JIT=0
5036 ;;
5037 PowerPC) TARGET_HAS_JIT=1
5038 ;;
5039 x86_64) TARGET_HAS_JIT=1
5040 ;;
5041 Alpha) TARGET_HAS_JIT=0
5042 ;;
5043 ARM) TARGET_HAS_JIT=1
5044 ;;
5045 Mips) TARGET_HAS_JIT=1
5046 ;;
5047 XCore) TARGET_HAS_JIT=0
5048 ;;
5049 MSP430) TARGET_HAS_JIT=0
5050 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005051 MBlaze) TARGET_HAS_JIT=0
5052 ;;
5053 PTX) TARGET_HAS_JIT=0
5054 ;;
5055 *) TARGET_HAS_JIT=0
5056 ;;
5057 esac
5058fi
5059
5060# Check whether --enable-docs was given.
5061if test "${enable_docs+set}" = set; then
5062 enableval=$enable_docs;
5063else
5064 enableval=default
5065fi
5066
5067case "$enableval" in
5068 yes) ENABLE_DOCS=1
5069 ;;
5070 no) ENABLE_DOCS=0
5071 ;;
5072 default) ENABLE_DOCS=1
5073 ;;
5074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5075echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5076 { (exit 1); exit 1; }; } ;;
5077esac
5078
5079# Check whether --enable-doxygen was given.
5080if test "${enable_doxygen+set}" = set; then
5081 enableval=$enable_doxygen;
5082else
5083 enableval=default
5084fi
5085
5086case "$enableval" in
5087 yes) ENABLE_DOXYGEN=1
5088 ;;
5089 no) ENABLE_DOXYGEN=0
5090 ;;
5091 default) ENABLE_DOXYGEN=0
5092 ;;
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5094echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5096esac
5097
5098# Check whether --enable-threads was given.
5099if test "${enable_threads+set}" = set; then
5100 enableval=$enable_threads;
5101else
5102 enableval=default
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_THREADS=1
5107 ;;
5108 no) ENABLE_THREADS=0
5109 ;;
5110 default) ENABLE_THREADS=1
5111 ;;
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115esac
5116
5117cat >>confdefs.h <<_ACEOF
5118#define ENABLE_THREADS $ENABLE_THREADS
5119_ACEOF
5120
5121
5122# Check whether --enable-pthreads was given.
5123if test "${enable_pthreads+set}" = set; then
5124 enableval=$enable_pthreads;
5125else
5126 enableval=default
5127fi
5128
5129case "$enableval" in
5130 yes) ENABLE_PTHREADS=1
5131 ;;
5132 no) ENABLE_PTHREADS=0
5133 ;;
5134 default) ENABLE_PTHREADS=1
5135 ;;
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5137echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139esac
5140
5141# Check whether --enable-pic was given.
5142if test "${enable_pic+set}" = set; then
5143 enableval=$enable_pic;
5144else
5145 enableval=default
5146fi
5147
5148case "$enableval" in
5149 yes) ENABLE_PIC=1
5150 ;;
5151 no) ENABLE_PIC=0
5152 ;;
5153 default) ENABLE_PIC=1
5154 ;;
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5156echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5158esac
5159
5160cat >>confdefs.h <<_ACEOF
5161#define ENABLE_PIC $ENABLE_PIC
5162_ACEOF
5163
5164
5165# Check whether --enable-shared was given.
5166if test "${enable_shared+set}" = set; then
5167 enableval=$enable_shared;
5168else
5169 enableval=default
5170fi
5171
5172case "$enableval" in
5173 yes) ENABLE_SHARED=1
5174 ;;
5175 no) ENABLE_SHARED=0
5176 ;;
5177 default) ENABLE_SHARED=0
5178 ;;
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5180echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5182esac
5183
5184# Check whether --enable-embed-stdcxx was given.
5185if test "${enable_embed_stdcxx+set}" = set; then
5186 enableval=$enable_embed_stdcxx;
5187else
5188 enableval=default
5189fi
5190
5191case "$enableval" in
5192 yes) ENABLE_EMBED_STDCXX=1
5193 ;;
5194 no) ENABLE_EMBED_STDCXX=0
5195 ;;
5196 default) ENABLE_EMBED_STDCXX=1
5197 ;;
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5199echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5201esac
5202
5203# Check whether --enable-timestamps was given.
5204if test "${enable_timestamps+set}" = set; then
5205 enableval=$enable_timestamps;
5206else
5207 enableval=default
5208fi
5209
5210case "$enableval" in
5211 yes) ENABLE_TIMESTAMPS=1
5212 ;;
5213 no) ENABLE_TIMESTAMPS=0
5214 ;;
5215 default) ENABLE_TIMESTAMPS=1
5216 ;;
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5218echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5220esac
5221
5222cat >>confdefs.h <<_ACEOF
5223#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5224_ACEOF
5225
5226
5227TARGETS_TO_BUILD=""
5228# Check whether --enable-targets was given.
5229if test "${enable_targets+set}" = set; then
5230 enableval=$enable_targets;
5231else
5232 enableval=all
5233fi
5234
5235if test "$enableval" = host-only ; then
5236 enableval=host
5237fi
5238case "$enableval" in
Dan Gohman3e6157d2011-10-25 00:05:42 +00005239 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005240 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 case "$a_target" in
5242 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5244 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5245 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5246 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5247 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5248 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5249 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5250 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5251 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005252 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5253 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5254 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5255 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5256 host) case "$llvm_cv_target_arch" in
5257 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5259 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5260 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5261 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5262 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5263 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5264 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5265 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5266 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5267 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005268 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5269 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5270echo "$as_me: error: Can not set target to build" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5272 esac ;;
5273 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5274echo "$as_me: error: Unrecognized target $a_target" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5276 esac
5277 done
5278 ;;
5279esac
5280TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5281
5282
5283# Determine whether we are building LLVM support for the native architecture.
5284# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5285for a_target in $TARGETS_TO_BUILD; do
5286 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5287
5288cat >>confdefs.h <<_ACEOF
5289#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5290_ACEOF
5291
5292 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5293 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5294 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5295 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5296 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5297 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5298 fi
5299
5300cat >>confdefs.h <<_ACEOF
5301#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5302_ACEOF
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5307_ACEOF
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5312_ACEOF
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5317_ACEOF
5318
5319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320
5321cat >>confdefs.h <<_ACEOF
5322#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5323_ACEOF
5324
5325 fi
5326 fi
5327done
5328
5329# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5330# target feature def files.
5331LLVM_ENUM_TARGETS=""
5332LLVM_ENUM_ASM_PRINTERS=""
5333LLVM_ENUM_ASM_PARSERS=""
5334LLVM_ENUM_DISASSEMBLERS=""
5335for target_to_build in $TARGETS_TO_BUILD; do
5336 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5337 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5338 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5339 fi
5340 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5341 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5342 fi
5343 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5344 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5345 fi
5346done
5347
5348
5349
5350
5351
5352# Check whether --enable-cbe-printf-a was given.
5353if test "${enable_cbe_printf_a+set}" = set; then
5354 enableval=$enable_cbe_printf_a;
5355else
5356 enableval=default
5357fi
5358
5359case "$enableval" in
5360 yes) ENABLE_CBE_PRINTF_A=1
5361 ;;
5362 no) ENABLE_CBE_PRINTF_A=0
5363 ;;
5364 default) ENABLE_CBE_PRINTF_A=1
5365 ;;
5366 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5367echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5369esac
5370
5371cat >>confdefs.h <<_ACEOF
5372#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5373_ACEOF
5374
5375
5376
5377# Check whether --with-optimize-option was given.
5378if test "${with_optimize_option+set}" = set; then
5379 withval=$with_optimize_option;
5380else
5381 withval=default
5382fi
5383
5384{ echo "$as_me:$LINENO: checking optimization flags" >&5
5385echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5386case "$withval" in
5387 default)
5388 case "$llvm_cv_os_type" in
5389 FreeBSD) optimize_option=-O2 ;;
5390 MingW) optimize_option=-O2 ;;
5391 *) optimize_option=-O3 ;;
5392 esac ;;
5393 *) optimize_option="$withval" ;;
5394esac
5395OPTIMIZE_OPTION=$optimize_option
5396
5397{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5398echo "${ECHO_T}$optimize_option" >&6; }
5399
5400
5401# Check whether --with-extra-options was given.
5402if test "${with_extra_options+set}" = set; then
5403 withval=$with_extra_options;
5404else
5405 withval=default
5406fi
5407
5408case "$withval" in
5409 default) EXTRA_OPTIONS= ;;
5410 *) EXTRA_OPTIONS=$withval ;;
5411esac
5412EXTRA_OPTIONS=$EXTRA_OPTIONS
5413
5414
5415
5416# Check whether --with-extra-ld-options was given.
5417if test "${with_extra_ld_options+set}" = set; then
5418 withval=$with_extra_ld_options;
5419else
5420 withval=default
5421fi
5422
5423case "$withval" in
5424 default) EXTRA_LD_OPTIONS= ;;
5425 *) EXTRA_LD_OPTIONS=$withval ;;
5426esac
5427EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5428
5429
5430# Check whether --enable-bindings was given.
5431if test "${enable_bindings+set}" = set; then
5432 enableval=$enable_bindings;
5433else
5434 enableval=default
5435fi
5436
5437BINDINGS_TO_BUILD=""
5438case "$enableval" in
5439 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5440 all ) BINDINGS_TO_BUILD="ocaml" ;;
5441 none | no) BINDINGS_TO_BUILD="" ;;
5442 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5443 case "$a_binding" in
5444 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5445 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5446echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5447 { (exit 1); exit 1; }; } ;;
5448 esac
5449 done
5450 ;;
5451esac
5452
5453
5454# Check whether --with-ocaml-libdir was given.
5455if test "${with_ocaml_libdir+set}" = set; then
5456 withval=$with_ocaml_libdir;
5457else
5458 withval=auto
5459fi
5460
5461case "$withval" in
5462 auto) with_ocaml_libdir="$withval" ;;
5463 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5464 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5465echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5466 { (exit 1); exit 1; }; } ;;
5467esac
5468
5469
5470# Check whether --with-clang-resource-dir was given.
5471if test "${with_clang_resource_dir+set}" = set; then
5472 withval=$with_clang_resource_dir;
5473else
5474 withval=""
5475fi
5476
5477
5478cat >>confdefs.h <<_ACEOF
5479#define CLANG_RESOURCE_DIR "$withval"
5480_ACEOF
5481
5482
5483
5484# Check whether --with-c-include-dirs was given.
5485if test "${with_c_include_dirs+set}" = set; then
5486 withval=$with_c_include_dirs;
5487else
5488 withval=""
5489fi
5490
5491
5492cat >>confdefs.h <<_ACEOF
5493#define C_INCLUDE_DIRS "$withval"
5494_ACEOF
5495
5496
5497
5498# Check whether --with-cxx-include-root was given.
5499if test "${with_cxx_include_root+set}" = set; then
5500 withval=$with_cxx_include_root;
5501else
5502 withval=""
5503fi
5504
5505
5506cat >>confdefs.h <<_ACEOF
5507#define CXX_INCLUDE_ROOT "$withval"
5508_ACEOF
5509
5510
5511
5512# Check whether --with-cxx-include-arch was given.
5513if test "${with_cxx_include_arch+set}" = set; then
5514 withval=$with_cxx_include_arch;
5515else
5516 withval=""
5517fi
5518
5519
5520cat >>confdefs.h <<_ACEOF
5521#define CXX_INCLUDE_ARCH "$withval"
5522_ACEOF
5523
5524
5525
5526# Check whether --with-cxx-include-32bit-dir was given.
5527if test "${with_cxx_include_32bit_dir+set}" = set; then
5528 withval=$with_cxx_include_32bit_dir;
5529else
5530 withval=""
5531fi
5532
5533
5534cat >>confdefs.h <<_ACEOF
5535#define CXX_INCLUDE_32BIT_DIR "$withval"
5536_ACEOF
5537
5538
5539
5540# Check whether --with-cxx-include-64bit-dir was given.
5541if test "${with_cxx_include_64bit_dir+set}" = set; then
5542 withval=$with_cxx_include_64bit_dir;
5543else
5544 withval=""
5545fi
5546
5547
5548cat >>confdefs.h <<_ACEOF
5549#define CXX_INCLUDE_64BIT_DIR "$withval"
5550_ACEOF
5551
5552
5553
5554# Check whether --with-binutils-include was given.
5555if test "${with_binutils_include+set}" = set; then
5556 withval=$with_binutils_include;
5557else
5558 withval=default
5559fi
5560
5561case "$withval" in
5562 default) WITH_BINUTILS_INCDIR=default ;;
5563 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5564 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5565echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5566 { (exit 1); exit 1; }; } ;;
5567esac
5568if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5569 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5570
5571 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5572 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5573 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5574echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5575 { (exit 1); exit 1; }; };
5576 fi
5577fi
5578
5579
5580# Check whether --with-bug-report-url was given.
5581if test "${with_bug_report_url+set}" = set; then
5582 withval=$with_bug_report_url;
5583else
5584 withval="http://llvm.org/bugs/"
5585fi
5586
5587
5588cat >>confdefs.h <<_ACEOF
5589#define BUG_REPORT_URL "$withval"
5590_ACEOF
5591
5592
5593# Check whether --enable-libffi was given.
5594if test "${enable_libffi+set}" = set; then
5595 enableval=$enable_libffi; case "$enableval" in
5596 yes) llvm_cv_enable_libffi="yes" ;;
5597 no) llvm_cv_enable_libffi="no" ;;
5598 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5599echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5600 { (exit 1); exit 1; }; } ;;
5601 esac
5602else
5603 llvm_cv_enable_libffi=no
5604fi
5605
5606
5607
5608{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5609echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5610if test "${lt_cv_path_NM+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613 if test -n "$NM"; then
5614 # Let the user override the test.
5615 lt_cv_path_NM="$NM"
5616else
5617 lt_nm_to_check="${ac_tool_prefix}nm"
5618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5619 lt_nm_to_check="$lt_nm_to_check nm"
5620 fi
5621 for lt_tmp_nm in $lt_nm_to_check; do
5622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5624 IFS="$lt_save_ifs"
5625 test -z "$ac_dir" && ac_dir=.
5626 tmp_nm="$ac_dir/$lt_tmp_nm"
5627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5628 # Check to see if the nm accepts a BSD-compat flag.
5629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5630 # nm: unknown option "B" ignored
5631 # Tru64's nm complains that /dev/null is an invalid object file
5632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5633 */dev/null* | *'Invalid file or object type'*)
5634 lt_cv_path_NM="$tmp_nm -B"
5635 break
5636 ;;
5637 *)
5638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5639 */dev/null*)
5640 lt_cv_path_NM="$tmp_nm -p"
5641 break
5642 ;;
5643 *)
5644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5645 continue # so that we can try to find one that supports BSD flags
5646 ;;
5647 esac
5648 ;;
5649 esac
5650 fi
5651 done
5652 IFS="$lt_save_ifs"
5653 done
5654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5655fi
5656fi
5657{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5658echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5659NM="$lt_cv_path_NM"
5660
5661
5662
5663{ echo "$as_me:$LINENO: checking for GNU make" >&5
5664echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5665if test "${llvm_cv_gnu_make_command+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668 llvm_cv_gnu_make_command=''
5669 for a in "$MAKE" make gmake gnumake ; do
5670 if test -z "$a" ; then continue ; fi ;
5671 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5672 then
5673 llvm_cv_gnu_make_command=$a ;
5674 break;
5675 fi
5676 done
5677fi
5678{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5679echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5681 ifGNUmake='' ;
5682 else
5683 ifGNUmake='#' ;
5684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5685echo "${ECHO_T}\"Not found\"" >&6; };
5686 fi
5687
5688
5689{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5690echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5691LN_S=$as_ln_s
5692if test "$LN_S" = "ln -s"; then
5693 { echo "$as_me:$LINENO: result: yes" >&5
5694echo "${ECHO_T}yes" >&6; }
5695else
5696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5697echo "${ECHO_T}no, using $LN_S" >&6; }
5698fi
5699
5700# Extract the first word of "cmp", so it can be a program name with args.
5701set dummy cmp; ac_word=$2
5702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5704if test "${ac_cv_path_CMP+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707 case $CMP in
5708 [\\/]* | ?:[\\/]*)
5709 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5710 ;;
5711 *)
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723done
5724done
5725IFS=$as_save_IFS
5726
5727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5728 ;;
5729esac
5730fi
5731CMP=$ac_cv_path_CMP
5732if test -n "$CMP"; then
5733 { echo "$as_me:$LINENO: result: $CMP" >&5
5734echo "${ECHO_T}$CMP" >&6; }
5735else
5736 { echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6; }
5738fi
5739
5740
5741# Extract the first word of "cp", so it can be a program name with args.
5742set dummy cp; ac_word=$2
5743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745if test "${ac_cv_path_CP+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748 case $CP in
5749 [\\/]* | ?:[\\/]*)
5750 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5751 ;;
5752 *)
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765done
5766IFS=$as_save_IFS
5767
5768 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5769 ;;
5770esac
5771fi
5772CP=$ac_cv_path_CP
5773if test -n "$CP"; then
5774 { echo "$as_me:$LINENO: result: $CP" >&5
5775echo "${ECHO_T}$CP" >&6; }
5776else
5777 { echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6; }
5779fi
5780
5781
5782# Extract the first word of "date", so it can be a program name with args.
5783set dummy date; ac_word=$2
5784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5786if test "${ac_cv_path_DATE+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789 case $DATE in
5790 [\\/]* | ?:[\\/]*)
5791 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5792 ;;
5793 *)
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806done
5807IFS=$as_save_IFS
5808
5809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5810 ;;
5811esac
5812fi
5813DATE=$ac_cv_path_DATE
5814if test -n "$DATE"; then
5815 { echo "$as_me:$LINENO: result: $DATE" >&5
5816echo "${ECHO_T}$DATE" >&6; }
5817else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6; }
5820fi
5821
5822
5823# Extract the first word of "find", so it can be a program name with args.
5824set dummy find; ac_word=$2
5825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827if test "${ac_cv_path_FIND+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 case $FIND in
5831 [\\/]* | ?:[\\/]*)
5832 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5833 ;;
5834 *)
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846done
5847done
5848IFS=$as_save_IFS
5849
5850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5851 ;;
5852esac
5853fi
5854FIND=$ac_cv_path_FIND
5855if test -n "$FIND"; then
5856 { echo "$as_me:$LINENO: result: $FIND" >&5
5857echo "${ECHO_T}$FIND" >&6; }
5858else
5859 { echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6; }
5861fi
5862
5863
5864# Extract the first word of "grep", so it can be a program name with args.
5865set dummy grep; ac_word=$2
5866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868if test "${ac_cv_path_GREP+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 case $GREP in
5872 [\\/]* | ?:[\\/]*)
5873 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5874 ;;
5875 *)
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888done
5889IFS=$as_save_IFS
5890
5891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5892 ;;
5893esac
5894fi
5895GREP=$ac_cv_path_GREP
5896if test -n "$GREP"; then
5897 { echo "$as_me:$LINENO: result: $GREP" >&5
5898echo "${ECHO_T}$GREP" >&6; }
5899else
5900 { echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6; }
5902fi
5903
5904
5905# Extract the first word of "mkdir", so it can be a program name with args.
5906set dummy mkdir; ac_word=$2
5907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909if test "${ac_cv_path_MKDIR+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 case $MKDIR in
5913 [\\/]* | ?:[\\/]*)
5914 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5915 ;;
5916 *)
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929done
5930IFS=$as_save_IFS
5931
5932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5933 ;;
5934esac
5935fi
5936MKDIR=$ac_cv_path_MKDIR
5937if test -n "$MKDIR"; then
5938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5939echo "${ECHO_T}$MKDIR" >&6; }
5940else
5941 { echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6; }
5943fi
5944
5945
5946# Extract the first word of "mv", so it can be a program name with args.
5947set dummy mv; ac_word=$2
5948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950if test "${ac_cv_path_MV+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953 case $MV in
5954 [\\/]* | ?:[\\/]*)
5955 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5956 ;;
5957 *)
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
5971IFS=$as_save_IFS
5972
5973 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5974 ;;
5975esac
5976fi
5977MV=$ac_cv_path_MV
5978if test -n "$MV"; then
5979 { echo "$as_me:$LINENO: result: $MV" >&5
5980echo "${ECHO_T}$MV" >&6; }
5981else
5982 { echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6; }
5984fi
5985
5986
5987if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992if test "${ac_cv_prog_RANLIB+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 if test -n "$RANLIB"; then
5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015RANLIB=$ac_cv_prog_RANLIB
6016if test -n "$RANLIB"; then
6017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6018echo "${ECHO_T}$RANLIB" >&6; }
6019else
6020 { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
6022fi
6023
6024
6025fi
6026if test -z "$ac_cv_prog_RANLIB"; then
6027 ac_ct_RANLIB=$RANLIB
6028 # Extract the first word of "ranlib", so it can be a program name with args.
6029set dummy ranlib; ac_word=$2
6030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_RANLIB="ranlib"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056if test -n "$ac_ct_RANLIB"; then
6057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6058echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6059else
6060 { echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6; }
6062fi
6063
6064 if test "x$ac_ct_RANLIB" = x; then
6065 RANLIB=":"
6066 else
6067 case $cross_compiling:$ac_tool_warned in
6068yes:)
6069{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6070whose name does not start with the host triplet. If you think this
6071configuration is useful to you, please write to autoconf@gnu.org." >&5
6072echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6073whose name does not start with the host triplet. If you think this
6074configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6075ac_tool_warned=yes ;;
6076esac
6077 RANLIB=$ac_ct_RANLIB
6078 fi
6079else
6080 RANLIB="$ac_cv_prog_RANLIB"
6081fi
6082
6083if test -n "$ac_tool_prefix"; then
6084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6085set dummy ${ac_tool_prefix}ar; ac_word=$2
6086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088if test "${ac_cv_prog_AR+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 if test -n "$AR"; then
6092 ac_cv_prog_AR="$AR" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_AR="${ac_tool_prefix}ar"
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111AR=$ac_cv_prog_AR
6112if test -n "$AR"; then
6113 { echo "$as_me:$LINENO: result: $AR" >&5
6114echo "${ECHO_T}$AR" >&6; }
6115else
6116 { echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6; }
6118fi
6119
6120
6121fi
6122if test -z "$ac_cv_prog_AR"; then
6123 ac_ct_AR=$AR
6124 # Extract the first word of "ar", so it can be a program name with args.
6125set dummy ar; ac_word=$2
6126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131 if test -n "$ac_ct_AR"; then
6132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_AR="ar"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152if test -n "$ac_ct_AR"; then
6153 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6154echo "${ECHO_T}$ac_ct_AR" >&6; }
6155else
6156 { echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6; }
6158fi
6159
6160 if test "x$ac_ct_AR" = x; then
6161 AR="false"
6162 else
6163 case $cross_compiling:$ac_tool_warned in
6164yes:)
6165{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6166whose name does not start with the host triplet. If you think this
6167configuration is useful to you, please write to autoconf@gnu.org." >&5
6168echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6169whose name does not start with the host triplet. If you think this
6170configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 AR=$ac_ct_AR
6174 fi
6175else
6176 AR="$ac_cv_prog_AR"
6177fi
6178
6179# Extract the first word of "rm", so it can be a program name with args.
6180set dummy rm; ac_word=$2
6181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183if test "${ac_cv_path_RM+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 case $RM in
6187 [\\/]* | ?:[\\/]*)
6188 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6189 ;;
6190 *)
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203done
6204IFS=$as_save_IFS
6205
6206 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6207 ;;
6208esac
6209fi
6210RM=$ac_cv_path_RM
6211if test -n "$RM"; then
6212 { echo "$as_me:$LINENO: result: $RM" >&5
6213echo "${ECHO_T}$RM" >&6; }
6214else
6215 { echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6; }
6217fi
6218
6219
6220# Extract the first word of "sed", so it can be a program name with args.
6221set dummy sed; ac_word=$2
6222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224if test "${ac_cv_path_SED+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 case $SED in
6228 [\\/]* | ?:[\\/]*)
6229 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6230 ;;
6231 *)
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245IFS=$as_save_IFS
6246
6247 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6248 ;;
6249esac
6250fi
6251SED=$ac_cv_path_SED
6252if test -n "$SED"; then
6253 { echo "$as_me:$LINENO: result: $SED" >&5
6254echo "${ECHO_T}$SED" >&6; }
6255else
6256 { echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6; }
6258fi
6259
6260
6261# Extract the first word of "tar", so it can be a program name with args.
6262set dummy tar; ac_word=$2
6263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265if test "${ac_cv_path_TAR+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 case $TAR in
6269 [\\/]* | ?:[\\/]*)
6270 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6271 ;;
6272 *)
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284done
6285done
6286IFS=$as_save_IFS
6287
6288 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6289 ;;
6290esac
6291fi
6292TAR=$ac_cv_path_TAR
6293if test -n "$TAR"; then
6294 { echo "$as_me:$LINENO: result: $TAR" >&5
6295echo "${ECHO_T}$TAR" >&6; }
6296else
6297 { echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6; }
6299fi
6300
6301
6302# Extract the first word of "pwd", so it can be a program name with args.
6303set dummy pwd; ac_word=$2
6304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306if test "${ac_cv_path_BINPWD+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309 case $BINPWD in
6310 [\\/]* | ?:[\\/]*)
6311 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6312 ;;
6313 *)
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326done
6327IFS=$as_save_IFS
6328
6329 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6330 ;;
6331esac
6332fi
6333BINPWD=$ac_cv_path_BINPWD
6334if test -n "$BINPWD"; then
6335 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6336echo "${ECHO_T}$BINPWD" >&6; }
6337else
6338 { echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6; }
6340fi
6341
6342
6343
6344# Extract the first word of "Graphviz", so it can be a program name with args.
6345set dummy Graphviz; ac_word=$2
6346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 case $GRAPHVIZ in
6352 [\\/]* | ?:[\\/]*)
6353 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6354 ;;
6355 *)
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367done
6368done
6369IFS=$as_save_IFS
6370
6371 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6372 ;;
6373esac
6374fi
6375GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6376if test -n "$GRAPHVIZ"; then
6377 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6378echo "${ECHO_T}$GRAPHVIZ" >&6; }
6379else
6380 { echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6; }
6382fi
6383
6384
6385if test "$GRAPHVIZ" != "echo Graphviz" ; then
6386
6387cat >>confdefs.h <<\_ACEOF
6388#define HAVE_GRAPHVIZ 1
6389_ACEOF
6390
6391 if test "$llvm_cv_os_type" = "MingW" ; then
6392 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6393 fi
6394
6395cat >>confdefs.h <<_ACEOF
6396#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6397_ACEOF
6398
6399fi
6400# Extract the first word of "dot", so it can be a program name with args.
6401set dummy dot; ac_word=$2
6402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_DOT+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 case $DOT in
6408 [\\/]* | ?:[\\/]*)
6409 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6410 ;;
6411 *)
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423done
6424done
6425IFS=$as_save_IFS
6426
6427 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6428 ;;
6429esac
6430fi
6431DOT=$ac_cv_path_DOT
6432if test -n "$DOT"; then
6433 { echo "$as_me:$LINENO: result: $DOT" >&5
6434echo "${ECHO_T}$DOT" >&6; }
6435else
6436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
6438fi
6439
6440
6441if test "$DOT" != "echo dot" ; then
6442
6443cat >>confdefs.h <<\_ACEOF
6444#define HAVE_DOT 1
6445_ACEOF
6446
6447 if test "$llvm_cv_os_type" = "MingW" ; then
6448 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449 fi
6450
6451cat >>confdefs.h <<_ACEOF
6452#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6453_ACEOF
6454
6455fi
6456# Extract the first word of "fdp", so it can be a program name with args.
6457set dummy fdp; ac_word=$2
6458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_path_FDP+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 case $FDP in
6464 [\\/]* | ?:[\\/]*)
6465 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6466 ;;
6467 *)
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
6481IFS=$as_save_IFS
6482
6483 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6484 ;;
6485esac
6486fi
6487FDP=$ac_cv_path_FDP
6488if test -n "$FDP"; then
6489 { echo "$as_me:$LINENO: result: $FDP" >&5
6490echo "${ECHO_T}$FDP" >&6; }
6491else
6492 { echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6; }
6494fi
6495
6496
6497if test "$FDP" != "echo fdp" ; then
6498
6499cat >>confdefs.h <<\_ACEOF
6500#define HAVE_FDP 1
6501_ACEOF
6502
6503 if test "$llvm_cv_os_type" = "MingW" ; then
6504 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505 fi
6506
6507cat >>confdefs.h <<_ACEOF
6508#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6509_ACEOF
6510
6511fi
6512# Extract the first word of "neato", so it can be a program name with args.
6513set dummy neato; ac_word=$2
6514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516if test "${ac_cv_path_NEATO+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 case $NEATO in
6520 [\\/]* | ?:[\\/]*)
6521 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6522 ;;
6523 *)
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536done
6537IFS=$as_save_IFS
6538
6539 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6540 ;;
6541esac
6542fi
6543NEATO=$ac_cv_path_NEATO
6544if test -n "$NEATO"; then
6545 { echo "$as_me:$LINENO: result: $NEATO" >&5
6546echo "${ECHO_T}$NEATO" >&6; }
6547else
6548 { echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; }
6550fi
6551
6552
6553if test "$NEATO" != "echo neato" ; then
6554
6555cat >>confdefs.h <<\_ACEOF
6556#define HAVE_NEATO 1
6557_ACEOF
6558
6559 if test "$llvm_cv_os_type" = "MingW" ; then
6560 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561 fi
6562
6563cat >>confdefs.h <<_ACEOF
6564#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6565_ACEOF
6566
6567fi
6568# Extract the first word of "twopi", so it can be a program name with args.
6569set dummy twopi; ac_word=$2
6570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572if test "${ac_cv_path_TWOPI+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575 case $TWOPI in
6576 [\\/]* | ?:[\\/]*)
6577 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6578 ;;
6579 *)
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591done
6592done
6593IFS=$as_save_IFS
6594
6595 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6596 ;;
6597esac
6598fi
6599TWOPI=$ac_cv_path_TWOPI
6600if test -n "$TWOPI"; then
6601 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6602echo "${ECHO_T}$TWOPI" >&6; }
6603else
6604 { echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6; }
6606fi
6607
6608
6609if test "$TWOPI" != "echo twopi" ; then
6610
6611cat >>confdefs.h <<\_ACEOF
6612#define HAVE_TWOPI 1
6613_ACEOF
6614
6615 if test "$llvm_cv_os_type" = "MingW" ; then
6616 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617 fi
6618
6619cat >>confdefs.h <<_ACEOF
6620#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6621_ACEOF
6622
6623fi
6624# Extract the first word of "circo", so it can be a program name with args.
6625set dummy circo; ac_word=$2
6626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628if test "${ac_cv_path_CIRCO+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631 case $CIRCO in
6632 [\\/]* | ?:[\\/]*)
6633 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6634 ;;
6635 *)
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647done
6648done
6649IFS=$as_save_IFS
6650
6651 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6652 ;;
6653esac
6654fi
6655CIRCO=$ac_cv_path_CIRCO
6656if test -n "$CIRCO"; then
6657 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6658echo "${ECHO_T}$CIRCO" >&6; }
6659else
6660 { echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6; }
6662fi
6663
6664
6665if test "$CIRCO" != "echo circo" ; then
6666
6667cat >>confdefs.h <<\_ACEOF
6668#define HAVE_CIRCO 1
6669_ACEOF
6670
6671 if test "$llvm_cv_os_type" = "MingW" ; then
6672 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673 fi
6674
6675cat >>confdefs.h <<_ACEOF
6676#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6677_ACEOF
6678
6679fi
6680for ac_prog in gv gsview32
6681do
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683set dummy $ac_prog; ac_word=$2
6684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686if test "${ac_cv_path_GV+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 case $GV in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6692 ;;
6693 *)
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707IFS=$as_save_IFS
6708
6709 ;;
6710esac
6711fi
6712GV=$ac_cv_path_GV
6713if test -n "$GV"; then
6714 { echo "$as_me:$LINENO: result: $GV" >&5
6715echo "${ECHO_T}$GV" >&6; }
6716else
6717 { echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6; }
6719fi
6720
6721
6722 test -n "$GV" && break
6723done
6724test -n "$GV" || GV="echo gv"
6725
6726if test "$GV" != "echo gv" ; then
6727
6728cat >>confdefs.h <<\_ACEOF
6729#define HAVE_GV 1
6730_ACEOF
6731
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734 fi
6735
6736cat >>confdefs.h <<_ACEOF
6737#define LLVM_PATH_GV "$GV${EXEEXT}"
6738_ACEOF
6739
6740fi
6741# Extract the first word of "dotty", so it can be a program name with args.
6742set dummy dotty; ac_word=$2
6743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_DOTTY+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748 case $DOTTY in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764done
6765done
6766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6769 ;;
6770esac
6771fi
6772DOTTY=$ac_cv_path_DOTTY
6773if test -n "$DOTTY"; then
6774 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6775echo "${ECHO_T}$DOTTY" >&6; }
6776else
6777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
6779fi
6780
6781
6782if test "$DOTTY" != "echo dotty" ; then
6783
6784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_DOTTY 1
6786_ACEOF
6787
6788 if test "$llvm_cv_os_type" = "MingW" ; then
6789 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790 fi
6791
6792cat >>confdefs.h <<_ACEOF
6793#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6794_ACEOF
6795
6796fi
6797# Extract the first word of "xdot.py", so it can be a program name with args.
6798set dummy xdot.py; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_path_XDOT_PY+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 case $XDOT_PY in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6825 ;;
6826esac
6827fi
6828XDOT_PY=$ac_cv_path_XDOT_PY
6829if test -n "$XDOT_PY"; then
6830 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6831echo "${ECHO_T}$XDOT_PY" >&6; }
6832else
6833 { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
6835fi
6836
6837
6838if test "$XDOT_PY" != "echo xdot.py" ; then
6839
6840cat >>confdefs.h <<\_ACEOF
6841#define HAVE_XDOT_PY 1
6842_ACEOF
6843
6844 if test "$llvm_cv_os_type" = "MingW" ; then
6845 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846 fi
6847
6848cat >>confdefs.h <<_ACEOF
6849#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6850_ACEOF
6851
6852fi
6853
6854
6855# Extract the first word of "perl", so it can be a program name with args.
6856set dummy perl; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_PERL+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 case $PERL in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6883 ;;
6884esac
6885fi
6886PERL=$ac_cv_path_PERL
6887if test -n "$PERL"; then
6888 { echo "$as_me:$LINENO: result: $PERL" >&5
6889echo "${ECHO_T}$PERL" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896if test "$PERL" != "none"; then
6897 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6898echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6899 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6900 { echo "$as_me:$LINENO: result: yes" >&5
6901echo "${ECHO_T}yes" >&6; }
6902 else
6903 PERL=none
6904 { echo "$as_me:$LINENO: result: not found" >&5
6905echo "${ECHO_T}not found" >&6; }
6906 fi
6907fi
6908
6909
6910if test x"$PERL" = xnone; then
6911 HAVE_PERL=0
6912
6913 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6914echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6915 { (exit 1); exit 1; }; }
6916else
6917 HAVE_PERL=1
6918
6919fi
6920
6921# Find a good install program. We prefer a C program (faster),
6922# so one script is as good as another. But avoid the broken or
6923# incompatible versions:
6924# SysV /etc/install, /usr/sbin/install
6925# SunOS /usr/etc/install
6926# IRIX /sbin/install
6927# AIX /bin/install
6928# AmigaOS /C/install, which installs bootblocks on floppy discs
6929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6932# OS/2's system install, which has a completely different semantic
6933# ./install, which can be erroneously created by make from ./install.sh.
6934{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6935echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6936if test -z "$INSTALL"; then
6937if test "${ac_cv_path_install+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 # Account for people who put trailing slashes in PATH elements.
6946case $as_dir/ in
6947 ./ | .// | /cC/* | \
6948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6950 /usr/ucb/* ) ;;
6951 *)
6952 # OSF1 and SCO ODT 3.0 have their own names for install.
6953 # Don't use installbsd from OSF since it installs stuff as root
6954 # by default.
6955 for ac_prog in ginstall scoinst install; do
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6958 if test $ac_prog = install &&
6959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960 # AIX install. It has an incompatible calling convention.
6961 :
6962 elif test $ac_prog = install &&
6963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6964 # program-specific install script used by HP pwplus--don't use.
6965 :
6966 else
6967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6968 break 3
6969 fi
6970 fi
6971 done
6972 done
6973 ;;
6974esac
6975done
6976IFS=$as_save_IFS
6977
6978
6979fi
6980 if test "${ac_cv_path_install+set}" = set; then
6981 INSTALL=$ac_cv_path_install
6982 else
6983 # As a last resort, use the slow shell script. Don't cache a
6984 # value for INSTALL within a source directory, because that will
6985 # break other packages using the cache if that directory is
6986 # removed, or if the value is a relative name.
6987 INSTALL=$ac_install_sh
6988 fi
6989fi
6990{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6991echo "${ECHO_T}$INSTALL" >&6; }
6992
6993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6994# It thinks the first close brace ends the variable substitution.
6995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6996
6997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6998
6999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7000
7001case "$INSTALL" in
7002 [\\/$]* | ?:[\\/]* ) ;;
7003 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7004esac
7005
7006# Extract the first word of "bzip2", so it can be a program name with args.
7007set dummy bzip2; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_BZIP2+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 case $BZIP2 in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7016 ;;
7017 *)
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033 ;;
7034esac
7035fi
7036BZIP2=$ac_cv_path_BZIP2
7037if test -n "$BZIP2"; then
7038 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7039echo "${ECHO_T}$BZIP2" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "cat", so it can be a program name with args.
7047set dummy cat; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_CAT+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $CAT in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 ;;
7074esac
7075fi
7076CAT=$ac_cv_path_CAT
7077if test -n "$CAT"; then
7078 { echo "$as_me:$LINENO: result: $CAT" >&5
7079echo "${ECHO_T}$CAT" >&6; }
7080else
7081 { echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6; }
7083fi
7084
7085
7086# Extract the first word of "doxygen", so it can be a program name with args.
7087set dummy doxygen; ac_word=$2
7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_path_DOXYGEN+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093 case $DOXYGEN in
7094 [\\/]* | ?:[\\/]*)
7095 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110done
7111IFS=$as_save_IFS
7112
7113 ;;
7114esac
7115fi
7116DOXYGEN=$ac_cv_path_DOXYGEN
7117if test -n "$DOXYGEN"; then
7118 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7119echo "${ECHO_T}$DOXYGEN" >&6; }
7120else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
7123fi
7124
7125
7126# Extract the first word of "groff", so it can be a program name with args.
7127set dummy groff; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_GROFF+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $GROFF in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153 ;;
7154esac
7155fi
7156GROFF=$ac_cv_path_GROFF
7157if test -n "$GROFF"; then
7158 { echo "$as_me:$LINENO: result: $GROFF" >&5
7159echo "${ECHO_T}$GROFF" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166# Extract the first word of "gzip", so it can be a program name with args.
7167set dummy gzip; ac_word=$2
7168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170if test "${ac_cv_path_GZIPBIN+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173 case $GZIPBIN in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191IFS=$as_save_IFS
7192
7193 ;;
7194esac
7195fi
7196GZIPBIN=$ac_cv_path_GZIPBIN
7197if test -n "$GZIPBIN"; then
7198 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7199echo "${ECHO_T}$GZIPBIN" >&6; }
7200else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
7203fi
7204
7205
7206# Extract the first word of "pod2html", so it can be a program name with args.
7207set dummy pod2html; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_POD2HTML+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $POD2HTML in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 ;;
7234esac
7235fi
7236POD2HTML=$ac_cv_path_POD2HTML
7237if test -n "$POD2HTML"; then
7238 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7239echo "${ECHO_T}$POD2HTML" >&6; }
7240else
7241 { echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6; }
7243fi
7244
7245
7246# Extract the first word of "pod2man", so it can be a program name with args.
7247set dummy pod2man; ac_word=$2
7248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250if test "${ac_cv_path_POD2MAN+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253 case $POD2MAN in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7256 ;;
7257 *)
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269done
7270done
7271IFS=$as_save_IFS
7272
7273 ;;
7274esac
7275fi
7276POD2MAN=$ac_cv_path_POD2MAN
7277if test -n "$POD2MAN"; then
7278 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7279echo "${ECHO_T}$POD2MAN" >&6; }
7280else
7281 { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
7283fi
7284
7285
7286# Extract the first word of "pdfroff", so it can be a program name with args.
7287set dummy pdfroff; ac_word=$2
7288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_path_PDFROFF+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 case $PDFROFF in
7294 [\\/]* | ?:[\\/]*)
7295 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7296 ;;
7297 *)
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309done
7310done
7311IFS=$as_save_IFS
7312
7313 ;;
7314esac
7315fi
7316PDFROFF=$ac_cv_path_PDFROFF
7317if test -n "$PDFROFF"; then
7318 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7319echo "${ECHO_T}$PDFROFF" >&6; }
7320else
7321 { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
7323fi
7324
7325
7326# Extract the first word of "runtest", so it can be a program name with args.
7327set dummy runtest; ac_word=$2
7328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_RUNTEST+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 case $RUNTEST in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349done
7350done
7351IFS=$as_save_IFS
7352
7353 ;;
7354esac
7355fi
7356RUNTEST=$ac_cv_path_RUNTEST
7357if test -n "$RUNTEST"; then
7358 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7359echo "${ECHO_T}$RUNTEST" >&6; }
7360else
7361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
7363fi
7364
7365
7366
7367no_itcl=true
7368{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7369echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7370
7371# Check whether --with-tclinclude was given.
7372if test "${with_tclinclude+set}" = set; then
7373 withval=$with_tclinclude; with_tclinclude=${withval}
7374else
7375 with_tclinclude=''
7376fi
7377
7378if test "${ac_cv_path_tclsh+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381
7382if test x"${with_tclinclude}" != x ; then
7383 if test -f ${with_tclinclude}/tclsh ; then
7384 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7385 elif test -f ${with_tclinclude}/src/tclsh ; then
7386 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7387 else
7388 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7389echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7390 { (exit 1); exit 1; }; }
7391 fi
7392fi
7393fi
7394
7395
7396if test x"${ac_cv_path_tclsh}" = x ; then
7397 { echo "$as_me:$LINENO: result: none" >&5
7398echo "${ECHO_T}none" >&6; }
7399 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
7400do
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402set dummy $ac_prog; ac_word=$2
7403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405if test "${ac_cv_path_TCLSH+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 case $TCLSH in
7409 [\\/]* | ?:[\\/]*)
7410 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7411 ;;
7412 *)
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424done
7425done
7426IFS=$as_save_IFS
7427
7428 ;;
7429esac
7430fi
7431TCLSH=$ac_cv_path_TCLSH
7432if test -n "$TCLSH"; then
7433 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7434echo "${ECHO_T}$TCLSH" >&6; }
7435else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
7438fi
7439
7440
7441 test -n "$TCLSH" && break
7442done
7443
7444 if test x"${TCLSH}" = x ; then
7445 ac_cv_path_tclsh='';
7446 else
7447 ac_cv_path_tclsh="${TCLSH}";
7448 fi
7449else
7450 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7451echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7452 TCLSH="${ac_cv_path_tclsh}"
7453
7454fi
7455
7456# Extract the first word of "zip", so it can be a program name with args.
7457set dummy zip; ac_word=$2
7458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460if test "${ac_cv_path_ZIP+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 case $ZIP in
7464 [\\/]* | ?:[\\/]*)
7465 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7466 ;;
7467 *)
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479done
7480done
7481IFS=$as_save_IFS
7482
7483 ;;
7484esac
7485fi
7486ZIP=$ac_cv_path_ZIP
7487if test -n "$ZIP"; then
7488 { echo "$as_me:$LINENO: result: $ZIP" >&5
7489echo "${ECHO_T}$ZIP" >&6; }
7490else
7491 { echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6; }
7493fi
7494
7495
7496for ac_prog in ocamlc
7497do
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499set dummy $ac_prog; ac_word=$2
7500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502if test "${ac_cv_path_OCAMLC+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 case $OCAMLC in
7506 [\\/]* | ?:[\\/]*)
7507 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7508 ;;
7509 *)
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522done
7523IFS=$as_save_IFS
7524
7525 ;;
7526esac
7527fi
7528OCAMLC=$ac_cv_path_OCAMLC
7529if test -n "$OCAMLC"; then
7530 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7531echo "${ECHO_T}$OCAMLC" >&6; }
7532else
7533 { echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6; }
7535fi
7536
7537
7538 test -n "$OCAMLC" && break
7539done
7540
7541for ac_prog in ocamlopt
7542do
7543 # Extract the first word of "$ac_prog", so it can be a program name with args.
7544set dummy $ac_prog; ac_word=$2
7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 case $OCAMLOPT in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
7570 ;;
7571esac
7572fi
7573OCAMLOPT=$ac_cv_path_OCAMLOPT
7574if test -n "$OCAMLOPT"; then
7575 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7576echo "${ECHO_T}$OCAMLOPT" >&6; }
7577else
7578 { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
7580fi
7581
7582
7583 test -n "$OCAMLOPT" && break
7584done
7585
7586for ac_prog in ocamldep
7587do
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589set dummy $ac_prog; ac_word=$2
7590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 case $OCAMLDEP in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613IFS=$as_save_IFS
7614
7615 ;;
7616esac
7617fi
7618OCAMLDEP=$ac_cv_path_OCAMLDEP
7619if test -n "$OCAMLDEP"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7621echo "${ECHO_T}$OCAMLDEP" >&6; }
7622else
7623 { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
7625fi
7626
7627
7628 test -n "$OCAMLDEP" && break
7629done
7630
7631for ac_prog in ocamldoc
7632do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634set dummy $ac_prog; ac_word=$2
7635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 case $OCAMLDOC in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657done
7658IFS=$as_save_IFS
7659
7660 ;;
7661esac
7662fi
7663OCAMLDOC=$ac_cv_path_OCAMLDOC
7664if test -n "$OCAMLDOC"; then
7665 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7666echo "${ECHO_T}$OCAMLDOC" >&6; }
7667else
7668 { echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6; }
7670fi
7671
7672
7673 test -n "$OCAMLDOC" && break
7674done
7675
7676for ac_prog in gas as
7677do
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679set dummy $ac_prog; ac_word=$2
7680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682if test "${ac_cv_path_GAS+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 case $GAS in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7688 ;;
7689 *)
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702done
7703IFS=$as_save_IFS
7704
7705 ;;
7706esac
7707fi
7708GAS=$ac_cv_path_GAS
7709if test -n "$GAS"; then
7710 { echo "$as_me:$LINENO: result: $GAS" >&5
7711echo "${ECHO_T}$GAS" >&6; }
7712else
7713 { echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6; }
7715fi
7716
7717
7718 test -n "$GAS" && break
7719done
7720
7721
7722{ echo "$as_me:$LINENO: checking for linker version" >&5
7723echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7724if test "${llvm_cv_link_version+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727
7728 version_string="$(ld -v 2>&1 | head -1)"
7729
7730 # Check for ld64.
7731 if (echo "$version_string" | grep -q "ld64"); then
7732 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7733 else
7734 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7735 fi
7736
7737fi
7738{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7739echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7740
7741cat >>confdefs.h <<_ACEOF
7742#define HOST_LINK_VERSION "$llvm_cv_link_version"
7743_ACEOF
7744
7745
7746
7747{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7748echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7749if test "${llvm_cv_link_use_r+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752 ac_ext=c
7753ac_cpp='$CPP $CPPFLAGS'
7754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758 oldcflags="$CFLAGS"
7759 CFLAGS="$CFLAGS -Wl,-R."
7760 cat >conftest.$ac_ext <<_ACEOF
7761/* confdefs.h. */
7762_ACEOF
7763cat confdefs.h >>conftest.$ac_ext
7764cat >>conftest.$ac_ext <<_ACEOF
7765/* end confdefs.h. */
7766
7767int
7768main ()
7769{
7770
7771 ;
7772 return 0;
7773}
7774_ACEOF
7775rm -f conftest.$ac_objext conftest$ac_exeext
7776if { (ac_try="$ac_link"
7777case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780esac
7781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_link") 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7790 { (case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793esac
7794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_try") 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_try") 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 llvm_cv_link_use_r=yes
7810else
7811 echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 llvm_cv_link_use_r=no
7815fi
7816
7817rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 CFLAGS="$oldcflags"
7820 ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827fi
7828{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7829echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7830if test "$llvm_cv_link_use_r" = yes ; then
7831
7832cat >>confdefs.h <<\_ACEOF
7833#define HAVE_LINK_R 1
7834_ACEOF
7835
7836 fi
7837
7838
7839{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7840echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7841if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 ac_ext=c
7845ac_cpp='$CPP $CPPFLAGS'
7846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849
7850 oldcflags="$CFLAGS"
7851 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858
7859int
7860main ()
7861{
7862
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (ac_try="$ac_link"
7869case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885esac
7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895esac
7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 llvm_cv_link_use_export_dynamic=yes
7902else
7903 echo "$as_me: failed program was:" >&5
7904sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 llvm_cv_link_use_export_dynamic=no
7907fi
7908
7909rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 CFLAGS="$oldcflags"
7912 ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919fi
7920{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7921echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7922if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7923
7924cat >>confdefs.h <<\_ACEOF
7925#define HAVE_LINK_EXPORT_DYNAMIC 1
7926_ACEOF
7927
7928 fi
7929
7930
7931{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7932echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7933if test "${llvm_cv_link_use_version_script+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935else
7936 ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942 oldcflags="$CFLAGS"
7943
7944 # The following code is from the autoconf manual,
7945 # "11.13: Limitations of Usual Tools".
7946 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7947 # Use mktemp if possible; otherwise fall back on mkdir,
7948 # with $RANDOM to make collisions less likely.
7949 : ${TMPDIR=/tmp}
7950 {
7951 tmp=`
7952 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7953 ` &&
7954 test -n "$tmp" && test -d "$tmp"
7955 } || {
7956 tmp=$TMPDIR/foo$$-$RANDOM
7957 (umask 077 && mkdir "$tmp")
7958 } || exit $?
7959
7960 echo "{" > "$tmp/export.map"
7961 echo " global: main;" >> "$tmp/export.map"
7962 echo " local: *;" >> "$tmp/export.map"
7963 echo "};" >> "$tmp/export.map"
7964
7965 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7966 cat >conftest.$ac_ext <<_ACEOF
7967/* confdefs.h. */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h. */
7972
7973int
7974main ()
7975{
7976
7977 ;
7978 return 0;
7979}
7980_ACEOF
7981rm -f conftest.$ac_objext conftest$ac_exeext
7982if { (ac_try="$ac_link"
7983case "(($ac_try" in
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7986esac
7987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988 (eval "$ac_link") 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 llvm_cv_link_use_version_script=yes
8016else
8017 echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 llvm_cv_link_use_version_script=no
8021fi
8022
8023rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 rm "$tmp/export.map"
8026 rmdir "$tmp"
8027 CFLAGS="$oldcflags"
8028 ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035fi
8036{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8037echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8038if test "$llvm_cv_link_use_version_script" = yes ; then
8039 HAVE_LINK_VERSION_SCRIPT=1
8040
8041 fi
8042
8043
8044
8045
8046{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8047echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8048if test "${ac_cv_c_const+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057
8058int
8059main ()
8060{
8061/* FIXME: Include the comments suggested by Paul. */
8062#ifndef __cplusplus
8063 /* Ultrix mips cc rejects this. */
8064 typedef int charset[2];
8065 const charset x;
8066 /* SunOS 4.1.1 cc rejects this. */
8067 char const *const *ccp;
8068 char **p;
8069 /* NEC SVR4.0.2 mips cc rejects this. */
8070 struct point {int x, y;};
8071 static struct point const zero = {0,0};
8072 /* AIX XL C 1.02.0.0 rejects this.
8073 It does not let you subtract one const X* pointer from another in
8074 an arm of an if-expression whose if-part is not a constant
8075 expression */
8076 const char *g = "string";
8077 ccp = &g + (g ? g-g : 0);
8078 /* HPUX 7.0 cc rejects these. */
8079 ++ccp;
8080 p = (char**) ccp;
8081 ccp = (char const *const *) p;
8082 { /* SCO 3.2v4 cc rejects this. */
8083 char *t;
8084 char const *s = 0 ? (char *) 0 : (char const *) 0;
8085
8086 *t++ = 0;
8087 if (s) return 0;
8088 }
8089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8090 int x[] = {25, 17};
8091 const int *foo = &x[0];
8092 ++foo;
8093 }
8094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8095 typedef const int *iptr;
8096 iptr p = 0;
8097 ++p;
8098 }
8099 { /* AIX XL C 1.02.0.0 rejects this saying
8100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8101 struct s { int j; const int *ap[3]; };
8102 struct s *b; b->j = 5;
8103 }
8104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8105 const int foo = 10;
8106 if (!foo) return 0;
8107 }
8108 return !x[0] && !zero.x;
8109#endif
8110
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (ac_try="$ac_compile"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_c_const=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 ac_cv_c_const=no
8155fi
8156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158fi
8159{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8160echo "${ECHO_T}$ac_cv_c_const" >&6; }
8161if test $ac_cv_c_const = no; then
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define const
8165_ACEOF
8166
8167fi
8168
8169
8170
8171
8172
8173
8174ac_header_dirent=no
8175for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8176 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8177{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8178echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188#include <sys/types.h>
8189#include <$ac_hdr>
8190
8191int
8192main ()
8193{
8194if ((DIR *) 0)
8195return 0;
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200rm -f conftest.$ac_objext
8201if { (ac_try="$ac_compile"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 eval "$as_ac_Header=yes"
8235else
8236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 eval "$as_ac_Header=no"
8240fi
8241
8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243fi
8244ac_res=`eval echo '${'$as_ac_Header'}'`
8245 { echo "$as_me:$LINENO: result: $ac_res" >&5
8246echo "${ECHO_T}$ac_res" >&6; }
8247if test `eval echo '${'$as_ac_Header'}'` = yes; then
8248 cat >>confdefs.h <<_ACEOF
8249#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8250_ACEOF
8251
8252ac_header_dirent=$ac_hdr; break
8253fi
8254
8255done
8256# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8257if test $ac_header_dirent = dirent.h; then
8258 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260if test "${ac_cv_search_opendir+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263 ac_func_search_save_LIBS=$LIBS
8264cat >conftest.$ac_ext <<_ACEOF
8265/* confdefs.h. */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h. */
8270
8271/* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8274#ifdef __cplusplus
8275extern "C"
8276#endif
8277char opendir ();
8278int
8279main ()
8280{
8281return opendir ();
8282 ;
8283 return 0;
8284}
8285_ACEOF
8286for ac_lib in '' dir; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8289 else
8290 ac_res=-l$ac_lib
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8292 fi
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294if { (ac_try="$ac_link"
8295case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_link") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 ac_cv_search_opendir=$ac_res
8328else
8329 echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332
8333fi
8334
8335rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338 break
8339fi
8340done
8341if test "${ac_cv_search_opendir+set}" = set; then
8342 :
8343else
8344 ac_cv_search_opendir=no
8345fi
8346rm conftest.$ac_ext
8347LIBS=$ac_func_search_save_LIBS
8348fi
8349{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351ac_res=$ac_cv_search_opendir
8352if test "$ac_res" != no; then
8353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354
8355fi
8356
8357else
8358 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8359echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8360if test "${ac_cv_search_opendir+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363 ac_func_search_save_LIBS=$LIBS
8364cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
8370
8371/* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8374#ifdef __cplusplus
8375extern "C"
8376#endif
8377char opendir ();
8378int
8379main ()
8380{
8381return opendir ();
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386for ac_lib in '' x; do
8387 if test -z "$ac_lib"; then
8388 ac_res="none required"
8389 else
8390 ac_res=-l$ac_lib
8391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8392 fi
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394if { (ac_try="$ac_link"
8395case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421esac
8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_search_opendir=$ac_res
8428else
8429 echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432
8433fi
8434
8435rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext
8437 if test "${ac_cv_search_opendir+set}" = set; then
8438 break
8439fi
8440done
8441if test "${ac_cv_search_opendir+set}" = set; then
8442 :
8443else
8444 ac_cv_search_opendir=no
8445fi
8446rm conftest.$ac_ext
8447LIBS=$ac_func_search_save_LIBS
8448fi
8449{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8450echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8451ac_res=$ac_cv_search_opendir
8452if test "$ac_res" != no; then
8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8454
8455fi
8456
8457fi
8458
8459
8460for ac_header in dlfcn.h
8461do
8462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468fi
8469ac_res=`eval echo '${'$as_ac_Header'}'`
8470 { echo "$as_me:$LINENO: result: $ac_res" >&5
8471echo "${ECHO_T}$ac_res" >&6; }
8472else
8473 # Is the header compilable?
8474{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8476cat >conftest.$ac_ext <<_ACEOF
8477/* confdefs.h. */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h. */
8482$ac_includes_default
8483#include <$ac_header>
8484_ACEOF
8485rm -f conftest.$ac_objext
8486if { (ac_try="$ac_compile"
8487case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_header_compiler=yes
8520else
8521 echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_header_compiler=no
8525fi
8526
8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8529echo "${ECHO_T}$ac_header_compiler" >&6; }
8530
8531# Is the header present?
8532{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8534cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540#include <$ac_header>
8541_ACEOF
8542if { (ac_try="$ac_cpp conftest.$ac_ext"
8543case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } >/dev/null; then
8555 if test -s conftest.err; then
8556 ac_cpp_err=$ac_c_preproc_warn_flag
8557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8558 else
8559 ac_cpp_err=
8560 fi
8561else
8562 ac_cpp_err=yes
8563fi
8564if test -z "$ac_cpp_err"; then
8565 ac_header_preproc=yes
8566else
8567 echo "$as_me: failed program was:" >&5
8568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_header_preproc=no
8571fi
8572
8573rm -f conftest.err conftest.$ac_ext
8574{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575echo "${ECHO_T}$ac_header_preproc" >&6; }
8576
8577# So? What about this header?
8578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8579 yes:no: )
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8584 ac_header_preproc=yes
8585 ;;
8586 no:yes:* )
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8599 ( cat <<\_ASBOX
8600## ------------------------------ ##
8601## Report this to bugs@yourdomain ##
8602## ------------------------------ ##
8603_ASBOX
8604 ) | sed "s/^/$as_me: WARNING: /" >&2
8605 ;;
8606esac
8607{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611else
8612 eval "$as_ac_Header=\$ac_header_preproc"
8613fi
8614ac_res=`eval echo '${'$as_ac_Header'}'`
8615 { echo "$as_me:$LINENO: result: $ac_res" >&5
8616echo "${ECHO_T}$ac_res" >&6; }
8617
8618fi
8619if test `eval echo '${'$as_ac_Header'}'` = yes; then
8620 cat >>confdefs.h <<_ACEOF
8621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8622_ACEOF
8623
8624fi
8625
8626done
8627
8628# Check whether --enable-ltdl-install was given.
8629if test "${enable_ltdl_install+set}" = set; then
8630 enableval=$enable_ltdl_install;
8631fi
8632
8633
8634
8635
8636if test x"${enable_ltdl_install-no}" != xno; then
8637 INSTALL_LTDL_TRUE=
8638 INSTALL_LTDL_FALSE='#'
8639else
8640 INSTALL_LTDL_TRUE='#'
8641 INSTALL_LTDL_FALSE=
8642fi
8643
8644
8645
8646if test x"${enable_ltdl_convenience-no}" != xno; then
8647 CONVENIENCE_LTDL_TRUE=
8648 CONVENIENCE_LTDL_FALSE='#'
8649else
8650 CONVENIENCE_LTDL_TRUE='#'
8651 CONVENIENCE_LTDL_FALSE=
8652fi
8653
8654
8655{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8656echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8657library_names_spec=
8658libname_spec='lib$name'
8659soname_spec=
8660shrext_cmds=".so"
8661postinstall_cmds=
8662postuninstall_cmds=
8663finish_cmds=
8664finish_eval=
8665shlibpath_var=
8666shlibpath_overrides_runpath=unknown
8667version_type=none
8668dynamic_linker="$host_os ld.so"
8669sys_lib_dlsearch_path_spec="/lib /usr/lib"
8670if test "$GCC" = yes; then
8671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8673 # if the path contains ";" then we assume it to be the separator
8674 # otherwise default to the standard path separator (i.e. ":") - it is
8675 # assumed that no part of a normal pathname contains ";" but that should
8676 # okay in the real world where ";" in dirpaths is itself problematic.
8677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8678 else
8679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8680 fi
8681else
8682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8683fi
8684need_lib_prefix=unknown
8685hardcode_into_libs=no
8686
8687# when you set need_version to no, make sure it does not cause -set_version
8688# flags to be left without arguments
8689need_version=unknown
8690
8691case $host_os in
8692aix3*)
8693 version_type=linux
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8695 shlibpath_var=LIBPATH
8696
8697 # AIX 3 has no versioning support, so we append a major version to the name.
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 ;;
8700
8701aix4* | aix5*)
8702 version_type=linux
8703 need_lib_prefix=no
8704 need_version=no
8705 hardcode_into_libs=yes
8706 if test "$host_cpu" = ia64; then
8707 # AIX 5 supports IA64
8708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8709 shlibpath_var=LD_LIBRARY_PATH
8710 else
8711 # With GCC up to 2.95.x, collect2 would create an import file
8712 # for dependence libraries. The import file would start with
8713 # the line `#! .'. This would cause the generated library to
8714 # depend on `.', always an invalid library. This was fixed in
8715 # development snapshots of GCC prior to 3.0.
8716 case $host_os in
8717 aix4 | aix4.[01] | aix4.[01].*)
8718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8719 echo ' yes '
8720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8721 :
8722 else
8723 can_build_shared=no
8724 fi
8725 ;;
8726 esac
8727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8728 # soname into executable. Probably we can add versioning support to
8729 # collect2, so additional links can be useful in future.
8730 if test "$aix_use_runtimelinking" = yes; then
8731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8732 # instead of lib<name>.a to let people know that these are not
8733 # typical AIX shared libraries.
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 else
8736 # We preserve .a as extension for shared libraries through AIX4.2
8737 # and later when we are not doing run time linking.
8738 library_names_spec='${libname}${release}.a $libname.a'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 fi
8741 shlibpath_var=LIBPATH
8742 fi
8743 ;;
8744
8745amigaos*)
8746 library_names_spec='$libname.ixlibrary $libname.a'
8747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8748 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'
8749 ;;
8750
8751beos*)
8752 library_names_spec='${libname}${shared_ext}'
8753 dynamic_linker="$host_os ld.so"
8754 shlibpath_var=LIBRARY_PATH
8755 ;;
8756
8757bsdi[45]*)
8758 version_type=linux
8759 need_version=no
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8766 # the default ld.so.conf also contains /usr/contrib/lib and
8767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8768 # libtool to hard-code these into programs
8769 ;;
8770
8771cygwin* | mingw* | pw32*)
8772 version_type=windows
8773 shrext_cmds=".dll"
8774 need_version=no
8775 need_lib_prefix=no
8776
8777 case $GCC,$host_os in
8778 yes,cygwin* | yes,mingw* | yes,pw32*)
8779 library_names_spec='$libname.dll.a'
8780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8781 postinstall_cmds='base_file=`basename \${file}`~
8782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8783 dldir=$destdir/`dirname \$dlpath`~
8784 test -d \$dldir || mkdir -p \$dldir~
8785 $install_prog $dir/$dlname \$dldir/$dlname~
8786 chmod a+x \$dldir/$dlname'
8787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8788 dlpath=$dir/\$dldll~
8789 $rm \$dlpath'
8790 shlibpath_overrides_runpath=yes
8791
8792 case $host_os in
8793 cygwin*)
8794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8797 ;;
8798 mingw*)
8799 # MinGW DLLs use traditional 'lib' prefix
8800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8803 # It is most probably a Windows format PATH printed by
8804 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8805 # path with ; separators, and with drive letters. We can handle the
8806 # drive letters (cygwin fileutils understands them), so leave them,
8807 # especially as we might pass files found there to a mingw objdump,
8808 # which wouldn't understand a cygwinified path. Ahh.
8809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8810 else
8811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8812 fi
8813 ;;
8814 pw32*)
8815 # pw32 DLLs use 'pw' prefix rather than 'lib'
8816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817 ;;
8818 esac
8819 ;;
8820
8821 *)
8822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8823 ;;
8824 esac
8825 dynamic_linker='Win32 ld.exe'
8826 # FIXME: first we should search . and the directory the executable is in
8827 shlibpath_var=PATH
8828 ;;
8829
8830darwin* | rhapsody*)
8831 dynamic_linker="$host_os dyld"
8832 version_type=darwin
8833 need_lib_prefix=no
8834 need_version=no
8835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8836 soname_spec='${libname}${release}${major}$shared_ext'
8837 shlibpath_overrides_runpath=yes
8838 shlibpath_var=DYLD_LIBRARY_PATH
8839 shrext_cmds='.dylib'
8840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8841 if test "$GCC" = yes; then
8842 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"`
8843 else
8844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8845 fi
8846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8847 ;;
8848
8849dgux*)
8850 version_type=linux
8851 need_lib_prefix=no
8852 need_version=no
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 ;;
8857
8858freebsd1*)
8859 dynamic_linker=no
8860 ;;
8861
8862kfreebsd*-gnu)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=no
8870 hardcode_into_libs=yes
8871 dynamic_linker='GNU ld.so'
8872 ;;
8873
8874freebsd* | dragonfly*)
8875 # DragonFly does not have aout. When/if they implement a new
8876 # versioning mechanism, adjust this.
8877 if test -x /usr/bin/objformat; then
8878 objformat=`/usr/bin/objformat`
8879 else
8880 case $host_os in
8881 freebsd[123]*) objformat=aout ;;
8882 *) objformat=elf ;;
8883 esac
8884 fi
8885 version_type=freebsd-$objformat
8886 case $version_type in
8887 freebsd-elf*)
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8889 need_version=no
8890 need_lib_prefix=no
8891 ;;
8892 freebsd-*)
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8894 need_version=yes
8895 ;;
8896 esac
8897 shlibpath_var=LD_LIBRARY_PATH
8898 case $host_os in
8899 freebsd2*)
8900 shlibpath_overrides_runpath=yes
8901 ;;
8902 freebsd3.[01]* | freebsdelf3.[01]*)
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8905 ;;
8906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8908 shlibpath_overrides_runpath=no
8909 hardcode_into_libs=yes
8910 ;;
8911 freebsd*) # from 4.6 on
8912 shlibpath_overrides_runpath=yes
8913 hardcode_into_libs=yes
8914 ;;
8915 esac
8916 ;;
8917
8918gnu*)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 hardcode_into_libs=yes
8926 ;;
8927
8928hpux9* | hpux10* | hpux11*)
8929 # Give a soname corresponding to the major version so that dld.sl refuses to
8930 # link against other versions.
8931 version_type=sunos
8932 need_lib_prefix=no
8933 need_version=no
8934 case $host_cpu in
8935 ia64*)
8936 shrext_cmds='.so'
8937 hardcode_into_libs=yes
8938 dynamic_linker="$host_os dld.so"
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 if test "X$HPUX_IA64_MODE" = X32; then
8944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8945 else
8946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8947 fi
8948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8949 ;;
8950 hppa*64*)
8951 shrext_cmds='.sl'
8952 hardcode_into_libs=yes
8953 dynamic_linker="$host_os dld.sl"
8954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8960 ;;
8961 *)
8962 shrext_cmds='.sl'
8963 dynamic_linker="$host_os dld.sl"
8964 shlibpath_var=SHLIB_PATH
8965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 ;;
8969 esac
8970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8971 postinstall_cmds='chmod 555 $lib'
8972 ;;
8973
8974interix3*)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=no
8983 hardcode_into_libs=yes
8984 ;;
8985
8986irix5* | irix6* | nonstopux*)
8987 case $host_os in
8988 nonstopux*) version_type=nonstopux ;;
8989 *)
8990 if test "$lt_cv_prog_gnu_ld" = yes; then
8991 version_type=linux
8992 else
8993 version_type=irix
8994 fi ;;
8995 esac
8996 need_lib_prefix=no
8997 need_version=no
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9000 case $host_os in
9001 irix5* | nonstopux*)
9002 libsuff= shlibsuff=
9003 ;;
9004 *)
9005 case $LD in # libtool.m4 will add one of these switches to LD
9006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9007 libsuff= shlibsuff= libmagic=32-bit;;
9008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9009 libsuff=32 shlibsuff=N32 libmagic=N32;;
9010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9012 *) libsuff= shlibsuff= libmagic=never-match;;
9013 esac
9014 ;;
9015 esac
9016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9017 shlibpath_overrides_runpath=no
9018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9020 hardcode_into_libs=yes
9021 ;;
9022
9023# No shared lib support for Linux oldld, aout, or coff.
9024linux*oldld* | linux*aout* | linux*coff*)
9025 dynamic_linker=no
9026 ;;
9027
9028# This must be Linux ELF.
9029linux*)
9030 version_type=linux
9031 need_lib_prefix=no
9032 need_version=no
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=no
9038 # This implies no fast_install, which is unacceptable.
9039 # Some rework will be needed to allow for fast_install
9040 # before this can be enabled.
9041 hardcode_into_libs=yes
9042
9043 # Append ld.so.conf contents to the search path
9044 if test -f /etc/ld.so.conf; then
9045 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' ' '`
9046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9047 fi
9048
9049 # We used to test for /lib/ld.so.1 and disable shared libraries on
9050 # powerpc, because MkLinux only supported shared libraries with the
9051 # GNU dynamic linker. Since this was broken with cross compilers,
9052 # most powerpc-linux boxes support dynamic linking these days and
9053 # people can always --disable-shared, the test was removed, and we
9054 # assume the GNU/Linux dynamic linker is in use.
9055 dynamic_linker='GNU/Linux ld.so'
9056 ;;
9057
9058knetbsd*-gnu)
9059 version_type=linux
9060 need_lib_prefix=no
9061 need_version=no
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=no
9066 hardcode_into_libs=yes
9067 dynamic_linker='GNU ld.so'
9068 ;;
9069
9070netbsd*)
9071 version_type=sunos
9072 need_lib_prefix=no
9073 need_version=no
9074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077 dynamic_linker='NetBSD (a.out) ld.so'
9078 else
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 dynamic_linker='NetBSD ld.elf_so'
9082 fi
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 hardcode_into_libs=yes
9086 ;;
9087
9088newsos6)
9089 version_type=linux
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9093 ;;
9094
9095nto-qnx*)
9096 version_type=linux
9097 need_lib_prefix=no
9098 need_version=no
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 ;;
9104
9105openbsd*)
9106 version_type=sunos
9107 sys_lib_dlsearch_path_spec="/usr/lib"
9108 need_lib_prefix=no
9109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9110 case $host_os in
9111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9112 *) need_version=no ;;
9113 esac
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9118 case $host_os in
9119 openbsd2.[89] | openbsd2.[89].*)
9120 shlibpath_overrides_runpath=no
9121 ;;
9122 *)
9123 shlibpath_overrides_runpath=yes
9124 ;;
9125 esac
9126 else
9127 shlibpath_overrides_runpath=yes
9128 fi
9129 ;;
9130
9131os2*)
9132 libname_spec='$name'
9133 shrext_cmds=".dll"
9134 need_lib_prefix=no
9135 library_names_spec='$libname${shared_ext} $libname.a'
9136 dynamic_linker='OS/2 ld.exe'
9137 shlibpath_var=LIBPATH
9138 ;;
9139
9140osf3* | osf4* | osf5*)
9141 version_type=osf
9142 need_lib_prefix=no
9143 need_version=no
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9149 ;;
9150
9151solaris*)
9152 version_type=linux
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 hardcode_into_libs=yes
9160 # ldd complains unless libraries are executable
9161 postinstall_cmds='chmod +x $lib'
9162 ;;
9163
9164sunos4*)
9165 version_type=sunos
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 if test "$with_gnu_ld" = yes; then
9171 need_lib_prefix=no
9172 fi
9173 need_version=yes
9174 ;;
9175
9176sysv4 | sysv4.3*)
9177 version_type=linux
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 case $host_vendor in
9182 sni)
9183 shlibpath_overrides_runpath=no
9184 need_lib_prefix=no
9185 export_dynamic_flag_spec='${wl}-Blargedynsym'
9186 runpath_var=LD_RUN_PATH
9187 ;;
9188 siemens)
9189 need_lib_prefix=no
9190 ;;
9191 motorola)
9192 need_lib_prefix=no
9193 need_version=no
9194 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9196 ;;
9197 esac
9198 ;;
9199
9200sysv4*MP*)
9201 if test -d /usr/nec ;then
9202 version_type=linux
9203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9204 soname_spec='$libname${shared_ext}.$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 fi
9207 ;;
9208
9209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9210 version_type=freebsd-elf
9211 need_lib_prefix=no
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 hardcode_into_libs=yes
9217 if test "$with_gnu_ld" = yes; then
9218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9219 shlibpath_overrides_runpath=no
9220 else
9221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9222 shlibpath_overrides_runpath=yes
9223 case $host_os in
9224 sco3.2v5*)
9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9226 ;;
9227 esac
9228 fi
9229 sys_lib_dlsearch_path_spec='/usr/lib'
9230 ;;
9231
9232uts4*)
9233 version_type=linux
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 ;;
9238
9239*)
9240 dynamic_linker=no
9241 ;;
9242esac
9243{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9244echo "${ECHO_T}$dynamic_linker" >&6; }
9245test "$dynamic_linker" = no && can_build_shared=no
9246
9247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9248if test "$GCC" = yes; then
9249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9250fi
9251
9252
9253{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9254echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9255if test "${libltdl_cv_shlibext+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9257else
9258
9259module=yes
9260eval libltdl_cv_shlibext=$shrext_cmds
9261
9262fi
9263{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9264echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9265if test -n "$libltdl_cv_shlibext"; then
9266
9267cat >>confdefs.h <<_ACEOF
9268#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9269_ACEOF
9270
9271fi
9272
9273
9274{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9275echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9276if test "${libltdl_cv_shlibpath_var+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278else
9279 libltdl_cv_shlibpath_var="$shlibpath_var"
9280fi
9281{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9282echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9283if test -n "$libltdl_cv_shlibpath_var"; then
9284
9285cat >>confdefs.h <<_ACEOF
9286#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9287_ACEOF
9288
9289fi
9290
9291
9292{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9293echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9294if test "${libltdl_cv_sys_search_path+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296else
9297 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9298fi
9299{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9300echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9301if test -n "$libltdl_cv_sys_search_path"; then
9302 sys_search_path=
9303 for dir in $libltdl_cv_sys_search_path; do
9304 if test -z "$sys_search_path"; then
9305 sys_search_path="$dir"
9306 else
9307 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9308 fi
9309 done
9310
9311cat >>confdefs.h <<_ACEOF
9312#define LTDL_SYSSEARCHPATH "$sys_search_path"
9313_ACEOF
9314
9315fi
9316
9317{ echo "$as_me:$LINENO: checking for objdir" >&5
9318echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9319if test "${libltdl_cv_objdir+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322 libltdl_cv_objdir="$objdir"
9323 if test -n "$objdir"; then
9324 :
9325 else
9326 rm -f .libs 2>/dev/null
9327 mkdir .libs 2>/dev/null
9328 if test -d .libs; then
9329 libltdl_cv_objdir=.libs
9330 else
9331 # MS-DOS does not allow filenames that begin with a dot.
9332 libltdl_cv_objdir=_libs
9333 fi
9334 rmdir .libs 2>/dev/null
9335 fi
9336
9337fi
9338{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9339echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9340
9341cat >>confdefs.h <<_ACEOF
9342#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9343_ACEOF
9344
9345
9346
9347
9348
9349
9350# Check for command to grab the raw symbol name followed by C symbol from nm.
9351{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9352echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9353if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356
9357# These are sane defaults that work on at least a few old systems.
9358# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9359
9360# Character class describing NM global symbol codes.
9361symcode='[BCDEGRST]'
9362
9363# Regexp to match symbols that can be accessed directly from C.
9364sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9365
9366# Transform an extracted symbol line into a proper C declaration
9367lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9368
9369# Transform an extracted symbol line into symbol name and symbol address
9370lt_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'"
9371
9372# Define system-specific variables.
9373case $host_os in
9374aix*)
9375 symcode='[BCDT]'
9376 ;;
9377cygwin* | mingw* | pw32*)
9378 symcode='[ABCDGISTW]'
9379 ;;
9380hpux*) # Its linker distinguishes data from code symbols
9381 if test "$host_cpu" = ia64; then
9382 symcode='[ABCDEGRST]'
9383 fi
9384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9385 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'"
9386 ;;
9387linux*)
9388 if test "$host_cpu" = ia64; then
9389 symcode='[ABCDGIRSTW]'
9390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9391 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'"
9392 fi
9393 ;;
9394irix* | nonstopux*)
9395 symcode='[BCDEGRST]'
9396 ;;
9397osf*)
9398 symcode='[BCDEGQRST]'
9399 ;;
9400solaris*)
9401 symcode='[BDRT]'
9402 ;;
9403sco3.2v5*)
9404 symcode='[DT]'
9405 ;;
9406sysv4.2uw2*)
9407 symcode='[DT]'
9408 ;;
9409sysv5* | sco5v6* | unixware* | OpenUNIX*)
9410 symcode='[ABDT]'
9411 ;;
9412sysv4)
9413 symcode='[DFNSTU]'
9414 ;;
9415esac
9416
9417# Handle CRLF in mingw tool chain
9418opt_cr=
9419case $build_os in
9420mingw*)
9421 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9422 ;;
9423esac
9424
9425# If we're using GNU nm, then use its standard symbol codes.
9426case `$NM -V 2>&1` in
9427*GNU* | *'with BFD'*)
9428 symcode='[ABCDGIRSTW]' ;;
9429esac
9430
9431# Try without a prefix undercore, then with it.
9432for ac_symprfx in "" "_"; do
9433
9434 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9435 symxfrm="\\1 $ac_symprfx\\2 \\2"
9436
9437 # Write the raw and C identifiers.
9438 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9439
9440 # Check to see that the pipe works correctly.
9441 pipe_works=no
9442
9443 rm -f conftest*
9444 cat > conftest.$ac_ext <<EOF
9445#ifdef __cplusplus
9446extern "C" {
9447#endif
9448char nm_test_var;
9449void nm_test_func(){}
9450#ifdef __cplusplus
9451}
9452#endif
9453int main(){nm_test_var='a';nm_test_func();return(0);}
9454EOF
9455
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; then
9461 # Now try to grab the symbols.
9462 nlist=conftest.nm
9463 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9464 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && test -s "$nlist"; then
9468 # Try sorting and uniquifying the output.
9469 if sort "$nlist" | uniq > "$nlist"T; then
9470 mv -f "$nlist"T "$nlist"
9471 else
9472 rm -f "$nlist"T
9473 fi
9474
9475 # Make sure that we snagged all the symbols we need.
9476 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9477 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9478 cat <<EOF > conftest.$ac_ext
9479#ifdef __cplusplus
9480extern "C" {
9481#endif
9482
9483EOF
9484 # Now generate the symbol file.
9485 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9486
9487 cat <<EOF >> conftest.$ac_ext
9488#if defined (__STDC__) && __STDC__
9489# define lt_ptr_t void *
9490#else
9491# define lt_ptr_t char *
9492# define const
9493#endif
9494
9495/* The mapping between symbol names and symbols. */
9496const struct {
9497 const char *name;
9498 lt_ptr_t address;
9499}
9500lt_preloaded_symbols[] =
9501{
9502EOF
9503 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9504 cat <<\EOF >> conftest.$ac_ext
9505 {0, (lt_ptr_t) 0}
9506};
9507
9508#ifdef __cplusplus
9509}
9510#endif
9511EOF
9512 # Now try linking the two files.
9513 mv conftest.$ac_objext conftstm.$ac_objext
9514 lt_save_LIBS="$LIBS"
9515 lt_save_CFLAGS="$CFLAGS"
9516 LIBS="conftstm.$ac_objext"
9517 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9523 pipe_works=yes
9524 fi
9525 LIBS="$lt_save_LIBS"
9526 CFLAGS="$lt_save_CFLAGS"
9527 else
9528 echo "cannot find nm_test_func in $nlist" >&5
9529 fi
9530 else
9531 echo "cannot find nm_test_var in $nlist" >&5
9532 fi
9533 else
9534 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9535 fi
9536 else
9537 echo "$progname: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 fi
9540 rm -f conftest* conftst*
9541
9542 # Do not use the global_symbol_pipe unless it works.
9543 if test "$pipe_works" = yes; then
9544 break
9545 else
9546 lt_cv_sys_global_symbol_pipe=
9547 fi
9548done
9549
9550fi
9551
9552if test -z "$lt_cv_sys_global_symbol_pipe"; then
9553 lt_cv_sys_global_symbol_to_cdecl=
9554fi
9555if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9556 { echo "$as_me:$LINENO: result: failed" >&5
9557echo "${ECHO_T}failed" >&6; }
9558else
9559 { echo "$as_me:$LINENO: result: ok" >&5
9560echo "${ECHO_T}ok" >&6; }
9561fi
9562
9563
9564{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9565echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9566if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9570 libltdl_cv_preloaded_symbols=yes
9571 else
9572 libltdl_cv_preloaded_symbols=no
9573 fi
9574
9575fi
9576{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9577echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9578if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9579
9580cat >>confdefs.h <<\_ACEOF
9581#define HAVE_PRELOADED_SYMBOLS 1
9582_ACEOF
9583
9584fi
9585
9586LIBADD_DL=
9587
9588ac_ext=c
9589ac_cpp='$CPP $CPPFLAGS'
9590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592ac_compiler_gnu=$ac_cv_c_compiler_gnu
9593
9594
9595{ echo "$as_me:$LINENO: checking for shl_load" >&5
9596echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9597if test "${ac_cv_func_shl_load+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599else
9600 cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608#define shl_load innocuous_shl_load
9609
9610/* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char shl_load (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9614
9615#ifdef __STDC__
9616# include <limits.h>
9617#else
9618# include <assert.h>
9619#endif
9620
9621#undef shl_load
9622
9623/* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9626#ifdef __cplusplus
9627extern "C"
9628#endif
9629char shl_load ();
9630/* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633#if defined __stub_shl_load || defined __stub___shl_load
9634choke me
9635#endif
9636
9637int
9638main ()
9639{
9640return shl_load ();
9641 ;
9642 return 0;
9643}
9644_ACEOF
9645rm -f conftest.$ac_objext conftest$ac_exeext
9646if { (ac_try="$ac_link"
9647case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650esac
9651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_func_shl_load=yes
9680else
9681 echo "$as_me: failed program was:" >&5
9682sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 ac_cv_func_shl_load=no
9685fi
9686
9687rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689fi
9690{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9691echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9692if test $ac_cv_func_shl_load = yes; then
9693
9694cat >>confdefs.h <<\_ACEOF
9695#define HAVE_SHL_LOAD 1
9696_ACEOF
9697
9698else
9699 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9700echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9701if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 ac_check_lib_save_LIBS=$LIBS
9705LIBS="-ldld $LIBS"
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712
9713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719char shl_load ();
9720int
9721main ()
9722{
9723return shl_load ();
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
9729if { (ac_try="$ac_link"
9730case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
9734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9743 { (case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746esac
9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_try") 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756esac
9757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_try") 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_dld_shl_load=yes
9763else
9764 echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_lib_dld_shl_load=no
9768fi
9769
9770rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772LIBS=$ac_check_lib_save_LIBS
9773fi
9774{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9775echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9776if test $ac_cv_lib_dld_shl_load = yes; then
9777
9778cat >>confdefs.h <<\_ACEOF
9779#define HAVE_SHL_LOAD 1
9780_ACEOF
9781
9782 LIBADD_DL="$LIBADD_DL -ldld"
9783else
9784 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9785echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9786if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789 ac_check_lib_save_LIBS=$LIBS
9790LIBS="-ldl $LIBS"
9791cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h. */
9797
9798/* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9801#ifdef __cplusplus
9802extern "C"
9803#endif
9804char dlopen ();
9805int
9806main ()
9807{
9808return dlopen ();
9809 ;
9810 return 0;
9811}
9812_ACEOF
9813rm -f conftest.$ac_objext conftest$ac_exeext
9814if { (ac_try="$ac_link"
9815case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818esac
9819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dl_dlopen=yes
9848else
9849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_lib_dl_dlopen=no
9853fi
9854
9855rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857LIBS=$ac_check_lib_save_LIBS
9858fi
9859{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9860echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9861if test $ac_cv_lib_dl_dlopen = yes; then
9862
9863cat >>confdefs.h <<\_ACEOF
9864#define HAVE_LIBDL 1
9865_ACEOF
9866
9867 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9868else
9869 cat >conftest.$ac_ext <<_ACEOF
9870/* confdefs.h. */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h. */
9875#if HAVE_DLFCN_H
9876# include <dlfcn.h>
9877#endif
9878
9879int
9880main ()
9881{
9882dlopen(0, 0);
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921
9922cat >>confdefs.h <<\_ACEOF
9923#define HAVE_LIBDL 1
9924_ACEOF
9925 libltdl_cv_func_dlopen="yes"
9926else
9927 echo "$as_me: failed program was:" >&5
9928sed 's/^/| /' conftest.$ac_ext >&5
9929
9930 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9931echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9932if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935 ac_check_lib_save_LIBS=$LIBS
9936LIBS="-lsvld $LIBS"
9937cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
9944/* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947#ifdef __cplusplus
9948extern "C"
9949#endif
9950char dlopen ();
9951int
9952main ()
9953{
9954return dlopen ();
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (ac_try="$ac_link"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_lib_svld_dlopen=yes
9994else
9995 echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 ac_cv_lib_svld_dlopen=no
9999fi
10000
10001rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003LIBS=$ac_check_lib_save_LIBS
10004fi
10005{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10006echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10007if test $ac_cv_lib_svld_dlopen = yes; then
10008
10009cat >>confdefs.h <<\_ACEOF
10010#define HAVE_LIBDL 1
10011_ACEOF
10012
10013 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10014else
10015 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10016echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10017if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 ac_check_lib_save_LIBS=$LIBS
10021LIBS="-ldld $LIBS"
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028
10029/* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032#ifdef __cplusplus
10033extern "C"
10034#endif
10035char dld_link ();
10036int
10037main ()
10038{
10039return dld_link ();
10040 ;
10041 return 0;
10042}
10043_ACEOF
10044rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_dld_dld_link=yes
10079else
10080 echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ac_cv_lib_dld_dld_link=no
10084fi
10085
10086rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088LIBS=$ac_check_lib_save_LIBS
10089fi
10090{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10091echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10092if test $ac_cv_lib_dld_dld_link = yes; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_DLD 1
10096_ACEOF
10097
10098 LIBADD_DL="$LIBADD_DL -ldld"
10099else
10100 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10101echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10102if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h. */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h. */
10111/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10113#define _dyld_func_lookup innocuous__dyld_func_lookup
10114
10115/* System header to define __stub macros and hopefully few prototypes,
10116 which can conflict with char _dyld_func_lookup (); below.
10117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118 <limits.h> exists even on freestanding compilers. */
10119
10120#ifdef __STDC__
10121# include <limits.h>
10122#else
10123# include <assert.h>
10124#endif
10125
10126#undef _dyld_func_lookup
10127
10128/* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10131#ifdef __cplusplus
10132extern "C"
10133#endif
10134char _dyld_func_lookup ();
10135/* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10139choke me
10140#endif
10141
10142int
10143main ()
10144{
10145return _dyld_func_lookup ();
10146 ;
10147 return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
10151if { (ac_try="$ac_link"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165 { (case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_try") 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_func__dyld_func_lookup=yes
10185else
10186 echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_cv_func__dyld_func_lookup=no
10190fi
10191
10192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194fi
10195{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10196echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10197if test $ac_cv_func__dyld_func_lookup = yes; then
10198
10199cat >>confdefs.h <<\_ACEOF
10200#define HAVE_DYLD 1
10201_ACEOF
10202
10203fi
10204
10205
10206fi
10207
10208
10209fi
10210
10211
10212fi
10213
10214rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216
10217fi
10218
10219
10220fi
10221
10222
10223fi
10224
10225
10226if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10227then
10228 lt_save_LIBS="$LIBS"
10229 LIBS="$LIBS $LIBADD_DL"
10230
10231for ac_func in dlerror
10232do
10233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10247#define $ac_func innocuous_$ac_func
10248
10249/* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func (); below.
10251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252 <limits.h> exists even on freestanding compilers. */
10253
10254#ifdef __STDC__
10255# include <limits.h>
10256#else
10257# include <assert.h>
10258#endif
10259
10260#undef $ac_func
10261
10262/* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268char $ac_func ();
10269/* The GNU C library defines this for functions which it implements
10270 to always fail with ENOSYS. Some functions are actually named
10271 something starting with __ and the normal name is an alias. */
10272#if defined __stub_$ac_func || defined __stub___$ac_func
10273choke me
10274#endif
10275
10276int
10277main ()
10278{
10279return $ac_func ();
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (ac_try="$ac_link"
10286case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 eval "$as_ac_var=no"
10324fi
10325
10326rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328fi
10329ac_res=`eval echo '${'$as_ac_var'}'`
10330 { echo "$as_me:$LINENO: result: $ac_res" >&5
10331echo "${ECHO_T}$ac_res" >&6; }
10332if test `eval echo '${'$as_ac_var'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335_ACEOF
10336
10337fi
10338done
10339
10340 LIBS="$lt_save_LIBS"
10341fi
10342ac_ext=c
10343ac_cpp='$CPP $CPPFLAGS'
10344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346ac_compiler_gnu=$ac_cv_c_compiler_gnu
10347
10348
10349
10350{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10351echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10352if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 ac_cv_sys_symbol_underscore=no
10356 cat > conftest.$ac_ext <<EOF
10357void nm_test_func(){}
10358int main(){nm_test_func;return 0;}
10359EOF
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; then
10365 # Now try to grab the symbols.
10366 ac_nlist=conftest.nm
10367 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10368 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && test -s "$ac_nlist"; then
10372 # See whether the symbols have a leading underscore.
10373 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10374 ac_cv_sys_symbol_underscore=yes
10375 else
10376 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10377 :
10378 else
10379 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10380 fi
10381 fi
10382 else
10383 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10384 fi
10385 else
10386 echo "configure: failed program was:" >&5
10387 cat conftest.c >&5
10388 fi
10389 rm -rf conftest*
10390
10391fi
10392{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10393echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10394
10395
10396if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10397 if test x"$libltdl_cv_func_dlopen" = xyes ||
10398 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10399 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10400echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10401if test "${libltdl_cv_need_uscore+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 libltdl_cv_need_uscore=unknown
10405 save_LIBS="$LIBS"
10406 LIBS="$LIBS $LIBADD_DL"
10407 if test "$cross_compiling" = yes; then :
10408 libltdl_cv_need_uscore=cross
10409else
10410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411 lt_status=$lt_dlunknown
10412 cat > conftest.$ac_ext <<EOF
10413#line 10423 "configure"
10414#include "confdefs.h"
10415
10416#if HAVE_DLFCN_H
10417#include <dlfcn.h>
10418#endif
10419
10420#include <stdio.h>
10421
10422#ifdef RTLD_GLOBAL
10423# define LT_DLGLOBAL RTLD_GLOBAL
10424#else
10425# ifdef DL_GLOBAL
10426# define LT_DLGLOBAL DL_GLOBAL
10427# else
10428# define LT_DLGLOBAL 0
10429# endif
10430#endif
10431
10432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433 find out it does not work in some platform. */
10434#ifndef LT_DLLAZY_OR_NOW
10435# ifdef RTLD_LAZY
10436# define LT_DLLAZY_OR_NOW RTLD_LAZY
10437# else
10438# ifdef DL_LAZY
10439# define LT_DLLAZY_OR_NOW DL_LAZY
10440# else
10441# ifdef RTLD_NOW
10442# define LT_DLLAZY_OR_NOW RTLD_NOW
10443# else
10444# ifdef DL_NOW
10445# define LT_DLLAZY_OR_NOW DL_NOW
10446# else
10447# define LT_DLLAZY_OR_NOW 0
10448# endif
10449# endif
10450# endif
10451# endif
10452#endif
10453
10454#ifdef __cplusplus
10455extern "C" void exit (int);
10456#endif
10457
10458void fnord() { int i=42;}
10459int main ()
10460{
10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462 int status = $lt_dlunknown;
10463
10464 if (self)
10465 {
10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 /* dlclose (self); */
10469 }
10470 else
10471 puts (dlerror ());
10472
10473 exit (status);
10474}
10475EOF
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481 (./conftest; exit; ) >&5 2>/dev/null
10482 lt_status=$?
10483 case x$lt_status in
10484 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10485 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10486 x$lt_dlunknown|x*) ;;
10487 esac
10488 else :
10489 # compilation failed
10490
10491 fi
10492fi
10493rm -fr conftest*
10494
10495 LIBS="$save_LIBS"
10496
10497fi
10498{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10499echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10500 fi
10501fi
10502
10503if test x"$libltdl_cv_need_uscore" = xyes; then
10504
10505cat >>confdefs.h <<\_ACEOF
10506#define NEED_USCORE 1
10507_ACEOF
10508
10509fi
10510
10511
10512{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10513echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10514if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517 # PORTME does your system automatically load deplibs for dlopen?
10518 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10519 # For now, we just catch OSes we know something about -- in the
10520 # future, we'll try test this programmatically.
10521 libltdl_cv_sys_dlopen_deplibs=unknown
10522 case "$host_os" in
10523 aix3*|aix4.1.*|aix4.2.*)
10524 # Unknown whether this is true for these versions of AIX, but
10525 # we want this `case' here to explicitly catch those versions.
10526 libltdl_cv_sys_dlopen_deplibs=unknown
10527 ;;
10528 aix[45]*)
10529 libltdl_cv_sys_dlopen_deplibs=yes
10530 ;;
10531 darwin*)
10532 # Assuming the user has installed a libdl from somewhere, this is true
10533 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10534 libltdl_cv_sys_dlopen_deplibs=yes
10535 ;;
10536 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10537 # GNU and its variants, using gnu ld.so (Glibc)
10538 libltdl_cv_sys_dlopen_deplibs=yes
10539 ;;
10540 hpux10*|hpux11*)
10541 libltdl_cv_sys_dlopen_deplibs=yes
10542 ;;
10543 interix*)
10544 libltdl_cv_sys_dlopen_deplibs=yes
10545 ;;
10546 irix[12345]*|irix6.[01]*)
10547 # Catch all versions of IRIX before 6.2, and indicate that we don't
10548 # know how it worked for any of those versions.
10549 libltdl_cv_sys_dlopen_deplibs=unknown
10550 ;;
10551 irix*)
10552 # The case above catches anything before 6.2, and it's known that
10553 # at 6.2 and later dlopen does load deplibs.
10554 libltdl_cv_sys_dlopen_deplibs=yes
10555 ;;
10556 netbsd*)
10557 libltdl_cv_sys_dlopen_deplibs=yes
10558 ;;
10559 openbsd*)
10560 libltdl_cv_sys_dlopen_deplibs=yes
10561 ;;
10562 osf[1234]*)
10563 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10564 # it did *not* use an RPATH in a shared library to find objects the
10565 # library depends on, so we explicitly say `no'.
10566 libltdl_cv_sys_dlopen_deplibs=no
10567 ;;
10568 osf5.0|osf5.0a|osf5.1)
10569 # dlopen *does* load deplibs and with the right loader patch applied
10570 # it even uses RPATH in a shared library to search for shared objects
10571 # that the library depends on, but there's no easy way to know if that
10572 # patch is installed. Since this is the case, all we can really
10573 # say is unknown -- it depends on the patch being installed. If
10574 # it is, this changes to `yes'. Without it, it would be `no'.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10576 ;;
10577 osf*)
10578 # the two cases above should catch all versions of osf <= 5.1. Read
10579 # the comments above for what we know about them.
10580 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10581 # is used to find them so we can finally say `yes'.
10582 libltdl_cv_sys_dlopen_deplibs=yes
10583 ;;
10584 solaris*)
10585 libltdl_cv_sys_dlopen_deplibs=yes
10586 ;;
10587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10588 libltdl_cv_sys_dlopen_deplibs=yes
10589 ;;
10590 esac
10591
10592fi
10593{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10594echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10595if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10596
10597cat >>confdefs.h <<\_ACEOF
10598#define LTDL_DLOPEN_DEPLIBS 1
10599_ACEOF
10600
10601fi
10602
10603
10604for ac_header in argz.h
10605do
10606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612fi
10613ac_res=`eval echo '${'$as_ac_Header'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615echo "${ECHO_T}$ac_res" >&6; }
10616else
10617 # Is the header compilable?
10618{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10620cat >conftest.$ac_ext <<_ACEOF
10621/* confdefs.h. */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h. */
10626$ac_includes_default
10627#include <$ac_header>
10628_ACEOF
10629rm -f conftest.$ac_objext
10630if { (ac_try="$ac_compile"
10631case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_compile") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler=yes
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668 ac_header_compiler=no
10669fi
10670
10671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10673echo "${ECHO_T}$ac_header_compiler" >&6; }
10674
10675# Is the header present?
10676{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10678cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
10684#include <$ac_header>
10685_ACEOF
10686if { (ac_try="$ac_cpp conftest.$ac_ext"
10687case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } >/dev/null; then
10699 if test -s conftest.err; then
10700 ac_cpp_err=$ac_c_preproc_warn_flag
10701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10702 else
10703 ac_cpp_err=
10704 fi
10705else
10706 ac_cpp_err=yes
10707fi
10708if test -z "$ac_cpp_err"; then
10709 ac_header_preproc=yes
10710else
10711 echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ac_header_preproc=no
10715fi
10716
10717rm -f conftest.err conftest.$ac_ext
10718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10719echo "${ECHO_T}$ac_header_preproc" >&6; }
10720
10721# So? What about this header?
10722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10723 yes:no: )
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10728 ac_header_preproc=yes
10729 ;;
10730 no:yes:* )
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10743 ( cat <<\_ASBOX
10744## ------------------------------ ##
10745## Report this to bugs@yourdomain ##
10746## ------------------------------ ##
10747_ASBOX
10748 ) | sed "s/^/$as_me: WARNING: /" >&2
10749 ;;
10750esac
10751{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 eval "$as_ac_Header=\$ac_header_preproc"
10757fi
10758ac_res=`eval echo '${'$as_ac_Header'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760echo "${ECHO_T}$ac_res" >&6; }
10761
10762fi
10763if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10766_ACEOF
10767
10768fi
10769
10770done
10771
10772
10773{ echo "$as_me:$LINENO: checking for error_t" >&5
10774echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10775if test "${ac_cv_type_error_t+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784#if HAVE_ARGZ_H
10785# include <argz.h>
10786#endif
10787
10788typedef error_t ac__type_new_;
10789int
10790main ()
10791{
10792if ((ac__type_new_ *) 0)
10793 return 0;
10794if (sizeof (ac__type_new_))
10795 return 0;
10796 ;
10797 return 0;
10798}
10799_ACEOF
10800rm -f conftest.$ac_objext
10801if { (ac_try="$ac_compile"
10802case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805esac
10806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_compile") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818esac
10819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10834 ac_cv_type_error_t=yes
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_type_error_t=no
10840fi
10841
10842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843fi
10844{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10845echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10846if test $ac_cv_type_error_t = yes; then
10847
10848cat >>confdefs.h <<_ACEOF
10849#define HAVE_ERROR_T 1
10850_ACEOF
10851
10852
10853else
10854
10855cat >>confdefs.h <<\_ACEOF
10856#define error_t int
10857_ACEOF
10858
10859fi
10860
10861
10862
10863
10864
10865
10866
10867for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10868do
10869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10870{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 cat >conftest.$ac_ext <<_ACEOF
10876/* confdefs.h. */
10877_ACEOF
10878cat confdefs.h >>conftest.$ac_ext
10879cat >>conftest.$ac_ext <<_ACEOF
10880/* end confdefs.h. */
10881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883#define $ac_func innocuous_$ac_func
10884
10885/* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char $ac_func (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10889
10890#ifdef __STDC__
10891# include <limits.h>
10892#else
10893# include <assert.h>
10894#endif
10895
10896#undef $ac_func
10897
10898/* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char $ac_func ();
10905/* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908#if defined __stub_$ac_func || defined __stub___$ac_func
10909choke me
10910#endif
10911
10912int
10913main ()
10914{
10915return $ac_func ();
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (ac_try="$ac_link"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 eval "$as_ac_var=yes"
10955else
10956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 eval "$as_ac_var=no"
10960fi
10961
10962rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964fi
10965ac_res=`eval echo '${'$as_ac_var'}'`
10966 { echo "$as_me:$LINENO: result: $ac_res" >&5
10967echo "${ECHO_T}$ac_res" >&6; }
10968if test `eval echo '${'$as_ac_var'}'` = yes; then
10969 cat >>confdefs.h <<_ACEOF
10970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971_ACEOF
10972
10973fi
10974done
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11004 stdio.h unistd.h
11005do
11006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11012fi
11013ac_res=`eval echo '${'$as_ac_Header'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015echo "${ECHO_T}$ac_res" >&6; }
11016else
11017 # Is the header compilable?
11018{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026$ac_includes_default
11027#include <$ac_header>
11028_ACEOF
11029rm -f conftest.$ac_objext
11030if { (ac_try="$ac_compile"
11031case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047esac
11048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_header_compiler=yes
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 ac_header_compiler=no
11069fi
11070
11071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11073echo "${ECHO_T}$ac_header_compiler" >&6; }
11074
11075# Is the header present?
11076{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084#include <$ac_header>
11085_ACEOF
11086if { (ac_try="$ac_cpp conftest.$ac_ext"
11087case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null; then
11099 if test -s conftest.err; then
11100 ac_cpp_err=$ac_c_preproc_warn_flag
11101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11102 else
11103 ac_cpp_err=
11104 fi
11105else
11106 ac_cpp_err=yes
11107fi
11108if test -z "$ac_cpp_err"; then
11109 ac_header_preproc=yes
11110else
11111 echo "$as_me: failed program was:" >&5
11112sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_header_preproc=no
11115fi
11116
11117rm -f conftest.err conftest.$ac_ext
11118{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119echo "${ECHO_T}$ac_header_preproc" >&6; }
11120
11121# So? What about this header?
11122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11123 yes:no: )
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128 ac_header_preproc=yes
11129 ;;
11130 no:yes:* )
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11143 ( cat <<\_ASBOX
11144## ------------------------------ ##
11145## Report this to bugs@yourdomain ##
11146## ------------------------------ ##
11147_ASBOX
11148 ) | sed "s/^/$as_me: WARNING: /" >&2
11149 ;;
11150esac
11151{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155else
11156 eval "$as_ac_Header=\$ac_header_preproc"
11157fi
11158ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160echo "${ECHO_T}$ac_res" >&6; }
11161
11162fi
11163if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166_ACEOF
11167
11168fi
11169
11170done
11171
11172
11173
11174
11175
11176for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11177do
11178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184fi
11185ac_res=`eval echo '${'$as_ac_Header'}'`
11186 { echo "$as_me:$LINENO: result: $ac_res" >&5
11187echo "${ECHO_T}$ac_res" >&6; }
11188else
11189 # Is the header compilable?
11190{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11192cat >conftest.$ac_ext <<_ACEOF
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
11198$ac_includes_default
11199#include <$ac_header>
11200_ACEOF
11201rm -f conftest.$ac_objext
11202if { (ac_try="$ac_compile"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_compile") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_header_compiler=yes
11236else
11237 echo "$as_me: failed program was:" >&5
11238sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ac_header_compiler=no
11241fi
11242
11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245echo "${ECHO_T}$ac_header_compiler" >&6; }
11246
11247# Is the header present?
11248{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11250cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
11256#include <$ac_header>
11257_ACEOF
11258if { (ac_try="$ac_cpp conftest.$ac_ext"
11259case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262esac
11263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } >/dev/null; then
11271 if test -s conftest.err; then
11272 ac_cpp_err=$ac_c_preproc_warn_flag
11273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11274 else
11275 ac_cpp_err=
11276 fi
11277else
11278 ac_cpp_err=yes
11279fi
11280if test -z "$ac_cpp_err"; then
11281 ac_header_preproc=yes
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 ac_header_preproc=no
11287fi
11288
11289rm -f conftest.err conftest.$ac_ext
11290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11291echo "${ECHO_T}$ac_header_preproc" >&6; }
11292
11293# So? What about this header?
11294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11295 yes:no: )
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11300 ac_header_preproc=yes
11301 ;;
11302 no:yes:* )
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11315 ( cat <<\_ASBOX
11316## ------------------------------ ##
11317## Report this to bugs@yourdomain ##
11318## ------------------------------ ##
11319_ASBOX
11320 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 ;;
11322esac
11323{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 eval "$as_ac_Header=\$ac_header_preproc"
11329fi
11330ac_res=`eval echo '${'$as_ac_Header'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332echo "${ECHO_T}$ac_res" >&6; }
11333
11334fi
11335if test `eval echo '${'$as_ac_Header'}'` = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11338_ACEOF
11339
11340fi
11341
11342done
11343
11344
11345
11346for ac_header in string.h strings.h
11347do
11348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354fi
11355ac_res=`eval echo '${'$as_ac_Header'}'`
11356 { echo "$as_me:$LINENO: result: $ac_res" >&5
11357echo "${ECHO_T}$ac_res" >&6; }
11358else
11359 # Is the header compilable?
11360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368$ac_includes_default
11369#include <$ac_header>
11370_ACEOF
11371rm -f conftest.$ac_objext
11372if { (ac_try="$ac_compile"
11373case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_header_compiler=yes
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_header_compiler=no
11411fi
11412
11413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415echo "${ECHO_T}$ac_header_compiler" >&6; }
11416
11417# Is the header present?
11418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420cat >conftest.$ac_ext <<_ACEOF
11421/* confdefs.h. */
11422_ACEOF
11423cat confdefs.h >>conftest.$ac_ext
11424cat >>conftest.$ac_ext <<_ACEOF
11425/* end confdefs.h. */
11426#include <$ac_header>
11427_ACEOF
11428if { (ac_try="$ac_cpp conftest.$ac_ext"
11429case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null; then
11441 if test -s conftest.err; then
11442 ac_cpp_err=$ac_c_preproc_warn_flag
11443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11444 else
11445 ac_cpp_err=
11446 fi
11447else
11448 ac_cpp_err=yes
11449fi
11450if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_header_preproc=no
11457fi
11458
11459rm -f conftest.err conftest.$ac_ext
11460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461echo "${ECHO_T}$ac_header_preproc" >&6; }
11462
11463# So? What about this header?
11464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465 yes:no: )
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11471 ;;
11472 no:yes:* )
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11485 ( cat <<\_ASBOX
11486## ------------------------------ ##
11487## Report this to bugs@yourdomain ##
11488## ------------------------------ ##
11489_ASBOX
11490 ) | sed "s/^/$as_me: WARNING: /" >&2
11491 ;;
11492esac
11493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 eval "$as_ac_Header=\$ac_header_preproc"
11499fi
11500ac_res=`eval echo '${'$as_ac_Header'}'`
11501 { echo "$as_me:$LINENO: result: $ac_res" >&5
11502echo "${ECHO_T}$ac_res" >&6; }
11503
11504fi
11505if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508_ACEOF
11509 break
11510fi
11511
11512done
11513
11514
11515
11516
11517for ac_func in strchr index
11518do
11519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525 cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
11531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11533#define $ac_func innocuous_$ac_func
11534
11535/* System header to define __stub macros and hopefully few prototypes,
11536 which can conflict with char $ac_func (); below.
11537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 <limits.h> exists even on freestanding compilers. */
11539
11540#ifdef __STDC__
11541# include <limits.h>
11542#else
11543# include <assert.h>
11544#endif
11545
11546#undef $ac_func
11547
11548/* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551#ifdef __cplusplus
11552extern "C"
11553#endif
11554char $ac_func ();
11555/* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558#if defined __stub_$ac_func || defined __stub___$ac_func
11559choke me
11560#endif
11561
11562int
11563main ()
11564{
11565return $ac_func ();
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570rm -f conftest.$ac_objext conftest$ac_exeext
11571if { (ac_try="$ac_link"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_link") 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest$ac_exeext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11605else
11606 echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 eval "$as_ac_var=no"
11610fi
11611
11612rm -f core conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11614fi
11615ac_res=`eval echo '${'$as_ac_var'}'`
11616 { echo "$as_me:$LINENO: result: $ac_res" >&5
11617echo "${ECHO_T}$ac_res" >&6; }
11618if test `eval echo '${'$as_ac_var'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621_ACEOF
11622 break
11623fi
11624done
11625
11626
11627
11628for ac_func in strrchr rindex
11629do
11630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
11642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644#define $ac_func innocuous_$ac_func
11645
11646/* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11650
11651#ifdef __STDC__
11652# include <limits.h>
11653#else
11654# include <assert.h>
11655#endif
11656
11657#undef $ac_func
11658
11659/* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662#ifdef __cplusplus
11663extern "C"
11664#endif
11665char $ac_func ();
11666/* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669#if defined __stub_$ac_func || defined __stub___$ac_func
11670choke me
11671#endif
11672
11673int
11674main ()
11675{
11676return $ac_func ();
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext conftest$ac_exeext
11682if { (ac_try="$ac_link"
11683case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686esac
11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 eval "$as_ac_var=yes"
11716else
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 eval "$as_ac_var=no"
11721fi
11722
11723rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725fi
11726ac_res=`eval echo '${'$as_ac_var'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
11729if test `eval echo '${'$as_ac_var'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732_ACEOF
11733 break
11734fi
11735done
11736
11737
11738
11739for ac_func in memcpy bcopy
11740do
11741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h. */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h. */
11753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11755#define $ac_func innocuous_$ac_func
11756
11757/* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func (); below.
11759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760 <limits.h> exists even on freestanding compilers. */
11761
11762#ifdef __STDC__
11763# include <limits.h>
11764#else
11765# include <assert.h>
11766#endif
11767
11768#undef $ac_func
11769
11770/* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776char $ac_func ();
11777/* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780#if defined __stub_$ac_func || defined __stub___$ac_func
11781choke me
11782#endif
11783
11784int
11785main ()
11786{
11787return $ac_func ();
11788 ;
11789 return 0;
11790}
11791_ACEOF
11792rm -f conftest.$ac_objext conftest$ac_exeext
11793if { (ac_try="$ac_link"
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_link") 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_var=yes"
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 eval "$as_ac_var=no"
11832fi
11833
11834rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836fi
11837ac_res=`eval echo '${'$as_ac_var'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839echo "${ECHO_T}$ac_res" >&6; }
11840if test `eval echo '${'$as_ac_var'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843_ACEOF
11844 break
11845fi
11846done
11847
11848
11849
11850for ac_func in memmove strcmp
11851do
11852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866#define $ac_func innocuous_$ac_func
11867
11868/* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11872
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
11878
11879#undef $ac_func
11880
11881/* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887char $ac_func ();
11888/* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891#if defined __stub_$ac_func || defined __stub___$ac_func
11892choke me
11893#endif
11894
11895int
11896main ()
11897{
11898return $ac_func ();
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 eval "$as_ac_var=yes"
11938else
11939 echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 eval "$as_ac_var=no"
11943fi
11944
11945rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947fi
11948ac_res=`eval echo '${'$as_ac_var'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950echo "${ECHO_T}$ac_res" >&6; }
11951if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954_ACEOF
11955
11956fi
11957done
11958
11959
11960
11961
11962for ac_func in closedir opendir readdir
11963do
11964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h. */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h. */
11976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978#define $ac_func innocuous_$ac_func
11979
11980/* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11984
11985#ifdef __STDC__
11986# include <limits.h>
11987#else
11988# include <assert.h>
11989#endif
11990
11991#undef $ac_func
11992
11993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char $ac_func ();
12000/* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003#if defined __stub_$ac_func || defined __stub___$ac_func
12004choke me
12005#endif
12006
12007int
12008main ()
12009{
12010return $ac_func ();
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (ac_try="$ac_link"
12017case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "$as_ac_var=yes"
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 eval "$as_ac_var=no"
12055fi
12056
12057rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059fi
12060ac_res=`eval echo '${'$as_ac_var'}'`
12061 { echo "$as_me:$LINENO: result: $ac_res" >&5
12062echo "${ECHO_T}$ac_res" >&6; }
12063if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066_ACEOF
12067
12068fi
12069done
12070
12071
12072
12073{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12074echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12075
12076ICC=no
12077IXX=no
12078case $CC in
12079 icc*|icpc*)
12080 ICC=yes
12081 IXX=yes
12082 ;;
12083 *)
12084 ;;
12085esac
12086
12087if test "$GCC" != "yes" && test "$ICC" != "yes"
12088then
12089 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12090echo "$as_me: error: gcc|icc required but not found" >&2;}
12091 { (exit 1); exit 1; }; }
12092fi
12093
12094if test "$GXX" != "yes" && test "$IXX" != "yes"
12095then
12096 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12097echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12098 { (exit 1); exit 1; }; }
12099fi
12100
12101if test "$GCC" = "yes"
12102then
12103 cat >conftest.$ac_ext <<_ACEOF
12104#if !defined(__GNUC__) || __GNUC__ < 3
12105#error Unsupported GCC version
12106#endif
12107
12108_ACEOF
12109rm -f conftest.$ac_objext
12110if { (ac_try="$ac_compile"
12111case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114esac
12115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12124 { (case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_try") 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; } &&
12133 { ac_try='test -s conftest.$ac_objext'
12134 { (case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_try") 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 :
12144else
12145 echo "$as_me: failed program was:" >&5
12146sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12149echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12150 { (exit 1); exit 1; }; }
12151fi
12152
12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154fi
12155
12156if test -z "$llvm_cv_gnu_make_command"
12157then
12158 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12159echo "$as_me: error: GNU Make required but not found" >&2;}
12160 { (exit 1); exit 1; }; }
12161fi
12162
12163{ echo "$as_me:$LINENO: result: ok" >&5
12164echo "${ECHO_T}ok" >&6; }
12165
12166{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12167echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12168NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12169
12170NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12171
12172{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12173echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12174
12175
12176
12177{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12178echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12179if test "${ac_cv_lib_m_sin+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 ac_check_lib_save_LIBS=$LIBS
12183LIBS="-lm $LIBS"
12184cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190
12191/* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12194#ifdef __cplusplus
12195extern "C"
12196#endif
12197char sin ();
12198int
12199main ()
12200{
12201return sin ();
12202 ;
12203 return 0;
12204}
12205_ACEOF
12206rm -f conftest.$ac_objext conftest$ac_exeext
12207if { (ac_try="$ac_link"
12208case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_lib_m_sin=yes
12241else
12242 echo "$as_me: failed program was:" >&5
12243sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_cv_lib_m_sin=no
12246fi
12247
12248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250LIBS=$ac_check_lib_save_LIBS
12251fi
12252{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12253echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12254if test $ac_cv_lib_m_sin = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256#define HAVE_LIBM 1
12257_ACEOF
12258
12259 LIBS="-lm $LIBS"
12260
12261fi
12262
12263if test "$llvm_cv_os_type" = "MingW" ; then
12264
12265{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12266echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12267if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 ac_check_lib_save_LIBS=$LIBS
12271LIBS="-limagehlp $LIBS"
12272cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h. */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */
12278
12279
12280int
12281main ()
12282{
12283return main ();
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext conftest$ac_exeext
12289if { (ac_try="$ac_link"
12290case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_link") 2>conftest.er1
12296 ac_status=$?
12297 grep -v '^ *+' conftest.er1 >conftest.err
12298 rm -f conftest.er1
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12303 { (case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306esac
12307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_try") 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_lib_imagehlp_main=yes
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_cv_lib_imagehlp_main=no
12328fi
12329
12330rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332LIBS=$ac_check_lib_save_LIBS
12333fi
12334{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12335echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12336if test $ac_cv_lib_imagehlp_main = yes; then
12337 cat >>confdefs.h <<_ACEOF
12338#define HAVE_LIBIMAGEHLP 1
12339_ACEOF
12340
12341 LIBS="-limagehlp $LIBS"
12342
12343fi
12344
12345
12346{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12347echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12348if test "${ac_cv_lib_psapi_main+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 ac_check_lib_save_LIBS=$LIBS
12352LIBS="-lpsapi $LIBS"
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359
12360
12361int
12362main ()
12363{
12364return main ();
12365 ;
12366 return 0;
12367}
12368_ACEOF
12369rm -f conftest.$ac_objext conftest$ac_exeext
12370if { (ac_try="$ac_link"
12371case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_link") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387esac
12388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_lib_psapi_main=yes
12404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_cv_lib_psapi_main=no
12409fi
12410
12411rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413LIBS=$ac_check_lib_save_LIBS
12414fi
12415{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12416echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12417if test $ac_cv_lib_psapi_main = yes; then
12418 cat >>confdefs.h <<_ACEOF
12419#define HAVE_LIBPSAPI 1
12420_ACEOF
12421
12422 LIBS="-lpsapi $LIBS"
12423
12424fi
12425
12426fi
12427
12428{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12429echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12430if test "${ac_cv_search_dlopen+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 dlopen ();
12448int
12449main ()
12450{
12451return dlopen ();
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456for ac_lib in '' dl; 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_dlopen=$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_dlopen+set}" = set; then
12508 break
12509fi
12510done
12511if test "${ac_cv_search_dlopen+set}" = set; then
12512 :
12513else
12514 ac_cv_search_dlopen=no
12515fi
12516rm conftest.$ac_ext
12517LIBS=$ac_func_search_save_LIBS
12518fi
12519{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12520echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12521ac_res=$ac_cv_search_dlopen
12522if test "$ac_res" != no; then
12523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12524
12525cat >>confdefs.h <<\_ACEOF
12526#define HAVE_DLOPEN 1
12527_ACEOF
12528
12529else
12530 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12531echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12532fi
12533
12534
12535if test "$llvm_cv_enable_libffi" = "yes" ; then
12536 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12537echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12538if test "${ac_cv_search_ffi_call+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540else
12541 ac_func_search_save_LIBS=$LIBS
12542cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
12549/* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552#ifdef __cplusplus
12553extern "C"
12554#endif
12555char ffi_call ();
12556int
12557main ()
12558{
12559return ffi_call ();
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564for ac_lib in '' ffi; do
12565 if test -z "$ac_lib"; then
12566 ac_res="none required"
12567 else
12568 ac_res=-l$ac_lib
12569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12570 fi
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572if { (ac_try="$ac_link"
12573case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576esac
12577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest$ac_exeext'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_search_ffi_call=$ac_res
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610
12611fi
12612
12613rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext
12615 if test "${ac_cv_search_ffi_call+set}" = set; then
12616 break
12617fi
12618done
12619if test "${ac_cv_search_ffi_call+set}" = set; then
12620 :
12621else
12622 ac_cv_search_ffi_call=no
12623fi
12624rm conftest.$ac_ext
12625LIBS=$ac_func_search_save_LIBS
12626fi
12627{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12628echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12629ac_res=$ac_cv_search_ffi_call
12630if test "$ac_res" != no; then
12631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632
12633cat >>confdefs.h <<\_ACEOF
12634#define HAVE_FFI_CALL 1
12635_ACEOF
12636
12637else
12638 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12639echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12640 { (exit 1); exit 1; }; }
12641fi
12642
12643fi
12644
12645{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12646echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12647if test "${ac_cv_search_mallinfo+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649else
12650 ac_func_search_save_LIBS=$LIBS
12651cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657
12658/* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661#ifdef __cplusplus
12662extern "C"
12663#endif
12664char mallinfo ();
12665int
12666main ()
12667{
12668return mallinfo ();
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673for ac_lib in '' malloc; do
12674 if test -z "$ac_lib"; then
12675 ac_res="none required"
12676 else
12677 ac_res=-l$ac_lib
12678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12679 fi
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681if { (ac_try="$ac_link"
12682case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695 { (case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698esac
12699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_try") 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_search_mallinfo=$ac_res
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719
12720fi
12721
12722rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext
12724 if test "${ac_cv_search_mallinfo+set}" = set; then
12725 break
12726fi
12727done
12728if test "${ac_cv_search_mallinfo+set}" = set; then
12729 :
12730else
12731 ac_cv_search_mallinfo=no
12732fi
12733rm conftest.$ac_ext
12734LIBS=$ac_func_search_save_LIBS
12735fi
12736{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12737echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12738ac_res=$ac_cv_search_mallinfo
12739if test "$ac_res" != no; then
12740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12741
12742cat >>confdefs.h <<\_ACEOF
12743#define HAVE_MALLINFO 1
12744_ACEOF
12745
12746fi
12747
12748
12749if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12750
12751{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12752echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12753if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 ac_check_lib_save_LIBS=$LIBS
12757LIBS="-lpthread $LIBS"
12758cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764
12765/* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12768#ifdef __cplusplus
12769extern "C"
12770#endif
12771char pthread_mutex_init ();
12772int
12773main ()
12774{
12775return pthread_mutex_init ();
12776 ;
12777 return 0;
12778}
12779_ACEOF
12780rm -f conftest.$ac_objext conftest$ac_exeext
12781if { (ac_try="$ac_link"
12782case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798esac
12799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_lib_pthread_pthread_mutex_init=yes
12815else
12816 echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ac_cv_lib_pthread_pthread_mutex_init=no
12820fi
12821
12822rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12827echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12828if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830#define HAVE_LIBPTHREAD 1
12831_ACEOF
12832
12833 LIBS="-lpthread $LIBS"
12834
12835fi
12836
12837 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12838echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12839if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841else
12842 ac_func_search_save_LIBS=$LIBS
12843cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
12849
12850/* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853#ifdef __cplusplus
12854extern "C"
12855#endif
12856char pthread_mutex_lock ();
12857int
12858main ()
12859{
12860return pthread_mutex_lock ();
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865for ac_lib in '' pthread; do
12866 if test -z "$ac_lib"; then
12867 ac_res="none required"
12868 else
12869 ac_res=-l$ac_lib
12870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12871 fi
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873if { (ac_try="$ac_link"
12874case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_search_pthread_mutex_lock=$ac_res
12907else
12908 echo "$as_me: failed program was:" >&5
12909sed 's/^/| /' conftest.$ac_ext >&5
12910
12911
12912fi
12913
12914rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext
12916 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12917 break
12918fi
12919done
12920if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12921 :
12922else
12923 ac_cv_search_pthread_mutex_lock=no
12924fi
12925rm conftest.$ac_ext
12926LIBS=$ac_func_search_save_LIBS
12927fi
12928{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12929echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12930ac_res=$ac_cv_search_pthread_mutex_lock
12931if test "$ac_res" != no; then
12932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12933
12934cat >>confdefs.h <<\_ACEOF
12935#define HAVE_PTHREAD_MUTEX_LOCK 1
12936_ACEOF
12937
12938fi
12939
12940 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12941echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12942if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944else
12945 ac_func_search_save_LIBS=$LIBS
12946cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952
12953/* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12956#ifdef __cplusplus
12957extern "C"
12958#endif
12959char pthread_rwlock_init ();
12960int
12961main ()
12962{
12963return pthread_rwlock_init ();
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968for ac_lib in '' pthread; do
12969 if test -z "$ac_lib"; then
12970 ac_res="none required"
12971 else
12972 ac_res=-l$ac_lib
12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12974 fi
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976if { (ac_try="$ac_link"
12977case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest$ac_exeext'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_search_pthread_rwlock_init=$ac_res
13010else
13011 echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014
13015fi
13016
13017rm -f core conftest.err conftest.$ac_objext \
13018 conftest$ac_exeext
13019 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13020 break
13021fi
13022done
13023if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13024 :
13025else
13026 ac_cv_search_pthread_rwlock_init=no
13027fi
13028rm conftest.$ac_ext
13029LIBS=$ac_func_search_save_LIBS
13030fi
13031{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13032echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13033ac_res=$ac_cv_search_pthread_rwlock_init
13034if test "$ac_res" != no; then
13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13036
13037cat >>confdefs.h <<\_ACEOF
13038#define HAVE_PTHREAD_RWLOCK_INIT 1
13039_ACEOF
13040
13041fi
13042
13043 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13044echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13045if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048 ac_func_search_save_LIBS=$LIBS
13049cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055
13056/* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13059#ifdef __cplusplus
13060extern "C"
13061#endif
13062char pthread_getspecific ();
13063int
13064main ()
13065{
13066return pthread_getspecific ();
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071for ac_lib in '' pthread; do
13072 if test -z "$ac_lib"; then
13073 ac_res="none required"
13074 else
13075 ac_res=-l$ac_lib
13076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13077 fi
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079if { (ac_try="$ac_link"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_search_pthread_getspecific=$ac_res
13113else
13114 echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
13117
13118fi
13119
13120rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext
13122 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13123 break
13124fi
13125done
13126if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13127 :
13128else
13129 ac_cv_search_pthread_getspecific=no
13130fi
13131rm conftest.$ac_ext
13132LIBS=$ac_func_search_save_LIBS
13133fi
13134{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13135echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13136ac_res=$ac_cv_search_pthread_getspecific
13137if test "$ac_res" != no; then
13138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13139
13140cat >>confdefs.h <<\_ACEOF
13141#define HAVE_PTHREAD_GETSPECIFIC 1
13142_ACEOF
13143
13144fi
13145
13146fi
13147
13148
13149# Check whether --with-udis86 was given.
13150if test "${with_udis86+set}" = set; then
13151 withval=$with_udis86;
13152 USE_UDIS86=1
13153
13154 case "$withval" in
13155 /usr/lib|yes) ;;
13156 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13157 esac
13158
13159{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13160echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13161if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 ac_check_lib_save_LIBS=$LIBS
13165LIBS="-ludis86 $LIBS"
13166cat >conftest.$ac_ext <<_ACEOF
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
13172
13173/* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176#ifdef __cplusplus
13177extern "C"
13178#endif
13179char ud_init ();
13180int
13181main ()
13182{
13183return ud_init ();
13184 ;
13185 return 0;
13186}
13187_ACEOF
13188rm -f conftest.$ac_objext conftest$ac_exeext
13189if { (ac_try="$ac_link"
13190case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203 { (case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13206esac
13207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_try") 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_udis86_ud_init=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_cv_lib_udis86_ud_init=no
13228fi
13229
13230rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232LIBS=$ac_check_lib_save_LIBS
13233fi
13234{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13235echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13236if test $ac_cv_lib_udis86_ud_init = yes; then
13237 cat >>confdefs.h <<_ACEOF
13238#define HAVE_LIBUDIS86 1
13239_ACEOF
13240
13241 LIBS="-ludis86 $LIBS"
13242
13243else
13244
13245 echo "Error! You need to have libudis86 around."
13246 exit -1
13247
13248fi
13249
13250
13251else
13252 USE_UDIS86=0
13253
13254fi
13255
13256
13257cat >>confdefs.h <<_ACEOF
13258#define USE_UDIS86 $USE_UDIS86
13259_ACEOF
13260
13261
13262
13263# Check whether --with-oprofile was given.
13264if test "${with_oprofile+set}" = set; then
13265 withval=$with_oprofile;
13266 USE_OPROFILE=1
13267
13268 case "$withval" in
13269 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13270 no) llvm_cv_oppath=
13271 USE_OPROFILE=0
13272 ;;
13273 *) llvm_cv_oppath="${withval}/lib/oprofile"
13274 CPPFLAGS="-I${withval}/include";;
13275 esac
13276 if test -n "$llvm_cv_oppath" ; then
13277 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280if test "${ac_cv_search_bfd_init+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282else
13283 ac_func_search_save_LIBS=$LIBS
13284cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290
13291/* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294#ifdef __cplusplus
13295extern "C"
13296#endif
13297char bfd_init ();
13298int
13299main ()
13300{
13301return bfd_init ();
13302 ;
13303 return 0;
13304}
13305_ACEOF
13306for ac_lib in '' bfd; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13309 else
13310 ac_res=-l$ac_lib
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13312 fi
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314if { (ac_try="$ac_link"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_search_bfd_init=$ac_res
13348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
13353fi
13354
13355rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
13358 break
13359fi
13360done
13361if test "${ac_cv_search_bfd_init+set}" = set; then
13362 :
13363else
13364 ac_cv_search_bfd_init=no
13365fi
13366rm conftest.$ac_ext
13367LIBS=$ac_func_search_save_LIBS
13368fi
13369{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371ac_res=$ac_cv_search_bfd_init
13372if test "$ac_res" != no; then
13373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13374
13375fi
13376
13377 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379if test "${ac_cv_search_op_open_agent+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382 ac_func_search_save_LIBS=$LIBS
13383cat >conftest.$ac_ext <<_ACEOF
13384/* confdefs.h. */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
13388/* end confdefs.h. */
13389
13390/* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13393#ifdef __cplusplus
13394extern "C"
13395#endif
13396char op_open_agent ();
13397int
13398main ()
13399{
13400return op_open_agent ();
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405for ac_lib in '' opagent; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13408 else
13409 ac_res=-l$ac_lib
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 fi
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413if { (ac_try="$ac_link"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_search_op_open_agent=$ac_res
13447else
13448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452fi
13453
13454rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
13457 break
13458fi
13459done
13460if test "${ac_cv_search_op_open_agent+set}" = set; then
13461 :
13462else
13463 ac_cv_search_op_open_agent=no
13464fi
13465rm conftest.$ac_ext
13466LIBS=$ac_func_search_save_LIBS
13467fi
13468{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470ac_res=$ac_cv_search_op_open_agent
13471if test "$ac_res" != no; then
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474else
13475
13476 echo "Error! You need to have libopagent around."
13477 exit -1
13478
13479fi
13480
13481 if test "${ac_cv_header_opagent_h+set}" = set; then
13482 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484if test "${ac_cv_header_opagent_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486fi
13487{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489else
13490 # Is the header compilable?
13491{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499$ac_includes_default
13500#include <opagent.h>
13501_ACEOF
13502rm -f conftest.$ac_objext
13503if { (ac_try="$ac_compile"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_header_compiler=yes
13537else
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_header_compiler=no
13542fi
13543
13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546echo "${ECHO_T}$ac_header_compiler" >&6; }
13547
13548# Is the header present?
13549{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
13557#include <opagent.h>
13558_ACEOF
13559if { (ac_try="$ac_cpp conftest.$ac_ext"
13560case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575 else
13576 ac_cpp_err=
13577 fi
13578else
13579 ac_cpp_err=yes
13580fi
13581if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_header_preproc=no
13588fi
13589
13590rm -f conftest.err conftest.$ac_ext
13591{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592echo "${ECHO_T}$ac_header_preproc" >&6; }
13593
13594# So? What about this header?
13595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 yes:no: )
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
13602 ;;
13603 no:yes:* )
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13607echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13611echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616 ( cat <<\_ASBOX
13617## ------------------------------ ##
13618## Report this to bugs@yourdomain ##
13619## ------------------------------ ##
13620_ASBOX
13621 ) | sed "s/^/$as_me: WARNING: /" >&2
13622 ;;
13623esac
13624{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13625echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626if test "${ac_cv_header_opagent_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628else
13629 ac_cv_header_opagent_h=$ac_header_preproc
13630fi
13631{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13633
13634fi
13635if test $ac_cv_header_opagent_h = yes; then
13636 :
13637else
13638
13639 echo "Error! You need to have opagent.h around."
13640 exit -1
13641
13642fi
13643
13644
13645 fi
13646
13647else
13648
13649 USE_OPROFILE=0
13650
13651
13652fi
13653
13654
13655cat >>confdefs.h <<_ACEOF
13656#define USE_OPROFILE $USE_OPROFILE
13657_ACEOF
13658
13659
13660
13661
13662
13663
13664
13665
13666ac_header_dirent=no
13667for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13669{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13670echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674 cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
13680#include <sys/types.h>
13681#include <$ac_hdr>
13682
13683int
13684main ()
13685{
13686if ((DIR *) 0)
13687return 0;
13688 ;
13689 return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext
13693if { (ac_try="$ac_compile"
13694case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 eval "$as_ac_Header=yes"
13727else
13728 echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 eval "$as_ac_Header=no"
13732fi
13733
13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735fi
13736ac_res=`eval echo '${'$as_ac_Header'}'`
13737 { echo "$as_me:$LINENO: result: $ac_res" >&5
13738echo "${ECHO_T}$ac_res" >&6; }
13739if test `eval echo '${'$as_ac_Header'}'` = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13742_ACEOF
13743
13744ac_header_dirent=$ac_hdr; break
13745fi
13746
13747done
13748# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13749if test $ac_header_dirent = dirent.h; then
13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752if test "${ac_cv_search_opendir+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755 ac_func_search_save_LIBS=$LIBS
13756cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h. */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h. */
13762
13763/* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13766#ifdef __cplusplus
13767extern "C"
13768#endif
13769char opendir ();
13770int
13771main ()
13772{
13773return opendir ();
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778for ac_lib in '' dir; do
13779 if test -z "$ac_lib"; then
13780 ac_res="none required"
13781 else
13782 ac_res=-l$ac_lib
13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13784 fi
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786if { (ac_try="$ac_link"
13787case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790esac
13791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803esac
13804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_opendir=$ac_res
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824
13825fi
13826
13827rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext
13829 if test "${ac_cv_search_opendir+set}" = set; then
13830 break
13831fi
13832done
13833if test "${ac_cv_search_opendir+set}" = set; then
13834 :
13835else
13836 ac_cv_search_opendir=no
13837fi
13838rm conftest.$ac_ext
13839LIBS=$ac_func_search_save_LIBS
13840fi
13841{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843ac_res=$ac_cv_search_opendir
13844if test "$ac_res" != no; then
13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13846
13847fi
13848
13849else
13850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13851echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13852if test "${ac_cv_search_opendir+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855 ac_func_search_save_LIBS=$LIBS
13856cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862
13863/* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13866#ifdef __cplusplus
13867extern "C"
13868#endif
13869char opendir ();
13870int
13871main ()
13872{
13873return opendir ();
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878for ac_lib in '' x; do
13879 if test -z "$ac_lib"; then
13880 ac_res="none required"
13881 else
13882 ac_res=-l$ac_lib
13883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13884 fi
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886if { (ac_try="$ac_link"
13887case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903esac
13904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913esac
13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_search_opendir=$ac_res
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924
13925fi
13926
13927rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext
13929 if test "${ac_cv_search_opendir+set}" = set; then
13930 break
13931fi
13932done
13933if test "${ac_cv_search_opendir+set}" = set; then
13934 :
13935else
13936 ac_cv_search_opendir=no
13937fi
13938rm conftest.$ac_ext
13939LIBS=$ac_func_search_save_LIBS
13940fi
13941{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13942echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13943ac_res=$ac_cv_search_opendir
13944if test "$ac_res" != no; then
13945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13946
13947fi
13948
13949fi
13950
13951{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13952echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13953if test "${ac_cv_header_mmap_anon+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
13956 ac_ext=c
13957ac_cpp='$CPP $CPPFLAGS'
13958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961
13962 cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968#include <sys/mman.h>
13969#include <unistd.h>
13970#include <fcntl.h>
13971int
13972main ()
13973{
13974mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13975 ;
13976 return 0;
13977}
13978_ACEOF
13979rm -f conftest.$ac_objext
13980if { (ac_try="$ac_compile"
13981case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997esac
13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_header_mmap_anon=yes
14014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 ac_cv_header_mmap_anon=no
14019fi
14020
14021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 ac_ext=c
14023ac_cpp='$CPP $CPPFLAGS'
14024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028
14029fi
14030{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14031echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14032if test "$ac_cv_header_mmap_anon" = yes; then
14033
14034cat >>confdefs.h <<\_ACEOF
14035#define HAVE_MMAP_ANONYMOUS 1
14036_ACEOF
14037
14038fi
14039
14040{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14041echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14042if test "${ac_cv_header_stat_broken+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 cat >conftest.$ac_ext <<_ACEOF
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051#include <sys/types.h>
14052#include <sys/stat.h>
14053
14054#if defined S_ISBLK && defined S_IFDIR
14055# if S_ISBLK (S_IFDIR)
14056You lose.
14057# endif
14058#endif
14059
14060#if defined S_ISBLK && defined S_IFCHR
14061# if S_ISBLK (S_IFCHR)
14062You lose.
14063# endif
14064#endif
14065
14066#if defined S_ISLNK && defined S_IFREG
14067# if S_ISLNK (S_IFREG)
14068You lose.
14069# endif
14070#endif
14071
14072#if defined S_ISSOCK && defined S_IFREG
14073# if S_ISSOCK (S_IFREG)
14074You lose.
14075# endif
14076#endif
14077
14078_ACEOF
14079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "You lose" >/dev/null 2>&1; then
14081 ac_cv_header_stat_broken=yes
14082else
14083 ac_cv_header_stat_broken=no
14084fi
14085rm -f conftest*
14086
14087fi
14088{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14089echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14090if test $ac_cv_header_stat_broken = yes; then
14091
14092cat >>confdefs.h <<\_ACEOF
14093#define STAT_MACROS_BROKEN 1
14094_ACEOF
14095
14096fi
14097
14098{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14099echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14100if test "${ac_cv_header_sys_wait_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103 cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
14109#include <sys/types.h>
14110#include <sys/wait.h>
14111#ifndef WEXITSTATUS
14112# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14113#endif
14114#ifndef WIFEXITED
14115# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14116#endif
14117
14118int
14119main ()
14120{
14121 int s;
14122 wait (&s);
14123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14124 ;
14125 return 0;
14126}
14127_ACEOF
14128rm -f conftest.$ac_objext
14129if { (ac_try="$ac_compile"
14130case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146esac
14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156esac
14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_header_sys_wait_h=yes
14163else
14164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_cv_header_sys_wait_h=no
14168fi
14169
14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171fi
14172{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14173echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14174if test $ac_cv_header_sys_wait_h = yes; then
14175
14176cat >>confdefs.h <<\_ACEOF
14177#define HAVE_SYS_WAIT_H 1
14178_ACEOF
14179
14180fi
14181
14182{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14183echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14184if test "${ac_cv_header_time+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186else
14187 cat >conftest.$ac_ext <<_ACEOF
14188/* confdefs.h. */
14189_ACEOF
14190cat confdefs.h >>conftest.$ac_ext
14191cat >>conftest.$ac_ext <<_ACEOF
14192/* end confdefs.h. */
14193#include <sys/types.h>
14194#include <sys/time.h>
14195#include <time.h>
14196
14197int
14198main ()
14199{
14200if ((struct tm *) 0)
14201return 0;
14202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext
14207if { (ac_try="$ac_compile"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_header_time=yes
14241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245 ac_cv_header_time=no
14246fi
14247
14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249fi
14250{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14251echo "${ECHO_T}$ac_cv_header_time" >&6; }
14252if test $ac_cv_header_time = yes; then
14253
14254cat >>confdefs.h <<\_ACEOF
14255#define TIME_WITH_SYS_TIME 1
14256_ACEOF
14257
14258fi
14259
14260
14261
14262
14263
14264
14265
14266
14267for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14268do
14269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275fi
14276ac_res=`eval echo '${'$as_ac_Header'}'`
14277 { echo "$as_me:$LINENO: result: $ac_res" >&5
14278echo "${ECHO_T}$ac_res" >&6; }
14279else
14280 # Is the header compilable?
14281{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14283cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
14289$ac_includes_default
14290#include <$ac_header>
14291_ACEOF
14292rm -f conftest.$ac_objext
14293if { (ac_try="$ac_compile"
14294case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_compile") 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310esac
14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } &&
14316 { ac_try='test -s conftest.$ac_objext'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_header_compiler=yes
14327else
14328 echo "$as_me: failed program was:" >&5
14329sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_header_compiler=no
14332fi
14333
14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14336echo "${ECHO_T}$ac_header_compiler" >&6; }
14337
14338# Is the header present?
14339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14341cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347#include <$ac_header>
14348_ACEOF
14349if { (ac_try="$ac_cpp conftest.$ac_ext"
14350case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } >/dev/null; then
14362 if test -s conftest.err; then
14363 ac_cpp_err=$ac_c_preproc_warn_flag
14364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14365 else
14366 ac_cpp_err=
14367 fi
14368else
14369 ac_cpp_err=yes
14370fi
14371if test -z "$ac_cpp_err"; then
14372 ac_header_preproc=yes
14373else
14374 echo "$as_me: failed program was:" >&5
14375sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ac_header_preproc=no
14378fi
14379
14380rm -f conftest.err conftest.$ac_ext
14381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382echo "${ECHO_T}$ac_header_preproc" >&6; }
14383
14384# So? What about this header?
14385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 yes:no: )
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
14392 ;;
14393 no:yes:* )
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14406 ( cat <<\_ASBOX
14407## ------------------------------ ##
14408## Report this to bugs@yourdomain ##
14409## ------------------------------ ##
14410_ASBOX
14411 ) | sed "s/^/$as_me: WARNING: /" >&2
14412 ;;
14413esac
14414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419 eval "$as_ac_Header=\$ac_header_preproc"
14420fi
14421ac_res=`eval echo '${'$as_ac_Header'}'`
14422 { echo "$as_me:$LINENO: result: $ac_res" >&5
14423echo "${ECHO_T}$ac_res" >&6; }
14424
14425fi
14426if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429_ACEOF
14430
14431fi
14432
14433done
14434
14435
14436
14437
14438
14439
14440
14441for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14442do
14443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449fi
14450ac_res=`eval echo '${'$as_ac_Header'}'`
14451 { echo "$as_me:$LINENO: result: $ac_res" >&5
14452echo "${ECHO_T}$ac_res" >&6; }
14453else
14454 # Is the header compilable?
14455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14457cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463$ac_includes_default
14464#include <$ac_header>
14465_ACEOF
14466rm -f conftest.$ac_objext
14467if { (ac_try="$ac_compile"
14468case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471esac
14472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484esac
14485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_header_compiler=yes
14501else
14502 echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 ac_header_compiler=no
14506fi
14507
14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510echo "${ECHO_T}$ac_header_compiler" >&6; }
14511
14512# Is the header present?
14513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14515cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h. */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
14520/* end confdefs.h. */
14521#include <$ac_header>
14522_ACEOF
14523if { (ac_try="$ac_cpp conftest.$ac_ext"
14524case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } >/dev/null; then
14536 if test -s conftest.err; then
14537 ac_cpp_err=$ac_c_preproc_warn_flag
14538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14539 else
14540 ac_cpp_err=
14541 fi
14542else
14543 ac_cpp_err=yes
14544fi
14545if test -z "$ac_cpp_err"; then
14546 ac_header_preproc=yes
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551 ac_header_preproc=no
14552fi
14553
14554rm -f conftest.err conftest.$ac_ext
14555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14556echo "${ECHO_T}$ac_header_preproc" >&6; }
14557
14558# So? What about this header?
14559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14560 yes:no: )
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14565 ac_header_preproc=yes
14566 ;;
14567 no:yes:* )
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14580 ( cat <<\_ASBOX
14581## ------------------------------ ##
14582## Report this to bugs@yourdomain ##
14583## ------------------------------ ##
14584_ASBOX
14585 ) | sed "s/^/$as_me: WARNING: /" >&2
14586 ;;
14587esac
14588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593 eval "$as_ac_Header=\$ac_header_preproc"
14594fi
14595ac_res=`eval echo '${'$as_ac_Header'}'`
14596 { echo "$as_me:$LINENO: result: $ac_res" >&5
14597echo "${ECHO_T}$ac_res" >&6; }
14598
14599fi
14600if test `eval echo '${'$as_ac_Header'}'` = yes; then
14601 cat >>confdefs.h <<_ACEOF
14602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14603_ACEOF
14604
14605fi
14606
14607done
14608
14609
14610
14611for ac_header in utime.h windows.h
14612do
14613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619fi
14620ac_res=`eval echo '${'$as_ac_Header'}'`
14621 { echo "$as_me:$LINENO: result: $ac_res" >&5
14622echo "${ECHO_T}$ac_res" >&6; }
14623else
14624 # Is the header compilable?
14625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633$ac_includes_default
14634#include <$ac_header>
14635_ACEOF
14636rm -f conftest.$ac_objext
14637if { (ac_try="$ac_compile"
14638case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664esac
14665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_header_compiler=yes
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_header_compiler=no
14676fi
14677
14678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680echo "${ECHO_T}$ac_header_compiler" >&6; }
14681
14682# Is the header present?
14683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14685cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
14691#include <$ac_header>
14692_ACEOF
14693if { (ac_try="$ac_cpp conftest.$ac_ext"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } >/dev/null; then
14706 if test -s conftest.err; then
14707 ac_cpp_err=$ac_c_preproc_warn_flag
14708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14709 else
14710 ac_cpp_err=
14711 fi
14712else
14713 ac_cpp_err=yes
14714fi
14715if test -z "$ac_cpp_err"; then
14716 ac_header_preproc=yes
14717else
14718 echo "$as_me: failed program was:" >&5
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ac_header_preproc=no
14722fi
14723
14724rm -f conftest.err conftest.$ac_ext
14725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726echo "${ECHO_T}$ac_header_preproc" >&6; }
14727
14728# So? What about this header?
14729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 yes:no: )
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14736 ;;
14737 no:yes:* )
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14750 ( cat <<\_ASBOX
14751## ------------------------------ ##
14752## Report this to bugs@yourdomain ##
14753## ------------------------------ ##
14754_ASBOX
14755 ) | sed "s/^/$as_me: WARNING: /" >&2
14756 ;;
14757esac
14758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762else
14763 eval "$as_ac_Header=\$ac_header_preproc"
14764fi
14765ac_res=`eval echo '${'$as_ac_Header'}'`
14766 { echo "$as_me:$LINENO: result: $ac_res" >&5
14767echo "${ECHO_T}$ac_res" >&6; }
14768
14769fi
14770if test `eval echo '${'$as_ac_Header'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773_ACEOF
14774
14775fi
14776
14777done
14778
14779
14780
14781
14782
14783
14784for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14785do
14786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792fi
14793ac_res=`eval echo '${'$as_ac_Header'}'`
14794 { echo "$as_me:$LINENO: result: $ac_res" >&5
14795echo "${ECHO_T}$ac_res" >&6; }
14796else
14797 # Is the header compilable?
14798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807#include <$ac_header>
14808_ACEOF
14809rm -f conftest.$ac_objext
14810if { (ac_try="$ac_compile"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837esac
14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_header_compiler=no
14849fi
14850
14851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853echo "${ECHO_T}$ac_header_compiler" >&6; }
14854
14855# Is the header present?
14856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864#include <$ac_header>
14865_ACEOF
14866if { (ac_try="$ac_cpp conftest.$ac_ext"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } >/dev/null; then
14879 if test -s conftest.err; then
14880 ac_cpp_err=$ac_c_preproc_warn_flag
14881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14882 else
14883 ac_cpp_err=
14884 fi
14885else
14886 ac_cpp_err=yes
14887fi
14888if test -z "$ac_cpp_err"; then
14889 ac_header_preproc=yes
14890else
14891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_header_preproc=no
14895fi
14896
14897rm -f conftest.err conftest.$ac_ext
14898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899echo "${ECHO_T}$ac_header_preproc" >&6; }
14900
14901# So? What about this header?
14902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 yes:no: )
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14909 ;;
14910 no:yes:* )
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923 ( cat <<\_ASBOX
14924## ------------------------------ ##
14925## Report this to bugs@yourdomain ##
14926## ------------------------------ ##
14927_ASBOX
14928 ) | sed "s/^/$as_me: WARNING: /" >&2
14929 ;;
14930esac
14931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936 eval "$as_ac_Header=\$ac_header_preproc"
14937fi
14938ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940echo "${ECHO_T}$ac_res" >&6; }
14941
14942fi
14943if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14946_ACEOF
14947
14948fi
14949
14950done
14951
14952
14953
14954
14955
14956for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14957do
14958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964fi
14965ac_res=`eval echo '${'$as_ac_Header'}'`
14966 { echo "$as_me:$LINENO: result: $ac_res" >&5
14967echo "${ECHO_T}$ac_res" >&6; }
14968else
14969 # Is the header compilable?
14970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14972cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978$ac_includes_default
14979#include <$ac_header>
14980_ACEOF
14981rm -f conftest.$ac_objext
14982if { (ac_try="$ac_compile"
14983case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999esac
15000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest.$ac_objext'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009esac
15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_header_compiler=yes
15016else
15017 echo "$as_me: failed program was:" >&5
15018sed 's/^/| /' conftest.$ac_ext >&5
15019
15020 ac_header_compiler=no
15021fi
15022
15023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15025echo "${ECHO_T}$ac_header_compiler" >&6; }
15026
15027# Is the header present?
15028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15030cat >conftest.$ac_ext <<_ACEOF
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
15036#include <$ac_header>
15037_ACEOF
15038if { (ac_try="$ac_cpp conftest.$ac_ext"
15039case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } >/dev/null; then
15051 if test -s conftest.err; then
15052 ac_cpp_err=$ac_c_preproc_warn_flag
15053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15054 else
15055 ac_cpp_err=
15056 fi
15057else
15058 ac_cpp_err=yes
15059fi
15060if test -z "$ac_cpp_err"; then
15061 ac_header_preproc=yes
15062else
15063 echo "$as_me: failed program was:" >&5
15064sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_header_preproc=no
15067fi
15068
15069rm -f conftest.err conftest.$ac_ext
15070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15071echo "${ECHO_T}$ac_header_preproc" >&6; }
15072
15073# So? What about this header?
15074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15075 yes:no: )
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15080 ac_header_preproc=yes
15081 ;;
15082 no:yes:* )
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15095 ( cat <<\_ASBOX
15096## ------------------------------ ##
15097## Report this to bugs@yourdomain ##
15098## ------------------------------ ##
15099_ASBOX
15100 ) | sed "s/^/$as_me: WARNING: /" >&2
15101 ;;
15102esac
15103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107else
15108 eval "$as_ac_Header=\$ac_header_preproc"
15109fi
15110ac_res=`eval echo '${'$as_ac_Header'}'`
15111 { echo "$as_me:$LINENO: result: $ac_res" >&5
15112echo "${ECHO_T}$ac_res" >&6; }
15113
15114fi
15115if test `eval echo '${'$as_ac_Header'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15118_ACEOF
15119
15120fi
15121
15122done
15123
15124
15125for ac_header in valgrind/valgrind.h
15126do
15127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133fi
15134ac_res=`eval echo '${'$as_ac_Header'}'`
15135 { echo "$as_me:$LINENO: result: $ac_res" >&5
15136echo "${ECHO_T}$ac_res" >&6; }
15137else
15138 # Is the header compilable?
15139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15141cat >conftest.$ac_ext <<_ACEOF
15142/* confdefs.h. */
15143_ACEOF
15144cat confdefs.h >>conftest.$ac_ext
15145cat >>conftest.$ac_ext <<_ACEOF
15146/* end confdefs.h. */
15147$ac_includes_default
15148#include <$ac_header>
15149_ACEOF
15150rm -f conftest.$ac_objext
15151if { (ac_try="$ac_compile"
15152case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168esac
15169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178esac
15179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_header_compiler=yes
15185else
15186 echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 ac_header_compiler=no
15190fi
15191
15192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194echo "${ECHO_T}$ac_header_compiler" >&6; }
15195
15196# Is the header present?
15197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15199cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h. */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h. */
15205#include <$ac_header>
15206_ACEOF
15207if { (ac_try="$ac_cpp conftest.$ac_ext"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15223 else
15224 ac_cpp_err=
15225 fi
15226else
15227 ac_cpp_err=yes
15228fi
15229if test -z "$ac_cpp_err"; then
15230 ac_header_preproc=yes
15231else
15232 echo "$as_me: failed program was:" >&5
15233sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_header_preproc=no
15236fi
15237
15238rm -f conftest.err conftest.$ac_ext
15239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240echo "${ECHO_T}$ac_header_preproc" >&6; }
15241
15242# So? What about this header?
15243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244 yes:no: )
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15250 ;;
15251 no:yes:* )
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15264 ( cat <<\_ASBOX
15265## ------------------------------ ##
15266## Report this to bugs@yourdomain ##
15267## ------------------------------ ##
15268_ASBOX
15269 ) | sed "s/^/$as_me: WARNING: /" >&2
15270 ;;
15271esac
15272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 eval "$as_ac_Header=\$ac_header_preproc"
15278fi
15279ac_res=`eval echo '${'$as_ac_Header'}'`
15280 { echo "$as_me:$LINENO: result: $ac_res" >&5
15281echo "${ECHO_T}$ac_res" >&6; }
15282
15283fi
15284if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287_ACEOF
15288
15289fi
15290
15291done
15292
15293
15294for ac_header in fenv.h
15295do
15296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302fi
15303ac_res=`eval echo '${'$as_ac_Header'}'`
15304 { echo "$as_me:$LINENO: result: $ac_res" >&5
15305echo "${ECHO_T}$ac_res" >&6; }
15306else
15307 # Is the header compilable?
15308{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316$ac_includes_default
15317#include <$ac_header>
15318_ACEOF
15319rm -f conftest.$ac_objext
15320if { (ac_try="$ac_compile"
15321case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324esac
15325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_compile") 2>conftest.er1
15327 ac_status=$?
15328 grep -v '^ *+' conftest.er1 >conftest.err
15329 rm -f conftest.er1
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15347esac
15348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_header_compiler=yes
15354else
15355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_header_compiler=no
15359fi
15360
15361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15363echo "${ECHO_T}$ac_header_compiler" >&6; }
15364
15365# Is the header present?
15366{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15368cat >conftest.$ac_ext <<_ACEOF
15369/* confdefs.h. */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h. */
15374#include <$ac_header>
15375_ACEOF
15376if { (ac_try="$ac_cpp conftest.$ac_ext"
15377case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380esac
15381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } >/dev/null; then
15389 if test -s conftest.err; then
15390 ac_cpp_err=$ac_c_preproc_warn_flag
15391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15392 else
15393 ac_cpp_err=
15394 fi
15395else
15396 ac_cpp_err=yes
15397fi
15398if test -z "$ac_cpp_err"; then
15399 ac_header_preproc=yes
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_header_preproc=no
15405fi
15406
15407rm -f conftest.err conftest.$ac_ext
15408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409echo "${ECHO_T}$ac_header_preproc" >&6; }
15410
15411# So? What about this header?
15412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413 yes:no: )
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15418 ac_header_preproc=yes
15419 ;;
15420 no:yes:* )
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15433 ( cat <<\_ASBOX
15434## ------------------------------ ##
15435## Report this to bugs@yourdomain ##
15436## ------------------------------ ##
15437_ASBOX
15438 ) | sed "s/^/$as_me: WARNING: /" >&2
15439 ;;
15440esac
15441{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445else
15446 eval "$as_ac_Header=\$ac_header_preproc"
15447fi
15448ac_res=`eval echo '${'$as_ac_Header'}'`
15449 { echo "$as_me:$LINENO: result: $ac_res" >&5
15450echo "${ECHO_T}$ac_res" >&6; }
15451
15452fi
15453if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456_ACEOF
15457
15458fi
15459
15460done
15461
15462if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15463
15464for ac_header in pthread.h
15465do
15466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472fi
15473ac_res=`eval echo '${'$as_ac_Header'}'`
15474 { echo "$as_me:$LINENO: result: $ac_res" >&5
15475echo "${ECHO_T}$ac_res" >&6; }
15476else
15477 # Is the header compilable?
15478{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15480cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487#include <$ac_header>
15488_ACEOF
15489rm -f conftest.$ac_objext
15490if { (ac_try="$ac_compile"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_compile") 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507esac
15508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517esac
15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_header_compiler=yes
15524else
15525 echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 ac_header_compiler=no
15529fi
15530
15531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15533echo "${ECHO_T}$ac_header_compiler" >&6; }
15534
15535# Is the header present?
15536{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15538cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544#include <$ac_header>
15545_ACEOF
15546if { (ac_try="$ac_cpp conftest.$ac_ext"
15547case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } >/dev/null; then
15559 if test -s conftest.err; then
15560 ac_cpp_err=$ac_c_preproc_warn_flag
15561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15562 else
15563 ac_cpp_err=
15564 fi
15565else
15566 ac_cpp_err=yes
15567fi
15568if test -z "$ac_cpp_err"; then
15569 ac_header_preproc=yes
15570else
15571 echo "$as_me: failed program was:" >&5
15572sed 's/^/| /' conftest.$ac_ext >&5
15573
15574 ac_header_preproc=no
15575fi
15576
15577rm -f conftest.err conftest.$ac_ext
15578{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15579echo "${ECHO_T}$ac_header_preproc" >&6; }
15580
15581# So? What about this header?
15582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15583 yes:no: )
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15588 ac_header_preproc=yes
15589 ;;
15590 no:yes:* )
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603 ( cat <<\_ASBOX
15604## ------------------------------ ##
15605## Report this to bugs@yourdomain ##
15606## ------------------------------ ##
15607_ASBOX
15608 ) | sed "s/^/$as_me: WARNING: /" >&2
15609 ;;
15610esac
15611{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615else
15616 eval "$as_ac_Header=\$ac_header_preproc"
15617fi
15618ac_res=`eval echo '${'$as_ac_Header'}'`
15619 { echo "$as_me:$LINENO: result: $ac_res" >&5
15620echo "${ECHO_T}$ac_res" >&6; }
15621
15622fi
15623if test `eval echo '${'$as_ac_Header'}'` = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15626_ACEOF
15627 HAVE_PTHREAD=1
15628
15629else
15630 HAVE_PTHREAD=0
15631
15632fi
15633
15634done
15635
15636else
15637 HAVE_PTHREAD=0
15638
15639fi
15640
15641if test "$llvm_cv_enable_libffi" = "yes" ; then
15642
15643
15644for ac_header in ffi.h ffi/ffi.h
15645do
15646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652fi
15653ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655echo "${ECHO_T}$ac_res" >&6; }
15656else
15657 # Is the header compilable?
15658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666$ac_includes_default
15667#include <$ac_header>
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (ac_try="$ac_compile"
15671case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674esac
15675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687esac
15688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest.$ac_objext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_header_compiler=yes
15704else
15705 echo "$as_me: failed program was:" >&5
15706sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_header_compiler=no
15709fi
15710
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713echo "${ECHO_T}$ac_header_compiler" >&6; }
15714
15715# Is the header present?
15716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718cat >conftest.$ac_ext <<_ACEOF
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724#include <$ac_header>
15725_ACEOF
15726if { (ac_try="$ac_cpp conftest.$ac_ext"
15727case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev/null; then
15739 if test -s conftest.err; then
15740 ac_cpp_err=$ac_c_preproc_warn_flag
15741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742 else
15743 ac_cpp_err=
15744 fi
15745else
15746 ac_cpp_err=yes
15747fi
15748if test -z "$ac_cpp_err"; then
15749 ac_header_preproc=yes
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_header_preproc=no
15755fi
15756
15757rm -f conftest.err conftest.$ac_ext
15758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759echo "${ECHO_T}$ac_header_preproc" >&6; }
15760
15761# So? What about this header?
15762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763 yes:no: )
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc=yes
15769 ;;
15770 no:yes:* )
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783 ( cat <<\_ASBOX
15784## ------------------------------ ##
15785## Report this to bugs@yourdomain ##
15786## ------------------------------ ##
15787_ASBOX
15788 ) | sed "s/^/$as_me: WARNING: /" >&2
15789 ;;
15790esac
15791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795else
15796 eval "$as_ac_Header=\$ac_header_preproc"
15797fi
15798ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800echo "${ECHO_T}$ac_res" >&6; }
15801
15802fi
15803if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15806_ACEOF
15807
15808fi
15809
15810done
15811
15812fi
15813
15814
15815for ac_header in CrashReporterClient.h
15816do
15817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823fi
15824ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826echo "${ECHO_T}$ac_res" >&6; }
15827else
15828 # Is the header compilable?
15829{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831cat >conftest.$ac_ext <<_ACEOF
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */
15837$ac_includes_default
15838#include <$ac_header>
15839_ACEOF
15840rm -f conftest.$ac_objext
15841if { (ac_try="$ac_compile"
15842case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858esac
15859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
15869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15875else
15876 echo "$as_me: failed program was:" >&5
15877sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 ac_header_compiler=no
15880fi
15881
15882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884echo "${ECHO_T}$ac_header_compiler" >&6; }
15885
15886# Is the header present?
15887{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
15895#include <$ac_header>
15896_ACEOF
15897if { (ac_try="$ac_cpp conftest.$ac_ext"
15898case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913 else
15914 ac_cpp_err=
15915 fi
15916else
15917 ac_cpp_err=yes
15918fi
15919if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 ac_header_preproc=no
15926fi
15927
15928rm -f conftest.err conftest.$ac_ext
15929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930echo "${ECHO_T}$ac_header_preproc" >&6; }
15931
15932# So? What about this header?
15933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934 yes:no: )
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939 ac_header_preproc=yes
15940 ;;
15941 no:yes:* )
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15945echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15949echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954 ( cat <<\_ASBOX
15955## ------------------------------ ##
15956## Report this to bugs@yourdomain ##
15957## ------------------------------ ##
15958_ASBOX
15959 ) | sed "s/^/$as_me: WARNING: /" >&2
15960 ;;
15961esac
15962{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966else
15967 eval "$as_ac_Header=\$ac_header_preproc"
15968fi
15969ac_res=`eval echo '${'$as_ac_Header'}'`
15970 { echo "$as_me:$LINENO: result: $ac_res" >&5
15971echo "${ECHO_T}$ac_res" >&6; }
15972
15973fi
15974if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975 cat >>confdefs.h <<_ACEOF
15976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977_ACEOF
15978
15979fi
15980
15981done
15982
15983
15984{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15985echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15986cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992extern const char *__crashreporter_info__;
15993 int main() {
15994 __crashreporter_info__ = "test";
15995 return 0;
15996 }
15997
15998_ACEOF
15999rm -f conftest.$ac_objext conftest$ac_exeext
16000if { (ac_try="$ac_link"
16001case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004esac
16005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017esac
16018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027esac
16028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 { echo "$as_me:$LINENO: result: yes" >&5
16034echo "${ECHO_T}yes" >&6; }
16035
16036cat >>confdefs.h <<\_ACEOF
16037#define HAVE_CRASHREPORTER_INFO 1
16038_ACEOF
16039
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 { echo "$as_me:$LINENO: result: no" >&5
16045echo "${ECHO_T}no" >&6; }
16046
16047cat >>confdefs.h <<\_ACEOF
16048#define HAVE_CRASHREPORTER_INFO 0
16049_ACEOF
16050
16051fi
16052
16053rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055
16056
16057
16058
16059 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16060echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16061if test "${ac_cv_huge_val_sanity+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
16064
16065 ac_ext=cpp
16066ac_cpp='$CXXCPP $CPPFLAGS'
16067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16070
16071 ac_save_CXXFLAGS=$CXXFLAGS
16072 CXXFLAGS=-pedantic
16073 if test "$cross_compiling" = yes; then
16074 ac_cv_huge_val_sanity=yes
16075else
16076 cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082#include <math.h>
16083int
16084main ()
16085{
16086double x = HUGE_VAL; return x != x;
16087 ;
16088 return 0;
16089}
16090_ACEOF
16091rm -f conftest$ac_exeext
16092if { (ac_try="$ac_link"
16093case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096esac
16097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16102 { (case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16105esac
16106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_try") 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_huge_val_sanity=yes
16112else
16113 echo "$as_me: program exited with status $ac_status" >&5
16114echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117( exit $ac_status )
16118ac_cv_huge_val_sanity=no
16119fi
16120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16121fi
16122
16123
16124 CXXFLAGS=$ac_save_CXXFLAGS
16125 ac_ext=c
16126ac_cpp='$CPP $CPPFLAGS'
16127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129ac_compiler_gnu=$ac_cv_c_compiler_gnu
16130
16131
16132fi
16133{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16134echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16135 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16136
16137
16138{ echo "$as_me:$LINENO: checking for pid_t" >&5
16139echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16140if test "${ac_cv_type_pid_t+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142else
16143 cat >conftest.$ac_ext <<_ACEOF
16144/* confdefs.h. */
16145_ACEOF
16146cat confdefs.h >>conftest.$ac_ext
16147cat >>conftest.$ac_ext <<_ACEOF
16148/* end confdefs.h. */
16149$ac_includes_default
16150typedef pid_t ac__type_new_;
16151int
16152main ()
16153{
16154if ((ac__type_new_ *) 0)
16155 return 0;
16156if (sizeof (ac__type_new_))
16157 return 0;
16158 ;
16159 return 0;
16160}
16161_ACEOF
16162rm -f conftest.$ac_objext
16163if { (ac_try="$ac_compile"
16164case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_compile") 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16177 { (case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_try") 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest.$ac_objext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_type_pid_t=yes
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201 ac_cv_type_pid_t=no
16202fi
16203
16204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205fi
16206{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16207echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16208if test $ac_cv_type_pid_t = yes; then
16209 :
16210else
16211
16212cat >>confdefs.h <<_ACEOF
16213#define pid_t int
16214_ACEOF
16215
16216fi
16217
16218{ echo "$as_me:$LINENO: checking for size_t" >&5
16219echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16220if test "${ac_cv_type_size_t+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222else
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
16229$ac_includes_default
16230typedef size_t ac__type_new_;
16231int
16232main ()
16233{
16234if ((ac__type_new_ *) 0)
16235 return 0;
16236if (sizeof (ac__type_new_))
16237 return 0;
16238 ;
16239 return 0;
16240}
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16257 { (case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260esac
16261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_try") 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_type_size_t=yes
16277else
16278 echo "$as_me: failed program was:" >&5
16279sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ac_cv_type_size_t=no
16282fi
16283
16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285fi
16286{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16287echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16288if test $ac_cv_type_size_t = yes; then
16289 :
16290else
16291
16292cat >>confdefs.h <<_ACEOF
16293#define size_t unsigned int
16294_ACEOF
16295
16296fi
16297
16298
16299cat >>confdefs.h <<_ACEOF
16300#define RETSIGTYPE void
16301_ACEOF
16302
16303{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16304echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16305if test "${ac_cv_struct_tm+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307else
16308 cat >conftest.$ac_ext <<_ACEOF
16309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
16314#include <sys/types.h>
16315#include <time.h>
16316
16317int
16318main ()
16319{
16320struct tm *tp; tp->tm_sec;
16321 ;
16322 return 0;
16323}
16324_ACEOF
16325rm -f conftest.$ac_objext
16326if { (ac_try="$ac_compile"
16327case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330esac
16331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_compile") 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16340 { (case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16343esac
16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_try") 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; } &&
16349 { ac_try='test -s conftest.$ac_objext'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 ac_cv_struct_tm=time.h
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 ac_cv_struct_tm=sys/time.h
16365fi
16366
16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368fi
16369{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16370echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16371if test $ac_cv_struct_tm = sys/time.h; then
16372
16373cat >>confdefs.h <<\_ACEOF
16374#define TM_IN_SYS_TIME 1
16375_ACEOF
16376
16377fi
16378
16379{ echo "$as_me:$LINENO: checking for int64_t" >&5
16380echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16381if test "${ac_cv_type_int64_t+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16383else
16384 cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391typedef int64_t ac__type_new_;
16392int
16393main ()
16394{
16395if ((ac__type_new_ *) 0)
16396 return 0;
16397if (sizeof (ac__type_new_))
16398 return 0;
16399 ;
16400 return 0;
16401}
16402_ACEOF
16403rm -f conftest.$ac_objext
16404if { (ac_try="$ac_compile"
16405case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421esac
16422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_type_int64_t=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_cv_type_int64_t=no
16443fi
16444
16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446fi
16447{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16448echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16449if test $ac_cv_type_int64_t = yes; then
16450
16451cat >>confdefs.h <<_ACEOF
16452#define HAVE_INT64_T 1
16453_ACEOF
16454
16455
16456else
16457 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16458echo "$as_me: error: Type int64_t required but not found" >&2;}
16459 { (exit 1); exit 1; }; }
16460fi
16461
16462{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16463echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16464if test "${ac_cv_type_uint64_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473$ac_includes_default
16474typedef uint64_t ac__type_new_;
16475int
16476main ()
16477{
16478if ((ac__type_new_ *) 0)
16479 return 0;
16480if (sizeof (ac__type_new_))
16481 return 0;
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (ac_try="$ac_compile"
16488case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16494 ac_status=$?
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504esac
16505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514esac
16515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_type_uint64_t=yes
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525 ac_cv_type_uint64_t=no
16526fi
16527
16528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529fi
16530{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16531echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16532if test $ac_cv_type_uint64_t = yes; then
16533
16534cat >>confdefs.h <<_ACEOF
16535#define HAVE_UINT64_T 1
16536_ACEOF
16537
16538
16539else
16540 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16541echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16542if test "${ac_cv_type_u_int64_t+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544else
16545 cat >conftest.$ac_ext <<_ACEOF
16546/* confdefs.h. */
16547_ACEOF
16548cat confdefs.h >>conftest.$ac_ext
16549cat >>conftest.$ac_ext <<_ACEOF
16550/* end confdefs.h. */
16551$ac_includes_default
16552typedef u_int64_t ac__type_new_;
16553int
16554main ()
16555{
16556if ((ac__type_new_ *) 0)
16557 return 0;
16558if (sizeof (ac__type_new_))
16559 return 0;
16560 ;
16561 return 0;
16562}
16563_ACEOF
16564rm -f conftest.$ac_objext
16565if { (ac_try="$ac_compile"
16566case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569esac
16570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_compile") 2>conftest.er1
16572 ac_status=$?
16573 grep -v '^ *+' conftest.er1 >conftest.err
16574 rm -f conftest.er1
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ac_cv_type_u_int64_t=yes
16599else
16600 echo "$as_me: failed program was:" >&5
16601sed 's/^/| /' conftest.$ac_ext >&5
16602
16603 ac_cv_type_u_int64_t=no
16604fi
16605
16606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607fi
16608{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16609echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16610if test $ac_cv_type_u_int64_t = yes; then
16611
16612cat >>confdefs.h <<_ACEOF
16613#define HAVE_U_INT64_T 1
16614_ACEOF
16615
16616
16617else
16618 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16619echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16620 { (exit 1); exit 1; }; }
16621fi
16622
16623fi
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16635do
16636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 cat >conftest.$ac_ext <<_ACEOF
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16650#define $ac_func innocuous_$ac_func
16651
16652/* System header to define __stub macros and hopefully few prototypes,
16653 which can conflict with char $ac_func (); below.
16654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655 <limits.h> exists even on freestanding compilers. */
16656
16657#ifdef __STDC__
16658# include <limits.h>
16659#else
16660# include <assert.h>
16661#endif
16662
16663#undef $ac_func
16664
16665/* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16668#ifdef __cplusplus
16669extern "C"
16670#endif
16671char $ac_func ();
16672/* The GNU C library defines this for functions which it implements
16673 to always fail with ENOSYS. Some functions are actually named
16674 something starting with __ and the normal name is an alias. */
16675#if defined __stub_$ac_func || defined __stub___$ac_func
16676choke me
16677#endif
16678
16679int
16680main ()
16681{
16682return $ac_func ();
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext conftest$ac_exeext
16688if { (ac_try="$ac_link"
16689case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_link") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705esac
16706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715esac
16716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 eval "$as_ac_var=yes"
16722else
16723 echo "$as_me: failed program was:" >&5
16724sed 's/^/| /' conftest.$ac_ext >&5
16725
16726 eval "$as_ac_var=no"
16727fi
16728
16729rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731fi
16732ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734echo "${ECHO_T}$ac_res" >&6; }
16735if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738_ACEOF
16739
16740fi
16741done
16742
16743
16744
16745
16746
16747for ac_func in powf fmodf strtof round
16748do
16749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755 cat >conftest.$ac_ext <<_ACEOF
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
16761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763#define $ac_func innocuous_$ac_func
16764
16765/* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char $ac_func (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16769
16770#ifdef __STDC__
16771# include <limits.h>
16772#else
16773# include <assert.h>
16774#endif
16775
16776#undef $ac_func
16777
16778/* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
16781#ifdef __cplusplus
16782extern "C"
16783#endif
16784char $ac_func ();
16785/* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
16788#if defined __stub_$ac_func || defined __stub___$ac_func
16789choke me
16790#endif
16791
16792int
16793main ()
16794{
16795return $ac_func ();
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext conftest$ac_exeext
16801if { (ac_try="$ac_link"
16802case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 eval "$as_ac_var=yes"
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 eval "$as_ac_var=no"
16840fi
16841
16842rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844fi
16845ac_res=`eval echo '${'$as_ac_var'}'`
16846 { echo "$as_me:$LINENO: result: $ac_res" >&5
16847echo "${ECHO_T}$ac_res" >&6; }
16848if test `eval echo '${'$as_ac_var'}'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16851_ACEOF
16852
16853fi
16854done
16855
16856
16857
16858
16859
16860
16861for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16862do
16863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16877#define $ac_func innocuous_$ac_func
16878
16879/* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func (); below.
16881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882 <limits.h> exists even on freestanding compilers. */
16883
16884#ifdef __STDC__
16885# include <limits.h>
16886#else
16887# include <assert.h>
16888#endif
16889
16890#undef $ac_func
16891
16892/* Override any GCC internal prototype to avoid an error.
16893 Use char because int might match the return type of a GCC
16894 builtin and then its argument prototype would still apply. */
16895#ifdef __cplusplus
16896extern "C"
16897#endif
16898char $ac_func ();
16899/* The GNU C library defines this for functions which it implements
16900 to always fail with ENOSYS. Some functions are actually named
16901 something starting with __ and the normal name is an alias. */
16902#if defined __stub_$ac_func || defined __stub___$ac_func
16903choke me
16904#endif
16905
16906int
16907main ()
16908{
16909return $ac_func ();
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext conftest$ac_exeext
16915if { (ac_try="$ac_link"
16916case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 eval "$as_ac_var=yes"
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 eval "$as_ac_var=no"
16954fi
16955
16956rm -f core conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958fi
16959ac_res=`eval echo '${'$as_ac_var'}'`
16960 { echo "$as_me:$LINENO: result: $ac_res" >&5
16961echo "${ECHO_T}$ac_res" >&6; }
16962if test `eval echo '${'$as_ac_var'}'` = yes; then
16963 cat >>confdefs.h <<_ACEOF
16964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16965_ACEOF
16966
16967fi
16968done
16969
16970
16971
16972
16973for ac_func in isatty mkdtemp mkstemp
16974do
16975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16976{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16978if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 cat >conftest.$ac_ext <<_ACEOF
16982/* confdefs.h. */
16983_ACEOF
16984cat confdefs.h >>conftest.$ac_ext
16985cat >>conftest.$ac_ext <<_ACEOF
16986/* end confdefs.h. */
16987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16989#define $ac_func innocuous_$ac_func
16990
16991/* System header to define __stub macros and hopefully few prototypes,
16992 which can conflict with char $ac_func (); below.
16993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994 <limits.h> exists even on freestanding compilers. */
16995
16996#ifdef __STDC__
16997# include <limits.h>
16998#else
16999# include <assert.h>
17000#endif
17001
17002#undef $ac_func
17003
17004/* Override any GCC internal prototype to avoid an error.
17005 Use char because int might match the return type of a GCC
17006 builtin and then its argument prototype would still apply. */
17007#ifdef __cplusplus
17008extern "C"
17009#endif
17010char $ac_func ();
17011/* The GNU C library defines this for functions which it implements
17012 to always fail with ENOSYS. Some functions are actually named
17013 something starting with __ and the normal name is an alias. */
17014#if defined __stub_$ac_func || defined __stub___$ac_func
17015choke me
17016#endif
17017
17018int
17019main ()
17020{
17021return $ac_func ();
17022 ;
17023 return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext conftest$ac_exeext
17027if { (ac_try="$ac_link"
17028case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031esac
17032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044esac
17045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_try") 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest$ac_exeext'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 eval "$as_ac_var=yes"
17061else
17062 echo "$as_me: failed program was:" >&5
17063sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 eval "$as_ac_var=no"
17066fi
17067
17068rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070fi
17071ac_res=`eval echo '${'$as_ac_var'}'`
17072 { echo "$as_me:$LINENO: result: $ac_res" >&5
17073echo "${ECHO_T}$ac_res" >&6; }
17074if test `eval echo '${'$as_ac_var'}'` = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077_ACEOF
17078
17079fi
17080done
17081
17082
17083
17084
17085
17086
17087
17088for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17089do
17090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095else
17096 cat >conftest.$ac_ext <<_ACEOF
17097/* confdefs.h. */
17098_ACEOF
17099cat confdefs.h >>conftest.$ac_ext
17100cat >>conftest.$ac_ext <<_ACEOF
17101/* end confdefs.h. */
17102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17104#define $ac_func innocuous_$ac_func
17105
17106/* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func (); below.
17108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 <limits.h> exists even on freestanding compilers. */
17110
17111#ifdef __STDC__
17112# include <limits.h>
17113#else
17114# include <assert.h>
17115#endif
17116
17117#undef $ac_func
17118
17119/* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17122#ifdef __cplusplus
17123extern "C"
17124#endif
17125char $ac_func ();
17126/* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129#if defined __stub_$ac_func || defined __stub___$ac_func
17130choke me
17131#endif
17132
17133int
17134main ()
17135{
17136return $ac_func ();
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141rm -f conftest.$ac_objext conftest$ac_exeext
17142if { (ac_try="$ac_link"
17143case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 eval "$as_ac_var=yes"
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 eval "$as_ac_var=no"
17181fi
17182
17183rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185fi
17186ac_res=`eval echo '${'$as_ac_var'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188echo "${ECHO_T}$ac_res" >&6; }
17189if test `eval echo '${'$as_ac_var'}'` = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17192_ACEOF
17193
17194fi
17195done
17196
17197
17198
17199
17200for ac_func in strerror strerror_r setenv
17201do
17202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
17214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17216#define $ac_func innocuous_$ac_func
17217
17218/* System header to define __stub macros and hopefully few prototypes,
17219 which can conflict with char $ac_func (); below.
17220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17221 <limits.h> exists even on freestanding compilers. */
17222
17223#ifdef __STDC__
17224# include <limits.h>
17225#else
17226# include <assert.h>
17227#endif
17228
17229#undef $ac_func
17230
17231/* Override any GCC internal prototype to avoid an error.
17232 Use char because int might match the return type of a GCC
17233 builtin and then its argument prototype would still apply. */
17234#ifdef __cplusplus
17235extern "C"
17236#endif
17237char $ac_func ();
17238/* The GNU C library defines this for functions which it implements
17239 to always fail with ENOSYS. Some functions are actually named
17240 something starting with __ and the normal name is an alias. */
17241#if defined __stub_$ac_func || defined __stub___$ac_func
17242choke me
17243#endif
17244
17245int
17246main ()
17247{
17248return $ac_func ();
17249 ;
17250 return 0;
17251}
17252_ACEOF
17253rm -f conftest.$ac_objext conftest$ac_exeext
17254if { (ac_try="$ac_link"
17255case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258esac
17259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_link") 2>conftest.er1
17261 ac_status=$?
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17268 { (case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_try") 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 eval "$as_ac_var=yes"
17288else
17289 echo "$as_me: failed program was:" >&5
17290sed 's/^/| /' conftest.$ac_ext >&5
17291
17292 eval "$as_ac_var=no"
17293fi
17294
17295rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17297fi
17298ac_res=`eval echo '${'$as_ac_var'}'`
17299 { echo "$as_me:$LINENO: result: $ac_res" >&5
17300echo "${ECHO_T}$ac_res" >&6; }
17301if test `eval echo '${'$as_ac_var'}'` = yes; then
17302 cat >>confdefs.h <<_ACEOF
17303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17304_ACEOF
17305
17306fi
17307done
17308
17309
17310
17311
17312
17313for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17314do
17315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
17327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329#define $ac_func innocuous_$ac_func
17330
17331/* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17335
17336#ifdef __STDC__
17337# include <limits.h>
17338#else
17339# include <assert.h>
17340#endif
17341
17342#undef $ac_func
17343
17344/* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17347#ifdef __cplusplus
17348extern "C"
17349#endif
17350char $ac_func ();
17351/* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354#if defined __stub_$ac_func || defined __stub___$ac_func
17355choke me
17356#endif
17357
17358int
17359main ()
17360{
17361return $ac_func ();
17362 ;
17363 return 0;
17364}
17365_ACEOF
17366rm -f conftest.$ac_objext conftest$ac_exeext
17367if { (ac_try="$ac_link"
17368case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>conftest.er1
17374 ac_status=$?
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384esac
17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394esac
17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 eval "$as_ac_var=yes"
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405 eval "$as_ac_var=no"
17406fi
17407
17408rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410fi
17411ac_res=`eval echo '${'$as_ac_var'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413echo "${ECHO_T}$ac_res" >&6; }
17414if test `eval echo '${'$as_ac_var'}'` = yes; then
17415 cat >>confdefs.h <<_ACEOF
17416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17417_ACEOF
17418
17419fi
17420done
17421
17422
17423
17424
17425
17426
17427for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17428do
17429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443#define $ac_func innocuous_$ac_func
17444
17445/* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17449
17450#ifdef __STDC__
17451# include <limits.h>
17452#else
17453# include <assert.h>
17454#endif
17455
17456#undef $ac_func
17457
17458/* Override any GCC internal prototype to avoid an error.
17459 Use char because int might match the return type of a GCC
17460 builtin and then its argument prototype would still apply. */
17461#ifdef __cplusplus
17462extern "C"
17463#endif
17464char $ac_func ();
17465/* The GNU C library defines this for functions which it implements
17466 to always fail with ENOSYS. Some functions are actually named
17467 something starting with __ and the normal name is an alias. */
17468#if defined __stub_$ac_func || defined __stub___$ac_func
17469choke me
17470#endif
17471
17472int
17473main ()
17474{
17475return $ac_func ();
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 eval "$as_ac_var=yes"
17515else
17516 echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 eval "$as_ac_var=no"
17520fi
17521
17522rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524fi
17525ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527echo "${ECHO_T}$ac_res" >&6; }
17528if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531_ACEOF
17532
17533fi
17534done
17535
17536{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17537echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17538if test "${llvm_cv_c_printf_a+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 ac_ext=c
17542ac_cpp='$CPP $CPPFLAGS'
17543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545ac_compiler_gnu=$ac_cv_c_compiler_gnu
17546
17547 if test "$cross_compiling" = yes; then
17548 llvmac_cv_c_printf_a=no
17549else
17550 cat >conftest.$ac_ext <<_ACEOF
17551
17552 /* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557
17558#include <stdio.h>
17559#include <stdlib.h>
17560
17561int
17562main ()
17563{
17564
17565volatile double A, B;
17566char Buffer[100];
17567A = 1;
17568A /= 10.0;
17569sprintf(Buffer, "%a", A);
17570B = atof(Buffer);
17571if (A != B)
17572 return (1);
17573if (A != 0x1.999999999999ap-4)
17574 return (1);
17575return (0);
17576 ;
17577 return 0;
17578}
17579_ACEOF
17580rm -f conftest$ac_exeext
17581if { (ac_try="$ac_link"
17582case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_link") 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594esac
17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 llvm_cv_c_printf_a=yes
17601else
17602 echo "$as_me: program exited with status $ac_status" >&5
17603echo "$as_me: failed program was:" >&5
17604sed 's/^/| /' conftest.$ac_ext >&5
17605
17606( exit $ac_status )
17607llvmac_cv_c_printf_a=no
17608fi
17609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17610fi
17611
17612
17613 ac_ext=c
17614ac_cpp='$CPP $CPPFLAGS'
17615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619fi
17620{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17621echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17622 if test "$llvm_cv_c_printf_a" = "yes"; then
17623
17624cat >>confdefs.h <<\_ACEOF
17625#define HAVE_PRINTF_A 1
17626_ACEOF
17627
17628 fi
17629
17630
17631{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17632echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17633if test "${ac_cv_func_rand48+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17635else
17636 ac_ext=cpp
17637ac_cpp='$CXXCPP $CPPFLAGS'
17638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17641
17642 cat >conftest.$ac_ext <<_ACEOF
17643/* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
17648#include <stdlib.h>
17649int
17650main ()
17651{
17652srand48(0);lrand48();drand48();
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (ac_try="$ac_compile"
17659case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_compile") 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685esac
17686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_func_rand48=yes
17692else
17693 echo "$as_me: failed program was:" >&5
17694sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 ac_cv_func_rand48=no
17697fi
17698
17699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 ac_ext=c
17701ac_cpp='$CPP $CPPFLAGS'
17702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704ac_compiler_gnu=$ac_cv_c_compiler_gnu
17705
17706fi
17707{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17708echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17709
17710if test "$ac_cv_func_rand48" = "yes" ; then
17711
17712cat >>confdefs.h <<\_ACEOF
17713#define HAVE_RAND48 1
17714_ACEOF
17715
17716fi
17717
17718
17719{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17720echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17721if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 cat >conftest.$ac_ext <<_ACEOF
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730$ac_includes_default
17731int
17732main ()
17733{
17734#ifndef strerror_s
17735 char *p = (char *) strerror_s;
17736 return !p;
17737#endif
17738
17739 ;
17740 return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext
17744if { (ac_try="$ac_compile"
17745case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761esac
17762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_have_decl_strerror_s=yes
17778else
17779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 ac_cv_have_decl_strerror_s=no
17783fi
17784
17785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786fi
17787{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17788echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17789if test $ac_cv_have_decl_strerror_s = yes; then
17790
17791cat >>confdefs.h <<_ACEOF
17792#define HAVE_DECL_STRERROR_S 1
17793_ACEOF
17794
17795
17796else
17797 cat >>confdefs.h <<_ACEOF
17798#define HAVE_DECL_STRERROR_S 0
17799_ACEOF
17800
17801
17802fi
17803
17804
17805
17806if test "$llvm_cv_os_type" = "MingW" ; then
17807 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17808echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17809if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812 ac_check_lib_save_LIBS=$LIBS
17813LIBS="-lgcc $LIBS"
17814cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820
17821/* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824#ifdef __cplusplus
17825extern "C"
17826#endif
17827char _alloca ();
17828int
17829main ()
17830{
17831return _alloca ();
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext conftest$ac_exeext
17837if { (ac_try="$ac_link"
17838case "(($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_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_lib_gcc__alloca=yes
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_cv_lib_gcc__alloca=no
17876fi
17877
17878rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880LIBS=$ac_check_lib_save_LIBS
17881fi
17882{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17883echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17884if test $ac_cv_lib_gcc__alloca = yes; then
17885
17886cat >>confdefs.h <<\_ACEOF
17887#define HAVE__ALLOCA 1
17888_ACEOF
17889
17890fi
17891
17892 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17893echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17894if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896else
17897 ac_check_lib_save_LIBS=$LIBS
17898LIBS="-lgcc $LIBS"
17899cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905
17906/* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909#ifdef __cplusplus
17910extern "C"
17911#endif
17912char __alloca ();
17913int
17914main ()
17915{
17916return __alloca ();
17917 ;
17918 return 0;
17919}
17920_ACEOF
17921rm -f conftest.$ac_objext conftest$ac_exeext
17922if { (ac_try="$ac_link"
17923case "(($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_link") 2>conftest.er1
17929 ac_status=$?
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17936 { (case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_try") 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949esac
17950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_gcc___alloca=yes
17956else
17957 echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_cv_lib_gcc___alloca=no
17961fi
17962
17963rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965LIBS=$ac_check_lib_save_LIBS
17966fi
17967{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17968echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17969if test $ac_cv_lib_gcc___alloca = yes; then
17970
17971cat >>confdefs.h <<\_ACEOF
17972#define HAVE___ALLOCA 1
17973_ACEOF
17974
17975fi
17976
17977 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17978echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17979if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981else
17982 ac_check_lib_save_LIBS=$LIBS
17983LIBS="-lgcc $LIBS"
17984cat >conftest.$ac_ext <<_ACEOF
17985/* confdefs.h. */
17986_ACEOF
17987cat confdefs.h >>conftest.$ac_ext
17988cat >>conftest.$ac_ext <<_ACEOF
17989/* end confdefs.h. */
17990
17991/* Override any GCC internal prototype to avoid an error.
17992 Use char because int might match the return type of a GCC
17993 builtin and then its argument prototype would still apply. */
17994#ifdef __cplusplus
17995extern "C"
17996#endif
17997char __chkstk ();
17998int
17999main ()
18000{
18001return __chkstk ();
18002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext conftest$ac_exeext
18007if { (ac_try="$ac_link"
18008case "(($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_link") 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_lib_gcc___chkstk=yes
18041else
18042 echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045 ac_cv_lib_gcc___chkstk=no
18046fi
18047
18048rm -f core conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18050LIBS=$ac_check_lib_save_LIBS
18051fi
18052{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18053echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18054if test $ac_cv_lib_gcc___chkstk = yes; then
18055
18056cat >>confdefs.h <<\_ACEOF
18057#define HAVE___CHKSTK 1
18058_ACEOF
18059
18060fi
18061
18062 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18063echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18064if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066else
18067 ac_check_lib_save_LIBS=$LIBS
18068LIBS="-lgcc $LIBS"
18069cat >conftest.$ac_ext <<_ACEOF
18070/* confdefs.h. */
18071_ACEOF
18072cat confdefs.h >>conftest.$ac_ext
18073cat >>conftest.$ac_ext <<_ACEOF
18074/* end confdefs.h. */
18075
18076/* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char ___chkstk ();
18083int
18084main ()
18085{
18086return ___chkstk ();
18087 ;
18088 return 0;
18089}
18090_ACEOF
18091rm -f conftest.$ac_objext conftest$ac_exeext
18092if { (ac_try="$ac_link"
18093case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096esac
18097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_link") 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest$ac_exeext'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18119esac
18120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_gcc____chkstk=yes
18126else
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_lib_gcc____chkstk=no
18131fi
18132
18133rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135LIBS=$ac_check_lib_save_LIBS
18136fi
18137{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18138echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18139if test $ac_cv_lib_gcc____chkstk = yes; then
18140
18141cat >>confdefs.h <<\_ACEOF
18142#define HAVE____CHKSTK 1
18143_ACEOF
18144
18145fi
18146
18147
18148 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18149echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18150if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153 ac_check_lib_save_LIBS=$LIBS
18154LIBS="-lgcc $LIBS"
18155cat >conftest.$ac_ext <<_ACEOF
18156/* confdefs.h. */
18157_ACEOF
18158cat confdefs.h >>conftest.$ac_ext
18159cat >>conftest.$ac_ext <<_ACEOF
18160/* end confdefs.h. */
18161
18162/* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18165#ifdef __cplusplus
18166extern "C"
18167#endif
18168char __ashldi3 ();
18169int
18170main ()
18171{
18172return __ashldi3 ();
18173 ;
18174 return 0;
18175}
18176_ACEOF
18177rm -f conftest.$ac_objext conftest$ac_exeext
18178if { (ac_try="$ac_link"
18179case "(($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_link") 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest$ac_exeext'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_cv_lib_gcc___ashldi3=yes
18212else
18213 echo "$as_me: failed program was:" >&5
18214sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 ac_cv_lib_gcc___ashldi3=no
18217fi
18218
18219rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221LIBS=$ac_check_lib_save_LIBS
18222fi
18223{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18224echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18225if test $ac_cv_lib_gcc___ashldi3 = yes; then
18226
18227cat >>confdefs.h <<\_ACEOF
18228#define HAVE___ASHLDI3 1
18229_ACEOF
18230
18231fi
18232
18233 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18234echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18235if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237else
18238 ac_check_lib_save_LIBS=$LIBS
18239LIBS="-lgcc $LIBS"
18240cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246
18247/* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18250#ifdef __cplusplus
18251extern "C"
18252#endif
18253char __ashrdi3 ();
18254int
18255main ()
18256{
18257return __ashrdi3 ();
18258 ;
18259 return 0;
18260}
18261_ACEOF
18262rm -f conftest.$ac_objext conftest$ac_exeext
18263if { (ac_try="$ac_link"
18264case "(($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_link") 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_lib_gcc___ashrdi3=yes
18297else
18298 echo "$as_me: failed program was:" >&5
18299sed 's/^/| /' conftest.$ac_ext >&5
18300
18301 ac_cv_lib_gcc___ashrdi3=no
18302fi
18303
18304rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306LIBS=$ac_check_lib_save_LIBS
18307fi
18308{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18309echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18310if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18311
18312cat >>confdefs.h <<\_ACEOF
18313#define HAVE___ASHRDI3 1
18314_ACEOF
18315
18316fi
18317
18318 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18319echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18320if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322else
18323 ac_check_lib_save_LIBS=$LIBS
18324LIBS="-lgcc $LIBS"
18325cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
18331
18332/* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18335#ifdef __cplusplus
18336extern "C"
18337#endif
18338char __divdi3 ();
18339int
18340main ()
18341{
18342return __divdi3 ();
18343 ;
18344 return 0;
18345}
18346_ACEOF
18347rm -f conftest.$ac_objext conftest$ac_exeext
18348if { (ac_try="$ac_link"
18349case "(($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_link") 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest$ac_exeext'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375esac
18376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_cv_lib_gcc___divdi3=yes
18382else
18383 echo "$as_me: failed program was:" >&5
18384sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_cv_lib_gcc___divdi3=no
18387fi
18388
18389rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391LIBS=$ac_check_lib_save_LIBS
18392fi
18393{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18394echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18395if test $ac_cv_lib_gcc___divdi3 = yes; then
18396
18397cat >>confdefs.h <<\_ACEOF
18398#define HAVE___DIVDI3 1
18399_ACEOF
18400
18401fi
18402
18403 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18404echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18405if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407else
18408 ac_check_lib_save_LIBS=$LIBS
18409LIBS="-lgcc $LIBS"
18410cat >conftest.$ac_ext <<_ACEOF
18411/* confdefs.h. */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h. */
18416
18417/* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420#ifdef __cplusplus
18421extern "C"
18422#endif
18423char __fixdfdi ();
18424int
18425main ()
18426{
18427return __fixdfdi ();
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext conftest$ac_exeext
18433if { (ac_try="$ac_link"
18434case "(($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_link") 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_lib_gcc___fixdfdi=yes
18467else
18468 echo "$as_me: failed program was:" >&5
18469sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 ac_cv_lib_gcc___fixdfdi=no
18472fi
18473
18474rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
18476LIBS=$ac_check_lib_save_LIBS
18477fi
18478{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18479echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18480if test $ac_cv_lib_gcc___fixdfdi = yes; then
18481
18482cat >>confdefs.h <<\_ACEOF
18483#define HAVE___FIXDFDI 1
18484_ACEOF
18485
18486fi
18487
18488 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18489echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18490if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18492else
18493 ac_check_lib_save_LIBS=$LIBS
18494LIBS="-lgcc $LIBS"
18495cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501
18502/* Override any GCC internal prototype to avoid an error.
18503 Use char because int might match the return type of a GCC
18504 builtin and then its argument prototype would still apply. */
18505#ifdef __cplusplus
18506extern "C"
18507#endif
18508char __fixsfdi ();
18509int
18510main ()
18511{
18512return __fixsfdi ();
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext conftest$ac_exeext
18518if { (ac_try="$ac_link"
18519case "(($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_link") 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535esac
18536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18545esac
18546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_try") 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_cv_lib_gcc___fixsfdi=yes
18552else
18553 echo "$as_me: failed program was:" >&5
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
18556 ac_cv_lib_gcc___fixsfdi=no
18557fi
18558
18559rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18561LIBS=$ac_check_lib_save_LIBS
18562fi
18563{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18564echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18565if test $ac_cv_lib_gcc___fixsfdi = yes; then
18566
18567cat >>confdefs.h <<\_ACEOF
18568#define HAVE___FIXSFDI 1
18569_ACEOF
18570
18571fi
18572
18573 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18574echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18575if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 ac_check_lib_save_LIBS=$LIBS
18579LIBS="-lgcc $LIBS"
18580cat >conftest.$ac_ext <<_ACEOF
18581/* confdefs.h. */
18582_ACEOF
18583cat confdefs.h >>conftest.$ac_ext
18584cat >>conftest.$ac_ext <<_ACEOF
18585/* end confdefs.h. */
18586
18587/* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18590#ifdef __cplusplus
18591extern "C"
18592#endif
18593char __floatdidf ();
18594int
18595main ()
18596{
18597return __floatdidf ();
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext conftest$ac_exeext
18603if { (ac_try="$ac_link"
18604case "(($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_link") 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620esac
18621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest$ac_exeext'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630esac
18631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_lib_gcc___floatdidf=yes
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641 ac_cv_lib_gcc___floatdidf=no
18642fi
18643
18644rm -f core conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
18646LIBS=$ac_check_lib_save_LIBS
18647fi
18648{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18649echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18650if test $ac_cv_lib_gcc___floatdidf = yes; then
18651
18652cat >>confdefs.h <<\_ACEOF
18653#define HAVE___FLOATDIDF 1
18654_ACEOF
18655
18656fi
18657
18658 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18659echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18660if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662else
18663 ac_check_lib_save_LIBS=$LIBS
18664LIBS="-lgcc $LIBS"
18665cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671
18672/* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18675#ifdef __cplusplus
18676extern "C"
18677#endif
18678char __lshrdi3 ();
18679int
18680main ()
18681{
18682return __lshrdi3 ();
18683 ;
18684 return 0;
18685}
18686_ACEOF
18687rm -f conftest.$ac_objext conftest$ac_exeext
18688if { (ac_try="$ac_link"
18689case "(($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_link") 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest$ac_exeext'
18712 { (case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18715esac
18716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_try") 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_gcc___lshrdi3=yes
18722else
18723 echo "$as_me: failed program was:" >&5
18724sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_cv_lib_gcc___lshrdi3=no
18727fi
18728
18729rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731LIBS=$ac_check_lib_save_LIBS
18732fi
18733{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18734echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18735if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18736
18737cat >>confdefs.h <<\_ACEOF
18738#define HAVE___LSHRDI3 1
18739_ACEOF
18740
18741fi
18742
18743 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18744echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18745if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748 ac_check_lib_save_LIBS=$LIBS
18749LIBS="-lgcc $LIBS"
18750cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756
18757/* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18760#ifdef __cplusplus
18761extern "C"
18762#endif
18763char __moddi3 ();
18764int
18765main ()
18766{
18767return __moddi3 ();
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext conftest$ac_exeext
18773if { (ac_try="$ac_link"
18774case "(($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_link") 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest$ac_exeext'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800esac
18801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_lib_gcc___moddi3=yes
18807else
18808 echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ac_cv_lib_gcc___moddi3=no
18812fi
18813
18814rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816LIBS=$ac_check_lib_save_LIBS
18817fi
18818{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18819echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18820if test $ac_cv_lib_gcc___moddi3 = yes; then
18821
18822cat >>confdefs.h <<\_ACEOF
18823#define HAVE___MODDI3 1
18824_ACEOF
18825
18826fi
18827
18828 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18829echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18830if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18832else
18833 ac_check_lib_save_LIBS=$LIBS
18834LIBS="-lgcc $LIBS"
18835cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841
18842/* Override any GCC internal prototype to avoid an error.
18843 Use char because int might match the return type of a GCC
18844 builtin and then its argument prototype would still apply. */
18845#ifdef __cplusplus
18846extern "C"
18847#endif
18848char __udivdi3 ();
18849int
18850main ()
18851{
18852return __udivdi3 ();
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
18858if { (ac_try="$ac_link"
18859case "(($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_link") 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_lib_gcc___udivdi3=yes
18892else
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_cv_lib_gcc___udivdi3=no
18897fi
18898
18899rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901LIBS=$ac_check_lib_save_LIBS
18902fi
18903{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18904echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18905if test $ac_cv_lib_gcc___udivdi3 = yes; then
18906
18907cat >>confdefs.h <<\_ACEOF
18908#define HAVE___UDIVDI3 1
18909_ACEOF
18910
18911fi
18912
18913 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18914echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18915if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917else
18918 ac_check_lib_save_LIBS=$LIBS
18919LIBS="-lgcc $LIBS"
18920cat >conftest.$ac_ext <<_ACEOF
18921/* confdefs.h. */
18922_ACEOF
18923cat confdefs.h >>conftest.$ac_ext
18924cat >>conftest.$ac_ext <<_ACEOF
18925/* end confdefs.h. */
18926
18927/* Override any GCC internal prototype to avoid an error.
18928 Use char because int might match the return type of a GCC
18929 builtin and then its argument prototype would still apply. */
18930#ifdef __cplusplus
18931extern "C"
18932#endif
18933char __umoddi3 ();
18934int
18935main ()
18936{
18937return __umoddi3 ();
18938 ;
18939 return 0;
18940}
18941_ACEOF
18942rm -f conftest.$ac_objext conftest$ac_exeext
18943if { (ac_try="$ac_link"
18944case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947esac
18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18957 { (case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960esac
18961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_try") 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest$ac_exeext'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970esac
18971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_lib_gcc___umoddi3=yes
18977else
18978 echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_cv_lib_gcc___umoddi3=no
18982fi
18983
18984rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18986LIBS=$ac_check_lib_save_LIBS
18987fi
18988{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18989echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18990if test $ac_cv_lib_gcc___umoddi3 = yes; then
18991
18992cat >>confdefs.h <<\_ACEOF
18993#define HAVE___UMODDI3 1
18994_ACEOF
18995
18996fi
18997
18998
18999 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19000echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19001if test "${ac_cv_lib_gcc___main+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003else
19004 ac_check_lib_save_LIBS=$LIBS
19005LIBS="-lgcc $LIBS"
19006cat >conftest.$ac_ext <<_ACEOF
19007/* confdefs.h. */
19008_ACEOF
19009cat confdefs.h >>conftest.$ac_ext
19010cat >>conftest.$ac_ext <<_ACEOF
19011/* end confdefs.h. */
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char __main ();
19020int
19021main ()
19022{
19023return __main ();
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext conftest$ac_exeext
19029if { (ac_try="$ac_link"
19030case "(($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_link") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_gcc___main=yes
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_cv_lib_gcc___main=no
19068fi
19069
19070rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072LIBS=$ac_check_lib_save_LIBS
19073fi
19074{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19075echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19076if test $ac_cv_lib_gcc___main = yes; then
19077
19078cat >>confdefs.h <<\_ACEOF
19079#define HAVE___MAIN 1
19080_ACEOF
19081
19082fi
19083
19084 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19085echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19086if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089 ac_check_lib_save_LIBS=$LIBS
19090LIBS="-lgcc $LIBS"
19091cat >conftest.$ac_ext <<_ACEOF
19092/* confdefs.h. */
19093_ACEOF
19094cat confdefs.h >>conftest.$ac_ext
19095cat >>conftest.$ac_ext <<_ACEOF
19096/* end confdefs.h. */
19097
19098/* Override any GCC internal prototype to avoid an error.
19099 Use char because int might match the return type of a GCC
19100 builtin and then its argument prototype would still apply. */
19101#ifdef __cplusplus
19102extern "C"
19103#endif
19104char __cmpdi2 ();
19105int
19106main ()
19107{
19108return __cmpdi2 ();
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest.$ac_objext conftest$ac_exeext
19114if { (ac_try="$ac_link"
19115case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118esac
19119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19121 ac_status=$?
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_lib_gcc___cmpdi2=yes
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 ac_cv_lib_gcc___cmpdi2=no
19153fi
19154
19155rm -f core conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19157LIBS=$ac_check_lib_save_LIBS
19158fi
19159{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19160echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19161if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19162
19163cat >>confdefs.h <<\_ACEOF
19164#define HAVE___CMPDI2 1
19165_ACEOF
19166
19167fi
19168
19169fi
19170
19171if test "$llvm_cv_os_type" = "MingW" ; then
19172 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19173echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19174 cat >conftest.$ac_ext <<_ACEOF
19175#include <windows.h>
19176#include <imagehlp.h>
19177extern void foo(PENUMLOADED_MODULES_CALLBACK);
19178extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19179_ACEOF
19180rm -f conftest.$ac_objext
19181if { (ac_try="$ac_compile"
19182case "(($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_compile") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214
19215 { echo "$as_me:$LINENO: result: yes" >&5
19216echo "${ECHO_T}yes" >&6; }
19217 llvm_cv_win32_elmcb_pcstr="PCSTR"
19218
19219else
19220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223
19224 { echo "$as_me:$LINENO: result: no" >&5
19225echo "${ECHO_T}no" >&6; }
19226 llvm_cv_win32_elmcb_pcstr="PSTR"
19227
19228fi
19229
19230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231
19232cat >>confdefs.h <<_ACEOF
19233#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19234_ACEOF
19235
19236fi
19237
19238
19239{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19240echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19241if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244 ac_ext=cpp
19245ac_cpp='$CXXCPP $CPPFLAGS'
19246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19249
19250 cat >conftest.$ac_ext <<_ACEOF
19251/* confdefs.h. */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h. */
19256#include <math.h>
19257int
19258main ()
19259{
19260float f; isnan(f);
19261 ;
19262 return 0;
19263}
19264_ACEOF
19265rm -f conftest.$ac_objext
19266if { (ac_try="$ac_compile"
19267case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_compile") 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293esac
19294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_try") 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_func_isnan_in_math_h=yes
19300else
19301 echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ac_cv_func_isnan_in_math_h=no
19305fi
19306
19307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 ac_ext=c
19309ac_cpp='$CPP $CPPFLAGS'
19310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312ac_compiler_gnu=$ac_cv_c_compiler_gnu
19313
19314fi
19315{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19316echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19317
19318
19319if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19320
19321cat >>confdefs.h <<\_ACEOF
19322#define HAVE_ISNAN_IN_MATH_H 1
19323_ACEOF
19324
19325fi
19326
19327{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19328echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19329if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332 ac_ext=cpp
19333ac_cpp='$CXXCPP $CPPFLAGS'
19334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337
19338 cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h. */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
19343/* end confdefs.h. */
19344#include <cmath>
19345int
19346main ()
19347{
19348float f; isnan(f);
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (ac_try="$ac_compile"
19355case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_compile") 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_func_isnan_in_cmath=yes
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392 ac_cv_func_isnan_in_cmath=no
19393fi
19394
19395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 ac_ext=c
19397ac_cpp='$CPP $CPPFLAGS'
19398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402fi
19403{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19404echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19405
19406if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19407
19408cat >>confdefs.h <<\_ACEOF
19409#define HAVE_ISNAN_IN_CMATH 1
19410_ACEOF
19411
19412fi
19413
19414{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19415echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19416if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19418else
19419 ac_ext=cpp
19420ac_cpp='$CXXCPP $CPPFLAGS'
19421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19424
19425 cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431#include <cmath>
19432int
19433main ()
19434{
19435float f; std::isnan(f);
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (ac_try="$ac_compile"
19442case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458esac
19459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest.$ac_objext'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468esac
19469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_func_std_isnan_in_cmath=yes
19475else
19476 echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
19479 ac_cv_func_std_isnan_in_cmath=no
19480fi
19481
19482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 ac_ext=c
19484ac_cpp='$CPP $CPPFLAGS'
19485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487ac_compiler_gnu=$ac_cv_c_compiler_gnu
19488
19489fi
19490{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19491echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19492
19493if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19494
19495cat >>confdefs.h <<\_ACEOF
19496#define HAVE_STD_ISNAN_IN_CMATH 1
19497_ACEOF
19498
19499fi
19500
19501
19502{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19503echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19504if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507 ac_ext=cpp
19508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513 cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519#include <math.h>
19520int
19521main ()
19522{
19523float f; isinf(f);
19524 ;
19525 return 0;
19526}
19527_ACEOF
19528rm -f conftest.$ac_objext
19529if { (ac_try="$ac_compile"
19530case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_func_isinf_in_math_h=yes
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ac_cv_func_isinf_in_math_h=no
19568fi
19569
19570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 ac_ext=c
19572ac_cpp='$CPP $CPPFLAGS'
19573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577fi
19578{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19579echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19580
19581if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19582
19583cat >>confdefs.h <<\_ACEOF
19584#define HAVE_ISINF_IN_MATH_H 1
19585_ACEOF
19586
19587fi
19588
19589{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19590echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19591if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593else
19594 ac_ext=cpp
19595ac_cpp='$CXXCPP $CPPFLAGS'
19596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19599
19600 cat >conftest.$ac_ext <<_ACEOF
19601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
19605/* end confdefs.h. */
19606#include <cmath>
19607int
19608main ()
19609{
19610float f; isinf(f);
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext
19616if { (ac_try="$ac_compile"
19617case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 ac_cv_func_isinf_in_cmath=yes
19650else
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 ac_cv_func_isinf_in_cmath=no
19655fi
19656
19657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 ac_ext=c
19659ac_cpp='$CPP $CPPFLAGS'
19660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663
19664fi
19665{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19666echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19667
19668if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19669
19670cat >>confdefs.h <<\_ACEOF
19671#define HAVE_ISINF_IN_CMATH 1
19672_ACEOF
19673
19674fi
19675
19676{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19677echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19678if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680else
19681 ac_ext=cpp
19682ac_cpp='$CXXCPP $CPPFLAGS'
19683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693#include <cmath>
19694int
19695main ()
19696{
19697float f; std::isinf(f)}
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (ac_try="$ac_compile"
19704case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_compile") 2>conftest.er1
19710 ac_status=$?
19711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720esac
19721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_func_std_isinf_in_cmath=yes
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_cv_func_std_isinf_in_cmath=no
19742fi
19743
19744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 ac_ext=c
19746ac_cpp='$CPP $CPPFLAGS'
19747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
19751fi
19752{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19753echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19754
19755if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19756
19757cat >>confdefs.h <<\_ACEOF
19758#define HAVE_STD_ISINF_IN_CMATH 1
19759_ACEOF
19760
19761fi
19762
19763{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19764echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19765if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 ac_ext=cpp
19769ac_cpp='$CXXCPP $CPPFLAGS'
19770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19773
19774 cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
19780#include <ieeefp.h>
19781int
19782main ()
19783{
19784float f; finite(f);
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (ac_try="$ac_compile"
19791case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794esac
19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_compile") 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_cv_func_finite_in_ieeefp_h=yes
19824else
19825 echo "$as_me: failed program was:" >&5
19826sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_cv_func_finite_in_ieeefp_h=no
19829fi
19830
19831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 ac_ext=c
19833ac_cpp='$CPP $CPPFLAGS'
19834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836ac_compiler_gnu=$ac_cv_c_compiler_gnu
19837
19838fi
19839{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19840echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19841
19842if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19843
19844cat >>confdefs.h <<\_ACEOF
19845#define HAVE_FINITE_IN_IEEEFP_H 1
19846_ACEOF
19847
19848fi
19849
19850
19851
19852if test "$llvm_cv_platform_type" = "Unix" ; then
19853
19854
19855for ac_header in stdlib.h unistd.h
19856do
19857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19863fi
19864ac_res=`eval echo '${'$as_ac_Header'}'`
19865 { echo "$as_me:$LINENO: result: $ac_res" >&5
19866echo "${ECHO_T}$ac_res" >&6; }
19867else
19868 # Is the header compilable?
19869{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19871cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
19877$ac_includes_default
19878#include <$ac_header>
19879_ACEOF
19880rm -f conftest.$ac_objext
19881if { (ac_try="$ac_compile"
19882case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885esac
19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_header_compiler=yes
19915else
19916 echo "$as_me: failed program was:" >&5
19917sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_header_compiler=no
19920fi
19921
19922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924echo "${ECHO_T}$ac_header_compiler" >&6; }
19925
19926# Is the header present?
19927{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929cat >conftest.$ac_ext <<_ACEOF
19930/* confdefs.h. */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h. */
19935#include <$ac_header>
19936_ACEOF
19937if { (ac_try="$ac_cpp conftest.$ac_ext"
19938case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } >/dev/null; then
19950 if test -s conftest.err; then
19951 ac_cpp_err=$ac_c_preproc_warn_flag
19952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19953 else
19954 ac_cpp_err=
19955 fi
19956else
19957 ac_cpp_err=yes
19958fi
19959if test -z "$ac_cpp_err"; then
19960 ac_header_preproc=yes
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 ac_header_preproc=no
19966fi
19967
19968rm -f conftest.err conftest.$ac_ext
19969{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19970echo "${ECHO_T}$ac_header_preproc" >&6; }
19971
19972# So? What about this header?
19973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19974 yes:no: )
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19979 ac_header_preproc=yes
19980 ;;
19981 no:yes:* )
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19994 ( cat <<\_ASBOX
19995## ------------------------------ ##
19996## Report this to bugs@yourdomain ##
19997## ------------------------------ ##
19998_ASBOX
19999 ) | sed "s/^/$as_me: WARNING: /" >&2
20000 ;;
20001esac
20002{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007 eval "$as_ac_Header=\$ac_header_preproc"
20008fi
20009ac_res=`eval echo '${'$as_ac_Header'}'`
20010 { echo "$as_me:$LINENO: result: $ac_res" >&5
20011echo "${ECHO_T}$ac_res" >&6; }
20012
20013fi
20014if test `eval echo '${'$as_ac_Header'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20017_ACEOF
20018
20019fi
20020
20021done
20022
20023
20024for ac_func in getpagesize
20025do
20026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032 cat >conftest.$ac_ext <<_ACEOF
20033/* confdefs.h. */
20034_ACEOF
20035cat confdefs.h >>conftest.$ac_ext
20036cat >>conftest.$ac_ext <<_ACEOF
20037/* end confdefs.h. */
20038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20040#define $ac_func innocuous_$ac_func
20041
20042/* System header to define __stub macros and hopefully few prototypes,
20043 which can conflict with char $ac_func (); below.
20044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045 <limits.h> exists even on freestanding compilers. */
20046
20047#ifdef __STDC__
20048# include <limits.h>
20049#else
20050# include <assert.h>
20051#endif
20052
20053#undef $ac_func
20054
20055/* Override any GCC internal prototype to avoid an error.
20056 Use char because int might match the return type of a GCC
20057 builtin and then its argument prototype would still apply. */
20058#ifdef __cplusplus
20059extern "C"
20060#endif
20061char $ac_func ();
20062/* The GNU C library defines this for functions which it implements
20063 to always fail with ENOSYS. Some functions are actually named
20064 something starting with __ and the normal name is an alias. */
20065#if defined __stub_$ac_func || defined __stub___$ac_func
20066choke me
20067#endif
20068
20069int
20070main ()
20071{
20072return $ac_func ();
20073 ;
20074 return 0;
20075}
20076_ACEOF
20077rm -f conftest.$ac_objext conftest$ac_exeext
20078if { (ac_try="$ac_link"
20079case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082esac
20083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095esac
20096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest$ac_exeext'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105esac
20106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 eval "$as_ac_var=yes"
20112else
20113 echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 eval "$as_ac_var=no"
20117fi
20118
20119rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121fi
20122ac_res=`eval echo '${'$as_ac_var'}'`
20123 { echo "$as_me:$LINENO: result: $ac_res" >&5
20124echo "${ECHO_T}$ac_res" >&6; }
20125if test `eval echo '${'$as_ac_var'}'` = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128_ACEOF
20129
20130fi
20131done
20132
20133{ echo "$as_me:$LINENO: checking for working mmap" >&5
20134echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 if test "$cross_compiling" = yes; then
20139 ac_cv_func_mmap_fixed_mapped=no
20140else
20141 cat >conftest.$ac_ext <<_ACEOF
20142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
20147$ac_includes_default
20148/* malloc might have been renamed as rpl_malloc. */
20149#undef malloc
20150
20151/* Thanks to Mike Haertel and Jim Avera for this test.
20152 Here is a matrix of mmap possibilities:
20153 mmap private not fixed
20154 mmap private fixed at somewhere currently unmapped
20155 mmap private fixed at somewhere already mapped
20156 mmap shared not fixed
20157 mmap shared fixed at somewhere currently unmapped
20158 mmap shared fixed at somewhere already mapped
20159 For private mappings, we should verify that changes cannot be read()
20160 back from the file, nor mmap's back from the file at a different
20161 address. (There have been systems where private was not correctly
20162 implemented like the infamous i386 svr4.0, and systems where the
20163 VM page cache was not coherent with the file system buffer cache
20164 like early versions of FreeBSD and possibly contemporary NetBSD.)
20165 For shared mappings, we should conversely verify that changes get
20166 propagated back to all the places they're supposed to be.
20167
20168 Grep wants private fixed already mapped.
20169 The main things grep needs to know about mmap are:
20170 * does it exist and is it safe to write into the mmap'd area
20171 * how to use it (BSD variants) */
20172
20173#include <fcntl.h>
20174#include <sys/mman.h>
20175
20176#if !STDC_HEADERS && !HAVE_STDLIB_H
20177char *malloc ();
20178#endif
20179
20180/* This mess was copied from the GNU getpagesize.h. */
20181#if !HAVE_GETPAGESIZE
20182/* Assume that all systems that can run configure have sys/param.h. */
20183# if !HAVE_SYS_PARAM_H
20184# define HAVE_SYS_PARAM_H 1
20185# endif
20186
20187# ifdef _SC_PAGESIZE
20188# define getpagesize() sysconf(_SC_PAGESIZE)
20189# else /* no _SC_PAGESIZE */
20190# if HAVE_SYS_PARAM_H
20191# include <sys/param.h>
20192# ifdef EXEC_PAGESIZE
20193# define getpagesize() EXEC_PAGESIZE
20194# else /* no EXEC_PAGESIZE */
20195# ifdef NBPG
20196# define getpagesize() NBPG * CLSIZE
20197# ifndef CLSIZE
20198# define CLSIZE 1
20199# endif /* no CLSIZE */
20200# else /* no NBPG */
20201# ifdef NBPC
20202# define getpagesize() NBPC
20203# else /* no NBPC */
20204# ifdef PAGESIZE
20205# define getpagesize() PAGESIZE
20206# endif /* PAGESIZE */
20207# endif /* no NBPC */
20208# endif /* no NBPG */
20209# endif /* no EXEC_PAGESIZE */
20210# else /* no HAVE_SYS_PARAM_H */
20211# define getpagesize() 8192 /* punt totally */
20212# endif /* no HAVE_SYS_PARAM_H */
20213# endif /* no _SC_PAGESIZE */
20214
20215#endif /* no HAVE_GETPAGESIZE */
20216
20217int
20218main ()
20219{
20220 char *data, *data2, *data3;
20221 int i, pagesize;
20222 int fd;
20223
20224 pagesize = getpagesize ();
20225
20226 /* First, make a file with some known garbage in it. */
20227 data = (char *) malloc (pagesize);
20228 if (!data)
20229 return 1;
20230 for (i = 0; i < pagesize; ++i)
20231 *(data + i) = rand ();
20232 umask (0);
20233 fd = creat ("conftest.mmap", 0600);
20234 if (fd < 0)
20235 return 1;
20236 if (write (fd, data, pagesize) != pagesize)
20237 return 1;
20238 close (fd);
20239
20240 /* Next, try to mmap the file at a fixed address which already has
20241 something else allocated at it. If we can, also make sure that
20242 we see the same garbage. */
20243 fd = open ("conftest.mmap", O_RDWR);
20244 if (fd < 0)
20245 return 1;
20246 data2 = (char *) malloc (2 * pagesize);
20247 if (!data2)
20248 return 1;
20249 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252 return 1;
20253 for (i = 0; i < pagesize; ++i)
20254 if (*(data + i) != *(data2 + i))
20255 return 1;
20256
20257 /* Finally, make sure that changes to the mapped area do not
20258 percolate back to the file as seen by read(). (This is a bug on
20259 some variants of i386 svr4.0.) */
20260 for (i = 0; i < pagesize; ++i)
20261 *(data2 + i) = *(data2 + i) + 1;
20262 data3 = (char *) malloc (pagesize);
20263 if (!data3)
20264 return 1;
20265 if (read (fd, data3, pagesize) != pagesize)
20266 return 1;
20267 for (i = 0; i < pagesize; ++i)
20268 if (*(data + i) != *(data3 + i))
20269 return 1;
20270 close (fd);
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest$ac_exeext
20275if { (ac_try="$ac_link"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288esac
20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_mmap_fixed_mapped=yes
20295else
20296 echo "$as_me: program exited with status $ac_status" >&5
20297echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
20300( exit $ac_status )
20301ac_cv_func_mmap_fixed_mapped=no
20302fi
20303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304fi
20305
20306
20307fi
20308{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311
20312cat >>confdefs.h <<\_ACEOF
20313#define HAVE_MMAP 1
20314_ACEOF
20315
20316fi
20317rm -f conftest.mmap
20318
20319 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20320echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20321if test "${ac_cv_func_mmap_file+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324 ac_ext=c
20325ac_cpp='$CPP $CPPFLAGS'
20326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20328ac_compiler_gnu=$ac_cv_c_compiler_gnu
20329
20330 if test "$cross_compiling" = yes; then
20331 ac_cv_func_mmap_file=no
20332else
20333 cat >conftest.$ac_ext <<_ACEOF
20334
20335 /* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
20340
20341#include <sys/types.h>
20342#include <sys/mman.h>
20343#include <fcntl.h>
20344
20345int
20346main ()
20347{
20348
20349 int fd;
20350 fd = creat ("foo",0777);
20351 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20352 unlink ("foo");
20353 return (fd != (int) MAP_FAILED);
20354 ;
20355 return 0;
20356}
20357_ACEOF
20358rm -f conftest$ac_exeext
20359if { (ac_try="$ac_link"
20360case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363esac
20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372esac
20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_func_mmap_file=yes
20379else
20380 echo "$as_me: program exited with status $ac_status" >&5
20381echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384( exit $ac_status )
20385ac_cv_func_mmap_file=no
20386fi
20387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388fi
20389
20390
20391 ac_ext=c
20392ac_cpp='$CPP $CPPFLAGS'
20393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20395ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396
20397
20398fi
20399{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20400echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20401if test "$ac_cv_func_mmap_file" = yes; then
20402
20403cat >>confdefs.h <<\_ACEOF
20404#define HAVE_MMAP_FILE
20405_ACEOF
20406
20407 MMAP_FILE=yes
20408
20409fi
20410
20411 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20412echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20413if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416 if test "$llvm_cv_os_type" = "Interix" ; then
20417 ac_cv_need_dev_zero_for_mmap=yes
20418 else
20419 ac_cv_need_dev_zero_for_mmap=no
20420 fi
20421
20422fi
20423{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20424echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20425if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20426
20427cat >>confdefs.h <<\_ACEOF
20428#define NEED_DEV_ZERO_FOR_MMAP 1
20429_ACEOF
20430
20431fi
20432
20433 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20434 then
20435 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20436echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20437 fi
20438 if test "$ac_cv_func_mmap_file" = "no"
20439 then
20440 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20441echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20442 fi
20443fi
20444
20445{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20446echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20447ac_ext=cpp
20448ac_cpp='$CXXCPP $CPPFLAGS'
20449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20452
20453cat >conftest.$ac_ext <<_ACEOF
20454/* confdefs.h. */
20455_ACEOF
20456cat confdefs.h >>conftest.$ac_ext
20457cat >>conftest.$ac_ext <<_ACEOF
20458/* end confdefs.h. */
20459int main() {
20460 volatile unsigned long val = 1;
20461 __sync_synchronize();
20462 __sync_val_compare_and_swap(&val, 1, 0);
20463 __sync_add_and_fetch(&val, 1);
20464 __sync_sub_and_fetch(&val, 1);
20465 return 0;
20466 }
20467
20468_ACEOF
20469rm -f conftest.$ac_objext conftest$ac_exeext
20470if { (ac_try="$ac_link"
20471case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474esac
20475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_link") 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487esac
20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest$ac_exeext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497esac
20498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_ext=c
20504ac_cpp='$CPP $CPPFLAGS'
20505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
20509 { echo "$as_me:$LINENO: result: yes" >&5
20510echo "${ECHO_T}yes" >&6; }
20511
20512cat >>confdefs.h <<\_ACEOF
20513#define LLVM_HAS_ATOMICS 1
20514_ACEOF
20515
20516else
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 { echo "$as_me:$LINENO: result: no" >&5
20521echo "${ECHO_T}no" >&6; }
20522
20523cat >>confdefs.h <<\_ACEOF
20524#define LLVM_HAS_ATOMICS 0
20525_ACEOF
20526
20527 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20528echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20529fi
20530
20531rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533
20534
20535if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20536 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20537echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20538if test "${llvm_cv_linux_mixed+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540else
20541 ac_ext=c
20542ac_cpp='$CPP $CPPFLAGS'
20543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546
20547 cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553#ifndef __x86_64__
20554 error: Not x86-64 even if uname says so!
20555 #endif
20556
20557int
20558main ()
20559{
20560
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext
20566if { (ac_try="$ac_compile"
20567case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570esac
20571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_compile") 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } &&
20579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583esac
20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; } &&
20589 { ac_try='test -s conftest.$ac_objext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 llvm_cv_linux_mixed=no
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 llvm_cv_linux_mixed=yes
20605fi
20606
20607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 ac_ext=c
20609ac_cpp='$CPP $CPPFLAGS'
20610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
20614
20615fi
20616{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20617echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20618
20619 if test "$llvm_cv_linux_mixed" = "yes"; then
20620 llvm_cv_target_arch="x86"
20621 ARCH="x86"
20622 fi
20623fi
20624
20625
20626for ac_func in __dso_handle
20627do
20628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20629{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20631if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634 cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
20640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20642#define $ac_func innocuous_$ac_func
20643
20644/* System header to define __stub macros and hopefully few prototypes,
20645 which can conflict with char $ac_func (); below.
20646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20647 <limits.h> exists even on freestanding compilers. */
20648
20649#ifdef __STDC__
20650# include <limits.h>
20651#else
20652# include <assert.h>
20653#endif
20654
20655#undef $ac_func
20656
20657/* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20660#ifdef __cplusplus
20661extern "C"
20662#endif
20663char $ac_func ();
20664/* The GNU C library defines this for functions which it implements
20665 to always fail with ENOSYS. Some functions are actually named
20666 something starting with __ and the normal name is an alias. */
20667#if defined __stub_$ac_func || defined __stub___$ac_func
20668choke me
20669#endif
20670
20671int
20672main ()
20673{
20674return $ac_func ();
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext conftest$ac_exeext
20680if { (ac_try="$ac_link"
20681case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684esac
20685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694 { (case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697esac
20698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_try") 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest$ac_exeext'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 eval "$as_ac_var=yes"
20714else
20715 echo "$as_me: failed program was:" >&5
20716sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 eval "$as_ac_var=no"
20719fi
20720
20721rm -f core conftest.err conftest.$ac_objext \
20722 conftest$ac_exeext conftest.$ac_ext
20723fi
20724ac_res=`eval echo '${'$as_ac_var'}'`
20725 { echo "$as_me:$LINENO: result: $ac_res" >&5
20726echo "${ECHO_T}$ac_res" >&6; }
20727if test `eval echo '${'$as_ac_var'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20730_ACEOF
20731
20732fi
20733done
20734
20735
20736SHLIBEXT=$libltdl_cv_shlibext
20737
20738
20739SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20740
20741
20742# Translate the various configuration directories and other basic
20743# information into substitutions that will end up in Makefile.config.in
20744# that these configured values can be used by the makefiles
20745if test "${prefix}" = "NONE" ; then
20746 prefix="/usr/local"
20747fi
20748eval LLVM_PREFIX="${prefix}";
20749eval LLVM_BINDIR="${prefix}/bin";
20750eval LLVM_LIBDIR="${prefix}/lib";
20751eval LLVM_DATADIR="${prefix}/share/llvm";
20752eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20753eval LLVM_ETCDIR="${prefix}/etc/llvm";
20754eval LLVM_INCLUDEDIR="${prefix}/include";
20755eval LLVM_INFODIR="${prefix}/info";
20756eval LLVM_MANDIR="${prefix}/man";
20757LLVM_CONFIGTIME=`date`
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769# Place the various directores into the config.h file as #defines so that we
20770# can know about the installation paths within LLVM.
20771
20772cat >>confdefs.h <<_ACEOF
20773#define LLVM_PREFIX "$LLVM_PREFIX"
20774_ACEOF
20775
20776
20777cat >>confdefs.h <<_ACEOF
20778#define LLVM_BINDIR "$LLVM_BINDIR"
20779_ACEOF
20780
20781
20782cat >>confdefs.h <<_ACEOF
20783#define LLVM_LIBDIR "$LLVM_LIBDIR"
20784_ACEOF
20785
20786
20787cat >>confdefs.h <<_ACEOF
20788#define LLVM_DATADIR "$LLVM_DATADIR"
20789_ACEOF
20790
20791
20792cat >>confdefs.h <<_ACEOF
20793#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20794_ACEOF
20795
20796
20797cat >>confdefs.h <<_ACEOF
20798#define LLVM_ETCDIR "$LLVM_ETCDIR"
20799_ACEOF
20800
20801
20802cat >>confdefs.h <<_ACEOF
20803#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20804_ACEOF
20805
20806
20807cat >>confdefs.h <<_ACEOF
20808#define LLVM_INFODIR "$LLVM_INFODIR"
20809_ACEOF
20810
20811
20812cat >>confdefs.h <<_ACEOF
20813#define LLVM_MANDIR "$LLVM_MANDIR"
20814_ACEOF
20815
20816
20817cat >>confdefs.h <<_ACEOF
20818#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20819_ACEOF
20820
20821
20822cat >>confdefs.h <<_ACEOF
20823#define LLVM_HOSTTRIPLE "$host"
20824_ACEOF
20825
20826
20827# Determine which bindings to build.
20828if test "$BINDINGS_TO_BUILD" = auto ; then
20829 BINDINGS_TO_BUILD=""
20830 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20831 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20832 fi
20833fi
20834BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20835
20836
20837# This isn't really configurey, but it avoids having to repeat the list in
20838# other files.
20839ALL_BINDINGS=ocaml
20840
20841
20842# Do any work necessary to ensure that bindings have what they need.
20843binding_prereqs_failed=0
20844for a_binding in $BINDINGS_TO_BUILD ; do
20845 case "$a_binding" in
20846 ocaml)
20847 if test "x$OCAMLC" = x ; then
20848 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20849echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20850 binding_prereqs_failed=1
20851 fi
20852 if test "x$OCAMLDEP" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20854echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20855 binding_prereqs_failed=1
20856 fi
20857 if test "x$OCAMLOPT" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20859echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20860 fi
20861 if test "x$with_ocaml_libdir" != xauto ; then
20862 OCAML_LIBDIR=$with_ocaml_libdir
20863
20864 else
20865 ocaml_stdlib="`"$OCAMLC" -where`"
20866 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20867 then
20868 # ocaml stdlib is beneath our prefix; use stdlib
20869 OCAML_LIBDIR=$ocaml_stdlib
20870
20871 else
20872 # ocaml stdlib is outside our prefix; use libdir/ocaml
20873 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20874
20875 fi
20876 fi
20877 ;;
20878 esac
20879done
20880if test "$binding_prereqs_failed" = 1 ; then
20881 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20882echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20883 { (exit 1); exit 1; }; }
20884fi
20885
20886{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20887echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20888if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890else
20891 ac_ext=cpp
20892ac_cpp='$CXXCPP $CPPFLAGS'
20893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897 oldcxxflags="$CXXFLAGS"
20898 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20899 cat >conftest.$ac_ext <<_ACEOF
20900/* confdefs.h. */
20901_ACEOF
20902cat confdefs.h >>conftest.$ac_ext
20903cat >>conftest.$ac_ext <<_ACEOF
20904/* end confdefs.h. */
20905
20906int
20907main ()
20908{
20909
20910 ;
20911 return 0;
20912}
20913_ACEOF
20914rm -f conftest.$ac_objext
20915if { (ac_try="$ac_compile"
20916case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919esac
20920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
20928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20929 { (case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_try") 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 llvm_cv_cxx_visibility_inlines_hidden=yes
20949else
20950 echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953 llvm_cv_cxx_visibility_inlines_hidden=no
20954fi
20955
20956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 CXXFLAGS="$oldcxxflags"
20958 ac_ext=c
20959ac_cpp='$CPP $CPPFLAGS'
20960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963
20964
20965fi
20966{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20967echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20968if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20969 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20970
20971else
20972 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20973
20974fi
20975
20976
20977if test "$llvm_cv_link_use_r" = "yes" ; then
20978 RPATH="-Wl,-R"
20979else
20980 RPATH="-Wl,-rpath"
20981fi
20982
20983
20984if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20985 RDYNAMIC="-Wl,-export-dynamic"
20986else
20987 RDYNAMIC=""
20988fi
20989
20990
20991
Reid Spencer421ec052005-02-24 18:53:47 +000020992
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020993ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020994
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020995ac_config_files="$ac_config_files Makefile.llvm.config"
20996
John Criswell451f67f2003-10-16 01:45:35 +000020997
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020998ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020999
21000
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021001ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021002
21003
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021004ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021005
21006
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021007ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021008
21009
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021010ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021011
21012
21013
John Criswell451f67f2003-10-16 01:45:35 +000021014cat >confcache <<\_ACEOF
21015# This file is a shell script that caches the results of configure
21016# tests run on this system so they can be shared between configure
21017# scripts and configure runs, see configure's option --config-cache.
21018# It is not useful on other systems. If it contains results you don't
21019# want to keep, you may remove or edit it.
21020#
21021# config.status only pays attention to the cache file if you give it
21022# the --recheck option to rerun configure.
21023#
21024# `ac_cv_env_foo' variables (set or unset) will be overridden when
21025# loading this file, other *unset* `ac_cv_foo' will be assigned the
21026# following values.
21027
21028_ACEOF
21029
21030# The following way of writing the cache mishandles newlines in values,
21031# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021032# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000021033# Ultrix sh set writes to stderr and can't be redirected directly,
21034# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021035(
21036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21037 eval ac_val=\$$ac_var
21038 case $ac_val in #(
21039 *${as_nl}*)
21040 case $ac_var in #(
21041 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21042echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21043 esac
21044 case $ac_var in #(
21045 _ | IFS | as_nl) ;; #(
21046 *) $as_unset $ac_var ;;
21047 esac ;;
21048 esac
21049 done
21050
John Criswell451f67f2003-10-16 01:45:35 +000021051 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21053 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021054 # `set' does not quote correctly, so add quotes (double-quote
21055 # substitution turns \\\\ into \\, and sed turns \\ into \).
21056 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021057 "s/'/'\\\\''/g;
21058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021059 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021060 *)
21061 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021063 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021064 esac |
21065 sort
21066) |
John Criswell451f67f2003-10-16 01:45:35 +000021067 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021068 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021069 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021070 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21072 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21074 :end' >>confcache
21075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21076 if test -w "$cache_file"; then
21077 test "x$cache_file" != "x/dev/null" &&
21078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21079echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021080 cat confcache >$cache_file
21081 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21083echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021084 fi
21085fi
21086rm -f confcache
21087
21088test "x$prefix" = xNONE && prefix=$ac_default_prefix
21089# Let make expand exec_prefix.
21090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21091
John Criswell451f67f2003-10-16 01:45:35 +000021092# Transform confdefs.h into DEFS.
21093# Protect against shell expansion while executing Makefile rules.
21094# Protect against Makefile macro expansion.
21095#
21096# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021097# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021098# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021099ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021100t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021101:clear
21102s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021103t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021104s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021105t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021106b any
21107:quote
21108s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21109s/\[/\\&/g
21110s/\]/\\&/g
21111s/\$/$$/g
21112H
21113:any
21114${
21115 g
21116 s/^\n//
21117 s/\n/ /g
21118 p
21119}
21120'
21121DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021122
21123
21124ac_libobjs=
21125ac_ltlibobjs=
21126for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21127 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21129 ac_i=`echo "$ac_i" | sed "$ac_script"`
21130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21131 # will be set to the directory where LIBOBJS objects are built.
21132 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21133 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021134done
21135LIBOBJS=$ac_libobjs
21136
21137LTLIBOBJS=$ac_ltlibobjs
21138
21139
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021140if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21141 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21142Usually this means the macro was only invoked conditionally." >&5
21143echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21144Usually this means the macro was only invoked conditionally." >&2;}
21145 { (exit 1); exit 1; }; }
21146fi
21147if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21148 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21149Usually this means the macro was only invoked conditionally." >&5
21150echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21151Usually this means the macro was only invoked conditionally." >&2;}
21152 { (exit 1); exit 1; }; }
21153fi
John Criswell451f67f2003-10-16 01:45:35 +000021154
21155: ${CONFIG_STATUS=./config.status}
21156ac_clean_files_save=$ac_clean_files
21157ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21158{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21159echo "$as_me: creating $CONFIG_STATUS" >&6;}
21160cat >$CONFIG_STATUS <<_ACEOF
21161#! $SHELL
21162# Generated by $as_me.
21163# Run this file to recreate the current configuration.
21164# Compiler output produced by configure, useful for debugging
21165# configure, is in config.log if it exists.
21166
21167debug=false
21168ac_cs_recheck=false
21169ac_cs_silent=false
21170SHELL=\${CONFIG_SHELL-$SHELL}
21171_ACEOF
21172
21173cat >>$CONFIG_STATUS <<\_ACEOF
21174## --------------------- ##
21175## M4sh Initialization. ##
21176## --------------------- ##
21177
Dan Gohman324f6082009-03-25 00:52:11 +000021178# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021179if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21180 emulate sh
21181 NULLCMD=:
21182 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21183 # is contrary to our usage. Disable this feature.
21184 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021185 setopt NO_GLOB_SUBST
21186else
21187 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021188fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021189BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021190DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021191
John Criswell451f67f2003-10-16 01:45:35 +000021192
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021193# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021194# Avoid depending upon Character Ranges.
21195as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21197as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21198as_cr_digits='0123456789'
21199as_cr_alnum=$as_cr_Letters$as_cr_digits
21200
21201# The user is always right.
21202if test "${PATH_SEPARATOR+set}" != set; then
21203 echo "#! /bin/sh" >conf$$.sh
21204 echo "exit 0" >>conf$$.sh
21205 chmod +x conf$$.sh
21206 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21207 PATH_SEPARATOR=';'
21208 else
21209 PATH_SEPARATOR=:
21210 fi
21211 rm -f conf$$.sh
21212fi
21213
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021214# Support unset when possible.
21215if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21216 as_unset=unset
21217else
21218 as_unset=false
21219fi
John Criswell451f67f2003-10-16 01:45:35 +000021220
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021221
21222# IFS
21223# We need space, tab and new line, in precisely that order. Quoting is
21224# there to prevent editors from complaining about space-tab.
21225# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21226# splitting by setting IFS to empty value.)
21227as_nl='
21228'
21229IFS=" "" $as_nl"
21230
21231# Find who we are. Look in the path if we contain no directory separator.
21232case $0 in
21233 *[\\/]* ) as_myself=$0 ;;
21234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021235for as_dir in $PATH
21236do
21237 IFS=$as_save_IFS
21238 test -z "$as_dir" && as_dir=.
21239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21240done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021241IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021242
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021243 ;;
21244esac
21245# We did not find ourselves, most probably we were run as `sh COMMAND'
21246# in which case we are not to be found in the path.
21247if test "x$as_myself" = x; then
21248 as_myself=$0
21249fi
21250if test ! -f "$as_myself"; then
21251 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21252 { (exit 1); exit 1; }
21253fi
21254
21255# Work around bugs in pre-3.0 UWIN ksh.
21256for as_var in ENV MAIL MAILPATH
21257do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21258done
21259PS1='$ '
21260PS2='> '
21261PS4='+ '
21262
21263# NLS nuisances.
21264for as_var in \
21265 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21266 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21267 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021268do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021269 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21270 eval $as_var=C; export $as_var
21271 else
21272 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21273 fi
21274done
21275
21276# Required to use basename.
21277if expr a : '\(a\)' >/dev/null 2>&1 &&
21278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21279 as_expr=expr
21280else
21281 as_expr=false
21282fi
21283
21284if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21285 as_basename=basename
21286else
21287 as_basename=false
21288fi
21289
21290
21291# Name of the executable.
21292as_me=`$as_basename -- "$0" ||
21293$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21294 X"$0" : 'X\(//\)$' \| \
21295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21296echo X/"$0" |
21297 sed '/^.*\/\([^/][^/]*\)\/*$/{
21298 s//\1/
21299 q
21300 }
21301 /^X\/\(\/\/\)$/{
21302 s//\1/
21303 q
21304 }
21305 /^X\/\(\/\).*/{
21306 s//\1/
21307 q
21308 }
21309 s/.*/./; q'`
21310
21311# CDPATH.
21312$as_unset CDPATH
21313
21314
21315
John Criswell451f67f2003-10-16 01:45:35 +000021316 as_lineno_1=$LINENO
21317 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021318 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021319 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021320
21321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21322 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021323 # line-number line after each line using $LINENO; the second 'sed'
21324 # does the real work. The second script uses 'N' to pair each
21325 # line-number line with the line containing $LINENO, and appends
21326 # trailing '-' during substitution so that $LINENO is not a special
21327 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021328 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021329 # scripts with optimization help from Paolo Bonzini. Blame Lee
21330 # E. McMahon (1931-1989) for sed's syntax. :-)
21331 sed -n '
21332 p
21333 /[$]LINENO/=
21334 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021335 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021336 s/[$]LINENO.*/&-/
21337 t lineno
21338 b
21339 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021340 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021341 :loop
21342 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021343 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021344 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021345 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346 chmod +x "$as_me.lineno" ||
21347 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021348 { (exit 1); exit 1; }; }
21349
21350 # Don't try to exec as it changes $[0], causing all sort of problems
21351 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021352 # original and so on. Autoconf is especially sensitive to this).
21353 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021354 # Exit status is that of the last command.
21355 exit
21356}
21357
21358
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021359if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21360 as_dirname=dirname
21361else
21362 as_dirname=false
21363fi
21364
21365ECHO_C= ECHO_N= ECHO_T=
21366case `echo -n x` in
21367-n*)
21368 case `echo 'x\c'` in
21369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21370 *) ECHO_C='\c';;
21371 esac;;
21372*)
21373 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021374esac
21375
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021376if expr a : '\(a\)' >/dev/null 2>&1 &&
21377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021378 as_expr=expr
21379else
21380 as_expr=false
21381fi
21382
21383rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384if test -d conf$$.dir; then
21385 rm -f conf$$.dir/conf$$.file
21386else
21387 rm -f conf$$.dir
21388 mkdir conf$$.dir
21389fi
John Criswell451f67f2003-10-16 01:45:35 +000021390echo >conf$$.file
21391if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021392 as_ln_s='ln -s'
21393 # ... but there are two gotchas:
21394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21396 # In both cases, we have to default to `cp -p'.
21397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021398 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021399elif ln conf$$.file conf$$ 2>/dev/null; then
21400 as_ln_s=ln
21401else
21402 as_ln_s='cp -p'
21403fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021404rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21405rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021406
21407if mkdir -p . 2>/dev/null; then
21408 as_mkdir_p=:
21409else
Reid Spencer9964cd82005-01-01 09:26:55 +000021410 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021411 as_mkdir_p=false
21412fi
21413
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021414# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21415# systems may use methods other than mode bits to determine executability.
21416cat >conf$$.file <<_ASEOF
21417#! /bin/sh
21418exit 0
21419_ASEOF
21420chmod +x conf$$.file
21421if test -x conf$$.file >/dev/null 2>&1; then
21422 as_executable_p="test -x"
21423else
21424 as_executable_p=:
21425fi
21426rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021427
21428# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021429as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021430
21431# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021432as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021433
21434
John Criswell451f67f2003-10-16 01:45:35 +000021435exec 6>&1
21436
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021437# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021438# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021439# values after options handling.
21440ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021441This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021442generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021443
21444 CONFIG_FILES = $CONFIG_FILES
21445 CONFIG_HEADERS = $CONFIG_HEADERS
21446 CONFIG_LINKS = $CONFIG_LINKS
21447 CONFIG_COMMANDS = $CONFIG_COMMANDS
21448 $ $0 $@
21449
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021450on `(hostname || uname -n) 2>/dev/null | sed 1q`
21451"
21452
John Criswell451f67f2003-10-16 01:45:35 +000021453_ACEOF
21454
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021455cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021456# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021457config_files="$ac_config_files"
21458config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021459
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021460_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021461
21462cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021463ac_cs_usage="\
21464\`$as_me' instantiates files from templates according to the
21465current configuration.
21466
21467Usage: $0 [OPTIONS] [FILE]...
21468
21469 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021470 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021471 -q, --quiet do not print progress messages
21472 -d, --debug don't remove temporary files
21473 --recheck update $as_me by reconfiguring in the same conditions
21474 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021475 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021476
21477Configuration files:
21478$config_files
21479
21480Configuration commands:
21481$config_commands
21482
21483Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021484
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021485_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021486cat >>$CONFIG_STATUS <<_ACEOF
21487ac_cs_version="\\
21488[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021489configured by $0, generated by GNU Autoconf 2.60,
21490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021491
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021492Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021493This config.status script is free software; the Free Software Foundation
21494gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021495
21496ac_pwd='$ac_pwd'
21497srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021498INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021499_ACEOF
21500
21501cat >>$CONFIG_STATUS <<\_ACEOF
21502# If no file are specified by the user, then we need to provide default
21503# value. By we need to know if files were specified by the user.
21504ac_need_defaults=:
21505while test $# != 0
21506do
21507 case $1 in
21508 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021511 ac_shift=:
21512 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021513 *)
John Criswell451f67f2003-10-16 01:45:35 +000021514 ac_option=$1
21515 ac_optarg=$2
21516 ac_shift=shift
21517 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021518 esac
21519
21520 case $ac_option in
21521 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21523 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21525 echo "$ac_cs_version"; exit ;;
21526 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021527 debug=: ;;
21528 --file | --fil | --fi | --f )
21529 $ac_shift
21530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21531 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021532 --he | --h | --help | --hel | -h )
21533 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21536 ac_cs_silent=: ;;
21537
21538 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021539 -*) { echo "$as_me: error: unrecognized option: $1
21540Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021541 { (exit 1); exit 1; }; } ;;
21542
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021543 *) ac_config_targets="$ac_config_targets $1"
21544 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021545
21546 esac
21547 shift
21548done
21549
21550ac_configure_extra_args=
21551
21552if $ac_cs_silent; then
21553 exec 6>/dev/null
21554 ac_configure_extra_args="$ac_configure_extra_args --silent"
21555fi
21556
21557_ACEOF
21558cat >>$CONFIG_STATUS <<_ACEOF
21559if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021560 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21561 CONFIG_SHELL=$SHELL
21562 export CONFIG_SHELL
21563 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021564fi
21565
21566_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021567cat >>$CONFIG_STATUS <<\_ACEOF
21568exec 5>>config.log
21569{
21570 echo
21571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21572## Running $as_me. ##
21573_ASBOX
21574 echo "$ac_log"
21575} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021576
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021577_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021578cat >>$CONFIG_STATUS <<_ACEOF
21579#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021580# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021581#
Reid Spencer421ec052005-02-24 18:53:47 +000021582llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021583
21584_ACEOF
21585
Dan Gohman324f6082009-03-25 00:52:11 +000021586cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021587
21588# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021589for ac_config_target in $ac_config_targets
21590do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021591 case $ac_config_target in
21592 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21593 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021594 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021595 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21596 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21597 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21598 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21599 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21600
John Criswell451f67f2003-10-16 01:45:35 +000021601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603 { (exit 1); exit 1; }; };;
21604 esac
21605done
21606
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021607
John Criswell451f67f2003-10-16 01:45:35 +000021608# If the user did not use the arguments to specify the items to instantiate,
21609# then the envvar interface is used. Set only those that are not.
21610# We use the long form for the default assignment because of an extremely
21611# bizarre bug on SunOS 4.1.3.
21612if $ac_need_defaults; then
21613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21615fi
21616
21617# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021618# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021619# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021620# Hook for its removal unless debugging.
21621# Note that there is a small window in which the directory will not be cleaned:
21622# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021623$debug ||
21624{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021625 tmp=
21626 trap 'exit_status=$?
21627 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21628' 0
John Criswell451f67f2003-10-16 01:45:35 +000021629 trap '{ (exit 1); exit 1; }' 1 2 13 15
21630}
John Criswell451f67f2003-10-16 01:45:35 +000021631# Create a (secure) tmp directory for tmp files.
21632
21633{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021635 test -n "$tmp" && test -d "$tmp"
21636} ||
21637{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021638 tmp=./conf$$-$RANDOM
21639 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021640} ||
21641{
21642 echo "$me: cannot create a temporary directory in ." >&2
21643 { (exit 1); exit 1; }
21644}
21645
John Criswell451f67f2003-10-16 01:45:35 +000021646#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021647# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021648#
21649
21650# No need to generate the scripts if there are no CONFIG_FILES.
21651# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021652if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021653
21654_ACEOF
21655
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021656
21657
21658ac_delim='%!_!# '
21659for ac_last_try in false false false false false :; do
21660 cat >conf$$subs.sed <<_ACEOF
21661SHELL!$SHELL$ac_delim
21662PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21663PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21664PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21665PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21666PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21667PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21668exec_prefix!$exec_prefix$ac_delim
21669prefix!$prefix$ac_delim
21670program_transform_name!$program_transform_name$ac_delim
21671bindir!$bindir$ac_delim
21672sbindir!$sbindir$ac_delim
21673libexecdir!$libexecdir$ac_delim
21674datarootdir!$datarootdir$ac_delim
21675datadir!$datadir$ac_delim
21676sysconfdir!$sysconfdir$ac_delim
21677sharedstatedir!$sharedstatedir$ac_delim
21678localstatedir!$localstatedir$ac_delim
21679includedir!$includedir$ac_delim
21680oldincludedir!$oldincludedir$ac_delim
21681docdir!$docdir$ac_delim
21682infodir!$infodir$ac_delim
21683htmldir!$htmldir$ac_delim
21684dvidir!$dvidir$ac_delim
21685pdfdir!$pdfdir$ac_delim
21686psdir!$psdir$ac_delim
21687libdir!$libdir$ac_delim
21688localedir!$localedir$ac_delim
21689mandir!$mandir$ac_delim
21690DEFS!$DEFS$ac_delim
21691ECHO_C!$ECHO_C$ac_delim
21692ECHO_N!$ECHO_N$ac_delim
21693ECHO_T!$ECHO_T$ac_delim
21694LIBS!$LIBS$ac_delim
21695build_alias!$build_alias$ac_delim
21696host_alias!$host_alias$ac_delim
21697target_alias!$target_alias$ac_delim
21698LLVM_SRC!$LLVM_SRC$ac_delim
21699LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021700LLVM_VERSION!$LLVM_VERSION$ac_delim
21701CC!$CC$ac_delim
21702CFLAGS!$CFLAGS$ac_delim
21703LDFLAGS!$LDFLAGS$ac_delim
21704CPPFLAGS!$CPPFLAGS$ac_delim
21705ac_ct_CC!$ac_ct_CC$ac_delim
21706EXEEXT!$EXEEXT$ac_delim
21707OBJEXT!$OBJEXT$ac_delim
21708CXX!$CXX$ac_delim
21709CXXFLAGS!$CXXFLAGS$ac_delim
21710ac_ct_CXX!$ac_ct_CXX$ac_delim
21711CPP!$CPP$ac_delim
21712ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21713LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21714subdirs!$subdirs$ac_delim
21715build!$build$ac_delim
21716build_cpu!$build_cpu$ac_delim
21717build_vendor!$build_vendor$ac_delim
21718build_os!$build_os$ac_delim
21719host!$host$ac_delim
21720host_cpu!$host_cpu$ac_delim
21721host_vendor!$host_vendor$ac_delim
21722host_os!$host_os$ac_delim
21723target!$target$ac_delim
21724target_cpu!$target_cpu$ac_delim
21725target_vendor!$target_vendor$ac_delim
21726target_os!$target_os$ac_delim
21727OS!$OS$ac_delim
21728HOST_OS!$HOST_OS$ac_delim
21729TARGET_OS!$TARGET_OS$ac_delim
21730LINKALL!$LINKALL$ac_delim
21731NOLINKALL!$NOLINKALL$ac_delim
21732LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21733LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21734ARCH!$ARCH$ac_delim
21735ENDIAN!$ENDIAN$ac_delim
21736GREP!$GREP$ac_delim
21737EGREP!$EGREP$ac_delim
21738LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21739BUILD_CC!$BUILD_CC$ac_delim
21740BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21741BUILD_CXX!$BUILD_CXX$ac_delim
21742CVSBUILD!$CVSBUILD$ac_delim
21743ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21744ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21745DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21746ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21747EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21748DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21749DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21750JIT!$JIT$ac_delim
21751TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21752ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21753ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21754ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21755ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21756ENABLE_PIC!$ENABLE_PIC$ac_delim
21757ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021758_ACEOF
21759
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021760 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021761 break
21762 elif $ac_last_try; then
21763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21764echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21765 { (exit 1); exit 1; }; }
21766 else
21767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021768 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021769done
21770
21771ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21772if test -n "$ac_eof"; then
21773 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21774 ac_eof=`expr $ac_eof + 1`
21775fi
21776
21777cat >>$CONFIG_STATUS <<_ACEOF
21778cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21780_ACEOF
21781sed '
21782s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21783s/^/s,@/; s/!/@,|#_!!_#|/
21784:n
21785t n
21786s/'"$ac_delim"'$/,g/; t
21787s/$/\\/; p
21788N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21789' >>$CONFIG_STATUS <conf$$subs.sed
21790rm -f conf$$subs.sed
21791cat >>$CONFIG_STATUS <<_ACEOF
21792CEOF$ac_eof
21793_ACEOF
21794
21795
21796ac_delim='%!_!# '
21797for ac_last_try in false false false false false :; do
21798 cat >conf$$subs.sed <<_ACEOF
21799ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21800ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21801TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21802LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21803LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21804LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21805LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21806ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21807OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21808EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21809EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21810BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21811NM!$NM$ac_delim
21812ifGNUmake!$ifGNUmake$ac_delim
21813LN_S!$LN_S$ac_delim
21814CMP!$CMP$ac_delim
21815CP!$CP$ac_delim
21816DATE!$DATE$ac_delim
21817FIND!$FIND$ac_delim
21818MKDIR!$MKDIR$ac_delim
21819MV!$MV$ac_delim
21820RANLIB!$RANLIB$ac_delim
21821AR!$AR$ac_delim
21822RM!$RM$ac_delim
21823SED!$SED$ac_delim
21824TAR!$TAR$ac_delim
21825BINPWD!$BINPWD$ac_delim
21826GRAPHVIZ!$GRAPHVIZ$ac_delim
21827DOT!$DOT$ac_delim
21828FDP!$FDP$ac_delim
21829NEATO!$NEATO$ac_delim
21830TWOPI!$TWOPI$ac_delim
21831CIRCO!$CIRCO$ac_delim
21832GV!$GV$ac_delim
21833DOTTY!$DOTTY$ac_delim
21834XDOT_PY!$XDOT_PY$ac_delim
21835PERL!$PERL$ac_delim
21836HAVE_PERL!$HAVE_PERL$ac_delim
21837INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21838INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21839INSTALL_DATA!$INSTALL_DATA$ac_delim
21840BZIP2!$BZIP2$ac_delim
21841CAT!$CAT$ac_delim
21842DOXYGEN!$DOXYGEN$ac_delim
21843GROFF!$GROFF$ac_delim
21844GZIPBIN!$GZIPBIN$ac_delim
21845POD2HTML!$POD2HTML$ac_delim
21846POD2MAN!$POD2MAN$ac_delim
21847PDFROFF!$PDFROFF$ac_delim
21848RUNTEST!$RUNTEST$ac_delim
21849TCLSH!$TCLSH$ac_delim
21850ZIP!$ZIP$ac_delim
21851OCAMLC!$OCAMLC$ac_delim
21852OCAMLOPT!$OCAMLOPT$ac_delim
21853OCAMLDEP!$OCAMLDEP$ac_delim
21854OCAMLDOC!$OCAMLDOC$ac_delim
21855GAS!$GAS$ac_delim
21856HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21857INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21858INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21859CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21860CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21861LIBADD_DL!$LIBADD_DL$ac_delim
21862NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21863NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21864USE_UDIS86!$USE_UDIS86$ac_delim
21865USE_OPROFILE!$USE_OPROFILE$ac_delim
21866HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21867HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21868MMAP_FILE!$MMAP_FILE$ac_delim
21869SHLIBEXT!$SHLIBEXT$ac_delim
21870SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21871LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21872LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21873LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21874LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21875LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21876LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21877LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21878LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21879LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21880LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21881BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21882ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21883OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21884ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21885RPATH!$RPATH$ac_delim
21886RDYNAMIC!$RDYNAMIC$ac_delim
21887LIBOBJS!$LIBOBJS$ac_delim
21888LTLIBOBJS!$LTLIBOBJS$ac_delim
21889_ACEOF
21890
21891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21892 break
21893 elif $ac_last_try; then
21894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21895echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21896 { (exit 1); exit 1; }; }
21897 else
21898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21899 fi
21900done
21901
21902ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21903if test -n "$ac_eof"; then
21904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21905 ac_eof=`expr $ac_eof + 1`
21906fi
21907
21908cat >>$CONFIG_STATUS <<_ACEOF
21909cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21911_ACEOF
21912sed '
21913s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21914s/^/s,@/; s/!/@,|#_!!_#|/
21915:n
21916t n
21917s/'"$ac_delim"'$/,g/; t
21918s/$/\\/; p
21919N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21920' >>$CONFIG_STATUS <conf$$subs.sed
21921rm -f conf$$subs.sed
21922cat >>$CONFIG_STATUS <<_ACEOF
21923:end
21924s/|#_!!_#|//g
21925CEOF$ac_eof
21926_ACEOF
21927
21928
21929# VPATH may cause trouble with some makes, so we remove $(srcdir),
21930# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21931# trailing colons and then remove the whole line if VPATH becomes empty
21932# (actually we leave an empty line to preserve line numbers).
21933if test "x$srcdir" = x.; then
21934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21935s/:*\$(srcdir):*/:/
21936s/:*\${srcdir}:*/:/
21937s/:*@srcdir@:*/:/
21938s/^\([^=]*=[ ]*\):*/\1/
21939s/:*$//
21940s/^[^=]*=[ ]*$//
21941}'
21942fi
21943
21944cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021945fi # test -n "$CONFIG_FILES"
21946
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021947
21948for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21949do
21950 case $ac_tag in
21951 :[FHLC]) ac_mode=$ac_tag; continue;;
21952 esac
21953 case $ac_mode$ac_tag in
21954 :[FHL]*:*);;
21955 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21956echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21957 { (exit 1); exit 1; }; };;
21958 :[FH]-) ac_tag=-:-;;
21959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21960 esac
21961 ac_save_IFS=$IFS
21962 IFS=:
21963 set x $ac_tag
21964 IFS=$ac_save_IFS
21965 shift
21966 ac_file=$1
21967 shift
21968
21969 case $ac_mode in
21970 :L) ac_source=$1;;
21971 :[FH])
21972 ac_file_inputs=
21973 for ac_f
21974 do
21975 case $ac_f in
21976 -) ac_f="$tmp/stdin";;
21977 *) # Look for the file first in the build tree, then in the source tree
21978 # (if the path is not absolute). The absolute path cannot be DOS-style,
21979 # because $ac_f cannot contain `:'.
21980 test -f "$ac_f" ||
21981 case $ac_f in
21982 [\\/$]*) false;;
21983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21984 esac ||
21985 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21986echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21987 { (exit 1); exit 1; }; };;
21988 esac
21989 ac_file_inputs="$ac_file_inputs $ac_f"
21990 done
21991
21992 # Let's still pretend it is `configure' which instantiates (i.e., don't
21993 # use $as_me), people would be surprised to read:
21994 # /* config.h. Generated by config.status. */
21995 configure_input="Generated from "`IFS=:
21996 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21997 if test x"$ac_file" != x-; then
21998 configure_input="$ac_file. $configure_input"
21999 { echo "$as_me:$LINENO: creating $ac_file" >&5
22000echo "$as_me: creating $ac_file" >&6;}
22001 fi
22002
22003 case $ac_tag in
22004 *:-:* | *:-) cat >"$tmp/stdin";;
22005 esac
22006 ;;
John Criswell451f67f2003-10-16 01:45:35 +000022007 esac
22008
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022009 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000022010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022011 X"$ac_file" : 'X\(//\)[^/]' \| \
22012 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022014echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22016 s//\1/
22017 q
22018 }
22019 /^X\(\/\/\)[^/].*/{
22020 s//\1/
22021 q
22022 }
22023 /^X\(\/\/\)$/{
22024 s//\1/
22025 q
22026 }
22027 /^X\(\/\).*/{
22028 s//\1/
22029 q
22030 }
22031 s/.*/./; q'`
22032 { as_dir="$ac_dir"
22033 case $as_dir in #(
22034 -*) as_dir=./$as_dir;;
22035 esac
22036 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000022037 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022038 while :; do
22039 case $as_dir in #(
22040 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22041 *) as_qdir=$as_dir;;
22042 esac
22043 as_dirs="'$as_qdir' $as_dirs"
22044 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022046 X"$as_dir" : 'X\(//\)[^/]' \| \
22047 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022049echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22051 s//\1/
22052 q
22053 }
22054 /^X\(\/\/\)[^/].*/{
22055 s//\1/
22056 q
22057 }
22058 /^X\(\/\/\)$/{
22059 s//\1/
22060 q
22061 }
22062 /^X\(\/\).*/{
22063 s//\1/
22064 q
22065 }
22066 s/.*/./; q'`
22067 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022068 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022069 test -z "$as_dirs" || eval "mkdir $as_dirs"
22070 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22071echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022072 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022073 ac_builddir=.
22074
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022075case "$ac_dir" in
22076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22077*)
John Criswell451f67f2003-10-16 01:45:35 +000022078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022079 # A ".." for each directory in $ac_dir_suffix.
22080 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22081 case $ac_top_builddir_sub in
22082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22084 esac ;;
22085esac
22086ac_abs_top_builddir=$ac_pwd
22087ac_abs_builddir=$ac_pwd$ac_dir_suffix
22088# for backward compatibility:
22089ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022090
22091case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022092 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022093 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022094 ac_top_srcdir=$ac_top_builddir_sub
22095 ac_abs_top_srcdir=$ac_pwd ;;
22096 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022097 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022098 ac_top_srcdir=$srcdir
22099 ac_abs_top_srcdir=$srcdir ;;
22100 *) # Relative name.
22101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22102 ac_top_srcdir=$ac_top_build_prefix$srcdir
22103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022104esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022106
Dan Gohman324f6082009-03-25 00:52:11 +000022107
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022108 case $ac_mode in
22109 :F)
22110 #
22111 # CONFIG_FILE
22112 #
Dan Gohman324f6082009-03-25 00:52:11 +000022113
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022114 case $INSTALL in
22115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22117 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022118_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022119
22120cat >>$CONFIG_STATUS <<\_ACEOF
22121# If the template does not know about datarootdir, expand it.
22122# FIXME: This hack should be removed a few years after 2.60.
22123ac_datarootdir_hack=; ac_datarootdir_seen=
22124
22125case `sed -n '/datarootdir/ {
22126 p
22127 q
22128}
22129/@datadir@/p
22130/@docdir@/p
22131/@infodir@/p
22132/@localedir@/p
22133/@mandir@/p
22134' $ac_file_inputs` in
22135*datarootdir*) ac_datarootdir_seen=yes;;
22136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22137 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22138echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22139_ACEOF
22140cat >>$CONFIG_STATUS <<_ACEOF
22141 ac_datarootdir_hack='
22142 s&@datadir@&$datadir&g
22143 s&@docdir@&$docdir&g
22144 s&@infodir@&$infodir&g
22145 s&@localedir@&$localedir&g
22146 s&@mandir@&$mandir&g
22147 s&\\\${datarootdir}&$datarootdir&g' ;;
22148esac
22149_ACEOF
22150
22151# Neutralize VPATH when `$srcdir' = `.'.
22152# Shell code in configure.ac might set extrasub.
22153# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022154cat >>$CONFIG_STATUS <<_ACEOF
22155 sed "$ac_vpsub
22156$extrasub
22157_ACEOF
22158cat >>$CONFIG_STATUS <<\_ACEOF
22159:t
22160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022161s&@configure_input@&$configure_input&;t t
22162s&@top_builddir@&$ac_top_builddir_sub&;t t
22163s&@srcdir@&$ac_srcdir&;t t
22164s&@abs_srcdir@&$ac_abs_srcdir&;t t
22165s&@top_srcdir@&$ac_top_srcdir&;t t
22166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22167s&@builddir@&$ac_builddir&;t t
22168s&@abs_builddir@&$ac_abs_builddir&;t t
22169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022170s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022171$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022172" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022173
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22177 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22178which seems to be undefined. Please make sure it is defined." >&5
22179echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22180which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022181
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022182 rm -f "$tmp/stdin"
22183 case $ac_file in
22184 -) cat "$tmp/out"; rm -f "$tmp/out";;
22185 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022186 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022187 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022188
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022189
22190 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22191echo "$as_me: executing $ac_file commands" >&6;}
22192 ;;
22193 esac
22194
22195
22196 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022197 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22198 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22199 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22200 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22201 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22202 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22203 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22204 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22205 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22206 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022207
22208 esac
22209done # for ac_tag
22210
John Criswell451f67f2003-10-16 01:45:35 +000022211
22212{ (exit 0); exit 0; }
22213_ACEOF
22214chmod +x $CONFIG_STATUS
22215ac_clean_files=$ac_clean_files_save
22216
22217
22218# configure is writing to config.log, and then calls config.status.
22219# config.status does its own redirection, appending to config.log.
22220# Unfortunately, on DOS this fails, as config.log is still kept open
22221# by configure, so config.status won't be able to write to it; its
22222# output is simply discarded. So we exec the FD to /dev/null,
22223# effectively closing config.log, so it can be properly (re)opened and
22224# appended to by config.status. When coming back to configure, we
22225# need to make the FD available again.
22226if test "$no_create" != yes; then
22227 ac_cs_success=:
22228 ac_config_status_args=
22229 test "$silent" = yes &&
22230 ac_config_status_args="$ac_config_status_args --quiet"
22231 exec 5>/dev/null
22232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22233 exec 5>>config.log
22234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22235 # would make configure fail if this is the last instruction.
22236 $ac_cs_success || { (exit 1); exit 1; }
22237fi
22238
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022239#
22240# CONFIG_SUBDIRS section.
22241#
22242if test "$no_recursion" != yes; then
22243
22244 # Remove --cache-file and --srcdir arguments so they do not pile up.
22245 ac_sub_configure_args=
22246 ac_prev=
22247 eval "set x $ac_configure_args"
22248 shift
22249 for ac_arg
22250 do
22251 if test -n "$ac_prev"; then
22252 ac_prev=
22253 continue
22254 fi
22255 case $ac_arg in
22256 -cache-file | --cache-file | --cache-fil | --cache-fi \
22257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22258 ac_prev=cache_file ;;
22259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22261 | --c=*)
22262 ;;
22263 --config-cache | -C)
22264 ;;
22265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22266 ac_prev=srcdir ;;
22267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22268 ;;
22269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22270 ac_prev=prefix ;;
22271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22272 ;;
22273 *)
22274 case $ac_arg in
22275 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22276 esac
22277 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22278 esac
22279 done
22280
22281 # Always prepend --prefix to ensure using the same prefix
22282 # in subdir configurations.
22283 ac_arg="--prefix=$prefix"
22284 case $ac_arg in
22285 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22286 esac
22287 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22288
22289 ac_popdir=`pwd`
22290 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22291
22292 # Do not complain, so a configure script can configure whichever
22293 # parts of a large source tree are present.
22294 test -d "$srcdir/$ac_dir" || continue
22295
22296 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22297 echo "$as_me:$LINENO: $ac_msg" >&5
22298 echo "$ac_msg" >&6
22299 { as_dir="$ac_dir"
22300 case $as_dir in #(
22301 -*) as_dir=./$as_dir;;
22302 esac
22303 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22304 as_dirs=
22305 while :; do
22306 case $as_dir in #(
22307 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22308 *) as_qdir=$as_dir;;
22309 esac
22310 as_dirs="'$as_qdir' $as_dirs"
22311 as_dir=`$as_dirname -- "$as_dir" ||
22312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22313 X"$as_dir" : 'X\(//\)[^/]' \| \
22314 X"$as_dir" : 'X\(//\)$' \| \
22315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22316echo X"$as_dir" |
22317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22318 s//\1/
22319 q
22320 }
22321 /^X\(\/\/\)[^/].*/{
22322 s//\1/
22323 q
22324 }
22325 /^X\(\/\/\)$/{
22326 s//\1/
22327 q
22328 }
22329 /^X\(\/\).*/{
22330 s//\1/
22331 q
22332 }
22333 s/.*/./; q'`
22334 test -d "$as_dir" && break
22335 done
22336 test -z "$as_dirs" || eval "mkdir $as_dirs"
22337 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22338echo "$as_me: error: cannot create directory $as_dir" >&2;}
22339 { (exit 1); exit 1; }; }; }
22340 ac_builddir=.
22341
22342case "$ac_dir" in
22343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22344*)
22345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22346 # A ".." for each directory in $ac_dir_suffix.
22347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22348 case $ac_top_builddir_sub in
22349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22351 esac ;;
22352esac
22353ac_abs_top_builddir=$ac_pwd
22354ac_abs_builddir=$ac_pwd$ac_dir_suffix
22355# for backward compatibility:
22356ac_top_builddir=$ac_top_build_prefix
22357
22358case $srcdir in
22359 .) # We are building in place.
22360 ac_srcdir=.
22361 ac_top_srcdir=$ac_top_builddir_sub
22362 ac_abs_top_srcdir=$ac_pwd ;;
22363 [\\/]* | ?:[\\/]* ) # Absolute name.
22364 ac_srcdir=$srcdir$ac_dir_suffix;
22365 ac_top_srcdir=$srcdir
22366 ac_abs_top_srcdir=$srcdir ;;
22367 *) # Relative name.
22368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22369 ac_top_srcdir=$ac_top_build_prefix$srcdir
22370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22371esac
22372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22373
22374
22375 cd "$ac_dir"
22376
22377 # Check for guested configure; otherwise get Cygnus style configure.
22378 if test -f "$ac_srcdir/configure.gnu"; then
22379 ac_sub_configure=$ac_srcdir/configure.gnu
22380 elif test -f "$ac_srcdir/configure"; then
22381 ac_sub_configure=$ac_srcdir/configure
22382 elif test -f "$ac_srcdir/configure.in"; then
22383 # This should be Cygnus configure.
22384 ac_sub_configure=$ac_aux_dir/configure
22385 else
22386 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22387echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22388 ac_sub_configure=
22389 fi
22390
22391 # The recursion is here.
22392 if test -n "$ac_sub_configure"; then
22393 # Make the cache file name correct relative to the subdirectory.
22394 case $cache_file in
22395 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22396 *) # Relative name.
22397 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22398 esac
22399
22400 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22401echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22402 # The eval makes quoting arguments work.
22403 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22404 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22405 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22406echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22407 { (exit 1); exit 1; }; }
22408 fi
22409
22410 cd "$ac_popdir"
22411 done
22412fi
22413