blob: a8fc4bff7e2783fa2b3d737365760a21da049ddb [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Craig Topper8ee39632012-11-12 06:11:12 +0000686ENABLE_CXX11
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
Craig Topper8ee39632012-11-12 06:11:12 +0000690ENABLE_WERROR
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000691ENABLE_EXPENSIVE_CHECKS
692EXPENSIVE_CHECKS
693DEBUG_RUNTIME
694DEBUG_SYMBOLS
695JIT
696TARGET_HAS_JIT
697ENABLE_DOCS
698ENABLE_DOXYGEN
699ENABLE_THREADS
700ENABLE_PTHREADS
701ENABLE_PIC
702ENABLE_SHARED
703ENABLE_EMBED_STDCXX
704ENABLE_TIMESTAMPS
705TARGETS_TO_BUILD
706LLVM_ENUM_TARGETS
707LLVM_ENUM_ASM_PRINTERS
708LLVM_ENUM_ASM_PARSERS
709LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000710OPTIMIZE_OPTION
711EXTRA_OPTIONS
712EXTRA_LD_OPTIONS
713BINUTILS_INCDIR
714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
737XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000738INSTALL_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
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771SHLIBEXT
772SHLIBPATH_VAR
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000789LIBOBJS
790LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000791ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000792 ac_precious_vars='build_alias
793host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802CPP'
803ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000830# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000839includedir='${prefix}/include'
840oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000850
851ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000852ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000857 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000858 ac_prev=
859 continue
860 fi
861
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000862 case $ac_option in
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *) ac_optarg=yes ;;
865 esac
John Criswell451f67f2003-10-16 01:45:35 +0000866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000894 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000896 datadir=$ac_optarg ;;
897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
John Criswell451f67f2003-10-16 01:45:35 +0000905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000912 eval enable_$ac_feature=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000923
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000931 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
John Criswell451f67f2003-10-16 01:45:35 +0000964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
John Criswell451f67f2003-10-16 01:45:35 +0000993 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000994 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
John Criswell451f67f2003-10-16 01:45:35 +00001072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001127 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001128 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001129
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001136 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001137 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001168 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180done
1181
1182if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1186fi
1187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001188# Be sure to have absolute directory names.
1189for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001193do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001195 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001198 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1218 fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1235
1236
John Criswell451f67f2003-10-16 01:45:35 +00001237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001242$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001246echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001265 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001266 srcdir=..
1267 fi
1268else
1269 ac_srcdir_defaulted=no
1270fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001271if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001274 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001275fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001279 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001280 pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
John Criswell451f67f2003-10-16 01:45:35 +00001297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
John Criswell451f67f2003-10-16 01:45:35 +00001325Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001329 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001358_ACEOF
1359
1360 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372 esac
1373 cat <<\_ACEOF
1374
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001375Optional Features:
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001379 --enable-libcpp Use libc++ if available (default is NO)
Craig Topper8ee39632012-11-12 06:11:12 +00001380 --enable-cxx11 Use c++11 if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1384 YES)
Craig Topper8ee39632012-11-12 06:11:12 +00001385 --enable-werror Compile with -Werror enabled (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1388 is NO)
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 NO)
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-pic Build LLVM with Position Independent Code (default
1399 is YES)
1400 --enable-shared Build a shared library and link tools against it
1401 (default is NO)
1402 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1403 Win32 DLL (default is YES)
1404 --enable-timestamps Enable embedding timestamp information in build
1405 (default is YES)
1406 --enable-targets Build specific host targets: all or
1407 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001408 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001409 xcore, msp430, nvptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1414
John Criswell451f67f2003-10-16 01:45:35 +00001415Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001420 --with-optimize-option Select the compiler options to use for optimized
1421 builds
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 is stdlib)
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1428 resource files
1429 --with-c-include-dirs Colon separated list of directories clang will
1430 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001431 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001454
1455Report bugs to <bugs@yourdomain>.
1456_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001457ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001463 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001464 ac_builddir=.
1465
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
John Criswell451f67f2003-10-16 01:45:35 +00001469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001481
1482case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001483 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001495esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001497
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001506 else
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001510 done
1511fi
1512
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001514if $ac_init_version; then
1515 cat <<\_ACEOF
1516[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001518
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15202002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001524 exit
John Criswell451f67f2003-10-16 01:45:35 +00001525fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001526cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001527This file contains any messages produced by compilers while
1528running configure, to aid debugging if configure makes a mistake.
1529
1530It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001531generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001532
1533 $ $0 $@
1534
1535_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001536exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001537{
1538cat <<_ASUNAME
1539## --------- ##
1540## Platform. ##
1541## --------- ##
1542
1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551
1552/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001555/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001556/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559
1560_ASUNAME
1561
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1568done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001569IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001570
1571} >&5
1572
1573cat >&5 <<_ACEOF
1574
1575
1576## ----------- ##
1577## Core tests. ##
1578## ----------- ##
1579
1580_ACEOF
1581
1582
1583# Keep a trace of the command line.
1584# Strip out --no-create and --no-recursion so they do not pile up.
1585# Strip out --silent because we don't want to record it for future runs.
1586# Also quote any args containing shell meta-characters.
1587# Make two passes to allow for proper duplicate-argument suppression.
1588ac_configure_args=
1589ac_configure_args0=
1590ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001591ac_must_keep_next=false
1592for ac_pass in 1 2
1593do
1594 for ac_arg
1595 do
1596 case $ac_arg in
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1600 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001601 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 esac
1604 case $ac_pass in
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 2)
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001609 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001610 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001611 case $ac_arg in
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 esac
1619 ;;
1620 -* ) ac_must_keep_next=true ;;
1621 esac
John Criswell451f67f2003-10-16 01:45:35 +00001622 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001623 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001624 ;;
1625 esac
1626 done
1627done
1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631# When interrupted or exit'd, cleanup temporary files, and complete
1632# config.log. We remove comments because anyway the quotes in there
1633# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001634# WARNING: Use '\'' to represent an apostrophe within the trap.
1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001636trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1638 {
1639 echo
1640
1641 cat <<\_ASBOX
1642## ---------------- ##
1643## Cache variables. ##
1644## ---------------- ##
1645_ASBOX
1646 echo
1647 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001648(
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in #(
1652 *${as_nl}*)
1653 case $ac_var in #(
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 esac
1657 case $ac_var in #(
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1660 esac ;;
1661 esac
1662 done
John Criswell451f67f2003-10-16 01:45:35 +00001663 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001666 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001670 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001672 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001673 esac |
1674 sort
1675)
John Criswell451f67f2003-10-16 01:45:35 +00001676 echo
1677
1678 cat <<\_ASBOX
1679## ----------------- ##
1680## Output variables. ##
1681## ----------------- ##
1682_ASBOX
1683 echo
1684 for ac_var in $ac_subst_vars
1685 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001686 eval ac_val=\$$ac_var
1687 case $ac_val in
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 esac
1690 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001691 done | sort
1692 echo
1693
1694 if test -n "$ac_subst_files"; then
1695 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001696## ------------------- ##
1697## File substitutions. ##
1698## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_files
1702 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 esac
1707 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001708 done | sort
1709 echo
1710 fi
1711
1712 if test -s confdefs.h; then
1713 cat <<\_ASBOX
1714## ----------- ##
1715## confdefs.h. ##
1716## ----------- ##
1717_ASBOX
1718 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001719 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001720 echo
1721 fi
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1725 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001728 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001729' 0
John Criswell451f67f2003-10-16 01:45:35 +00001730for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732done
1733ac_signal=0
1734
1735# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001736rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001737
1738# Predefined preprocessor variables.
1739
1740cat >>confdefs.h <<_ACEOF
1741#define PACKAGE_NAME "$PACKAGE_NAME"
1742_ACEOF
1743
1744
1745cat >>confdefs.h <<_ACEOF
1746#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747_ACEOF
1748
1749
1750cat >>confdefs.h <<_ACEOF
1751#define PACKAGE_VERSION "$PACKAGE_VERSION"
1752_ACEOF
1753
1754
1755cat >>confdefs.h <<_ACEOF
1756#define PACKAGE_STRING "$PACKAGE_STRING"
1757_ACEOF
1758
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762_ACEOF
1763
1764
1765# Let the site file select an alternate cache file if it wants to.
1766# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001767if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771else
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001774fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001775shift
1776for ac_site_file
1777do
John Criswell451f67f2003-10-16 01:45:35 +00001778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1782 . "$ac_site_file"
1783 fi
1784done
1785
1786if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791echo "$as_me: loading cache $cache_file" >&6;}
1792 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001795 esac
1796 fi
1797else
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799echo "$as_me: creating cache $cache_file" >&6;}
1800 >$cache_file
1801fi
1802
1803# Check that the precious variables saved in the cache have kept the same
1804# value.
1805ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001806for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001811 case $ac_old_set,$ac_new_set in
1812 set,)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,set)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,);;
1821 *)
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001826echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001830 fi;;
1831 esac
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1834 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001836 *) ac_arg=$ac_var=$ac_new_val ;;
1837 esac
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 esac
1842 fi
1843done
1844if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1850fi
1851
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
John Criswell451f67f2003-10-16 01:45:35 +00001876ac_ext=c
1877ac_cpp='$CPP $CPPFLAGS'
1878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001884LLVM_SRC_ROOT="../.."
1885LLVM_OBJ_ROOT="../.."
1886
1887LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001889
1890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001891# Check whether --with-llvmsrc was given.
1892if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1894else
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1896fi
1897
1898 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001899
1900
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001901# Check whether --with-llvmobj was given.
1902if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1904else
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906fi
Dan Gohman324f6082009-03-25 00:52:11 +00001907
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001908 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001909
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001910 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001911
1912
1913
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001914{ echo "$as_me:$LINENO: checking llvm-config" >&5
1915echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1919fi
1920{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1924echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1927else
1928 llvm_package_version="unknown";
1929fi
1930{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931echo "${ECHO_T}$llvm_package_version" >&6; }
1932LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
John Criswell451f67f2003-10-16 01:45:35 +00001937ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001938for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 elif test -f "$ac_dir/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/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1951 fi
1952done
1953if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001956 { (exit 1); exit 1; }; }
1957fi
John Criswell451f67f2003-10-16 01:45:35 +00001958
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001959# These three variables are undocumented and unsupported,
1960# and are intended to be withdrawn in a future Autoconf release.
1961# They can cause serious problems if a builder's source tree is in a directory
1962# whose full name contains unusual characters.
1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001966
1967
1968
1969
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1977 do
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999done
2000done
2001IFS=$as_save_IFS
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015 test -n "$CC" && break
2016 done
2017fi
2018if test -z "$CC"; then
2019 ac_ct_CC=$CC
2020 for ac_prog in clang llvm-gcc gcc
2021do
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023set dummy $ac_prog; ac_word=$2
2024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045IFS=$as_save_IFS
2046
2047fi
2048fi
2049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6; }
2053else
2054 { echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6; }
2056fi
2057
2058
2059 test -n "$ac_ct_CC" && break
2060done
2061
2062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066yes:)
2067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068whose name does not start with the host triplet. If you think this
2069configuration is useful to you, please write to autoconf@gnu.org." >&5
2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073ac_tool_warned=yes ;;
2074esac
2075 CC=$ac_ct_CC
2076 fi
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO: checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (ac_try="$ac_compiler --version >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -v >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109{ (ac_try="$ac_compiler -V >&5"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
2136ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
2140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143#
2144# List of possible output files, starting from the most likely.
2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146# only as a last resort. b.out is created by i960 compilers.
2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148#
2149# The IRIX 6 linker writes into existing files which may not be
2150# executable, retaining their permissions. Remove them first so a
2151# subsequent execution test works.
2152ac_rmfiles=
2153for ac_file in $ac_files
2154do
2155 case $ac_file in
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 esac
2159done
2160rm -f $ac_rmfiles
2161
2162if { (ac_try="$ac_link_default"
2163case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166esac
2167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174# in a Makefile. We should not override ac_cv_exeext if it was cached,
2175# so that the user can short-circuit this test for compilers unknown to
2176# Autoconf.
2177for ac_file in $ac_files
2178do
2179 test -f "$ac_file" || continue
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182 ;;
2183 [ab].out )
2184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
2187 *.* )
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 then :; else
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 fi
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2196 # actually working.
2197 break;;
2198 * )
2199 break;;
2200 esac
2201done
2202test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: C compiler cannot create executables
2211See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216{ echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6; }
2218
2219# Check that the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 cross_compiling=no
2237 else
2238 if test "$cross_compiling" = maybe; then
2239 cross_compiling=yes
2240 else
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check that the compiler produces executables we can run. If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 break;;
2285 * ) break;;
2286 esac
2287done
2288else
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
2314
2315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (ac_try="$ac_compile"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2336 case $ac_file in
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 break;;
2340 esac
2341done
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
2357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370
2371int
2372main ()
2373{
2374#ifndef __GNUC__
2375 choke me
2376#endif
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_compiler_gnu=yes
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_compiler_gnu=no
2422fi
2423
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2440 ac_cv_prog_cc_g=no
2441 CFLAGS="-g"
2442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h. */
2448
2449int
2450main ()
2451{
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (ac_try="$ac_compile"
2459case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_g=yes
2492else
2493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 CFLAGS=""
2497 cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
2503
2504int
2505main ()
2506{
2507
2508 ;
2509 return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 :
2547else
2548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2552 CFLAGS="-g"
2553 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
2559
2560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cc_g=yes
2603else
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608fi
2609
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2618fi
2619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
2626 else
2627 CFLAGS="-g"
2628 fi
2629else
2630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
2632 else
2633 CFLAGS=
2634 fi
2635fi
2636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 ac_cv_prog_cc_c89=no
2642ac_save_CC=$CC
2643cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649#include <stdarg.h>
2650#include <stdio.h>
2651#include <sys/types.h>
2652#include <sys/stat.h>
2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654struct buf { int x; };
2655FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656static char *e (p, i)
2657 char **p;
2658 int i;
2659{
2660 return p[i];
2661}
2662static char *f (char * (*g) (char **, int), char **p, ...)
2663{
2664 char *s;
2665 va_list v;
2666 va_start (v,p);
2667 s = g (p, va_arg (v,int));
2668 va_end (v);
2669 return s;
2670}
2671
2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2683#define FOO(x) 'x'
2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702do
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744fi
2745
2746rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748done
2749rm -f conftest.$ac_ext
2750CC=$ac_save_CC
2751
2752fi
2753# AC_CACHE_VAL
2754case "x$ac_cv_prog_cc_c89" in
2755 x)
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6; } ;;
2758 xno)
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760echo "${ECHO_T}unsupported" >&6; } ;;
2761 *)
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765esac
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774ac_ext=cpp
2775ac_cpp='$CXXCPP $CPPFLAGS'
2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2781 CXX=$CCC
2782 else
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2785 do
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CXX=$ac_cv_prog_CXX
2814if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816echo "${ECHO_T}$CXX" >&6; }
2817else
2818 { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823 test -n "$CXX" && break
2824 done
2825fi
2826if test -z "$CXX"; then
2827 ac_ct_CXX=$CXX
2828 for ac_prog in clang++ llvm-g++ g++
2829do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867 test -n "$ac_ct_CXX" && break
2868done
2869
2870 if test "x$ac_ct_CXX" = x; then
2871 CXX="g++"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet. If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883 CXX=$ac_ct_CXX
2884 fi
2885fi
2886
2887 fi
2888fi
2889# Provide some information about the compiler.
2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (ac_try="$ac_compiler --version >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -v >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912{ (ac_try="$ac_compiler -V >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939 choke me
2940#endif
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_compiler_gnu=yes
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_compiler_gnu=no
2986fi
2987
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994GXX=`test $ac_compiler_gnu = yes && echo yes`
2995ac_test_CXXFLAGS=${CXXFLAGS+set}
2996ac_save_CXXFLAGS=$CXXFLAGS
2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3004 ac_cv_prog_cxx_g=no
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 CXXFLAGS=""
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 CXXFLAGS="-g"
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3167else
3168 echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182fi
3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-g -O2"
3190 else
3191 CXXFLAGS="-g"
3192 fi
3193else
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-O2"
3196 else
3197 CXXFLAGS=
3198 fi
3199fi
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216fi
3217if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
3246if { (ac_try="$ac_cpp conftest.$ac_ext"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314continue
3315else
3316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330 break
3331fi
3332
3333 done
3334 ac_cv_prog_CPP=$CPP
3335
3336fi
3337 CPP=$ac_cv_prog_CPP
3338else
3339 ac_cv_prog_CPP=$CPP
3340fi
3341{ echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6; }
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363 Syntax error
3364_ACEOF
3365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 # Broken: fails on valid input.
3394continue
3395fi
3396
3397rm -f conftest.err conftest.$ac_ext
3398
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 else
3426 ac_cpp_err=
3427 fi
3428else
3429 ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3433continue
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
3448if $ac_preproc_ok; then
3449 :
3450else
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467# Check whether --enable-polly was given.
3468if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3470else
3471 enableval=default
3472fi
3473
3474case "$enableval" in
3475 yes) ENABLE_POLLY=1
3476 ;;
3477 no) ENABLE_POLLY=0
3478 ;;
3479 default) ENABLE_POLLY=1
3480 ;;
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3484esac
3485
3486
3487if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488 LLVM_HAS_POLLY=1
3489
3490 subdirs="$subdirs tools/polly"
3491
3492fi
3493
3494
3495# Make sure we can run config.sub.
3496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3500
3501{ echo "$as_me:$LINENO: checking build system type" >&5
3502echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 ac_build_alias=$build_alias
3507test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518fi
3519{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520echo "${ECHO_T}$ac_cv_build" >&6; }
3521case $ac_cv_build in
3522*-*-*) ;;
3523*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3526esac
3527build=$ac_cv_build
3528ac_save_IFS=$IFS; IFS='-'
3529set x $ac_cv_build
3530shift
3531build_cpu=$1
3532build_vendor=$2
3533shift; shift
3534# Remember, the first character of IFS is used to create $*,
3535# except with old shells:
3536build_os=$*
3537IFS=$ac_save_IFS
3538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541{ echo "$as_me:$LINENO: checking host system type" >&5
3542echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3548else
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3553fi
3554
3555fi
3556{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557echo "${ECHO_T}$ac_cv_host" >&6; }
3558case $ac_cv_host in
3559*-*-*) ;;
3560*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3563esac
3564host=$ac_cv_host
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_host
3567shift
3568host_cpu=$1
3569host_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573host_os=$*
3574IFS=$ac_save_IFS
3575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578{ echo "$as_me:$LINENO: checking target system type" >&5
3579echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3585else
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3590fi
3591
3592fi
3593{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594echo "${ECHO_T}$ac_cv_target" >&6; }
3595case $ac_cv_target in
3596*-*-*) ;;
3597*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3600esac
3601target=$ac_cv_target
3602ac_save_IFS=$IFS; IFS='-'
3603set x $ac_cv_target
3604shift
3605target_cpu=$1
3606target_vendor=$2
3607shift; shift
3608# Remember, the first character of IFS is used to create $*,
3609# except with old shells:
3610target_os=$*
3611IFS=$ac_save_IFS
3612case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615# The aliases save the names the user supplied, while $host etc.
3616# will get canonicalized.
3617test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3619 NONENONEs,x,x, &&
3620 program_prefix=${target_alias}-
3621
3622{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627 case $host in
3628 *-*-aix*)
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3633 *-*-irix*)
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3638 *-*-cygwin*)
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3643 *-*-darwin*)
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3648 *-*-minix*)
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003653 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3658 *-*-openbsd*)
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3663 *-*-netbsd*)
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3668 *-*-dragonfly*)
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3673 *-*-hpux*)
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3678 *-*-interix*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-linux*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003688 *-*-gnu*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003693 *-*-solaris*)
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-auroraux*)
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-win32*)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3708 *-*-mingw*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3713 *-*-haiku*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-unknown-eabi*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-unknown-elf*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3728 *)
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3733esac
3734fi
3735{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 case $target in
3744 *-*-aix*)
3745 llvm_cv_target_os_type="AIX" ;;
3746 *-*-irix*)
3747 llvm_cv_target_os_type="IRIX" ;;
3748 *-*-cygwin*)
3749 llvm_cv_target_os_type="Cygwin" ;;
3750 *-*-darwin*)
3751 llvm_cv_target_os_type="Darwin" ;;
3752 *-*-minix*)
3753 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003754 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003755 llvm_cv_target_os_type="FreeBSD" ;;
3756 *-*-openbsd*)
3757 llvm_cv_target_os_type="OpenBSD" ;;
3758 *-*-netbsd*)
3759 llvm_cv_target_os_type="NetBSD" ;;
3760 *-*-dragonfly*)
3761 llvm_cv_target_os_type="DragonFly" ;;
3762 *-*-hpux*)
3763 llvm_cv_target_os_type="HP-UX" ;;
3764 *-*-interix*)
3765 llvm_cv_target_os_type="Interix" ;;
3766 *-*-linux*)
3767 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003768 *-*-gnu*)
3769 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003770 *-*-solaris*)
3771 llvm_cv_target_os_type="SunOS" ;;
3772 *-*-auroraux*)
3773 llvm_cv_target_os_type="AuroraUX" ;;
3774 *-*-win32*)
3775 llvm_cv_target_os_type="Win32" ;;
3776 *-*-mingw*)
3777 llvm_cv_target_os_type="MingW" ;;
3778 *-*-haiku*)
3779 llvm_cv_target_os_type="Haiku" ;;
3780 *-*-rtems*)
3781 llvm_cv_target_os_type="RTEMS" ;;
3782 *-*-nacl*)
3783 llvm_cv_target_os_type="NativeClient" ;;
3784 *-unknown-eabi*)
3785 llvm_cv_target_os_type="Freestanding" ;;
3786 *)
3787 llvm_cv_target_os_type="Unknown" ;;
3788esac
3789fi
3790{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
3799OS=$llvm_cv_os_type
3800
3801HOST_OS=$llvm_cv_os_type
3802
3803TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806LINKALL=$llvm_cv_link_all_option
3807
3808NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811case $llvm_cv_platform_type in
3812 Unix)
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define LLVM_ON_UNIX 1
3816_ACEOF
3817
3818 LLVM_ON_UNIX=1
3819
3820 LLVM_ON_WIN32=0
3821
3822 ;;
3823 Win32)
3824
3825cat >>confdefs.h <<\_ACEOF
3826#define LLVM_ON_WIN32 1
3827_ACEOF
3828
3829 LLVM_ON_UNIX=0
3830
3831 LLVM_ON_WIN32=1
3832
3833 ;;
3834esac
3835
3836{ echo "$as_me:$LINENO: checking target architecture" >&5
3837echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 case $target in
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003846 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northover72062f52013-01-31 12:12:40 +00003847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003853 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003854 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003855 *) llvm_cv_target_arch="Unknown" ;;
3856esac
3857fi
3858{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3859echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3860
3861if test "$llvm_cv_target_arch" = "Unknown" ; then
3862 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3863echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3864fi
3865
3866# Determine the LLVM native architecture for the target
3867case "$llvm_cv_target_arch" in
3868 x86) LLVM_NATIVE_ARCH="X86" ;;
3869 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3870 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3871esac
3872
3873ARCH=$llvm_cv_target_arch
3874
3875
3876
3877
3878{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883 # Extract the first word of "grep ggrep" to use in msg output
3884if test -z "$GREP"; then
3885set dummy grep ggrep; ac_prog_name=$2
3886if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889 ac_path_GREP_found=false
3890# Loop through the user's path and test for each of PROGNAME-LIST
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in grep ggrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902case `"$ac_path_GREP" --version 2>&1` in
3903*GNU*)
3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3905*)
3906 ac_count=0
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908 while :
3909 do
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP="$ac_path_GREP"
3920 ac_path_GREP_max=$ac_count
3921 fi
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3924 done
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926esac
3927
3928
3929 $ac_path_GREP_found && break 3
3930 done
3931done
3932
3933done
3934IFS=$as_save_IFS
3935
3936
3937fi
3938
3939GREP="$ac_cv_path_GREP"
3940if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3944fi
3945
3946else
3947 ac_cv_path_GREP=$GREP
3948fi
3949
3950
3951fi
3952{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3955
3956
3957{ echo "$as_me:$LINENO: checking for egrep" >&5
3958echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3964 else
3965 # Extract the first word of "egrep" to use in msg output
3966if test -z "$EGREP"; then
3967set dummy egrep; ac_prog_name=$2
3968if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 ac_path_EGREP_found=false
3972# Loop through the user's path and test for each of PROGNAME-LIST
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984case `"$ac_path_EGREP" --version 2>&1` in
3985*GNU*)
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987*)
3988 ac_count=0
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 while :
3991 do
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4003 fi
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008esac
4009
4010
4011 $ac_path_EGREP_found && break 3
4012 done
4013done
4014
4015done
4016IFS=$as_save_IFS
4017
4018
4019fi
4020
4021EGREP="$ac_cv_path_EGREP"
4022if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4026fi
4027
4028else
4029 ac_cv_path_EGREP=$EGREP
4030fi
4031
4032
4033 fi
4034fi
4035{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4038
4039
4040{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042if test "${ac_cv_header_stdc+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#include <stdlib.h>
4052#include <stdarg.h>
4053#include <string.h>
4054#include <float.h>
4055
4056int
4057main ()
4058{
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (ac_try="$ac_compile"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_header_stdc=yes
4099else
4100 echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 ac_cv_header_stdc=no
4104fi
4105
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h. */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h. */
4116#include <string.h>
4117
4118_ACEOF
4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "memchr" >/dev/null 2>&1; then
4121 :
4122else
4123 ac_cv_header_stdc=no
4124fi
4125rm -f conftest*
4126
4127fi
4128
4129if test $ac_cv_header_stdc = yes; then
4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
4137#include <stdlib.h>
4138
4139_ACEOF
4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "free" >/dev/null 2>&1; then
4142 :
4143else
4144 ac_cv_header_stdc=no
4145fi
4146rm -f conftest*
4147
4148fi
4149
4150if test $ac_cv_header_stdc = yes; then
4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152 if test "$cross_compiling" = yes; then
4153 :
4154else
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161#include <ctype.h>
4162#include <stdlib.h>
4163#if ((' ' & 0x0FF) == 0x020)
4164# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4166#else
4167# define ISLOWER(c) \
4168 (('a' <= (c) && (c) <= 'i') \
4169 || ('j' <= (c) && (c) <= 'r') \
4170 || ('s' <= (c) && (c) <= 'z'))
4171# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4172#endif
4173
4174#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175int
4176main ()
4177{
4178 int i;
4179 for (i = 0; i < 256; i++)
4180 if (XOR (islower (i), ISLOWER (i))
4181 || toupper (i) != TOUPPER (i))
4182 return 2;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest$ac_exeext
4187if { (ac_try="$ac_link"
4188case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_link") 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 :
4207else
4208 echo "$as_me: program exited with status $ac_status" >&5
4209echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212( exit $ac_status )
4213ac_cv_header_stdc=no
4214fi
4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216fi
4217
4218
4219fi
4220fi
4221{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4223if test $ac_cv_header_stdc = yes; then
4224
4225cat >>confdefs.h <<\_ACEOF
4226#define STDC_HEADERS 1
4227_ACEOF
4228
4229fi
4230
4231# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4243do
4244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256$ac_includes_default
4257
4258#include <$ac_header>
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (ac_try="$ac_compile"
4262case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 eval "$as_ac_Header=yes"
4295else
4296 echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 eval "$as_ac_Header=no"
4300fi
4301
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303fi
4304ac_res=`eval echo '${'$as_ac_Header'}'`
4305 { echo "$as_me:$LINENO: result: $ac_res" >&5
4306echo "${ECHO_T}$ac_res" >&6; }
4307if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h <<_ACEOF
4309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310_ACEOF
4311
4312fi
4313
4314done
4315
4316
4317{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4318echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4319if test "${ac_cv_c_bigendian+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
4322 # See if sys/param.h defines the BYTE_ORDER macro.
4323cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h. */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h. */
4329#include <sys/types.h>
4330#include <sys/param.h>
4331
4332int
4333main ()
4334{
4335#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4336 bogus endian macros
4337#endif
4338
4339 ;
4340 return 0;
4341}
4342_ACEOF
4343rm -f conftest.$ac_objext
4344if { (ac_try="$ac_compile"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361esac
4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371esac
4372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 # It does; now see whether it defined to BIG_ENDIAN or not.
4378cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
4384#include <sys/types.h>
4385#include <sys/param.h>
4386
4387int
4388main ()
4389{
4390#if BYTE_ORDER != BIG_ENDIAN
4391 not big endian
4392#endif
4393
4394 ;
4395 return 0;
4396}
4397_ACEOF
4398rm -f conftest.$ac_objext
4399if { (ac_try="$ac_compile"
4400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426esac
4427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_try") 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 ac_cv_c_bigendian=yes
4433else
4434 echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 ac_cv_c_bigendian=no
4438fi
4439
4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441else
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 # It does not; compile a test program.
4446if test "$cross_compiling" = yes; then
4447 # try to guess the endianness by grepping values into an object file
4448 ac_cv_c_bigendian=unknown
4449 cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h. */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h. */
4455short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4456short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4458short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4459short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4461int
4462main ()
4463{
4464 _ascii (); _ebcdic ();
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469rm -f conftest.$ac_objext
4470if { (ac_try="$ac_compile"
4471case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4504 ac_cv_c_bigendian=yes
4505fi
4506if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4507 if test "$ac_cv_c_bigendian" = unknown; then
4508 ac_cv_c_bigendian=no
4509 else
4510 # finding both strings is unlikely to happen, but who knows?
4511 ac_cv_c_bigendian=unknown
4512 fi
4513fi
4514else
4515 echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518
4519fi
4520
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522else
4523 cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
4529$ac_includes_default
4530int
4531main ()
4532{
4533
4534 /* Are we little or big endian? From Harbison&Steele. */
4535 union
4536 {
4537 long int l;
4538 char c[sizeof (long int)];
4539 } u;
4540 u.l = 1;
4541 return u.c[sizeof (long int) - 1] == 1;
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest$ac_exeext
4548if { (ac_try="$ac_link"
4549case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_c_bigendian=no
4568else
4569 echo "$as_me: program exited with status $ac_status" >&5
4570echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573( exit $ac_status )
4574ac_cv_c_bigendian=yes
4575fi
4576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577fi
4578
4579
4580fi
4581
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583fi
4584{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4585echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4586case $ac_cv_c_bigendian in
4587 yes)
4588 ENDIAN=big
4589 ;;
4590 no)
4591 ENDIAN=little
4592 ;;
4593 *)
4594 { { echo "$as_me:$LINENO: error: unknown endianness
4595presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4596echo "$as_me: error: unknown endianness
4597presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4598 { (exit 1); exit 1; }; } ;;
4599esac
4600
4601
4602if test "$cross_compiling" = yes; then
4603 LLVM_CROSS_COMPILING=1
4604
4605
4606{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4607echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4608if test "${ac_cv_build_exeext+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4612 ac_cv_build_exeext=.exe
4613else
4614 ac_build_prefix=${build_alias}-
4615
4616 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4617set dummy ${ac_build_prefix}gcc; ac_word=$2
4618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 if test -n "$BUILD_CC"; then
4624 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643BUILD_CC=$ac_cv_prog_BUILD_CC
4644if test -n "$BUILD_CC"; then
4645 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4646echo "${ECHO_T}$BUILD_CC" >&6; }
4647else
4648 { echo "$as_me:$LINENO: result: no" >&5
4649echo "${ECHO_T}no" >&6; }
4650fi
4651
4652
4653 if test -z "$BUILD_CC"; then
4654 # Extract the first word of "gcc", so it can be a program name with args.
4655set dummy gcc; ac_word=$2
4656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 if test -n "$BUILD_CC"; then
4662 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_BUILD_CC="gcc"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675done
4676done
4677IFS=$as_save_IFS
4678
4679fi
4680fi
4681BUILD_CC=$ac_cv_prog_BUILD_CC
4682if test -n "$BUILD_CC"; then
4683 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4684echo "${ECHO_T}$BUILD_CC" >&6; }
4685else
4686 { echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6; }
4688fi
4689
4690
4691 if test -z "$BUILD_CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693set dummy cc; ac_word=$2
4694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 if test -n "$BUILD_CC"; then
4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4701else
4702 ac_prog_rejected=no
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected=yes
4712 continue
4713 fi
4714 ac_cv_prog_BUILD_CC="cc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718done
4719done
4720IFS=$as_save_IFS
4721
4722if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy $ac_cv_prog_BUILD_CC
4725 shift
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set BUILD_CC to just the basename; use the full file name.
4730 shift
4731 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4732 fi
4733fi
4734fi
4735fi
4736BUILD_CC=$ac_cv_prog_BUILD_CC
4737if test -n "$BUILD_CC"; then
4738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4739echo "${ECHO_T}$BUILD_CC" >&6; }
4740else
4741 { echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6; }
4743fi
4744
4745
4746 fi
4747 fi
4748 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4749echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4750 { (exit 1); exit 1; }; }
4751 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4752 rm -f conftest*
4753 echo 'int main () { return 0; }' > conftest.$ac_ext
4754 ac_cv_build_exeext=
4755 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4756 (eval $ac_build_link) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 for file in conftest.*; do
4761 case $file in
4762 *.c | *.o | *.obj | *.dSYM) ;;
4763 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4764 esac
4765 done
4766 else
4767 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4768echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4769 { (exit 1); exit 1; }; }
4770 fi
4771 rm -f conftest*
4772 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4773fi
4774fi
4775
4776BUILD_EXEEXT=""
4777test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4778{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4779echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4780ac_build_exeext=$BUILD_EXEEXT
4781
4782 ac_build_prefix=${build_alias}-
4783 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4784set dummy ${ac_build_prefix}g++; ac_word=$2
4785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790 if test -n "$BUILD_CXX"; then
4791 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805done
4806IFS=$as_save_IFS
4807
4808fi
4809fi
4810BUILD_CXX=$ac_cv_prog_BUILD_CXX
4811if test -n "$BUILD_CXX"; then
4812 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4813echo "${ECHO_T}$BUILD_CXX" >&6; }
4814else
4815 { echo "$as_me:$LINENO: result: no" >&5
4816echo "${ECHO_T}no" >&6; }
4817fi
4818
4819
4820 if test -z "$BUILD_CXX"; then
4821 # Extract the first word of "g++", so it can be a program name with args.
4822set dummy g++; ac_word=$2
4823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 if test -n "$BUILD_CXX"; then
4829 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_BUILD_CXX="g++"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842done
4843done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848BUILD_CXX=$ac_cv_prog_BUILD_CXX
4849if test -n "$BUILD_CXX"; then
4850 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4851echo "${ECHO_T}$BUILD_CXX" >&6; }
4852else
4853 { echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6; }
4855fi
4856
4857
4858 if test -z "$BUILD_CXX"; then
4859 # Extract the first word of "c++", so it can be a program name with args.
4860set dummy c++; ac_word=$2
4861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866 if test -n "$BUILD_CXX"; then
4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4868else
4869 ac_prog_rejected=no
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4878 ac_prog_rejected=yes
4879 continue
4880 fi
4881 ac_cv_prog_BUILD_CXX="c++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886done
4887IFS=$as_save_IFS
4888
4889if test $ac_prog_rejected = yes; then
4890 # We found a bogon in the path, so make sure we never use it.
4891 set dummy $ac_cv_prog_BUILD_CXX
4892 shift
4893 if test $# != 0; then
4894 # We chose a different compiler from the bogus one.
4895 # However, it has the same basename, so the bogon will be chosen
4896 # first if we set BUILD_CXX to just the basename; use the full file name.
4897 shift
4898 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4899 fi
4900fi
4901fi
4902fi
4903BUILD_CXX=$ac_cv_prog_BUILD_CXX
4904if test -n "$BUILD_CXX"; then
4905 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4906echo "${ECHO_T}$BUILD_CXX" >&6; }
4907else
4908 { echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6; }
4910fi
4911
4912
4913 fi
4914 fi
4915else
4916 LLVM_CROSS_COMPILING=0
4917
4918fi
4919
4920if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4921 cvsbuild="yes"
4922 optimize="no"
4923 CVSBUILD=CVSBUILD=1
4924
4925else
4926 cvsbuild="no"
4927 optimize="yes"
4928fi
4929
4930
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004931# Check whether --enable-libcpp was given.
4932if test "${enable_libcpp+set}" = set; then
4933 enableval=$enable_libcpp;
4934else
4935 enableval=default
4936fi
4937
4938case "$enableval" in
4939 yes) ENABLE_LIBCPP=1
4940 ;;
4941 no) ENABLE_LIBCPP=0
4942 ;;
4943 default) ENABLE_LIBCPP=0
4944;;
4945 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4946echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4947 { (exit 1); exit 1; }; } ;;
4948esac
4949
Craig Topper8ee39632012-11-12 06:11:12 +00004950# Check whether --enable-cxx11 was given.
4951if test "${enable_cxx11+set}" = set; then
4952 enableval=$enable_cxx11;
4953else
4954 enableval=default
4955fi
4956
4957case "$enableval" in
4958 yes) ENABLE_CXX11=1
4959 ;;
4960 no) ENABLE_CXX11=0
4961 ;;
4962 default) ENABLE_CXX11=0
4963;;
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4965echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4967esac
4968
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004969# Check whether --enable-optimized was given.
4970if test "${enable_optimized+set}" = set; then
4971 enableval=$enable_optimized;
4972else
4973 enableval=$optimize
4974fi
4975
4976if test ${enableval} = "no" ; then
4977 ENABLE_OPTIMIZED=
4978
4979else
4980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4981
4982fi
4983
4984# Check whether --enable-profiling was given.
4985if test "${enable_profiling+set}" = set; then
4986 enableval=$enable_profiling;
4987else
4988 enableval="no"
4989fi
4990
4991if test ${enableval} = "no" ; then
4992 ENABLE_PROFILING=
4993
4994else
4995 ENABLE_PROFILING=ENABLE_PROFILING=1
4996
4997fi
4998
4999# Check whether --enable-assertions was given.
5000if test "${enable_assertions+set}" = set; then
5001 enableval=$enable_assertions;
5002else
5003 enableval="yes"
5004fi
5005
5006if test ${enableval} = "yes" ; then
5007 DISABLE_ASSERTIONS=
5008
5009else
5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5011
5012fi
5013
Craig Topper8ee39632012-11-12 06:11:12 +00005014# Check whether --enable-werror was given.
5015if test "${enable_werror+set}" = set; then
5016 enableval=$enable_werror;
5017else
5018 enableval="no"
5019fi
5020
5021case "$enableval" in
5022 yes) ENABLE_WERROR=1
5023 ;;
5024 no) ENABLE_WERROR=0
5025 ;;
5026 default) ENABLE_WERROR=0
5027;;
5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5029echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5031esac
5032
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005033# Check whether --enable-expensive-checks was given.
5034if test "${enable_expensive_checks+set}" = set; then
5035 enableval=$enable_expensive_checks;
5036else
5037 enableval="no"
5038fi
5039
5040if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043 EXPENSIVE_CHECKS=yes
5044
5045else
5046 ENABLE_EXPENSIVE_CHECKS=
5047
5048 EXPENSIVE_CHECKS=no
5049
5050fi
5051
5052# Check whether --enable-debug-runtime was given.
5053if test "${enable_debug_runtime+set}" = set; then
5054 enableval=$enable_debug_runtime;
5055else
5056 enableval=no
5057fi
5058
5059if test ${enableval} = "no" ; then
5060 DEBUG_RUNTIME=
5061
5062else
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065fi
5066
5067# Check whether --enable-debug-symbols was given.
5068if test "${enable_debug_symbols+set}" = set; then
5069 enableval=$enable_debug_symbols;
5070else
5071 enableval=no
5072fi
5073
5074if test ${enableval} = "no" ; then
5075 DEBUG_SYMBOLS=
5076
5077else
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080fi
5081
5082# Check whether --enable-jit was given.
5083if test "${enable_jit+set}" = set; then
5084 enableval=$enable_jit;
5085else
5086 enableval=default
5087fi
5088
5089if test ${enableval} = "no"
5090then
5091 JIT=
5092
5093else
5094 case "$llvm_cv_target_arch" in
5095 x86) TARGET_HAS_JIT=1
5096 ;;
5097 Sparc) TARGET_HAS_JIT=0
5098 ;;
5099 PowerPC) TARGET_HAS_JIT=1
5100 ;;
5101 x86_64) TARGET_HAS_JIT=1
5102 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005103 ARM) TARGET_HAS_JIT=1
5104 ;;
Tim Northover72062f52013-01-31 12:12:40 +00005105 AArch64) TARGET_HAS_JIT=0
5106 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005107 Mips) TARGET_HAS_JIT=1
5108 ;;
5109 XCore) TARGET_HAS_JIT=0
5110 ;;
5111 MSP430) TARGET_HAS_JIT=0
5112 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005113 Hexagon) TARGET_HAS_JIT=0
5114 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005115 MBlaze) TARGET_HAS_JIT=0
5116 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005117 NVPTX) TARGET_HAS_JIT=0
5118 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005119 *) TARGET_HAS_JIT=0
5120 ;;
5121 esac
5122fi
5123
5124# Check whether --enable-docs was given.
5125if test "${enable_docs+set}" = set; then
5126 enableval=$enable_docs;
5127else
5128 enableval=default
5129fi
5130
5131case "$enableval" in
5132 yes) ENABLE_DOCS=1
5133 ;;
5134 no) ENABLE_DOCS=0
5135 ;;
5136 default) ENABLE_DOCS=1
5137 ;;
5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5141esac
5142
5143# Check whether --enable-doxygen was given.
5144if test "${enable_doxygen+set}" = set; then
5145 enableval=$enable_doxygen;
5146else
5147 enableval=default
5148fi
5149
5150case "$enableval" in
5151 yes) ENABLE_DOXYGEN=1
5152 ;;
5153 no) ENABLE_DOXYGEN=0
5154 ;;
5155 default) ENABLE_DOXYGEN=0
5156 ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5160esac
5161
5162# Check whether --enable-threads was given.
5163if test "${enable_threads+set}" = set; then
5164 enableval=$enable_threads;
5165else
5166 enableval=default
5167fi
5168
5169case "$enableval" in
5170 yes) ENABLE_THREADS=1
5171 ;;
5172 no) ENABLE_THREADS=0
5173 ;;
5174 default) ENABLE_THREADS=1
5175 ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5179esac
5180
5181cat >>confdefs.h <<_ACEOF
5182#define ENABLE_THREADS $ENABLE_THREADS
5183_ACEOF
5184
5185
5186# Check whether --enable-pthreads was given.
5187if test "${enable_pthreads+set}" = set; then
5188 enableval=$enable_pthreads;
5189else
5190 enableval=default
5191fi
5192
5193case "$enableval" in
5194 yes) ENABLE_PTHREADS=1
5195 ;;
5196 no) ENABLE_PTHREADS=0
5197 ;;
5198 default) ENABLE_PTHREADS=1
5199 ;;
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5203esac
5204
5205# Check whether --enable-pic was given.
5206if test "${enable_pic+set}" = set; then
5207 enableval=$enable_pic;
5208else
5209 enableval=default
5210fi
5211
5212case "$enableval" in
5213 yes) ENABLE_PIC=1
5214 ;;
5215 no) ENABLE_PIC=0
5216 ;;
5217 default) ENABLE_PIC=1
5218 ;;
5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5222esac
5223
5224cat >>confdefs.h <<_ACEOF
5225#define ENABLE_PIC $ENABLE_PIC
5226_ACEOF
5227
5228
5229# Check whether --enable-shared was given.
5230if test "${enable_shared+set}" = set; then
5231 enableval=$enable_shared;
5232else
5233 enableval=default
5234fi
5235
5236case "$enableval" in
5237 yes) ENABLE_SHARED=1
5238 ;;
5239 no) ENABLE_SHARED=0
5240 ;;
5241 default) ENABLE_SHARED=0
5242 ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247
5248# Check whether --enable-embed-stdcxx was given.
5249if test "${enable_embed_stdcxx+set}" = set; then
5250 enableval=$enable_embed_stdcxx;
5251else
5252 enableval=default
5253fi
5254
5255case "$enableval" in
5256 yes) ENABLE_EMBED_STDCXX=1
5257 ;;
5258 no) ENABLE_EMBED_STDCXX=0
5259 ;;
5260 default) ENABLE_EMBED_STDCXX=1
5261 ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265esac
5266
5267# Check whether --enable-timestamps was given.
5268if test "${enable_timestamps+set}" = set; then
5269 enableval=$enable_timestamps;
5270else
5271 enableval=default
5272fi
5273
5274case "$enableval" in
5275 yes) ENABLE_TIMESTAMPS=1
5276 ;;
5277 no) ENABLE_TIMESTAMPS=0
5278 ;;
5279 default) ENABLE_TIMESTAMPS=1
5280 ;;
5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5284esac
5285
5286cat >>confdefs.h <<_ACEOF
5287#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288_ACEOF
5289
5290
5291TARGETS_TO_BUILD=""
5292# Check whether --enable-targets was given.
5293if test "${enable_targets+set}" = set; then
5294 enableval=$enable_targets;
5295else
5296 enableval=all
5297fi
5298
5299if test "$enableval" = host-only ; then
5300 enableval=host
5301fi
5302case "$enableval" in
Tim Northover72062f52013-01-31 12:12:40 +00005303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305 case "$a_target" in
5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005310 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tim Northover72062f52013-01-31 12:12:40 +00005311 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005312 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005313 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005315 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005316 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005318 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005319 host) case "$llvm_cv_target_arch" in
5320 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005324 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tim Northover72062f52013-01-31 12:12:40 +00005325 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005326 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005328 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005330 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005331 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005332 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333echo "$as_me: error: Can not set target to build" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5335 esac ;;
5336 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5339 esac
5340 done
5341 ;;
5342esac
5343TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5344
5345
5346# Determine whether we are building LLVM support for the native architecture.
5347# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348for a_target in $TARGETS_TO_BUILD; do
5349 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5350
5351cat >>confdefs.h <<_ACEOF
5352#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5353_ACEOF
5354
5355 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5357 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5358 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5361 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5363 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5364 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005365
5366cat >>confdefs.h <<_ACEOF
5367#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5368_ACEOF
5369
5370
5371cat >>confdefs.h <<_ACEOF
5372#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5373_ACEOF
5374
5375
5376cat >>confdefs.h <<_ACEOF
5377#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5378_ACEOF
5379
5380
5381cat >>confdefs.h <<_ACEOF
5382#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5383_ACEOF
5384
5385 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5386
5387cat >>confdefs.h <<_ACEOF
5388#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5389_ACEOF
5390
5391 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005392 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5393
5394cat >>confdefs.h <<_ACEOF
5395#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5396_ACEOF
5397
5398 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005399 fi
5400done
5401
5402# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5403# target feature def files.
5404LLVM_ENUM_TARGETS=""
5405LLVM_ENUM_ASM_PRINTERS=""
5406LLVM_ENUM_ASM_PARSERS=""
5407LLVM_ENUM_DISASSEMBLERS=""
5408for target_to_build in $TARGETS_TO_BUILD; do
5409 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5411 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5412 fi
5413 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5414 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5415 fi
5416 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5417 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5418 fi
5419done
5420
5421
5422
5423
5424
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005425
5426# Check whether --with-optimize-option was given.
5427if test "${with_optimize_option+set}" = set; then
5428 withval=$with_optimize_option;
5429else
5430 withval=default
5431fi
5432
5433{ echo "$as_me:$LINENO: checking optimization flags" >&5
5434echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5435case "$withval" in
5436 default)
5437 case "$llvm_cv_os_type" in
5438 FreeBSD) optimize_option=-O2 ;;
5439 MingW) optimize_option=-O2 ;;
5440 *) optimize_option=-O3 ;;
5441 esac ;;
5442 *) optimize_option="$withval" ;;
5443esac
5444OPTIMIZE_OPTION=$optimize_option
5445
5446{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5447echo "${ECHO_T}$optimize_option" >&6; }
5448
5449
5450# Check whether --with-extra-options was given.
5451if test "${with_extra_options+set}" = set; then
5452 withval=$with_extra_options;
5453else
5454 withval=default
5455fi
5456
5457case "$withval" in
5458 default) EXTRA_OPTIONS= ;;
5459 *) EXTRA_OPTIONS=$withval ;;
5460esac
5461EXTRA_OPTIONS=$EXTRA_OPTIONS
5462
5463
5464
5465# Check whether --with-extra-ld-options was given.
5466if test "${with_extra_ld_options+set}" = set; then
5467 withval=$with_extra_ld_options;
5468else
5469 withval=default
5470fi
5471
5472case "$withval" in
5473 default) EXTRA_LD_OPTIONS= ;;
5474 *) EXTRA_LD_OPTIONS=$withval ;;
5475esac
5476EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5477
5478
5479# Check whether --enable-bindings was given.
5480if test "${enable_bindings+set}" = set; then
5481 enableval=$enable_bindings;
5482else
5483 enableval=default
5484fi
5485
5486BINDINGS_TO_BUILD=""
5487case "$enableval" in
5488 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5489 all ) BINDINGS_TO_BUILD="ocaml" ;;
5490 none | no) BINDINGS_TO_BUILD="" ;;
5491 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5492 case "$a_binding" in
5493 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5494 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5495echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5496 { (exit 1); exit 1; }; } ;;
5497 esac
5498 done
5499 ;;
5500esac
5501
5502
5503# Check whether --with-ocaml-libdir was given.
5504if test "${with_ocaml_libdir+set}" = set; then
5505 withval=$with_ocaml_libdir;
5506else
5507 withval=auto
5508fi
5509
5510case "$withval" in
5511 auto) with_ocaml_libdir="$withval" ;;
5512 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5513 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5514echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5515 { (exit 1); exit 1; }; } ;;
5516esac
5517
5518
5519# Check whether --with-clang-resource-dir was given.
5520if test "${with_clang_resource_dir+set}" = set; then
5521 withval=$with_clang_resource_dir;
5522else
5523 withval=""
5524fi
5525
5526
5527cat >>confdefs.h <<_ACEOF
5528#define CLANG_RESOURCE_DIR "$withval"
5529_ACEOF
5530
5531
5532
5533# Check whether --with-c-include-dirs was given.
5534if test "${with_c_include_dirs+set}" = set; then
5535 withval=$with_c_include_dirs;
5536else
5537 withval=""
5538fi
5539
5540
5541cat >>confdefs.h <<_ACEOF
5542#define C_INCLUDE_DIRS "$withval"
5543_ACEOF
5544
5545
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005546# Clang normally uses the system c++ headers and libraries. With this option,
5547# clang will use the ones provided by a gcc installation instead. This option should
5548# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005549
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005550# Check whether --with-gcc-toolchain was given.
5551if test "${with_gcc_toolchain+set}" = set; then
5552 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005553else
5554 withval=""
5555fi
5556
5557
5558cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005559#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005560_ACEOF
5561
5562
5563
5564# Check whether --with-binutils-include was given.
5565if test "${with_binutils_include+set}" = set; then
5566 withval=$with_binutils_include;
5567else
5568 withval=default
5569fi
5570
5571case "$withval" in
5572 default) WITH_BINUTILS_INCDIR=default ;;
5573 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5574 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5575echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5576 { (exit 1); exit 1; }; } ;;
5577esac
5578if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5579 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5580
5581 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5582 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5583 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5584echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5585 { (exit 1); exit 1; }; };
5586 fi
5587fi
5588
5589
5590# Check whether --with-bug-report-url was given.
5591if test "${with_bug_report_url+set}" = set; then
5592 withval=$with_bug_report_url;
5593else
5594 withval="http://llvm.org/bugs/"
5595fi
5596
5597
5598cat >>confdefs.h <<_ACEOF
5599#define BUG_REPORT_URL "$withval"
5600_ACEOF
5601
5602
5603# Check whether --enable-libffi was given.
5604if test "${enable_libffi+set}" = set; then
5605 enableval=$enable_libffi; case "$enableval" in
5606 yes) llvm_cv_enable_libffi="yes" ;;
5607 no) llvm_cv_enable_libffi="no" ;;
5608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5609echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5610 { (exit 1); exit 1; }; } ;;
5611 esac
5612else
5613 llvm_cv_enable_libffi=no
5614fi
5615
5616
5617
5618{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5620if test "${lt_cv_path_NM+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 if test -n "$NM"; then
5624 # Let the user override the test.
5625 lt_cv_path_NM="$NM"
5626else
5627 lt_nm_to_check="${ac_tool_prefix}nm"
5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629 lt_nm_to_check="$lt_nm_to_check nm"
5630 fi
5631 for lt_tmp_nm in $lt_nm_to_check; do
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634 IFS="$lt_save_ifs"
5635 test -z "$ac_dir" && ac_dir=.
5636 tmp_nm="$ac_dir/$lt_tmp_nm"
5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638 # Check to see if the nm accepts a BSD-compat flag.
5639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640 # nm: unknown option "B" ignored
5641 # Tru64's nm complains that /dev/null is an invalid object file
5642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643 */dev/null* | *'Invalid file or object type'*)
5644 lt_cv_path_NM="$tmp_nm -B"
5645 break
5646 ;;
5647 *)
5648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5649 */dev/null*)
5650 lt_cv_path_NM="$tmp_nm -p"
5651 break
5652 ;;
5653 *)
5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655 continue # so that we can try to find one that supports BSD flags
5656 ;;
5657 esac
5658 ;;
5659 esac
5660 fi
5661 done
5662 IFS="$lt_save_ifs"
5663 done
5664 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5665fi
5666fi
5667{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5669NM="$lt_cv_path_NM"
5670
5671
5672
5673{ echo "$as_me:$LINENO: checking for GNU make" >&5
5674echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5675if test "${llvm_cv_gnu_make_command+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 llvm_cv_gnu_make_command=''
5679 for a in "$MAKE" make gmake gnumake ; do
5680 if test -z "$a" ; then continue ; fi ;
5681 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5682 then
5683 llvm_cv_gnu_make_command=$a ;
5684 break;
5685 fi
5686 done
5687fi
5688{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5689echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5690 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5691 ifGNUmake='' ;
5692 else
5693 ifGNUmake='#' ;
5694 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5695echo "${ECHO_T}\"Not found\"" >&6; };
5696 fi
5697
5698
5699{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5701LN_S=$as_ln_s
5702if test "$LN_S" = "ln -s"; then
5703 { echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6; }
5705else
5706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707echo "${ECHO_T}no, using $LN_S" >&6; }
5708fi
5709
5710# Extract the first word of "cmp", so it can be a program name with args.
5711set dummy cmp; ac_word=$2
5712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714if test "${ac_cv_path_CMP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 case $CMP in
5718 [\\/]* | ?:[\\/]*)
5719 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5720 ;;
5721 *)
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734done
5735IFS=$as_save_IFS
5736
5737 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5738 ;;
5739esac
5740fi
5741CMP=$ac_cv_path_CMP
5742if test -n "$CMP"; then
5743 { echo "$as_me:$LINENO: result: $CMP" >&5
5744echo "${ECHO_T}$CMP" >&6; }
5745else
5746 { echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6; }
5748fi
5749
5750
5751# Extract the first word of "cp", so it can be a program name with args.
5752set dummy cp; ac_word=$2
5753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755if test "${ac_cv_path_CP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758 case $CP in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5761 ;;
5762 *)
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776IFS=$as_save_IFS
5777
5778 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5779 ;;
5780esac
5781fi
5782CP=$ac_cv_path_CP
5783if test -n "$CP"; then
5784 { echo "$as_me:$LINENO: result: $CP" >&5
5785echo "${ECHO_T}$CP" >&6; }
5786else
5787 { echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6; }
5789fi
5790
5791
5792# Extract the first word of "date", so it can be a program name with args.
5793set dummy date; ac_word=$2
5794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_DATE+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 case $DATE in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5802 ;;
5803 *)
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5820 ;;
5821esac
5822fi
5823DATE=$ac_cv_path_DATE
5824if test -n "$DATE"; then
5825 { echo "$as_me:$LINENO: result: $DATE" >&5
5826echo "${ECHO_T}$DATE" >&6; }
5827else
5828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
5830fi
5831
5832
5833# Extract the first word of "find", so it can be a program name with args.
5834set dummy find; ac_word=$2
5835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_FIND+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 case $FIND in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857done
5858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5861 ;;
5862esac
5863fi
5864FIND=$ac_cv_path_FIND
5865if test -n "$FIND"; then
5866 { echo "$as_me:$LINENO: result: $FIND" >&5
5867echo "${ECHO_T}$FIND" >&6; }
5868else
5869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
5871fi
5872
5873
5874# Extract the first word of "grep", so it can be a program name with args.
5875set dummy grep; ac_word=$2
5876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_GREP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881 case $GREP in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5884 ;;
5885 *)
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898done
5899IFS=$as_save_IFS
5900
5901 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5902 ;;
5903esac
5904fi
5905GREP=$ac_cv_path_GREP
5906if test -n "$GREP"; then
5907 { echo "$as_me:$LINENO: result: $GREP" >&5
5908echo "${ECHO_T}$GREP" >&6; }
5909else
5910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
5912fi
5913
5914
5915# Extract the first word of "mkdir", so it can be a program name with args.
5916set dummy mkdir; ac_word=$2
5917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_MKDIR+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922 case $MKDIR in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5925 ;;
5926 *)
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939done
5940IFS=$as_save_IFS
5941
5942 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5943 ;;
5944esac
5945fi
5946MKDIR=$ac_cv_path_MKDIR
5947if test -n "$MKDIR"; then
5948 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5949echo "${ECHO_T}$MKDIR" >&6; }
5950else
5951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
5953fi
5954
5955
5956# Extract the first word of "mv", so it can be a program name with args.
5957set dummy mv; ac_word=$2
5958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_MV+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963 case $MV in
5964 [\\/]* | ?:[\\/]*)
5965 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5966 ;;
5967 *)
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5984 ;;
5985esac
5986fi
5987MV=$ac_cv_path_MV
5988if test -n "$MV"; then
5989 { echo "$as_me:$LINENO: result: $MV" >&5
5990echo "${ECHO_T}$MV" >&6; }
5991else
5992 { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
5994fi
5995
5996
5997if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002if test "${ac_cv_prog_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 if test -n "$RANLIB"; then
6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025RANLIB=$ac_cv_prog_RANLIB
6026if test -n "$RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6028echo "${ECHO_T}$RANLIB" >&6; }
6029else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_RANLIB"; then
6037 ac_ct_RANLIB=$RANLIB
6038 # Extract the first word of "ranlib", so it can be a program name with args.
6039set dummy ranlib; ac_word=$2
6040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 if test -n "$ac_ct_RANLIB"; then
6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_RANLIB="ranlib"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059done
6060done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066if test -n "$ac_ct_RANLIB"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6068echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6069else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6; }
6072fi
6073
6074 if test "x$ac_ct_RANLIB" = x; then
6075 RANLIB=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080whose name does not start with the host triplet. If you think this
6081configuration is useful to you, please write to autoconf@gnu.org." >&5
6082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083whose name does not start with the host triplet. If you think this
6084configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087 RANLIB=$ac_ct_RANLIB
6088 fi
6089else
6090 RANLIB="$ac_cv_prog_RANLIB"
6091fi
6092
6093if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6095set dummy ${ac_tool_prefix}ar; ac_word=$2
6096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098if test "${ac_cv_prog_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 if test -n "$AR"; then
6102 ac_cv_prog_AR="$AR" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_AR="${ac_tool_prefix}ar"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115done
6116done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121AR=$ac_cv_prog_AR
6122if test -n "$AR"; then
6123 { echo "$as_me:$LINENO: result: $AR" >&5
6124echo "${ECHO_T}$AR" >&6; }
6125else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
6128fi
6129
6130
6131fi
6132if test -z "$ac_cv_prog_AR"; then
6133 ac_ct_AR=$AR
6134 # Extract the first word of "ar", so it can be a program name with args.
6135set dummy ar; ac_word=$2
6136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 if test -n "$ac_ct_AR"; then
6142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_AR="ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_AR=$ac_cv_prog_ac_ct_AR
6162if test -n "$ac_ct_AR"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6164echo "${ECHO_T}$ac_ct_AR" >&6; }
6165else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6; }
6168fi
6169
6170 if test "x$ac_ct_AR" = x; then
6171 AR="false"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176whose name does not start with the host triplet. If you think this
6177configuration is useful to you, please write to autoconf@gnu.org." >&5
6178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179whose name does not start with the host triplet. If you think this
6180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 AR=$ac_ct_AR
6184 fi
6185else
6186 AR="$ac_cv_prog_AR"
6187fi
6188
6189# Extract the first word of "rm", so it can be a program name with args.
6190set dummy rm; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_path_RM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 case $RM in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6199 ;;
6200 *)
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6217 ;;
6218esac
6219fi
6220RM=$ac_cv_path_RM
6221if test -n "$RM"; then
6222 { echo "$as_me:$LINENO: result: $RM" >&5
6223echo "${ECHO_T}$RM" >&6; }
6224else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230# Extract the first word of "sed", so it can be a program name with args.
6231set dummy sed; ac_word=$2
6232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_SED+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237 case $SED in
6238 [\\/]* | ?:[\\/]*)
6239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6240 ;;
6241 *)
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
6255IFS=$as_save_IFS
6256
6257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6258 ;;
6259esac
6260fi
6261SED=$ac_cv_path_SED
6262if test -n "$SED"; then
6263 { echo "$as_me:$LINENO: result: $SED" >&5
6264echo "${ECHO_T}$SED" >&6; }
6265else
6266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
6268fi
6269
6270
6271# Extract the first word of "tar", so it can be a program name with args.
6272set dummy tar; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_TAR+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 case $TAR in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6299 ;;
6300esac
6301fi
6302TAR=$ac_cv_path_TAR
6303if test -n "$TAR"; then
6304 { echo "$as_me:$LINENO: result: $TAR" >&5
6305echo "${ECHO_T}$TAR" >&6; }
6306else
6307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
6309fi
6310
6311
6312# Extract the first word of "pwd", so it can be a program name with args.
6313set dummy pwd; ac_word=$2
6314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_BINPWD+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319 case $BINPWD in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6340 ;;
6341esac
6342fi
6343BINPWD=$ac_cv_path_BINPWD
6344if test -n "$BINPWD"; then
6345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6346echo "${ECHO_T}$BINPWD" >&6; }
6347else
6348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
6350fi
6351
6352
6353
6354# Extract the first word of "Graphviz", so it can be a program name with args.
6355set dummy Graphviz; ac_word=$2
6356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 case $GRAPHVIZ in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378done
6379IFS=$as_save_IFS
6380
6381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6382 ;;
6383esac
6384fi
6385GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6386if test -n "$GRAPHVIZ"; then
6387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6388echo "${ECHO_T}$GRAPHVIZ" >&6; }
6389else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395if test "$GRAPHVIZ" != "echo Graphviz" ; then
6396
6397cat >>confdefs.h <<\_ACEOF
6398#define HAVE_GRAPHVIZ 1
6399_ACEOF
6400
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6403 fi
6404
6405cat >>confdefs.h <<_ACEOF
6406#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6407_ACEOF
6408
6409fi
6410# Extract the first word of "dot", so it can be a program name with args.
6411set dummy dot; ac_word=$2
6412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414if test "${ac_cv_path_DOT+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 case $DOT in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434done
6435IFS=$as_save_IFS
6436
6437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6438 ;;
6439esac
6440fi
6441DOT=$ac_cv_path_DOT
6442if test -n "$DOT"; then
6443 { echo "$as_me:$LINENO: result: $DOT" >&5
6444echo "${ECHO_T}$DOT" >&6; }
6445else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6; }
6448fi
6449
6450
6451if test "$DOT" != "echo dot" ; then
6452
6453cat >>confdefs.h <<\_ACEOF
6454#define HAVE_DOT 1
6455_ACEOF
6456
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459 fi
6460
6461cat >>confdefs.h <<_ACEOF
6462#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6463_ACEOF
6464
6465fi
6466# Extract the first word of "fdp", so it can be a program name with args.
6467set dummy fdp; ac_word=$2
6468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470if test "${ac_cv_path_FDP+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473 case $FDP in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491IFS=$as_save_IFS
6492
6493 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6494 ;;
6495esac
6496fi
6497FDP=$ac_cv_path_FDP
6498if test -n "$FDP"; then
6499 { echo "$as_me:$LINENO: result: $FDP" >&5
6500echo "${ECHO_T}$FDP" >&6; }
6501else
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504fi
6505
6506
6507if test "$FDP" != "echo fdp" ; then
6508
6509cat >>confdefs.h <<\_ACEOF
6510#define HAVE_FDP 1
6511_ACEOF
6512
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6519_ACEOF
6520
6521fi
6522# Extract the first word of "neato", so it can be a program name with args.
6523set dummy neato; ac_word=$2
6524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_NEATO+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 case $NEATO in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6550 ;;
6551esac
6552fi
6553NEATO=$ac_cv_path_NEATO
6554if test -n "$NEATO"; then
6555 { echo "$as_me:$LINENO: result: $NEATO" >&5
6556echo "${ECHO_T}$NEATO" >&6; }
6557else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563if test "$NEATO" != "echo neato" ; then
6564
6565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_NEATO 1
6567_ACEOF
6568
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571 fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6575_ACEOF
6576
6577fi
6578# Extract the first word of "twopi", so it can be a program name with args.
6579set dummy twopi; ac_word=$2
6580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582if test "${ac_cv_path_TWOPI+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 case $TWOPI in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603IFS=$as_save_IFS
6604
6605 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6606 ;;
6607esac
6608fi
6609TWOPI=$ac_cv_path_TWOPI
6610if test -n "$TWOPI"; then
6611 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6612echo "${ECHO_T}$TWOPI" >&6; }
6613else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6; }
6616fi
6617
6618
6619if test "$TWOPI" != "echo twopi" ; then
6620
6621cat >>confdefs.h <<\_ACEOF
6622#define HAVE_TWOPI 1
6623_ACEOF
6624
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627 fi
6628
6629cat >>confdefs.h <<_ACEOF
6630#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6631_ACEOF
6632
6633fi
6634# Extract the first word of "circo", so it can be a program name with args.
6635set dummy circo; ac_word=$2
6636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638if test "${ac_cv_path_CIRCO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640else
6641 case $CIRCO in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658done
6659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6662 ;;
6663esac
6664fi
6665CIRCO=$ac_cv_path_CIRCO
6666if test -n "$CIRCO"; then
6667 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6668echo "${ECHO_T}$CIRCO" >&6; }
6669else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
6672fi
6673
6674
6675if test "$CIRCO" != "echo circo" ; then
6676
6677cat >>confdefs.h <<\_ACEOF
6678#define HAVE_CIRCO 1
6679_ACEOF
6680
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683 fi
6684
6685cat >>confdefs.h <<_ACEOF
6686#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6687_ACEOF
6688
6689fi
6690for ac_prog in gv gsview32
6691do
6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
6693set dummy $ac_prog; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_path_GV+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 case $GV in
6700 [\\/]* | ?:[\\/]*)
6701 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6702 ;;
6703 *)
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
6717IFS=$as_save_IFS
6718
6719 ;;
6720esac
6721fi
6722GV=$ac_cv_path_GV
6723if test -n "$GV"; then
6724 { echo "$as_me:$LINENO: result: $GV" >&5
6725echo "${ECHO_T}$GV" >&6; }
6726else
6727 { echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6; }
6729fi
6730
6731
6732 test -n "$GV" && break
6733done
6734test -n "$GV" || GV="echo gv"
6735
6736if test "$GV" != "echo gv" ; then
6737
6738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_GV 1
6740_ACEOF
6741
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 fi
6745
6746cat >>confdefs.h <<_ACEOF
6747#define LLVM_PATH_GV "$GV${EXEEXT}"
6748_ACEOF
6749
6750fi
6751# Extract the first word of "dotty", so it can be a program name with args.
6752set dummy dotty; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_DOTTY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 case $DOTTY in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6761 ;;
6762 *)
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6779 ;;
6780esac
6781fi
6782DOTTY=$ac_cv_path_DOTTY
6783if test -n "$DOTTY"; then
6784 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6785echo "${ECHO_T}$DOTTY" >&6; }
6786else
6787 { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
6789fi
6790
6791
6792if test "$DOTTY" != "echo dotty" ; then
6793
6794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_DOTTY 1
6796_ACEOF
6797
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6804_ACEOF
6805
6806fi
6807# Extract the first word of "xdot.py", so it can be a program name with args.
6808set dummy xdot.py; ac_word=$2
6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_XDOT_PY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 case $XDOT_PY in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6835 ;;
6836esac
6837fi
6838XDOT_PY=$ac_cv_path_XDOT_PY
6839if test -n "$XDOT_PY"; then
6840 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6841echo "${ECHO_T}$XDOT_PY" >&6; }
6842else
6843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
6845fi
6846
6847
6848if test "$XDOT_PY" != "echo xdot.py" ; then
6849
6850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_XDOT_PY 1
6852_ACEOF
6853
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6860_ACEOF
6861
6862fi
6863
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006864# Find a good install program. We prefer a C program (faster),
6865# so one script is as good as another. But avoid the broken or
6866# incompatible versions:
6867# SysV /etc/install, /usr/sbin/install
6868# SunOS /usr/etc/install
6869# IRIX /sbin/install
6870# AIX /bin/install
6871# AmigaOS /C/install, which installs bootblocks on floppy discs
6872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6875# OS/2's system install, which has a completely different semantic
6876# ./install, which can be erroneously created by make from ./install.sh.
6877{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6878echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6879if test -z "$INSTALL"; then
6880if test "${ac_cv_path_install+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 # Account for people who put trailing slashes in PATH elements.
6889case $as_dir/ in
6890 ./ | .// | /cC/* | \
6891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6893 /usr/ucb/* ) ;;
6894 *)
6895 # OSF1 and SCO ODT 3.0 have their own names for install.
6896 # Don't use installbsd from OSF since it installs stuff as root
6897 # by default.
6898 for ac_prog in ginstall scoinst install; do
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6901 if test $ac_prog = install &&
6902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6903 # AIX install. It has an incompatible calling convention.
6904 :
6905 elif test $ac_prog = install &&
6906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6907 # program-specific install script used by HP pwplus--don't use.
6908 :
6909 else
6910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6911 break 3
6912 fi
6913 fi
6914 done
6915 done
6916 ;;
6917esac
6918done
6919IFS=$as_save_IFS
6920
6921
6922fi
6923 if test "${ac_cv_path_install+set}" = set; then
6924 INSTALL=$ac_cv_path_install
6925 else
6926 # As a last resort, use the slow shell script. Don't cache a
6927 # value for INSTALL within a source directory, because that will
6928 # break other packages using the cache if that directory is
6929 # removed, or if the value is a relative name.
6930 INSTALL=$ac_install_sh
6931 fi
6932fi
6933{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6934echo "${ECHO_T}$INSTALL" >&6; }
6935
6936# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6937# It thinks the first close brace ends the variable substitution.
6938test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6939
6940test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6941
6942test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6943
6944case "$INSTALL" in
6945 [\\/$]* | ?:[\\/]* ) ;;
6946 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6947esac
6948
6949# Extract the first word of "bzip2", so it can be a program name with args.
6950set dummy bzip2; ac_word=$2
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_path_BZIP2+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $BZIP2 in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974IFS=$as_save_IFS
6975
6976 ;;
6977esac
6978fi
6979BZIP2=$ac_cv_path_BZIP2
6980if test -n "$BZIP2"; then
6981 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6982echo "${ECHO_T}$BZIP2" >&6; }
6983else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988
6989# Extract the first word of "cat", so it can be a program name with args.
6990set dummy cat; ac_word=$2
6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_path_CAT+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 case $CAT in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6999 ;;
7000 *)
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013done
7014IFS=$as_save_IFS
7015
7016 ;;
7017esac
7018fi
7019CAT=$ac_cv_path_CAT
7020if test -n "$CAT"; then
7021 { echo "$as_me:$LINENO: result: $CAT" >&5
7022echo "${ECHO_T}$CAT" >&6; }
7023else
7024 { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
7026fi
7027
7028
7029# Extract the first word of "doxygen", so it can be a program name with args.
7030set dummy doxygen; ac_word=$2
7031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033if test "${ac_cv_path_DOXYGEN+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036 case $DOXYGEN in
7037 [\\/]* | ?:[\\/]*)
7038 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7039 ;;
7040 *)
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052done
7053done
7054IFS=$as_save_IFS
7055
7056 ;;
7057esac
7058fi
7059DOXYGEN=$ac_cv_path_DOXYGEN
7060if test -n "$DOXYGEN"; then
7061 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7062echo "${ECHO_T}$DOXYGEN" >&6; }
7063else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069# Extract the first word of "groff", so it can be a program name with args.
7070set dummy groff; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_GROFF+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $GROFF in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096 ;;
7097esac
7098fi
7099GROFF=$ac_cv_path_GROFF
7100if test -n "$GROFF"; then
7101 { echo "$as_me:$LINENO: result: $GROFF" >&5
7102echo "${ECHO_T}$GROFF" >&6; }
7103else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109# Extract the first word of "gzip", so it can be a program name with args.
7110set dummy gzip; ac_word=$2
7111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113if test "${ac_cv_path_GZIPBIN+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116 case $GZIPBIN in
7117 [\\/]* | ?:[\\/]*)
7118 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7119 ;;
7120 *)
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
7134IFS=$as_save_IFS
7135
7136 ;;
7137esac
7138fi
7139GZIPBIN=$ac_cv_path_GZIPBIN
7140if test -n "$GZIPBIN"; then
7141 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7142echo "${ECHO_T}$GZIPBIN" >&6; }
7143else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147
7148
7149# Extract the first word of "pod2html", so it can be a program name with args.
7150set dummy pod2html; ac_word=$2
7151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153if test "${ac_cv_path_POD2HTML+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 case $POD2HTML in
7157 [\\/]* | ?:[\\/]*)
7158 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7159 ;;
7160 *)
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173done
7174IFS=$as_save_IFS
7175
7176 ;;
7177esac
7178fi
7179POD2HTML=$ac_cv_path_POD2HTML
7180if test -n "$POD2HTML"; then
7181 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7182echo "${ECHO_T}$POD2HTML" >&6; }
7183else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6; }
7186fi
7187
7188
7189# Extract the first word of "pod2man", so it can be a program name with args.
7190set dummy pod2man; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_path_POD2MAN+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $POD2MAN in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7199 ;;
7200 *)
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216 ;;
7217esac
7218fi
7219POD2MAN=$ac_cv_path_POD2MAN
7220if test -n "$POD2MAN"; then
7221 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7222echo "${ECHO_T}$POD2MAN" >&6; }
7223else
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
7226fi
7227
7228
7229# Extract the first word of "pdfroff", so it can be a program name with args.
7230set dummy pdfroff; ac_word=$2
7231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233if test "${ac_cv_path_PDFROFF+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 case $PDFROFF in
7237 [\\/]* | ?:[\\/]*)
7238 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7239 ;;
7240 *)
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253done
7254IFS=$as_save_IFS
7255
7256 ;;
7257esac
7258fi
7259PDFROFF=$ac_cv_path_PDFROFF
7260if test -n "$PDFROFF"; then
7261 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7262echo "${ECHO_T}$PDFROFF" >&6; }
7263else
7264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
7266fi
7267
7268
7269# Extract the first word of "runtest", so it can be a program name with args.
7270set dummy runtest; ac_word=$2
7271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273if test "${ac_cv_path_RUNTEST+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 case $RUNTEST in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293done
7294IFS=$as_save_IFS
7295
7296 ;;
7297esac
7298fi
7299RUNTEST=$ac_cv_path_RUNTEST
7300if test -n "$RUNTEST"; then
7301 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7302echo "${ECHO_T}$RUNTEST" >&6; }
7303else
7304 { echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6; }
7306fi
7307
7308
7309
7310no_itcl=true
7311{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7312echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7313
7314# Check whether --with-tclinclude was given.
7315if test "${with_tclinclude+set}" = set; then
7316 withval=$with_tclinclude; with_tclinclude=${withval}
7317else
7318 with_tclinclude=''
7319fi
7320
7321if test "${ac_cv_path_tclsh+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324
7325if test x"${with_tclinclude}" != x ; then
7326 if test -f ${with_tclinclude}/tclsh ; then
7327 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7328 elif test -f ${with_tclinclude}/src/tclsh ; then
7329 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7330 else
7331 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7332echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7333 { (exit 1); exit 1; }; }
7334 fi
7335fi
7336fi
7337
7338
7339if test x"${ac_cv_path_tclsh}" = x ; then
7340 { echo "$as_me:$LINENO: result: none" >&5
7341echo "${ECHO_T}none" >&6; }
7342 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
7343do
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345set dummy $ac_prog; ac_word=$2
7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_TCLSH+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 case $TCLSH in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369IFS=$as_save_IFS
7370
7371 ;;
7372esac
7373fi
7374TCLSH=$ac_cv_path_TCLSH
7375if test -n "$TCLSH"; then
7376 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7377echo "${ECHO_T}$TCLSH" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
7384 test -n "$TCLSH" && break
7385done
7386
7387 if test x"${TCLSH}" = x ; then
7388 ac_cv_path_tclsh='';
7389 else
7390 ac_cv_path_tclsh="${TCLSH}";
7391 fi
7392else
7393 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7394echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7395 TCLSH="${ac_cv_path_tclsh}"
7396
7397fi
7398
7399# Extract the first word of "zip", so it can be a program name with args.
7400set dummy zip; ac_word=$2
7401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403if test "${ac_cv_path_ZIP+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406 case $ZIP in
7407 [\\/]* | ?:[\\/]*)
7408 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7409 ;;
7410 *)
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423done
7424IFS=$as_save_IFS
7425
7426 ;;
7427esac
7428fi
7429ZIP=$ac_cv_path_ZIP
7430if test -n "$ZIP"; then
7431 { echo "$as_me:$LINENO: result: $ZIP" >&5
7432echo "${ECHO_T}$ZIP" >&6; }
7433else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6; }
7436fi
7437
7438
7439for ac_prog in ocamlc
7440do
7441 # Extract the first word of "$ac_prog", so it can be a program name with args.
7442set dummy $ac_prog; ac_word=$2
7443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445if test "${ac_cv_path_OCAMLC+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448 case $OCAMLC in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7451 ;;
7452 *)
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464done
7465done
7466IFS=$as_save_IFS
7467
7468 ;;
7469esac
7470fi
7471OCAMLC=$ac_cv_path_OCAMLC
7472if test -n "$OCAMLC"; then
7473 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7474echo "${ECHO_T}$OCAMLC" >&6; }
7475else
7476 { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
7478fi
7479
7480
7481 test -n "$OCAMLC" && break
7482done
7483
7484for ac_prog in ocamlopt
7485do
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487set dummy $ac_prog; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 case $OCAMLOPT in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513 ;;
7514esac
7515fi
7516OCAMLOPT=$ac_cv_path_OCAMLOPT
7517if test -n "$OCAMLOPT"; then
7518 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7519echo "${ECHO_T}$OCAMLOPT" >&6; }
7520else
7521 { echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6; }
7523fi
7524
7525
7526 test -n "$OCAMLOPT" && break
7527done
7528
7529for ac_prog in ocamldep
7530do
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532set dummy $ac_prog; ac_word=$2
7533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538 case $OCAMLDEP in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555done
7556IFS=$as_save_IFS
7557
7558 ;;
7559esac
7560fi
7561OCAMLDEP=$ac_cv_path_OCAMLDEP
7562if test -n "$OCAMLDEP"; then
7563 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7564echo "${ECHO_T}$OCAMLDEP" >&6; }
7565else
7566 { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
7568fi
7569
7570
7571 test -n "$OCAMLDEP" && break
7572done
7573
7574for ac_prog in ocamldoc
7575do
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577set dummy $ac_prog; ac_word=$2
7578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7580if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582else
7583 case $OCAMLDOC in
7584 [\\/]* | ?:[\\/]*)
7585 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7586 ;;
7587 *)
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599done
7600done
7601IFS=$as_save_IFS
7602
7603 ;;
7604esac
7605fi
7606OCAMLDOC=$ac_cv_path_OCAMLDOC
7607if test -n "$OCAMLDOC"; then
7608 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7609echo "${ECHO_T}$OCAMLDOC" >&6; }
7610else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616 test -n "$OCAMLDOC" && break
7617done
7618
7619for ac_prog in gas as
7620do
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622set dummy $ac_prog; ac_word=$2
7623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625if test "${ac_cv_path_GAS+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 case $GAS in
7629 [\\/]* | ?:[\\/]*)
7630 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7631 ;;
7632 *)
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645done
7646IFS=$as_save_IFS
7647
7648 ;;
7649esac
7650fi
7651GAS=$ac_cv_path_GAS
7652if test -n "$GAS"; then
7653 { echo "$as_me:$LINENO: result: $GAS" >&5
7654echo "${ECHO_T}$GAS" >&6; }
7655else
7656 { echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6; }
7658fi
7659
7660
7661 test -n "$GAS" && break
7662done
7663
7664
7665{ echo "$as_me:$LINENO: checking for linker version" >&5
7666echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7667if test "${llvm_cv_link_version+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670
7671 version_string="$(ld -v 2>&1 | head -1)"
7672
7673 # Check for ld64.
7674 if (echo "$version_string" | grep -q "ld64"); then
Benjamin Kramer00171802012-05-05 15:02:39 +00007675 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarbf79f912011-10-18 23:10:58 +00007676 else
7677 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7678 fi
7679
7680fi
7681{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7682echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7683
7684cat >>confdefs.h <<_ACEOF
7685#define HOST_LINK_VERSION "$llvm_cv_link_version"
7686_ACEOF
7687
7688
7689
7690{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7691echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7692if test "${llvm_cv_link_use_r+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 ac_ext=c
7696ac_cpp='$CPP $CPPFLAGS'
7697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700
7701 oldcflags="$CFLAGS"
7702 CFLAGS="$CFLAGS -Wl,-R."
7703 cat >conftest.$ac_ext <<_ACEOF
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
7709
7710int
7711main ()
7712{
7713
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext conftest$ac_exeext
7719if { (ac_try="$ac_link"
7720case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723esac
7724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746esac
7747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_try") 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 llvm_cv_link_use_r=yes
7753else
7754 echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 llvm_cv_link_use_r=no
7758fi
7759
7760rm -f core conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7762 CFLAGS="$oldcflags"
7763 ac_ext=c
7764ac_cpp='$CPP $CPPFLAGS'
7765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768
7769
7770fi
7771{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7772echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7773if test "$llvm_cv_link_use_r" = yes ; then
7774
7775cat >>confdefs.h <<\_ACEOF
7776#define HAVE_LINK_R 1
7777_ACEOF
7778
7779 fi
7780
7781
7782{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7783echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7784if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 ac_ext=c
7788ac_cpp='$CPP $CPPFLAGS'
7789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792
7793 oldcflags="$CFLAGS"
7794 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7795 cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801
7802int
7803main ()
7804{
7805
7806 ;
7807 return 0;
7808}
7809_ACEOF
7810rm -f conftest.$ac_objext conftest$ac_exeext
7811if { (ac_try="$ac_link"
7812case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815esac
7816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_link") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828esac
7829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_try") 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 llvm_cv_link_use_export_dynamic=yes
7845else
7846 echo "$as_me: failed program was:" >&5
7847sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 llvm_cv_link_use_export_dynamic=no
7850fi
7851
7852rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 CFLAGS="$oldcflags"
7855 ac_ext=c
7856ac_cpp='$CPP $CPPFLAGS'
7857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860
7861
7862fi
7863{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7864echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7865if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7866
7867cat >>confdefs.h <<\_ACEOF
7868#define HAVE_LINK_EXPORT_DYNAMIC 1
7869_ACEOF
7870
7871 fi
7872
7873
7874{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7875echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7876if test "${llvm_cv_link_use_version_script+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879 ac_ext=c
7880ac_cpp='$CPP $CPPFLAGS'
7881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884
7885 oldcflags="$CFLAGS"
7886
7887 # The following code is from the autoconf manual,
7888 # "11.13: Limitations of Usual Tools".
7889 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7890 # Use mktemp if possible; otherwise fall back on mkdir,
7891 # with $RANDOM to make collisions less likely.
7892 : ${TMPDIR=/tmp}
7893 {
7894 tmp=`
7895 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7896 ` &&
7897 test -n "$tmp" && test -d "$tmp"
7898 } || {
7899 tmp=$TMPDIR/foo$$-$RANDOM
7900 (umask 077 && mkdir "$tmp")
7901 } || exit $?
7902
7903 echo "{" > "$tmp/export.map"
7904 echo " global: main;" >> "$tmp/export.map"
7905 echo " local: *;" >> "$tmp/export.map"
7906 echo "};" >> "$tmp/export.map"
7907
7908 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915
7916int
7917main ()
7918{
7919
7920 ;
7921 return 0;
7922}
7923_ACEOF
7924rm -f conftest.$ac_objext conftest$ac_exeext
7925if { (ac_try="$ac_link"
7926case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929esac
7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_link") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7939 { (case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942esac
7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_try") 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952esac
7953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_try") 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 llvm_cv_link_use_version_script=yes
7959else
7960 echo "$as_me: failed program was:" >&5
7961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963 llvm_cv_link_use_version_script=no
7964fi
7965
7966rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 rm "$tmp/export.map"
7969 rmdir "$tmp"
7970 CFLAGS="$oldcflags"
7971 ac_ext=c
7972ac_cpp='$CPP $CPPFLAGS'
7973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977
7978fi
7979{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7980echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7981if test "$llvm_cv_link_use_version_script" = yes ; then
7982 HAVE_LINK_VERSION_SCRIPT=1
7983
7984 fi
7985
7986
7987
7988
7989{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7990echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7991if test "${ac_cv_c_const+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994 cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000
8001int
8002main ()
8003{
8004/* FIXME: Include the comments suggested by Paul. */
8005#ifndef __cplusplus
8006 /* Ultrix mips cc rejects this. */
8007 typedef int charset[2];
8008 const charset x;
8009 /* SunOS 4.1.1 cc rejects this. */
8010 char const *const *ccp;
8011 char **p;
8012 /* NEC SVR4.0.2 mips cc rejects this. */
8013 struct point {int x, y;};
8014 static struct point const zero = {0,0};
8015 /* AIX XL C 1.02.0.0 rejects this.
8016 It does not let you subtract one const X* pointer from another in
8017 an arm of an if-expression whose if-part is not a constant
8018 expression */
8019 const char *g = "string";
8020 ccp = &g + (g ? g-g : 0);
8021 /* HPUX 7.0 cc rejects these. */
8022 ++ccp;
8023 p = (char**) ccp;
8024 ccp = (char const *const *) p;
8025 { /* SCO 3.2v4 cc rejects this. */
8026 char *t;
8027 char const *s = 0 ? (char *) 0 : (char const *) 0;
8028
8029 *t++ = 0;
8030 if (s) return 0;
8031 }
8032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8033 int x[] = {25, 17};
8034 const int *foo = &x[0];
8035 ++foo;
8036 }
8037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038 typedef const int *iptr;
8039 iptr p = 0;
8040 ++p;
8041 }
8042 { /* AIX XL C 1.02.0.0 rejects this saying
8043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044 struct s { int j; const int *ap[3]; };
8045 struct s *b; b->j = 5;
8046 }
8047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8048 const int foo = 10;
8049 if (!foo) return 0;
8050 }
8051 return !x[0] && !zero.x;
8052#endif
8053
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext
8059if { (ac_try="$ac_compile"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_c_const=yes
8093else
8094 echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 ac_cv_c_const=no
8098fi
8099
8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101fi
8102{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8103echo "${ECHO_T}$ac_cv_c_const" >&6; }
8104if test $ac_cv_c_const = no; then
8105
8106cat >>confdefs.h <<\_ACEOF
8107#define const
8108_ACEOF
8109
8110fi
8111
8112
8113
8114
8115
8116
8117ac_header_dirent=no
8118for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8119 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8120{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8121echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131#include <sys/types.h>
8132#include <$ac_hdr>
8133
8134int
8135main ()
8136{
8137if ((DIR *) 0)
8138return 0;
8139 ;
8140 return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext
8144if { (ac_try="$ac_compile"
8145case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8158 { (case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_try") 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171esac
8172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_try") 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 eval "$as_ac_Header=yes"
8178else
8179 echo "$as_me: failed program was:" >&5
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 eval "$as_ac_Header=no"
8183fi
8184
8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186fi
8187ac_res=`eval echo '${'$as_ac_Header'}'`
8188 { echo "$as_me:$LINENO: result: $ac_res" >&5
8189echo "${ECHO_T}$ac_res" >&6; }
8190if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8193_ACEOF
8194
8195ac_header_dirent=$ac_hdr; break
8196fi
8197
8198done
8199# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8200if test $ac_header_dirent = dirent.h; then
8201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8202echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8203if test "${ac_cv_search_opendir+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 ac_func_search_save_LIBS=$LIBS
8207cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h. */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h. */
8213
8214/* Override any GCC internal prototype to avoid an error.
8215 Use char because int might match the return type of a GCC
8216 builtin and then its argument prototype would still apply. */
8217#ifdef __cplusplus
8218extern "C"
8219#endif
8220char opendir ();
8221int
8222main ()
8223{
8224return opendir ();
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229for ac_lib in '' dir; do
8230 if test -z "$ac_lib"; then
8231 ac_res="none required"
8232 else
8233 ac_res=-l$ac_lib
8234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8235 fi
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237if { (ac_try="$ac_link"
8238case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241esac
8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_link") 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264esac
8265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_try") 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_search_opendir=$ac_res
8271else
8272 echo "$as_me: failed program was:" >&5
8273sed 's/^/| /' conftest.$ac_ext >&5
8274
8275
8276fi
8277
8278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext
8280 if test "${ac_cv_search_opendir+set}" = set; then
8281 break
8282fi
8283done
8284if test "${ac_cv_search_opendir+set}" = set; then
8285 :
8286else
8287 ac_cv_search_opendir=no
8288fi
8289rm conftest.$ac_ext
8290LIBS=$ac_func_search_save_LIBS
8291fi
8292{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8293echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8294ac_res=$ac_cv_search_opendir
8295if test "$ac_res" != no; then
8296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8297
8298fi
8299
8300else
8301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8302echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8303if test "${ac_cv_search_opendir+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 ac_func_search_save_LIBS=$LIBS
8307cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h. */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
8312/* end confdefs.h. */
8313
8314/* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8317#ifdef __cplusplus
8318extern "C"
8319#endif
8320char opendir ();
8321int
8322main ()
8323{
8324return opendir ();
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329for ac_lib in '' x; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8332 else
8333 ac_res=-l$ac_lib
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8335 fi
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337if { (ac_try="$ac_link"
8338case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341esac
8342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_link") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_search_opendir=$ac_res
8371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375
8376fi
8377
8378rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext
8380 if test "${ac_cv_search_opendir+set}" = set; then
8381 break
8382fi
8383done
8384if test "${ac_cv_search_opendir+set}" = set; then
8385 :
8386else
8387 ac_cv_search_opendir=no
8388fi
8389rm conftest.$ac_ext
8390LIBS=$ac_func_search_save_LIBS
8391fi
8392{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8393echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8394ac_res=$ac_cv_search_opendir
8395if test "$ac_res" != no; then
8396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8397
8398fi
8399
8400fi
8401
8402
8403for ac_header in dlfcn.h
8404do
8405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411fi
8412ac_res=`eval echo '${'$as_ac_Header'}'`
8413 { echo "$as_me:$LINENO: result: $ac_res" >&5
8414echo "${ECHO_T}$ac_res" >&6; }
8415else
8416 # Is the header compilable?
8417{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8419cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
8425$ac_includes_default
8426#include <$ac_header>
8427_ACEOF
8428rm -f conftest.$ac_objext
8429if { (ac_try="$ac_compile"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456esac
8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_header_compiler=yes
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_header_compiler=no
8468fi
8469
8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472echo "${ECHO_T}$ac_header_compiler" >&6; }
8473
8474# Is the header present?
8475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483#include <$ac_header>
8484_ACEOF
8485if { (ac_try="$ac_cpp conftest.$ac_ext"
8486case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } >/dev/null; then
8498 if test -s conftest.err; then
8499 ac_cpp_err=$ac_c_preproc_warn_flag
8500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8501 else
8502 ac_cpp_err=
8503 fi
8504else
8505 ac_cpp_err=yes
8506fi
8507if test -z "$ac_cpp_err"; then
8508 ac_header_preproc=yes
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 ac_header_preproc=no
8514fi
8515
8516rm -f conftest.err conftest.$ac_ext
8517{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518echo "${ECHO_T}$ac_header_preproc" >&6; }
8519
8520# So? What about this header?
8521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8522 yes:no: )
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8527 ac_header_preproc=yes
8528 ;;
8529 no:yes:* )
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8542 ( cat <<\_ASBOX
8543## ------------------------------ ##
8544## Report this to bugs@yourdomain ##
8545## ------------------------------ ##
8546_ASBOX
8547 ) | sed "s/^/$as_me: WARNING: /" >&2
8548 ;;
8549esac
8550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555 eval "$as_ac_Header=\$ac_header_preproc"
8556fi
8557ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559echo "${ECHO_T}$ac_res" >&6; }
8560
8561fi
8562if test `eval echo '${'$as_ac_Header'}'` = yes; then
8563 cat >>confdefs.h <<_ACEOF
8564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565_ACEOF
8566
8567fi
8568
8569done
8570
8571# Check whether --enable-ltdl-install was given.
8572if test "${enable_ltdl_install+set}" = set; then
8573 enableval=$enable_ltdl_install;
8574fi
8575
8576
8577
8578
8579if test x"${enable_ltdl_install-no}" != xno; then
8580 INSTALL_LTDL_TRUE=
8581 INSTALL_LTDL_FALSE='#'
8582else
8583 INSTALL_LTDL_TRUE='#'
8584 INSTALL_LTDL_FALSE=
8585fi
8586
8587
8588
8589if test x"${enable_ltdl_convenience-no}" != xno; then
8590 CONVENIENCE_LTDL_TRUE=
8591 CONVENIENCE_LTDL_FALSE='#'
8592else
8593 CONVENIENCE_LTDL_TRUE='#'
8594 CONVENIENCE_LTDL_FALSE=
8595fi
8596
8597
8598{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8599echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8600library_names_spec=
8601libname_spec='lib$name'
8602soname_spec=
8603shrext_cmds=".so"
8604postinstall_cmds=
8605postuninstall_cmds=
8606finish_cmds=
8607finish_eval=
8608shlibpath_var=
8609shlibpath_overrides_runpath=unknown
8610version_type=none
8611dynamic_linker="$host_os ld.so"
8612sys_lib_dlsearch_path_spec="/lib /usr/lib"
8613if test "$GCC" = yes; then
8614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8616 # if the path contains ";" then we assume it to be the separator
8617 # otherwise default to the standard path separator (i.e. ":") - it is
8618 # assumed that no part of a normal pathname contains ";" but that should
8619 # okay in the real world where ";" in dirpaths is itself problematic.
8620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8621 else
8622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8623 fi
8624else
8625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8626fi
8627need_lib_prefix=unknown
8628hardcode_into_libs=no
8629
8630# when you set need_version to no, make sure it does not cause -set_version
8631# flags to be left without arguments
8632need_version=unknown
8633
8634case $host_os in
8635aix3*)
8636 version_type=linux
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8638 shlibpath_var=LIBPATH
8639
8640 # AIX 3 has no versioning support, so we append a major version to the name.
8641 soname_spec='${libname}${release}${shared_ext}$major'
8642 ;;
8643
8644aix4* | aix5*)
8645 version_type=linux
8646 need_lib_prefix=no
8647 need_version=no
8648 hardcode_into_libs=yes
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 supports IA64
8651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 else
8654 # With GCC up to 2.95.x, collect2 would create an import file
8655 # for dependence libraries. The import file would start with
8656 # the line `#! .'. This would cause the generated library to
8657 # depend on `.', always an invalid library. This was fixed in
8658 # development snapshots of GCC prior to 3.0.
8659 case $host_os in
8660 aix4 | aix4.[01] | aix4.[01].*)
8661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8662 echo ' yes '
8663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8664 :
8665 else
8666 can_build_shared=no
8667 fi
8668 ;;
8669 esac
8670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8671 # soname into executable. Probably we can add versioning support to
8672 # collect2, so additional links can be useful in future.
8673 if test "$aix_use_runtimelinking" = yes; then
8674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8675 # instead of lib<name>.a to let people know that these are not
8676 # typical AIX shared libraries.
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 else
8679 # We preserve .a as extension for shared libraries through AIX4.2
8680 # and later when we are not doing run time linking.
8681 library_names_spec='${libname}${release}.a $libname.a'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 fi
8684 shlibpath_var=LIBPATH
8685 fi
8686 ;;
8687
8688amigaos*)
8689 library_names_spec='$libname.ixlibrary $libname.a'
8690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8691 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'
8692 ;;
8693
8694beos*)
8695 library_names_spec='${libname}${shared_ext}'
8696 dynamic_linker="$host_os ld.so"
8697 shlibpath_var=LIBRARY_PATH
8698 ;;
8699
8700bsdi[45]*)
8701 version_type=linux
8702 need_version=no
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8709 # the default ld.so.conf also contains /usr/contrib/lib and
8710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8711 # libtool to hard-code these into programs
8712 ;;
8713
8714cygwin* | mingw* | pw32*)
8715 version_type=windows
8716 shrext_cmds=".dll"
8717 need_version=no
8718 need_lib_prefix=no
8719
8720 case $GCC,$host_os in
8721 yes,cygwin* | yes,mingw* | yes,pw32*)
8722 library_names_spec='$libname.dll.a'
8723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8724 postinstall_cmds='base_file=`basename \${file}`~
8725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8726 dldir=$destdir/`dirname \$dlpath`~
8727 test -d \$dldir || mkdir -p \$dldir~
8728 $install_prog $dir/$dlname \$dldir/$dlname~
8729 chmod a+x \$dldir/$dlname'
8730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8731 dlpath=$dir/\$dldll~
8732 $rm \$dlpath'
8733 shlibpath_overrides_runpath=yes
8734
8735 case $host_os in
8736 cygwin*)
8737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8740 ;;
8741 mingw*)
8742 # MinGW DLLs use traditional 'lib' prefix
8743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8746 # It is most probably a Windows format PATH printed by
8747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8748 # path with ; separators, and with drive letters. We can handle the
8749 # drive letters (cygwin fileutils understands them), so leave them,
8750 # especially as we might pass files found there to a mingw objdump,
8751 # which wouldn't understand a cygwinified path. Ahh.
8752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8753 else
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8755 fi
8756 ;;
8757 pw32*)
8758 # pw32 DLLs use 'pw' prefix rather than 'lib'
8759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 ;;
8761 esac
8762 ;;
8763
8764 *)
8765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8766 ;;
8767 esac
8768 dynamic_linker='Win32 ld.exe'
8769 # FIXME: first we should search . and the directory the executable is in
8770 shlibpath_var=PATH
8771 ;;
8772
8773darwin* | rhapsody*)
8774 dynamic_linker="$host_os dyld"
8775 version_type=darwin
8776 need_lib_prefix=no
8777 need_version=no
8778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8779 soname_spec='${libname}${release}${major}$shared_ext'
8780 shlibpath_overrides_runpath=yes
8781 shlibpath_var=DYLD_LIBRARY_PATH
8782 shrext_cmds='.dylib'
8783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8784 if test "$GCC" = yes; then
8785 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"`
8786 else
8787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8788 fi
8789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8790 ;;
8791
8792dgux*)
8793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 ;;
8800
Rafael Espindola48381e52012-01-31 17:18:47 +00008801freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008802 dynamic_linker=no
8803 ;;
8804
8805kfreebsd*-gnu)
8806 version_type=linux
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 shlibpath_overrides_runpath=no
8813 hardcode_into_libs=yes
8814 dynamic_linker='GNU ld.so'
8815 ;;
8816
8817freebsd* | dragonfly*)
8818 # DragonFly does not have aout. When/if they implement a new
8819 # versioning mechanism, adjust this.
8820 if test -x /usr/bin/objformat; then
8821 objformat=`/usr/bin/objformat`
8822 else
8823 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008824 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008825 *) objformat=elf ;;
8826 esac
8827 fi
8828 version_type=freebsd-$objformat
8829 case $version_type in
8830 freebsd-elf*)
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832 need_version=no
8833 need_lib_prefix=no
8834 ;;
8835 freebsd-*)
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8837 need_version=yes
8838 ;;
8839 esac
8840 shlibpath_var=LD_LIBRARY_PATH
8841 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008842 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008843 shlibpath_overrides_runpath=yes
8844 ;;
8845 freebsd3.[01]* | freebsdelf3.[01]*)
8846 shlibpath_overrides_runpath=yes
8847 hardcode_into_libs=yes
8848 ;;
8849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8851 shlibpath_overrides_runpath=no
8852 hardcode_into_libs=yes
8853 ;;
8854 freebsd*) # from 4.6 on
8855 shlibpath_overrides_runpath=yes
8856 hardcode_into_libs=yes
8857 ;;
8858 esac
8859 ;;
8860
8861gnu*)
8862 version_type=linux
8863 need_lib_prefix=no
8864 need_version=no
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 hardcode_into_libs=yes
8869 ;;
8870
8871hpux9* | hpux10* | hpux11*)
8872 # Give a soname corresponding to the major version so that dld.sl refuses to
8873 # link against other versions.
8874 version_type=sunos
8875 need_lib_prefix=no
8876 need_version=no
8877 case $host_cpu in
8878 ia64*)
8879 shrext_cmds='.so'
8880 hardcode_into_libs=yes
8881 dynamic_linker="$host_os dld.so"
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 if test "X$HPUX_IA64_MODE" = X32; then
8887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8888 else
8889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8890 fi
8891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892 ;;
8893 hppa*64*)
8894 shrext_cmds='.sl'
8895 hardcode_into_libs=yes
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8903 ;;
8904 *)
8905 shrext_cmds='.sl'
8906 dynamic_linker="$host_os dld.sl"
8907 shlibpath_var=SHLIB_PATH
8908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 ;;
8912 esac
8913 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8914 postinstall_cmds='chmod 555 $lib'
8915 ;;
8916
8917interix3*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 ;;
8928
8929irix5* | irix6* | nonstopux*)
8930 case $host_os in
8931 nonstopux*) version_type=nonstopux ;;
8932 *)
8933 if test "$lt_cv_prog_gnu_ld" = yes; then
8934 version_type=linux
8935 else
8936 version_type=irix
8937 fi ;;
8938 esac
8939 need_lib_prefix=no
8940 need_version=no
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 case $host_os in
8944 irix5* | nonstopux*)
8945 libsuff= shlibsuff=
8946 ;;
8947 *)
8948 case $LD in # libtool.m4 will add one of these switches to LD
8949 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8950 libsuff= shlibsuff= libmagic=32-bit;;
8951 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8952 libsuff=32 shlibsuff=N32 libmagic=N32;;
8953 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8954 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8955 *) libsuff= shlibsuff= libmagic=never-match;;
8956 esac
8957 ;;
8958 esac
8959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8960 shlibpath_overrides_runpath=no
8961 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8962 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8963 hardcode_into_libs=yes
8964 ;;
8965
8966# No shared lib support for Linux oldld, aout, or coff.
8967linux*oldld* | linux*aout* | linux*coff*)
8968 dynamic_linker=no
8969 ;;
8970
8971# This must be Linux ELF.
8972linux*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=no
8981 # This implies no fast_install, which is unacceptable.
8982 # Some rework will be needed to allow for fast_install
8983 # before this can be enabled.
8984 hardcode_into_libs=yes
8985
8986 # Append ld.so.conf contents to the search path
8987 if test -f /etc/ld.so.conf; then
8988 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' ' '`
8989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8990 fi
8991
8992 # We used to test for /lib/ld.so.1 and disable shared libraries on
8993 # powerpc, because MkLinux only supported shared libraries with the
8994 # GNU dynamic linker. Since this was broken with cross compilers,
8995 # most powerpc-linux boxes support dynamic linking these days and
8996 # people can always --disable-shared, the test was removed, and we
8997 # assume the GNU/Linux dynamic linker is in use.
8998 dynamic_linker='GNU/Linux ld.so'
8999 ;;
9000
9001knetbsd*-gnu)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=no
9009 hardcode_into_libs=yes
9010 dynamic_linker='GNU ld.so'
9011 ;;
9012
9013netbsd*)
9014 version_type=sunos
9015 need_lib_prefix=no
9016 need_version=no
9017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020 dynamic_linker='NetBSD (a.out) ld.so'
9021 else
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 dynamic_linker='NetBSD ld.elf_so'
9025 fi
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9029 ;;
9030
9031newsos6)
9032 version_type=linux
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 ;;
9037
9038nto-qnx*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9046 ;;
9047
9048openbsd*)
9049 version_type=sunos
9050 sys_lib_dlsearch_path_spec="/usr/lib"
9051 need_lib_prefix=no
9052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9053 case $host_os in
9054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9055 *) need_version=no ;;
9056 esac
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9061 case $host_os in
9062 openbsd2.[89] | openbsd2.[89].*)
9063 shlibpath_overrides_runpath=no
9064 ;;
9065 *)
9066 shlibpath_overrides_runpath=yes
9067 ;;
9068 esac
9069 else
9070 shlibpath_overrides_runpath=yes
9071 fi
9072 ;;
9073
9074os2*)
9075 libname_spec='$name'
9076 shrext_cmds=".dll"
9077 need_lib_prefix=no
9078 library_names_spec='$libname${shared_ext} $libname.a'
9079 dynamic_linker='OS/2 ld.exe'
9080 shlibpath_var=LIBPATH
9081 ;;
9082
9083osf3* | osf4* | osf5*)
9084 version_type=osf
9085 need_lib_prefix=no
9086 need_version=no
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9092 ;;
9093
9094solaris*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=yes
9102 hardcode_into_libs=yes
9103 # ldd complains unless libraries are executable
9104 postinstall_cmds='chmod +x $lib'
9105 ;;
9106
9107sunos4*)
9108 version_type=sunos
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9113 if test "$with_gnu_ld" = yes; then
9114 need_lib_prefix=no
9115 fi
9116 need_version=yes
9117 ;;
9118
9119sysv4 | sysv4.3*)
9120 version_type=linux
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_vendor in
9125 sni)
9126 shlibpath_overrides_runpath=no
9127 need_lib_prefix=no
9128 export_dynamic_flag_spec='${wl}-Blargedynsym'
9129 runpath_var=LD_RUN_PATH
9130 ;;
9131 siemens)
9132 need_lib_prefix=no
9133 ;;
9134 motorola)
9135 need_lib_prefix=no
9136 need_version=no
9137 shlibpath_overrides_runpath=no
9138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9139 ;;
9140 esac
9141 ;;
9142
9143sysv4*MP*)
9144 if test -d /usr/nec ;then
9145 version_type=linux
9146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147 soname_spec='$libname${shared_ext}.$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 fi
9150 ;;
9151
9152sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153 version_type=freebsd-elf
9154 need_lib_prefix=no
9155 need_version=no
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 hardcode_into_libs=yes
9160 if test "$with_gnu_ld" = yes; then
9161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9162 shlibpath_overrides_runpath=no
9163 else
9164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165 shlibpath_overrides_runpath=yes
9166 case $host_os in
9167 sco3.2v5*)
9168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9169 ;;
9170 esac
9171 fi
9172 sys_lib_dlsearch_path_spec='/usr/lib'
9173 ;;
9174
9175uts4*)
9176 version_type=linux
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 ;;
9181
9182*)
9183 dynamic_linker=no
9184 ;;
9185esac
9186{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187echo "${ECHO_T}$dynamic_linker" >&6; }
9188test "$dynamic_linker" = no && can_build_shared=no
9189
9190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9191if test "$GCC" = yes; then
9192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9193fi
9194
9195
9196{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9197echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9198if test "${libltdl_cv_shlibext+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200else
9201
9202module=yes
9203eval libltdl_cv_shlibext=$shrext_cmds
9204
9205fi
9206{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9207echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9208if test -n "$libltdl_cv_shlibext"; then
9209
9210cat >>confdefs.h <<_ACEOF
9211#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9212_ACEOF
9213
9214fi
9215
9216
9217{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9218echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9219if test "${libltdl_cv_shlibpath_var+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221else
9222 libltdl_cv_shlibpath_var="$shlibpath_var"
9223fi
9224{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9225echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9226if test -n "$libltdl_cv_shlibpath_var"; then
9227
9228cat >>confdefs.h <<_ACEOF
9229#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9230_ACEOF
9231
9232fi
9233
9234
9235{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9236echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9237if test "${libltdl_cv_sys_search_path+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239else
9240 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9241fi
9242{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9243echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9244if test -n "$libltdl_cv_sys_search_path"; then
9245 sys_search_path=
9246 for dir in $libltdl_cv_sys_search_path; do
9247 if test -z "$sys_search_path"; then
9248 sys_search_path="$dir"
9249 else
9250 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9251 fi
9252 done
9253
9254cat >>confdefs.h <<_ACEOF
9255#define LTDL_SYSSEARCHPATH "$sys_search_path"
9256_ACEOF
9257
9258fi
9259
9260{ echo "$as_me:$LINENO: checking for objdir" >&5
9261echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9262if test "${libltdl_cv_objdir+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265 libltdl_cv_objdir="$objdir"
9266 if test -n "$objdir"; then
9267 :
9268 else
9269 rm -f .libs 2>/dev/null
9270 mkdir .libs 2>/dev/null
9271 if test -d .libs; then
9272 libltdl_cv_objdir=.libs
9273 else
9274 # MS-DOS does not allow filenames that begin with a dot.
9275 libltdl_cv_objdir=_libs
9276 fi
9277 rmdir .libs 2>/dev/null
9278 fi
9279
9280fi
9281{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9282echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9283
9284cat >>confdefs.h <<_ACEOF
9285#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9286_ACEOF
9287
9288
9289
9290
9291
9292
9293# Check for command to grab the raw symbol name followed by C symbol from nm.
9294{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9295echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9296if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299
9300# These are sane defaults that work on at least a few old systems.
9301# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9302
9303# Character class describing NM global symbol codes.
9304symcode='[BCDEGRST]'
9305
9306# Regexp to match symbols that can be accessed directly from C.
9307sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9308
9309# Transform an extracted symbol line into a proper C declaration
9310lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9311
9312# Transform an extracted symbol line into symbol name and symbol address
9313lt_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'"
9314
9315# Define system-specific variables.
9316case $host_os in
9317aix*)
9318 symcode='[BCDT]'
9319 ;;
9320cygwin* | mingw* | pw32*)
9321 symcode='[ABCDGISTW]'
9322 ;;
9323hpux*) # Its linker distinguishes data from code symbols
9324 if test "$host_cpu" = ia64; then
9325 symcode='[ABCDEGRST]'
9326 fi
9327 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9328 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'"
9329 ;;
9330linux*)
9331 if test "$host_cpu" = ia64; then
9332 symcode='[ABCDGIRSTW]'
9333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9334 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'"
9335 fi
9336 ;;
9337irix* | nonstopux*)
9338 symcode='[BCDEGRST]'
9339 ;;
9340osf*)
9341 symcode='[BCDEGQRST]'
9342 ;;
9343solaris*)
9344 symcode='[BDRT]'
9345 ;;
9346sco3.2v5*)
9347 symcode='[DT]'
9348 ;;
9349sysv4.2uw2*)
9350 symcode='[DT]'
9351 ;;
9352sysv5* | sco5v6* | unixware* | OpenUNIX*)
9353 symcode='[ABDT]'
9354 ;;
9355sysv4)
9356 symcode='[DFNSTU]'
9357 ;;
9358esac
9359
9360# Handle CRLF in mingw tool chain
9361opt_cr=
9362case $build_os in
9363mingw*)
9364 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9365 ;;
9366esac
9367
9368# If we're using GNU nm, then use its standard symbol codes.
9369case `$NM -V 2>&1` in
9370*GNU* | *'with BFD'*)
9371 symcode='[ABCDGIRSTW]' ;;
9372esac
9373
9374# Try without a prefix undercore, then with it.
9375for ac_symprfx in "" "_"; do
9376
9377 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9378 symxfrm="\\1 $ac_symprfx\\2 \\2"
9379
9380 # Write the raw and C identifiers.
9381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9382
9383 # Check to see that the pipe works correctly.
9384 pipe_works=no
9385
9386 rm -f conftest*
9387 cat > conftest.$ac_ext <<EOF
9388#ifdef __cplusplus
9389extern "C" {
9390#endif
9391char nm_test_var;
9392void nm_test_func(){}
9393#ifdef __cplusplus
9394}
9395#endif
9396int main(){nm_test_var='a';nm_test_func();return(0);}
9397EOF
9398
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400 (eval $ac_compile) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; then
9404 # Now try to grab the symbols.
9405 nlist=conftest.nm
9406 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && test -s "$nlist"; then
9411 # Try sorting and uniquifying the output.
9412 if sort "$nlist" | uniq > "$nlist"T; then
9413 mv -f "$nlist"T "$nlist"
9414 else
9415 rm -f "$nlist"T
9416 fi
9417
9418 # Make sure that we snagged all the symbols we need.
9419 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9420 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9421 cat <<EOF > conftest.$ac_ext
9422#ifdef __cplusplus
9423extern "C" {
9424#endif
9425
9426EOF
9427 # Now generate the symbol file.
9428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9429
9430 cat <<EOF >> conftest.$ac_ext
9431#if defined (__STDC__) && __STDC__
9432# define lt_ptr_t void *
9433#else
9434# define lt_ptr_t char *
9435# define const
9436#endif
9437
9438/* The mapping between symbol names and symbols. */
9439const struct {
9440 const char *name;
9441 lt_ptr_t address;
9442}
9443lt_preloaded_symbols[] =
9444{
9445EOF
9446 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9447 cat <<\EOF >> conftest.$ac_ext
9448 {0, (lt_ptr_t) 0}
9449};
9450
9451#ifdef __cplusplus
9452}
9453#endif
9454EOF
9455 # Now try linking the two files.
9456 mv conftest.$ac_objext conftstm.$ac_objext
9457 lt_save_LIBS="$LIBS"
9458 lt_save_CFLAGS="$CFLAGS"
9459 LIBS="conftstm.$ac_objext"
9460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9466 pipe_works=yes
9467 fi
9468 LIBS="$lt_save_LIBS"
9469 CFLAGS="$lt_save_CFLAGS"
9470 else
9471 echo "cannot find nm_test_func in $nlist" >&5
9472 fi
9473 else
9474 echo "cannot find nm_test_var in $nlist" >&5
9475 fi
9476 else
9477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9478 fi
9479 else
9480 echo "$progname: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9482 fi
9483 rm -f conftest* conftst*
9484
9485 # Do not use the global_symbol_pipe unless it works.
9486 if test "$pipe_works" = yes; then
9487 break
9488 else
9489 lt_cv_sys_global_symbol_pipe=
9490 fi
9491done
9492
9493fi
9494
9495if test -z "$lt_cv_sys_global_symbol_pipe"; then
9496 lt_cv_sys_global_symbol_to_cdecl=
9497fi
9498if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9499 { echo "$as_me:$LINENO: result: failed" >&5
9500echo "${ECHO_T}failed" >&6; }
9501else
9502 { echo "$as_me:$LINENO: result: ok" >&5
9503echo "${ECHO_T}ok" >&6; }
9504fi
9505
9506
9507{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9508echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9509if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9513 libltdl_cv_preloaded_symbols=yes
9514 else
9515 libltdl_cv_preloaded_symbols=no
9516 fi
9517
9518fi
9519{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9520echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9521if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9522
9523cat >>confdefs.h <<\_ACEOF
9524#define HAVE_PRELOADED_SYMBOLS 1
9525_ACEOF
9526
9527fi
9528
9529LIBADD_DL=
9530
9531ac_ext=c
9532ac_cpp='$CPP $CPPFLAGS'
9533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535ac_compiler_gnu=$ac_cv_c_compiler_gnu
9536
9537
9538{ echo "$as_me:$LINENO: checking for shl_load" >&5
9539echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9540if test "${ac_cv_func_shl_load+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 cat >conftest.$ac_ext <<_ACEOF
9544/* confdefs.h. */
9545_ACEOF
9546cat confdefs.h >>conftest.$ac_ext
9547cat >>conftest.$ac_ext <<_ACEOF
9548/* end confdefs.h. */
9549/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551#define shl_load innocuous_shl_load
9552
9553/* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char shl_load (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9557
9558#ifdef __STDC__
9559# include <limits.h>
9560#else
9561# include <assert.h>
9562#endif
9563
9564#undef shl_load
9565
9566/* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9569#ifdef __cplusplus
9570extern "C"
9571#endif
9572char shl_load ();
9573/* The GNU C library defines this for functions which it implements
9574 to always fail with ENOSYS. Some functions are actually named
9575 something starting with __ and the normal name is an alias. */
9576#if defined __stub_shl_load || defined __stub___shl_load
9577choke me
9578#endif
9579
9580int
9581main ()
9582{
9583return shl_load ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588rm -f conftest.$ac_objext conftest$ac_exeext
9589if { (ac_try="$ac_link"
9590case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593esac
9594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_link") 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9603 { (case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_try") 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9616esac
9617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_try") 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_func_shl_load=yes
9623else
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ac_cv_func_shl_load=no
9628fi
9629
9630rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632fi
9633{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9634echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9635if test $ac_cv_func_shl_load = yes; then
9636
9637cat >>confdefs.h <<\_ACEOF
9638#define HAVE_SHL_LOAD 1
9639_ACEOF
9640
9641else
9642 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9644if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 ac_check_lib_save_LIBS=$LIBS
9648LIBS="-ldld $LIBS"
9649cat >conftest.$ac_ext <<_ACEOF
9650/* confdefs.h. */
9651_ACEOF
9652cat confdefs.h >>conftest.$ac_ext
9653cat >>conftest.$ac_ext <<_ACEOF
9654/* end confdefs.h. */
9655
9656/* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659#ifdef __cplusplus
9660extern "C"
9661#endif
9662char shl_load ();
9663int
9664main ()
9665{
9666return shl_load ();
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671rm -f conftest.$ac_objext conftest$ac_exeext
9672if { (ac_try="$ac_link"
9673case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_dld_shl_load=yes
9706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_cv_lib_dld_shl_load=no
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
9717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9718echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9719if test $ac_cv_lib_dld_shl_load = yes; then
9720
9721cat >>confdefs.h <<\_ACEOF
9722#define HAVE_SHL_LOAD 1
9723_ACEOF
9724
9725 LIBADD_DL="$LIBADD_DL -ldld"
9726else
9727 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9728echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732 ac_check_lib_save_LIBS=$LIBS
9733LIBS="-ldl $LIBS"
9734cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740
9741/* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9744#ifdef __cplusplus
9745extern "C"
9746#endif
9747char dlopen ();
9748int
9749main ()
9750{
9751return dlopen ();
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (ac_try="$ac_link"
9758case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_lib_dl_dlopen=yes
9791else
9792 echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 ac_cv_lib_dl_dlopen=no
9796fi
9797
9798rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800LIBS=$ac_check_lib_save_LIBS
9801fi
9802{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9803echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9804if test $ac_cv_lib_dl_dlopen = yes; then
9805
9806cat >>confdefs.h <<\_ACEOF
9807#define HAVE_LIBDL 1
9808_ACEOF
9809
9810 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9811else
9812 cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h. */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h. */
9818#if HAVE_DLFCN_H
9819# include <dlfcn.h>
9820#endif
9821
9822int
9823main ()
9824{
9825dlopen(0, 0);
9826 ;
9827 return 0;
9828}
9829_ACEOF
9830rm -f conftest.$ac_objext conftest$ac_exeext
9831if { (ac_try="$ac_link"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864
9865cat >>confdefs.h <<\_ACEOF
9866#define HAVE_LIBDL 1
9867_ACEOF
9868 libltdl_cv_func_dlopen="yes"
9869else
9870 echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9874echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9875if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_check_lib_save_LIBS=$LIBS
9879LIBS="-lsvld $LIBS"
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886
9887/* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9890#ifdef __cplusplus
9891extern "C"
9892#endif
9893char dlopen ();
9894int
9895main ()
9896{
9897return dlopen ();
9898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext conftest$ac_exeext
9903if { (ac_try="$ac_link"
9904case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930esac
9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_svld_dlopen=yes
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_lib_svld_dlopen=no
9942fi
9943
9944rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
9948{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9949echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9950if test $ac_cv_lib_svld_dlopen = yes; then
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_LIBDL 1
9954_ACEOF
9955
9956 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9957else
9958 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9959echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9960if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 ac_check_lib_save_LIBS=$LIBS
9964LIBS="-ldld $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971
9972/* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9975#ifdef __cplusplus
9976extern "C"
9977#endif
9978char dld_link ();
9979int
9980main ()
9981{
9982return dld_link ();
9983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (ac_try="$ac_link"
9989case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_dld_dld_link=yes
10022else
10023 echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_lib_dld_dld_link=no
10027fi
10028
10029rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031LIBS=$ac_check_lib_save_LIBS
10032fi
10033{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10034echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10035if test $ac_cv_lib_dld_dld_link = yes; then
10036
10037cat >>confdefs.h <<\_ACEOF
10038#define HAVE_DLD 1
10039_ACEOF
10040
10041 LIBADD_DL="$LIBADD_DL -ldld"
10042else
10043 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10044echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10045if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047else
10048 cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h. */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h. */
10054/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056#define _dyld_func_lookup innocuous__dyld_func_lookup
10057
10058/* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char _dyld_func_lookup (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10062
10063#ifdef __STDC__
10064# include <limits.h>
10065#else
10066# include <assert.h>
10067#endif
10068
10069#undef _dyld_func_lookup
10070
10071/* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074#ifdef __cplusplus
10075extern "C"
10076#endif
10077char _dyld_func_lookup ();
10078/* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10082choke me
10083#endif
10084
10085int
10086main ()
10087{
10088return _dyld_func_lookup ();
10089 ;
10090 return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
10094if { (ac_try="$ac_link"
10095case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_link") 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121esac
10122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_try") 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_func__dyld_func_lookup=yes
10128else
10129 echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_cv_func__dyld_func_lookup=no
10133fi
10134
10135rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137fi
10138{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10139echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10140if test $ac_cv_func__dyld_func_lookup = yes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_DYLD 1
10144_ACEOF
10145
10146fi
10147
10148
10149fi
10150
10151
10152fi
10153
10154
10155fi
10156
10157rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159
10160fi
10161
10162
10163fi
10164
10165
10166fi
10167
10168
10169if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10170then
10171 lt_save_LIBS="$LIBS"
10172 LIBS="$LIBS $LIBADD_DL"
10173
10174for ac_func in dlerror
10175do
10176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181else
10182 cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190#define $ac_func innocuous_$ac_func
10191
10192/* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
10196
10197#ifdef __STDC__
10198# include <limits.h>
10199#else
10200# include <assert.h>
10201#endif
10202
10203#undef $ac_func
10204
10205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char $ac_func ();
10212/* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215#if defined __stub_$ac_func || defined __stub___$ac_func
10216choke me
10217#endif
10218
10219int
10220main ()
10221{
10222return $ac_func ();
10223 ;
10224 return 0;
10225}
10226_ACEOF
10227rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 eval "$as_ac_var=yes"
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 eval "$as_ac_var=no"
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271fi
10272ac_res=`eval echo '${'$as_ac_var'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274echo "${ECHO_T}$ac_res" >&6; }
10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283 LIBS="$lt_save_LIBS"
10284fi
10285ac_ext=c
10286ac_cpp='$CPP $CPPFLAGS'
10287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290
10291
10292
10293{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10294echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10295if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 ac_cv_sys_symbol_underscore=no
10299 cat > conftest.$ac_ext <<EOF
10300void nm_test_func(){}
10301int main(){nm_test_func;return 0;}
10302EOF
10303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10304 (eval $ac_compile) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; then
10308 # Now try to grab the symbols.
10309 ac_nlist=conftest.nm
10310 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10311 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && test -s "$ac_nlist"; then
10315 # See whether the symbols have a leading underscore.
10316 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10317 ac_cv_sys_symbol_underscore=yes
10318 else
10319 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10320 :
10321 else
10322 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10323 fi
10324 fi
10325 else
10326 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10327 fi
10328 else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.c >&5
10331 fi
10332 rm -rf conftest*
10333
10334fi
10335{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10336echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10337
10338
10339if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10340 if test x"$libltdl_cv_func_dlopen" = xyes ||
10341 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10342 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10343echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10344if test "${libltdl_cv_need_uscore+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347 libltdl_cv_need_uscore=unknown
10348 save_LIBS="$LIBS"
10349 LIBS="$LIBS $LIBADD_DL"
10350 if test "$cross_compiling" = yes; then :
10351 libltdl_cv_need_uscore=cross
10352else
10353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10354 lt_status=$lt_dlunknown
10355 cat > conftest.$ac_ext <<EOF
Tim Northover72062f52013-01-31 12:12:40 +000010356#line 10356 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010357#include "confdefs.h"
10358
10359#if HAVE_DLFCN_H
10360#include <dlfcn.h>
10361#endif
10362
10363#include <stdio.h>
10364
10365#ifdef RTLD_GLOBAL
10366# define LT_DLGLOBAL RTLD_GLOBAL
10367#else
10368# ifdef DL_GLOBAL
10369# define LT_DLGLOBAL DL_GLOBAL
10370# else
10371# define LT_DLGLOBAL 0
10372# endif
10373#endif
10374
10375/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10376 find out it does not work in some platform. */
10377#ifndef LT_DLLAZY_OR_NOW
10378# ifdef RTLD_LAZY
10379# define LT_DLLAZY_OR_NOW RTLD_LAZY
10380# else
10381# ifdef DL_LAZY
10382# define LT_DLLAZY_OR_NOW DL_LAZY
10383# else
10384# ifdef RTLD_NOW
10385# define LT_DLLAZY_OR_NOW RTLD_NOW
10386# else
10387# ifdef DL_NOW
10388# define LT_DLLAZY_OR_NOW DL_NOW
10389# else
10390# define LT_DLLAZY_OR_NOW 0
10391# endif
10392# endif
10393# endif
10394# endif
10395#endif
10396
10397#ifdef __cplusplus
10398extern "C" void exit (int);
10399#endif
10400
10401void fnord() { int i=42;}
10402int main ()
10403{
10404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10405 int status = $lt_dlunknown;
10406
10407 if (self)
10408 {
10409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10411 /* dlclose (self); */
10412 }
10413 else
10414 puts (dlerror ());
10415
10416 exit (status);
10417}
10418EOF
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10424 (./conftest; exit; ) >&5 2>/dev/null
10425 lt_status=$?
10426 case x$lt_status in
10427 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10428 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10429 x$lt_dlunknown|x*) ;;
10430 esac
10431 else :
10432 # compilation failed
10433
10434 fi
10435fi
10436rm -fr conftest*
10437
10438 LIBS="$save_LIBS"
10439
10440fi
10441{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10442echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10443 fi
10444fi
10445
10446if test x"$libltdl_cv_need_uscore" = xyes; then
10447
10448cat >>confdefs.h <<\_ACEOF
10449#define NEED_USCORE 1
10450_ACEOF
10451
10452fi
10453
10454
10455{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10456echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10457if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 # PORTME does your system automatically load deplibs for dlopen?
10461 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10462 # For now, we just catch OSes we know something about -- in the
10463 # future, we'll try test this programmatically.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10465 case "$host_os" in
10466 aix3*|aix4.1.*|aix4.2.*)
10467 # Unknown whether this is true for these versions of AIX, but
10468 # we want this `case' here to explicitly catch those versions.
10469 libltdl_cv_sys_dlopen_deplibs=unknown
10470 ;;
10471 aix[45]*)
10472 libltdl_cv_sys_dlopen_deplibs=yes
10473 ;;
10474 darwin*)
10475 # Assuming the user has installed a libdl from somewhere, this is true
10476 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
10479 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10480 # GNU and its variants, using gnu ld.so (Glibc)
10481 libltdl_cv_sys_dlopen_deplibs=yes
10482 ;;
10483 hpux10*|hpux11*)
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 interix*)
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
10489 irix[12345]*|irix6.[01]*)
10490 # Catch all versions of IRIX before 6.2, and indicate that we don't
10491 # know how it worked for any of those versions.
10492 libltdl_cv_sys_dlopen_deplibs=unknown
10493 ;;
10494 irix*)
10495 # The case above catches anything before 6.2, and it's known that
10496 # at 6.2 and later dlopen does load deplibs.
10497 libltdl_cv_sys_dlopen_deplibs=yes
10498 ;;
10499 netbsd*)
10500 libltdl_cv_sys_dlopen_deplibs=yes
10501 ;;
10502 openbsd*)
10503 libltdl_cv_sys_dlopen_deplibs=yes
10504 ;;
10505 osf[1234]*)
10506 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10507 # it did *not* use an RPATH in a shared library to find objects the
10508 # library depends on, so we explicitly say `no'.
10509 libltdl_cv_sys_dlopen_deplibs=no
10510 ;;
10511 osf5.0|osf5.0a|osf5.1)
10512 # dlopen *does* load deplibs and with the right loader patch applied
10513 # it even uses RPATH in a shared library to search for shared objects
10514 # that the library depends on, but there's no easy way to know if that
10515 # patch is installed. Since this is the case, all we can really
10516 # say is unknown -- it depends on the patch being installed. If
10517 # it is, this changes to `yes'. Without it, it would be `no'.
10518 libltdl_cv_sys_dlopen_deplibs=unknown
10519 ;;
10520 osf*)
10521 # the two cases above should catch all versions of osf <= 5.1. Read
10522 # the comments above for what we know about them.
10523 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10524 # is used to find them so we can finally say `yes'.
10525 libltdl_cv_sys_dlopen_deplibs=yes
10526 ;;
10527 solaris*)
10528 libltdl_cv_sys_dlopen_deplibs=yes
10529 ;;
10530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10531 libltdl_cv_sys_dlopen_deplibs=yes
10532 ;;
10533 esac
10534
10535fi
10536{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10537echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10538if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10539
10540cat >>confdefs.h <<\_ACEOF
10541#define LTDL_DLOPEN_DEPLIBS 1
10542_ACEOF
10543
10544fi
10545
10546
10547for ac_header in argz.h
10548do
10549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555fi
10556ac_res=`eval echo '${'$as_ac_Header'}'`
10557 { echo "$as_me:$LINENO: result: $ac_res" >&5
10558echo "${ECHO_T}$ac_res" >&6; }
10559else
10560 # Is the header compilable?
10561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10563cat >conftest.$ac_ext <<_ACEOF
10564/* confdefs.h. */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h. */
10569$ac_includes_default
10570#include <$ac_header>
10571_ACEOF
10572rm -f conftest.$ac_objext
10573if { (ac_try="$ac_compile"
10574case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600esac
10601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_header_compiler=yes
10607else
10608 echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_header_compiler=no
10612fi
10613
10614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616echo "${ECHO_T}$ac_header_compiler" >&6; }
10617
10618# Is the header present?
10619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10621cat >conftest.$ac_ext <<_ACEOF
10622/* confdefs.h. */
10623_ACEOF
10624cat confdefs.h >>conftest.$ac_ext
10625cat >>conftest.$ac_ext <<_ACEOF
10626/* end confdefs.h. */
10627#include <$ac_header>
10628_ACEOF
10629if { (ac_try="$ac_cpp conftest.$ac_ext"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10645 else
10646 ac_cpp_err=
10647 fi
10648else
10649 ac_cpp_err=yes
10650fi
10651if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10653else
10654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_header_preproc=no
10658fi
10659
10660rm -f conftest.err conftest.$ac_ext
10661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662echo "${ECHO_T}$ac_header_preproc" >&6; }
10663
10664# So? What about this header?
10665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666 yes:no: )
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10672 ;;
10673 no:yes:* )
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10686 ( cat <<\_ASBOX
10687## ------------------------------ ##
10688## Report this to bugs@yourdomain ##
10689## ------------------------------ ##
10690_ASBOX
10691 ) | sed "s/^/$as_me: WARNING: /" >&2
10692 ;;
10693esac
10694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698else
10699 eval "$as_ac_Header=\$ac_header_preproc"
10700fi
10701ac_res=`eval echo '${'$as_ac_Header'}'`
10702 { echo "$as_me:$LINENO: result: $ac_res" >&5
10703echo "${ECHO_T}$ac_res" >&6; }
10704
10705fi
10706if test `eval echo '${'$as_ac_Header'}'` = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10709_ACEOF
10710
10711fi
10712
10713done
10714
10715
10716{ echo "$as_me:$LINENO: checking for error_t" >&5
10717echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10718if test "${ac_cv_type_error_t+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720else
10721 cat >conftest.$ac_ext <<_ACEOF
10722/* confdefs.h. */
10723_ACEOF
10724cat confdefs.h >>conftest.$ac_ext
10725cat >>conftest.$ac_ext <<_ACEOF
10726/* end confdefs.h. */
10727#if HAVE_ARGZ_H
10728# include <argz.h>
10729#endif
10730
10731typedef error_t ac__type_new_;
10732int
10733main ()
10734{
10735if ((ac__type_new_ *) 0)
10736 return 0;
10737if (sizeof (ac__type_new_))
10738 return 0;
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743rm -f conftest.$ac_objext
10744if { (ac_try="$ac_compile"
10745case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771esac
10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_try") 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_type_error_t=yes
10778else
10779 echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782 ac_cv_type_error_t=no
10783fi
10784
10785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786fi
10787{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10788echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10789if test $ac_cv_type_error_t = yes; then
10790
10791cat >>confdefs.h <<_ACEOF
10792#define HAVE_ERROR_T 1
10793_ACEOF
10794
10795
10796else
10797
10798cat >>confdefs.h <<\_ACEOF
10799#define error_t int
10800_ACEOF
10801
10802fi
10803
10804
10805
10806
10807
10808
10809
10810for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10811do
10812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10813{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10815if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817else
10818 cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10826#define $ac_func innocuous_$ac_func
10827
10828/* System header to define __stub macros and hopefully few prototypes,
10829 which can conflict with char $ac_func (); below.
10830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831 <limits.h> exists even on freestanding compilers. */
10832
10833#ifdef __STDC__
10834# include <limits.h>
10835#else
10836# include <assert.h>
10837#endif
10838
10839#undef $ac_func
10840
10841/* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10844#ifdef __cplusplus
10845extern "C"
10846#endif
10847char $ac_func ();
10848/* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851#if defined __stub_$ac_func || defined __stub___$ac_func
10852choke me
10853#endif
10854
10855int
10856main ()
10857{
10858return $ac_func ();
10859 ;
10860 return 0;
10861}
10862_ACEOF
10863rm -f conftest.$ac_objext conftest$ac_exeext
10864if { (ac_try="$ac_link"
10865case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_try") 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 eval "$as_ac_var=yes"
10898else
10899 echo "$as_me: failed program was:" >&5
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 eval "$as_ac_var=no"
10903fi
10904
10905rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907fi
10908ac_res=`eval echo '${'$as_ac_var'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910echo "${ECHO_T}$ac_res" >&6; }
10911if test `eval echo '${'$as_ac_var'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10914_ACEOF
10915
10916fi
10917done
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10947 stdio.h unistd.h
10948do
10949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955fi
10956ac_res=`eval echo '${'$as_ac_Header'}'`
10957 { echo "$as_me:$LINENO: result: $ac_res" >&5
10958echo "${ECHO_T}$ac_res" >&6; }
10959else
10960 # Is the header compilable?
10961{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10962echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10963cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
10969$ac_includes_default
10970#include <$ac_header>
10971_ACEOF
10972rm -f conftest.$ac_objext
10973if { (ac_try="$ac_compile"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest.$ac_objext'
10997 { (case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000esac
11001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_try") 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_header_compiler=yes
11007else
11008 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_header_compiler=no
11012fi
11013
11014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016echo "${ECHO_T}$ac_header_compiler" >&6; }
11017
11018# Is the header present?
11019{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11021cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h. */
11027#include <$ac_header>
11028_ACEOF
11029if { (ac_try="$ac_cpp conftest.$ac_ext"
11030case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } >/dev/null; then
11042 if test -s conftest.err; then
11043 ac_cpp_err=$ac_c_preproc_warn_flag
11044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11045 else
11046 ac_cpp_err=
11047 fi
11048else
11049 ac_cpp_err=yes
11050fi
11051if test -z "$ac_cpp_err"; then
11052 ac_header_preproc=yes
11053else
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 ac_header_preproc=no
11058fi
11059
11060rm -f conftest.err conftest.$ac_ext
11061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11062echo "${ECHO_T}$ac_header_preproc" >&6; }
11063
11064# So? What about this header?
11065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11066 yes:no: )
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11071 ac_header_preproc=yes
11072 ;;
11073 no:yes:* )
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11086 ( cat <<\_ASBOX
11087## ------------------------------ ##
11088## Report this to bugs@yourdomain ##
11089## ------------------------------ ##
11090_ASBOX
11091 ) | sed "s/^/$as_me: WARNING: /" >&2
11092 ;;
11093esac
11094{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 eval "$as_ac_Header=\$ac_header_preproc"
11100fi
11101ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103echo "${ECHO_T}$ac_res" >&6; }
11104
11105fi
11106if test `eval echo '${'$as_ac_Header'}'` = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109_ACEOF
11110
11111fi
11112
11113done
11114
11115
11116
11117
11118
11119for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11120do
11121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127fi
11128ac_res=`eval echo '${'$as_ac_Header'}'`
11129 { echo "$as_me:$LINENO: result: $ac_res" >&5
11130echo "${ECHO_T}$ac_res" >&6; }
11131else
11132 # Is the header compilable?
11133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11135cat >conftest.$ac_ext <<_ACEOF
11136/* confdefs.h. */
11137_ACEOF
11138cat confdefs.h >>conftest.$ac_ext
11139cat >>conftest.$ac_ext <<_ACEOF
11140/* end confdefs.h. */
11141$ac_includes_default
11142#include <$ac_header>
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (ac_try="$ac_compile"
11146case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_compile") 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172esac
11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_try") 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_header_compiler=no
11184fi
11185
11186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188echo "${ECHO_T}$ac_header_compiler" >&6; }
11189
11190# Is the header present?
11191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11193cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199#include <$ac_header>
11200_ACEOF
11201if { (ac_try="$ac_cpp conftest.$ac_ext"
11202case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205esac
11206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } >/dev/null; then
11214 if test -s conftest.err; then
11215 ac_cpp_err=$ac_c_preproc_warn_flag
11216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11217 else
11218 ac_cpp_err=
11219 fi
11220else
11221 ac_cpp_err=yes
11222fi
11223if test -z "$ac_cpp_err"; then
11224 ac_header_preproc=yes
11225else
11226 echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 ac_header_preproc=no
11230fi
11231
11232rm -f conftest.err conftest.$ac_ext
11233{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11234echo "${ECHO_T}$ac_header_preproc" >&6; }
11235
11236# So? What about this header?
11237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11238 yes:no: )
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11243 ac_header_preproc=yes
11244 ;;
11245 no:yes:* )
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11258 ( cat <<\_ASBOX
11259## ------------------------------ ##
11260## Report this to bugs@yourdomain ##
11261## ------------------------------ ##
11262_ASBOX
11263 ) | sed "s/^/$as_me: WARNING: /" >&2
11264 ;;
11265esac
11266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 eval "$as_ac_Header=\$ac_header_preproc"
11272fi
11273ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275echo "${ECHO_T}$ac_res" >&6; }
11276
11277fi
11278if test `eval echo '${'$as_ac_Header'}'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281_ACEOF
11282
11283fi
11284
11285done
11286
11287
11288
11289for ac_header in string.h strings.h
11290do
11291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297fi
11298ac_res=`eval echo '${'$as_ac_Header'}'`
11299 { echo "$as_me:$LINENO: result: $ac_res" >&5
11300echo "${ECHO_T}$ac_res" >&6; }
11301else
11302 # Is the header compilable?
11303{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11305cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311$ac_includes_default
11312#include <$ac_header>
11313_ACEOF
11314rm -f conftest.$ac_objext
11315if { (ac_try="$ac_compile"
11316case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_compile") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_header_compiler=yes
11349else
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 ac_header_compiler=no
11354fi
11355
11356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358echo "${ECHO_T}$ac_header_compiler" >&6; }
11359
11360# Is the header present?
11361{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11363cat >conftest.$ac_ext <<_ACEOF
11364/* confdefs.h. */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h. */
11369#include <$ac_header>
11370_ACEOF
11371if { (ac_try="$ac_cpp conftest.$ac_ext"
11372case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } >/dev/null; then
11384 if test -s conftest.err; then
11385 ac_cpp_err=$ac_c_preproc_warn_flag
11386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11387 else
11388 ac_cpp_err=
11389 fi
11390else
11391 ac_cpp_err=yes
11392fi
11393if test -z "$ac_cpp_err"; then
11394 ac_header_preproc=yes
11395else
11396 echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_header_preproc=no
11400fi
11401
11402rm -f conftest.err conftest.$ac_ext
11403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404echo "${ECHO_T}$ac_header_preproc" >&6; }
11405
11406# So? What about this header?
11407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11408 yes:no: )
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11414 ;;
11415 no:yes:* )
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11428 ( cat <<\_ASBOX
11429## ------------------------------ ##
11430## Report this to bugs@yourdomain ##
11431## ------------------------------ ##
11432_ASBOX
11433 ) | sed "s/^/$as_me: WARNING: /" >&2
11434 ;;
11435esac
11436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 eval "$as_ac_Header=\$ac_header_preproc"
11442fi
11443ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445echo "${ECHO_T}$ac_res" >&6; }
11446
11447fi
11448if test `eval echo '${'$as_ac_Header'}'` = yes; then
11449 cat >>confdefs.h <<_ACEOF
11450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451_ACEOF
11452 break
11453fi
11454
11455done
11456
11457
11458
11459
11460for ac_func in strchr index
11461do
11462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11476#define $ac_func innocuous_$ac_func
11477
11478/* System header to define __stub macros and hopefully few prototypes,
11479 which can conflict with char $ac_func (); below.
11480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11481 <limits.h> exists even on freestanding compilers. */
11482
11483#ifdef __STDC__
11484# include <limits.h>
11485#else
11486# include <assert.h>
11487#endif
11488
11489#undef $ac_func
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char $ac_func ();
11498/* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501#if defined __stub_$ac_func || defined __stub___$ac_func
11502choke me
11503#endif
11504
11505int
11506main ()
11507{
11508return $ac_func ();
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext conftest$ac_exeext
11514if { (ac_try="$ac_link"
11515case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_try") 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 eval "$as_ac_var=yes"
11548else
11549 echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 eval "$as_ac_var=no"
11553fi
11554
11555rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557fi
11558ac_res=`eval echo '${'$as_ac_var'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560echo "${ECHO_T}$ac_res" >&6; }
11561if test `eval echo '${'$as_ac_var'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11564_ACEOF
11565 break
11566fi
11567done
11568
11569
11570
11571for ac_func in strrchr rindex
11572do
11573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587#define $ac_func innocuous_$ac_func
11588
11589/* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11593
11594#ifdef __STDC__
11595# include <limits.h>
11596#else
11597# include <assert.h>
11598#endif
11599
11600#undef $ac_func
11601
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char $ac_func ();
11609/* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612#if defined __stub_$ac_func || defined __stub___$ac_func
11613choke me
11614#endif
11615
11616int
11617main ()
11618{
11619return $ac_func ();
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 eval "$as_ac_var=no"
11664fi
11665
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668fi
11669ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671echo "${ECHO_T}$ac_res" >&6; }
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675_ACEOF
11676 break
11677fi
11678done
11679
11680
11681
11682for ac_func in memcpy bcopy
11683do
11684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
11713/* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723#if defined __stub_$ac_func || defined __stub___$ac_func
11724choke me
11725#endif
11726
11727int
11728main ()
11729{
11730return $ac_func ();
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 eval "$as_ac_var=no"
11775fi
11776
11777rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779fi
11780ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
11783if test `eval echo '${'$as_ac_var'}'` = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786_ACEOF
11787 break
11788fi
11789done
11790
11791
11792
11793for ac_func in memmove strcmp
11794do
11795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809#define $ac_func innocuous_$ac_func
11810
11811/* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11815
11816#ifdef __STDC__
11817# include <limits.h>
11818#else
11819# include <assert.h>
11820#endif
11821
11822#undef $ac_func
11823
11824/* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827#ifdef __cplusplus
11828extern "C"
11829#endif
11830char $ac_func ();
11831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834#if defined __stub_$ac_func || defined __stub___$ac_func
11835choke me
11836#endif
11837
11838int
11839main ()
11840{
11841return $ac_func ();
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
11847if { (ac_try="$ac_link"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 eval "$as_ac_var=no"
11886fi
11887
11888rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890fi
11891ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893echo "${ECHO_T}$ac_res" >&6; }
11894if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897_ACEOF
11898
11899fi
11900done
11901
11902
11903
11904
11905for ac_func in closedir opendir readdir
11906do
11907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11921#define $ac_func innocuous_$ac_func
11922
11923/* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below.
11925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926 <limits.h> exists even on freestanding compilers. */
11927
11928#ifdef __STDC__
11929# include <limits.h>
11930#else
11931# include <assert.h>
11932#endif
11933
11934#undef $ac_func
11935
11936/* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939#ifdef __cplusplus
11940extern "C"
11941#endif
11942char $ac_func ();
11943/* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946#if defined __stub_$ac_func || defined __stub___$ac_func
11947choke me
11948#endif
11949
11950int
11951main ()
11952{
11953return $ac_func ();
11954 ;
11955 return 0;
11956}
11957_ACEOF
11958rm -f conftest.$ac_objext conftest$ac_exeext
11959if { (ac_try="$ac_link"
11960case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; } &&
11982 { ac_try='test -s conftest$ac_exeext'
11983 { (case "(($ac_try" in
11984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985 *) ac_try_echo=$ac_try;;
11986esac
11987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988 (eval "$ac_try") 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 eval "$as_ac_var=yes"
11993else
11994 echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 eval "$as_ac_var=no"
11998fi
11999
12000rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12002fi
12003ac_res=`eval echo '${'$as_ac_var'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005echo "${ECHO_T}$ac_res" >&6; }
12006if test `eval echo '${'$as_ac_var'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009_ACEOF
12010
12011fi
12012done
12013
12014
12015
12016{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12017echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12018
12019ICC=no
12020IXX=no
12021case $CC in
12022 icc*|icpc*)
12023 ICC=yes
12024 IXX=yes
12025 ;;
12026 *)
12027 ;;
12028esac
12029
12030if test "$GCC" != "yes" && test "$ICC" != "yes"
12031then
12032 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12033echo "$as_me: error: gcc|icc required but not found" >&2;}
12034 { (exit 1); exit 1; }; }
12035fi
12036
12037if test "$GXX" != "yes" && test "$IXX" != "yes"
12038then
12039 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12040echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12041 { (exit 1); exit 1; }; }
12042fi
12043
12044if test "$GCC" = "yes"
12045then
12046 cat >conftest.$ac_ext <<_ACEOF
12047#if !defined(__GNUC__) || __GNUC__ < 3
12048#error Unsupported GCC version
12049#endif
12050
12051_ACEOF
12052rm -f conftest.$ac_objext
12053if { (ac_try="$ac_compile"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 :
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12092echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12093 { (exit 1); exit 1; }; }
12094fi
12095
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097fi
12098
12099if test -z "$llvm_cv_gnu_make_command"
12100then
12101 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12102echo "$as_me: error: GNU Make required but not found" >&2;}
12103 { (exit 1); exit 1; }; }
12104fi
12105
12106{ echo "$as_me:$LINENO: result: ok" >&5
12107echo "${ECHO_T}ok" >&6; }
12108
12109{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12110echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012111NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012112
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012113NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012114
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012115COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12116
12117{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12118echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012119
12120
12121
12122{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12123echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12124if test "${ac_cv_lib_m_sin+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127 ac_check_lib_save_LIBS=$LIBS
12128LIBS="-lm $LIBS"
12129cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135
12136/* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142char sin ();
12143int
12144main ()
12145{
12146return sin ();
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext conftest$ac_exeext
12152if { (ac_try="$ac_link"
12153case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156esac
12157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest$ac_exeext'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_lib_m_sin=yes
12186else
12187 echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_cv_lib_m_sin=no
12191fi
12192
12193rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12198echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12199if test $ac_cv_lib_m_sin = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201#define HAVE_LIBM 1
12202_ACEOF
12203
12204 LIBS="-lm $LIBS"
12205
12206fi
12207
12208if test "$llvm_cv_os_type" = "MingW" ; then
12209
12210{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12211echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12212if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215 ac_check_lib_save_LIBS=$LIBS
12216LIBS="-limagehlp $LIBS"
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223
12224
12225int
12226main ()
12227{
12228return main ();
12229 ;
12230 return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext conftest$ac_exeext
12234if { (ac_try="$ac_link"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_cv_lib_imagehlp_main=yes
12268else
12269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 ac_cv_lib_imagehlp_main=no
12273fi
12274
12275rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277LIBS=$ac_check_lib_save_LIBS
12278fi
12279{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12280echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12281if test $ac_cv_lib_imagehlp_main = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283#define HAVE_LIBIMAGEHLP 1
12284_ACEOF
12285
12286 LIBS="-limagehlp $LIBS"
12287
12288fi
12289
12290
12291{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12292echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12293if test "${ac_cv_lib_psapi_main+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 ac_check_lib_save_LIBS=$LIBS
12297LIBS="-lpsapi $LIBS"
12298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
12303/* end confdefs.h. */
12304
12305
12306int
12307main ()
12308{
12309return main ();
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_lib_psapi_main=yes
12349else
12350 echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_cv_lib_psapi_main=no
12354fi
12355
12356rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358LIBS=$ac_check_lib_save_LIBS
12359fi
12360{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12361echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12362if test $ac_cv_lib_psapi_main = yes; then
12363 cat >>confdefs.h <<_ACEOF
12364#define HAVE_LIBPSAPI 1
12365_ACEOF
12366
12367 LIBS="-lpsapi $LIBS"
12368
12369fi
12370
12371fi
12372
12373{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12374echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12375if test "${ac_cv_search_dlopen+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 ac_func_search_save_LIBS=$LIBS
12379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
12385
12386/* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389#ifdef __cplusplus
12390extern "C"
12391#endif
12392char dlopen ();
12393int
12394main ()
12395{
12396return dlopen ();
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401for ac_lib in '' dl; do
12402 if test -z "$ac_lib"; then
12403 ac_res="none required"
12404 else
12405 ac_res=-l$ac_lib
12406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12407 fi
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409if { (ac_try="$ac_link"
12410case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_link") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436esac
12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_search_dlopen=$ac_res
12443else
12444 echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447
12448fi
12449
12450rm -f core conftest.err conftest.$ac_objext \
12451 conftest$ac_exeext
12452 if test "${ac_cv_search_dlopen+set}" = set; then
12453 break
12454fi
12455done
12456if test "${ac_cv_search_dlopen+set}" = set; then
12457 :
12458else
12459 ac_cv_search_dlopen=no
12460fi
12461rm conftest.$ac_ext
12462LIBS=$ac_func_search_save_LIBS
12463fi
12464{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12465echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12466ac_res=$ac_cv_search_dlopen
12467if test "$ac_res" != no; then
12468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12469
12470cat >>confdefs.h <<\_ACEOF
12471#define HAVE_DLOPEN 1
12472_ACEOF
12473
12474else
12475 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12476echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12477fi
12478
12479
12480if test "$llvm_cv_enable_libffi" = "yes" ; then
12481 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12482echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12483if test "${ac_cv_search_ffi_call+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485else
12486 ac_func_search_save_LIBS=$LIBS
12487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493
12494/* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12497#ifdef __cplusplus
12498extern "C"
12499#endif
12500char ffi_call ();
12501int
12502main ()
12503{
12504return ffi_call ();
12505 ;
12506 return 0;
12507}
12508_ACEOF
12509for ac_lib in '' ffi; do
12510 if test -z "$ac_lib"; then
12511 ac_res="none required"
12512 else
12513 ac_res=-l$ac_lib
12514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12515 fi
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517if { (ac_try="$ac_link"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_search_ffi_call=$ac_res
12551else
12552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
12556fi
12557
12558rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext
12560 if test "${ac_cv_search_ffi_call+set}" = set; then
12561 break
12562fi
12563done
12564if test "${ac_cv_search_ffi_call+set}" = set; then
12565 :
12566else
12567 ac_cv_search_ffi_call=no
12568fi
12569rm conftest.$ac_ext
12570LIBS=$ac_func_search_save_LIBS
12571fi
12572{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12573echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12574ac_res=$ac_cv_search_ffi_call
12575if test "$ac_res" != no; then
12576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12577
12578cat >>confdefs.h <<\_ACEOF
12579#define HAVE_FFI_CALL 1
12580_ACEOF
12581
12582else
12583 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12584echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12585 { (exit 1); exit 1; }; }
12586fi
12587
12588fi
12589
12590{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12591echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12592if test "${ac_cv_search_mallinfo+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 ac_func_search_save_LIBS=$LIBS
12596cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603/* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609char mallinfo ();
12610int
12611main ()
12612{
12613return mallinfo ();
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618for ac_lib in '' malloc; do
12619 if test -z "$ac_lib"; then
12620 ac_res="none required"
12621 else
12622 ac_res=-l$ac_lib
12623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12624 fi
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (ac_try="$ac_link"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_search_mallinfo=$ac_res
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
12665fi
12666
12667rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext
12669 if test "${ac_cv_search_mallinfo+set}" = set; then
12670 break
12671fi
12672done
12673if test "${ac_cv_search_mallinfo+set}" = set; then
12674 :
12675else
12676 ac_cv_search_mallinfo=no
12677fi
12678rm conftest.$ac_ext
12679LIBS=$ac_func_search_save_LIBS
12680fi
12681{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12682echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12683ac_res=$ac_cv_search_mallinfo
12684if test "$ac_res" != no; then
12685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687cat >>confdefs.h <<\_ACEOF
12688#define HAVE_MALLINFO 1
12689_ACEOF
12690
12691fi
12692
12693
12694if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12695
12696{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12697echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12698if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701 ac_check_lib_save_LIBS=$LIBS
12702LIBS="-lpthread $LIBS"
12703cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char pthread_mutex_init ();
12717int
12718main ()
12719{
12720return pthread_mutex_init ();
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725rm -f conftest.$ac_objext conftest$ac_exeext
12726if { (ac_try="$ac_link"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_lib_pthread_pthread_mutex_init=yes
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 ac_cv_lib_pthread_pthread_mutex_init=no
12765fi
12766
12767rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769LIBS=$ac_check_lib_save_LIBS
12770fi
12771{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12772echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12773if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775#define HAVE_LIBPTHREAD 1
12776_ACEOF
12777
12778 LIBS="-lpthread $LIBS"
12779
12780fi
12781
12782 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12783echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12784if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 ac_func_search_save_LIBS=$LIBS
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794
12795/* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12798#ifdef __cplusplus
12799extern "C"
12800#endif
12801char pthread_mutex_lock ();
12802int
12803main ()
12804{
12805return pthread_mutex_lock ();
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810for ac_lib in '' pthread; do
12811 if test -z "$ac_lib"; then
12812 ac_res="none required"
12813 else
12814 ac_res=-l$ac_lib
12815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12816 fi
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818if { (ac_try="$ac_link"
12819case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822esac
12823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_try") 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest$ac_exeext'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_cv_search_pthread_mutex_lock=$ac_res
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856
12857fi
12858
12859rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext
12861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862 break
12863fi
12864done
12865if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866 :
12867else
12868 ac_cv_search_pthread_mutex_lock=no
12869fi
12870rm conftest.$ac_ext
12871LIBS=$ac_func_search_save_LIBS
12872fi
12873{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12874echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12875ac_res=$ac_cv_search_pthread_mutex_lock
12876if test "$ac_res" != no; then
12877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878
12879cat >>confdefs.h <<\_ACEOF
12880#define HAVE_PTHREAD_MUTEX_LOCK 1
12881_ACEOF
12882
12883fi
12884
12885 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12886echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12887if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890 ac_func_search_save_LIBS=$LIBS
12891cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897
12898/* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char pthread_rwlock_init ();
12905int
12906main ()
12907{
12908return pthread_rwlock_init ();
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913for ac_lib in '' pthread; do
12914 if test -z "$ac_lib"; then
12915 ac_res="none required"
12916 else
12917 ac_res=-l$ac_lib
12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12919 fi
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921if { (ac_try="$ac_link"
12922case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_link") 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_search_pthread_rwlock_init=$ac_res
12955else
12956 echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960fi
12961
12962rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext
12964 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965 break
12966fi
12967done
12968if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969 :
12970else
12971 ac_cv_search_pthread_rwlock_init=no
12972fi
12973rm conftest.$ac_ext
12974LIBS=$ac_func_search_save_LIBS
12975fi
12976{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12977echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12978ac_res=$ac_cv_search_pthread_rwlock_init
12979if test "$ac_res" != no; then
12980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define HAVE_PTHREAD_RWLOCK_INIT 1
12984_ACEOF
12985
12986fi
12987
12988 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12989echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12990if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993 ac_func_search_save_LIBS=$LIBS
12994cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000
13001/* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004#ifdef __cplusplus
13005extern "C"
13006#endif
13007char pthread_getspecific ();
13008int
13009main ()
13010{
13011return pthread_getspecific ();
13012 ;
13013 return 0;
13014}
13015_ACEOF
13016for ac_lib in '' pthread; do
13017 if test -z "$ac_lib"; then
13018 ac_res="none required"
13019 else
13020 ac_res=-l$ac_lib
13021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13022 fi
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024if { (ac_try="$ac_link"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_search_pthread_getspecific=$ac_res
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062
13063fi
13064
13065rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext
13067 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068 break
13069fi
13070done
13071if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072 :
13073else
13074 ac_cv_search_pthread_getspecific=no
13075fi
13076rm conftest.$ac_ext
13077LIBS=$ac_func_search_save_LIBS
13078fi
13079{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13080echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13081ac_res=$ac_cv_search_pthread_getspecific
13082if test "$ac_res" != no; then
13083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084
13085cat >>confdefs.h <<\_ACEOF
13086#define HAVE_PTHREAD_GETSPECIFIC 1
13087_ACEOF
13088
13089fi
13090
13091fi
13092
13093
13094# Check whether --with-udis86 was given.
13095if test "${with_udis86+set}" = set; then
13096 withval=$with_udis86;
13097 USE_UDIS86=1
13098
13099 case "$withval" in
13100 /usr/lib|yes) ;;
13101 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13102 esac
13103
13104{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13105echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13106if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109 ac_check_lib_save_LIBS=$LIBS
13110LIBS="-ludis86 $LIBS"
13111cat >conftest.$ac_ext <<_ACEOF
13112/* confdefs.h. */
13113_ACEOF
13114cat confdefs.h >>conftest.$ac_ext
13115cat >>conftest.$ac_ext <<_ACEOF
13116/* end confdefs.h. */
13117
13118/* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13121#ifdef __cplusplus
13122extern "C"
13123#endif
13124char ud_init ();
13125int
13126main ()
13127{
13128return ud_init ();
13129 ;
13130 return 0;
13131}
13132_ACEOF
13133rm -f conftest.$ac_objext conftest$ac_exeext
13134if { (ac_try="$ac_link"
13135case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_link") 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest$ac_exeext'
13158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161esac
13162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_lib_udis86_ud_init=yes
13168else
13169 echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 ac_cv_lib_udis86_ud_init=no
13173fi
13174
13175rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177LIBS=$ac_check_lib_save_LIBS
13178fi
13179{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13180echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13181if test $ac_cv_lib_udis86_ud_init = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183#define HAVE_LIBUDIS86 1
13184_ACEOF
13185
13186 LIBS="-ludis86 $LIBS"
13187
13188else
13189
13190 echo "Error! You need to have libudis86 around."
13191 exit -1
13192
13193fi
13194
13195
13196else
13197 USE_UDIS86=0
13198
13199fi
13200
13201
13202cat >>confdefs.h <<_ACEOF
13203#define USE_UDIS86 $USE_UDIS86
13204_ACEOF
13205
13206
13207
13208# Check whether --with-oprofile was given.
13209if test "${with_oprofile+set}" = set; then
13210 withval=$with_oprofile;
13211 USE_OPROFILE=1
13212
13213 case "$withval" in
13214 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13215 no) llvm_cv_oppath=
13216 USE_OPROFILE=0
13217 ;;
13218 *) llvm_cv_oppath="${withval}/lib/oprofile"
13219 CPPFLAGS="-I${withval}/include";;
13220 esac
13221 if test -n "$llvm_cv_oppath" ; then
13222 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13223 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13224echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13225if test "${ac_cv_search_bfd_init+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228 ac_func_search_save_LIBS=$LIBS
13229cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235
13236/* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13239#ifdef __cplusplus
13240extern "C"
13241#endif
13242char bfd_init ();
13243int
13244main ()
13245{
13246return bfd_init ();
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251for ac_lib in '' bfd; do
13252 if test -z "$ac_lib"; then
13253 ac_res="none required"
13254 else
13255 ac_res=-l$ac_lib
13256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13257 fi
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259if { (ac_try="$ac_link"
13260case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13273 { (case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276esac
13277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_try") 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_search_bfd_init=$ac_res
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297
13298fi
13299
13300rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext
13302 if test "${ac_cv_search_bfd_init+set}" = set; then
13303 break
13304fi
13305done
13306if test "${ac_cv_search_bfd_init+set}" = set; then
13307 :
13308else
13309 ac_cv_search_bfd_init=no
13310fi
13311rm conftest.$ac_ext
13312LIBS=$ac_func_search_save_LIBS
13313fi
13314{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13315echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13316ac_res=$ac_cv_search_bfd_init
13317if test "$ac_res" != no; then
13318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13319
13320fi
13321
13322 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13323echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13324if test "${ac_cv_search_op_open_agent+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 ac_func_search_save_LIBS=$LIBS
13328cat >conftest.$ac_ext <<_ACEOF
13329/* confdefs.h. */
13330_ACEOF
13331cat confdefs.h >>conftest.$ac_ext
13332cat >>conftest.$ac_ext <<_ACEOF
13333/* end confdefs.h. */
13334
13335/* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13338#ifdef __cplusplus
13339extern "C"
13340#endif
13341char op_open_agent ();
13342int
13343main ()
13344{
13345return op_open_agent ();
13346 ;
13347 return 0;
13348}
13349_ACEOF
13350for ac_lib in '' opagent; do
13351 if test -z "$ac_lib"; then
13352 ac_res="none required"
13353 else
13354 ac_res=-l$ac_lib
13355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13356 fi
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358if { (ac_try="$ac_link"
13359case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375esac
13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_search_op_open_agent=$ac_res
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396
13397fi
13398
13399rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext
13401 if test "${ac_cv_search_op_open_agent+set}" = set; then
13402 break
13403fi
13404done
13405if test "${ac_cv_search_op_open_agent+set}" = set; then
13406 :
13407else
13408 ac_cv_search_op_open_agent=no
13409fi
13410rm conftest.$ac_ext
13411LIBS=$ac_func_search_save_LIBS
13412fi
13413{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13414echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13415ac_res=$ac_cv_search_op_open_agent
13416if test "$ac_res" != no; then
13417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13418
13419else
13420
13421 echo "Error! You need to have libopagent around."
13422 exit -1
13423
13424fi
13425
13426 if test "${ac_cv_header_opagent_h+set}" = set; then
13427 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13428echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13429if test "${ac_cv_header_opagent_h+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431fi
13432{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13433echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13434else
13435 # Is the header compilable?
13436{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13437echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13438cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444$ac_includes_default
13445#include <opagent.h>
13446_ACEOF
13447rm -f conftest.$ac_objext
13448if { (ac_try="$ac_compile"
13449case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_compile") 2>conftest.er1
13455 ac_status=$?
13456 grep -v '^ *+' conftest.er1 >conftest.err
13457 rm -f conftest.er1
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_header_compiler=yes
13482else
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_header_compiler=no
13487fi
13488
13489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491echo "${ECHO_T}$ac_header_compiler" >&6; }
13492
13493# Is the header present?
13494{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13495echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13496cat >conftest.$ac_ext <<_ACEOF
13497/* confdefs.h. */
13498_ACEOF
13499cat confdefs.h >>conftest.$ac_ext
13500cat >>conftest.$ac_ext <<_ACEOF
13501/* end confdefs.h. */
13502#include <opagent.h>
13503_ACEOF
13504if { (ac_try="$ac_cpp conftest.$ac_ext"
13505case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } >/dev/null; then
13517 if test -s conftest.err; then
13518 ac_cpp_err=$ac_c_preproc_warn_flag
13519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13520 else
13521 ac_cpp_err=
13522 fi
13523else
13524 ac_cpp_err=yes
13525fi
13526if test -z "$ac_cpp_err"; then
13527 ac_header_preproc=yes
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_header_preproc=no
13533fi
13534
13535rm -f conftest.err conftest.$ac_ext
13536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13537echo "${ECHO_T}$ac_header_preproc" >&6; }
13538
13539# So? What about this header?
13540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13541 yes:no: )
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13543echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13545echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13546 ac_header_preproc=yes
13547 ;;
13548 no:yes:* )
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13550echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13552echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13554echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13556echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13558echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13560echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13561 ( cat <<\_ASBOX
13562## ------------------------------ ##
13563## Report this to bugs@yourdomain ##
13564## ------------------------------ ##
13565_ASBOX
13566 ) | sed "s/^/$as_me: WARNING: /" >&2
13567 ;;
13568esac
13569{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13570echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571if test "${ac_cv_header_opagent_h+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573else
13574 ac_cv_header_opagent_h=$ac_header_preproc
13575fi
13576{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13577echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13578
13579fi
13580if test $ac_cv_header_opagent_h = yes; then
13581 :
13582else
13583
13584 echo "Error! You need to have opagent.h around."
13585 exit -1
13586
13587fi
13588
13589
13590 fi
13591
13592else
13593
13594 USE_OPROFILE=0
13595
13596
13597fi
13598
13599
13600cat >>confdefs.h <<_ACEOF
13601#define USE_OPROFILE $USE_OPROFILE
13602_ACEOF
13603
13604
13605
13606
13607
13608
13609
13610
13611ac_header_dirent=no
13612for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13614{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13615echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 cat >conftest.$ac_ext <<_ACEOF
13620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
13625#include <sys/types.h>
13626#include <$ac_hdr>
13627
13628int
13629main ()
13630{
13631if ((DIR *) 0)
13632return 0;
13633 ;
13634 return 0;
13635}
13636_ACEOF
13637rm -f conftest.$ac_objext
13638if { (ac_try="$ac_compile"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 eval "$as_ac_Header=yes"
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 eval "$as_ac_Header=no"
13677fi
13678
13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680fi
13681ac_res=`eval echo '${'$as_ac_Header'}'`
13682 { echo "$as_me:$LINENO: result: $ac_res" >&5
13683echo "${ECHO_T}$ac_res" >&6; }
13684if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13687_ACEOF
13688
13689ac_header_dirent=$ac_hdr; break
13690fi
13691
13692done
13693# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13694if test $ac_header_dirent = dirent.h; then
13695 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13696echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13697if test "${ac_cv_search_opendir+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 ac_func_search_save_LIBS=$LIBS
13701cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
13707
13708/* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711#ifdef __cplusplus
13712extern "C"
13713#endif
13714char opendir ();
13715int
13716main ()
13717{
13718return opendir ();
13719 ;
13720 return 0;
13721}
13722_ACEOF
13723for ac_lib in '' dir; do
13724 if test -z "$ac_lib"; then
13725 ac_res="none required"
13726 else
13727 ac_res=-l$ac_lib
13728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13729 fi
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731if { (ac_try="$ac_link"
13732case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_link") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_search_opendir=$ac_res
13765else
13766 echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769
13770fi
13771
13772rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext
13774 if test "${ac_cv_search_opendir+set}" = set; then
13775 break
13776fi
13777done
13778if test "${ac_cv_search_opendir+set}" = set; then
13779 :
13780else
13781 ac_cv_search_opendir=no
13782fi
13783rm conftest.$ac_ext
13784LIBS=$ac_func_search_save_LIBS
13785fi
13786{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13787echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13788ac_res=$ac_cv_search_opendir
13789if test "$ac_res" != no; then
13790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13791
13792fi
13793
13794else
13795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797if test "${ac_cv_search_opendir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799else
13800 ac_func_search_save_LIBS=$LIBS
13801cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
13806/* end confdefs.h. */
13807
13808/* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13811#ifdef __cplusplus
13812extern "C"
13813#endif
13814char opendir ();
13815int
13816main ()
13817{
13818return opendir ();
13819 ;
13820 return 0;
13821}
13822_ACEOF
13823for ac_lib in '' x; do
13824 if test -z "$ac_lib"; then
13825 ac_res="none required"
13826 else
13827 ac_res=-l$ac_lib
13828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13829 fi
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831if { (ac_try="$ac_link"
13832case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_search_opendir=$ac_res
13865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
13870fi
13871
13872rm -f core conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext
13874 if test "${ac_cv_search_opendir+set}" = set; then
13875 break
13876fi
13877done
13878if test "${ac_cv_search_opendir+set}" = set; then
13879 :
13880else
13881 ac_cv_search_opendir=no
13882fi
13883rm conftest.$ac_ext
13884LIBS=$ac_func_search_save_LIBS
13885fi
13886{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13888ac_res=$ac_cv_search_opendir
13889if test "$ac_res" != no; then
13890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13891
13892fi
13893
13894fi
13895
13896{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13897echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13898if test "${ac_cv_header_mmap_anon+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900else
13901 ac_ext=c
13902ac_cpp='$CPP $CPPFLAGS'
13903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13905ac_compiler_gnu=$ac_cv_c_compiler_gnu
13906
13907 cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913#include <sys/mman.h>
13914#include <unistd.h>
13915#include <fcntl.h>
13916int
13917main ()
13918{
13919mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (ac_try="$ac_compile"
13926case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_header_mmap_anon=yes
13959else
13960 echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 ac_cv_header_mmap_anon=no
13964fi
13965
13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 ac_ext=c
13968ac_cpp='$CPP $CPPFLAGS'
13969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13971ac_compiler_gnu=$ac_cv_c_compiler_gnu
13972
13973
13974fi
13975{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13976echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13977if test "$ac_cv_header_mmap_anon" = yes; then
13978
13979cat >>confdefs.h <<\_ACEOF
13980#define HAVE_MMAP_ANONYMOUS 1
13981_ACEOF
13982
13983fi
13984
13985{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13986echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13987if test "${ac_cv_header_stat_broken+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 cat >conftest.$ac_ext <<_ACEOF
13991/* confdefs.h. */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h. */
13996#include <sys/types.h>
13997#include <sys/stat.h>
13998
13999#if defined S_ISBLK && defined S_IFDIR
14000# if S_ISBLK (S_IFDIR)
14001You lose.
14002# endif
14003#endif
14004
14005#if defined S_ISBLK && defined S_IFCHR
14006# if S_ISBLK (S_IFCHR)
14007You lose.
14008# endif
14009#endif
14010
14011#if defined S_ISLNK && defined S_IFREG
14012# if S_ISLNK (S_IFREG)
14013You lose.
14014# endif
14015#endif
14016
14017#if defined S_ISSOCK && defined S_IFREG
14018# if S_ISSOCK (S_IFREG)
14019You lose.
14020# endif
14021#endif
14022
14023_ACEOF
14024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14025 $EGREP "You lose" >/dev/null 2>&1; then
14026 ac_cv_header_stat_broken=yes
14027else
14028 ac_cv_header_stat_broken=no
14029fi
14030rm -f conftest*
14031
14032fi
14033{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14034echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14035if test $ac_cv_header_stat_broken = yes; then
14036
14037cat >>confdefs.h <<\_ACEOF
14038#define STAT_MACROS_BROKEN 1
14039_ACEOF
14040
14041fi
14042
14043{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14044echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14045if test "${ac_cv_header_sys_wait_h+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
14054#include <sys/types.h>
14055#include <sys/wait.h>
14056#ifndef WEXITSTATUS
14057# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14058#endif
14059#ifndef WIFEXITED
14060# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14061#endif
14062
14063int
14064main ()
14065{
14066 int s;
14067 wait (&s);
14068 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14069 ;
14070 return 0;
14071}
14072_ACEOF
14073rm -f conftest.$ac_objext
14074if { (ac_try="$ac_compile"
14075case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078esac
14079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_header_sys_wait_h=yes
14108else
14109 echo "$as_me: failed program was:" >&5
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_cv_header_sys_wait_h=no
14113fi
14114
14115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116fi
14117{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14118echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14119if test $ac_cv_header_sys_wait_h = yes; then
14120
14121cat >>confdefs.h <<\_ACEOF
14122#define HAVE_SYS_WAIT_H 1
14123_ACEOF
14124
14125fi
14126
14127{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14128echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14129if test "${ac_cv_header_time+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
14138#include <sys/types.h>
14139#include <sys/time.h>
14140#include <time.h>
14141
14142int
14143main ()
14144{
14145if ((struct tm *) 0)
14146return 0;
14147 ;
14148 return 0;
14149}
14150_ACEOF
14151rm -f conftest.$ac_objext
14152if { (ac_try="$ac_compile"
14153case "(($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_compile") 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179esac
14180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_header_time=yes
14186else
14187 echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 ac_cv_header_time=no
14191fi
14192
14193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194fi
14195{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14196echo "${ECHO_T}$ac_cv_header_time" >&6; }
14197if test $ac_cv_header_time = yes; then
14198
14199cat >>confdefs.h <<\_ACEOF
14200#define TIME_WITH_SYS_TIME 1
14201_ACEOF
14202
14203fi
14204
14205
14206
14207
14208
14209
14210
14211
14212for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14213do
14214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220fi
14221ac_res=`eval echo '${'$as_ac_Header'}'`
14222 { echo "$as_me:$LINENO: result: $ac_res" >&5
14223echo "${ECHO_T}$ac_res" >&6; }
14224else
14225 # Is the header compilable?
14226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14228cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234$ac_includes_default
14235#include <$ac_header>
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (ac_try="$ac_compile"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_header_compiler=no
14277fi
14278
14279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281echo "${ECHO_T}$ac_header_compiler" >&6; }
14282
14283# Is the header present?
14284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14286cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292#include <$ac_header>
14293_ACEOF
14294if { (ac_try="$ac_cpp conftest.$ac_ext"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } >/dev/null; then
14307 if test -s conftest.err; then
14308 ac_cpp_err=$ac_c_preproc_warn_flag
14309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14310 else
14311 ac_cpp_err=
14312 fi
14313else
14314 ac_cpp_err=yes
14315fi
14316if test -z "$ac_cpp_err"; then
14317 ac_header_preproc=yes
14318else
14319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_header_preproc=no
14323fi
14324
14325rm -f conftest.err conftest.$ac_ext
14326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14327echo "${ECHO_T}$ac_header_preproc" >&6; }
14328
14329# So? What about this header?
14330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331 yes:no: )
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14336 ac_header_preproc=yes
14337 ;;
14338 no:yes:* )
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14351 ( cat <<\_ASBOX
14352## ------------------------------ ##
14353## Report this to bugs@yourdomain ##
14354## ------------------------------ ##
14355_ASBOX
14356 ) | sed "s/^/$as_me: WARNING: /" >&2
14357 ;;
14358esac
14359{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 eval "$as_ac_Header=\$ac_header_preproc"
14365fi
14366ac_res=`eval echo '${'$as_ac_Header'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368echo "${ECHO_T}$ac_res" >&6; }
14369
14370fi
14371if test `eval echo '${'$as_ac_Header'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14374_ACEOF
14375
14376fi
14377
14378done
14379
14380
14381
14382
14383
14384
14385
14386for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14387do
14388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394fi
14395ac_res=`eval echo '${'$as_ac_Header'}'`
14396 { echo "$as_me:$LINENO: result: $ac_res" >&5
14397echo "${ECHO_T}$ac_res" >&6; }
14398else
14399 # Is the header compilable?
14400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14402cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409#include <$ac_header>
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (ac_try="$ac_compile"
14413case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_compile") 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14426 { (case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_try") 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439esac
14440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_header_compiler=yes
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_header_compiler=no
14451fi
14452
14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455echo "${ECHO_T}$ac_header_compiler" >&6; }
14456
14457# Is the header present?
14458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14460cat >conftest.$ac_ext <<_ACEOF
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
14465/* end confdefs.h. */
14466#include <$ac_header>
14467_ACEOF
14468if { (ac_try="$ac_cpp conftest.$ac_ext"
14469case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472esac
14473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } >/dev/null; then
14481 if test -s conftest.err; then
14482 ac_cpp_err=$ac_c_preproc_warn_flag
14483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14484 else
14485 ac_cpp_err=
14486 fi
14487else
14488 ac_cpp_err=yes
14489fi
14490if test -z "$ac_cpp_err"; then
14491 ac_header_preproc=yes
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_header_preproc=no
14497fi
14498
14499rm -f conftest.err conftest.$ac_ext
14500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14501echo "${ECHO_T}$ac_header_preproc" >&6; }
14502
14503# So? What about this header?
14504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14505 yes:no: )
14506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14510 ac_header_preproc=yes
14511 ;;
14512 no:yes:* )
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14525 ( cat <<\_ASBOX
14526## ------------------------------ ##
14527## Report this to bugs@yourdomain ##
14528## ------------------------------ ##
14529_ASBOX
14530 ) | sed "s/^/$as_me: WARNING: /" >&2
14531 ;;
14532esac
14533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537else
14538 eval "$as_ac_Header=\$ac_header_preproc"
14539fi
14540ac_res=`eval echo '${'$as_ac_Header'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542echo "${ECHO_T}$ac_res" >&6; }
14543
14544fi
14545if test `eval echo '${'$as_ac_Header'}'` = yes; then
14546 cat >>confdefs.h <<_ACEOF
14547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14548_ACEOF
14549
14550fi
14551
14552done
14553
14554
14555
14556for ac_header in utime.h windows.h
14557do
14558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564fi
14565ac_res=`eval echo '${'$as_ac_Header'}'`
14566 { echo "$as_me:$LINENO: result: $ac_res" >&5
14567echo "${ECHO_T}$ac_res" >&6; }
14568else
14569 # Is the header compilable?
14570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14572cat >conftest.$ac_ext <<_ACEOF
14573/* confdefs.h. */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h. */
14578$ac_includes_default
14579#include <$ac_header>
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (ac_try="$ac_compile"
14583case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_compile") 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14596 { (case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599esac
14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_try") 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609esac
14610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_try") 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_header_compiler=yes
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_header_compiler=no
14621fi
14622
14623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625echo "${ECHO_T}$ac_header_compiler" >&6; }
14626
14627# Is the header present?
14628{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14630cat >conftest.$ac_ext <<_ACEOF
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
14636#include <$ac_header>
14637_ACEOF
14638if { (ac_try="$ac_cpp conftest.$ac_ext"
14639case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642esac
14643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } >/dev/null; then
14651 if test -s conftest.err; then
14652 ac_cpp_err=$ac_c_preproc_warn_flag
14653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14654 else
14655 ac_cpp_err=
14656 fi
14657else
14658 ac_cpp_err=yes
14659fi
14660if test -z "$ac_cpp_err"; then
14661 ac_header_preproc=yes
14662else
14663 echo "$as_me: failed program was:" >&5
14664sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 ac_header_preproc=no
14667fi
14668
14669rm -f conftest.err conftest.$ac_ext
14670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671echo "${ECHO_T}$ac_header_preproc" >&6; }
14672
14673# So? What about this header?
14674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675 yes:no: )
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14680 ac_header_preproc=yes
14681 ;;
14682 no:yes:* )
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14695 ( cat <<\_ASBOX
14696## ------------------------------ ##
14697## Report this to bugs@yourdomain ##
14698## ------------------------------ ##
14699_ASBOX
14700 ) | sed "s/^/$as_me: WARNING: /" >&2
14701 ;;
14702esac
14703{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14707else
14708 eval "$as_ac_Header=\$ac_header_preproc"
14709fi
14710ac_res=`eval echo '${'$as_ac_Header'}'`
14711 { echo "$as_me:$LINENO: result: $ac_res" >&5
14712echo "${ECHO_T}$ac_res" >&6; }
14713
14714fi
14715if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718_ACEOF
14719
14720fi
14721
14722done
14723
14724
14725
14726
14727
14728
14729for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14730do
14731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737fi
14738ac_res=`eval echo '${'$as_ac_Header'}'`
14739 { echo "$as_me:$LINENO: result: $ac_res" >&5
14740echo "${ECHO_T}$ac_res" >&6; }
14741else
14742 # Is the header compilable?
14743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14745cat >conftest.$ac_ext <<_ACEOF
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751$ac_includes_default
14752#include <$ac_header>
14753_ACEOF
14754rm -f conftest.$ac_objext
14755if { (ac_try="$ac_compile"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_header_compiler=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_header_compiler=no
14794fi
14795
14796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798echo "${ECHO_T}$ac_header_compiler" >&6; }
14799
14800# Is the header present?
14801{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14803cat >conftest.$ac_ext <<_ACEOF
14804/* confdefs.h. */
14805_ACEOF
14806cat confdefs.h >>conftest.$ac_ext
14807cat >>conftest.$ac_ext <<_ACEOF
14808/* end confdefs.h. */
14809#include <$ac_header>
14810_ACEOF
14811if { (ac_try="$ac_cpp conftest.$ac_ext"
14812case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815esac
14816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } >/dev/null; then
14824 if test -s conftest.err; then
14825 ac_cpp_err=$ac_c_preproc_warn_flag
14826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14827 else
14828 ac_cpp_err=
14829 fi
14830else
14831 ac_cpp_err=yes
14832fi
14833if test -z "$ac_cpp_err"; then
14834 ac_header_preproc=yes
14835else
14836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_header_preproc=no
14840fi
14841
14842rm -f conftest.err conftest.$ac_ext
14843{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844echo "${ECHO_T}$ac_header_preproc" >&6; }
14845
14846# So? What about this header?
14847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848 yes:no: )
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14854 ;;
14855 no:yes:* )
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14868 ( cat <<\_ASBOX
14869## ------------------------------ ##
14870## Report this to bugs@yourdomain ##
14871## ------------------------------ ##
14872_ASBOX
14873 ) | sed "s/^/$as_me: WARNING: /" >&2
14874 ;;
14875esac
14876{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880else
14881 eval "$as_ac_Header=\$ac_header_preproc"
14882fi
14883ac_res=`eval echo '${'$as_ac_Header'}'`
14884 { echo "$as_me:$LINENO: result: $ac_res" >&5
14885echo "${ECHO_T}$ac_res" >&6; }
14886
14887fi
14888if test `eval echo '${'$as_ac_Header'}'` = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891_ACEOF
14892
14893fi
14894
14895done
14896
14897
14898
14899
14900
14901for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14902do
14903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909fi
14910ac_res=`eval echo '${'$as_ac_Header'}'`
14911 { echo "$as_me:$LINENO: result: $ac_res" >&5
14912echo "${ECHO_T}$ac_res" >&6; }
14913else
14914 # Is the header compilable?
14915{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14917cat >conftest.$ac_ext <<_ACEOF
14918/* confdefs.h. */
14919_ACEOF
14920cat confdefs.h >>conftest.$ac_ext
14921cat >>conftest.$ac_ext <<_ACEOF
14922/* end confdefs.h. */
14923$ac_includes_default
14924#include <$ac_header>
14925_ACEOF
14926rm -f conftest.$ac_objext
14927if { (ac_try="$ac_compile"
14928case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_compile") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941 { (case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944esac
14945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_try") 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954esac
14955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_try") 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_header_compiler=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ac_header_compiler=no
14966fi
14967
14968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970echo "${ECHO_T}$ac_header_compiler" >&6; }
14971
14972# Is the header present?
14973{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14975cat >conftest.$ac_ext <<_ACEOF
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
14980/* end confdefs.h. */
14981#include <$ac_header>
14982_ACEOF
14983if { (ac_try="$ac_cpp conftest.$ac_ext"
14984case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987esac
14988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null; then
14996 if test -s conftest.err; then
14997 ac_cpp_err=$ac_c_preproc_warn_flag
14998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14999 else
15000 ac_cpp_err=
15001 fi
15002else
15003 ac_cpp_err=yes
15004fi
15005if test -z "$ac_cpp_err"; then
15006 ac_header_preproc=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_preproc=no
15012fi
15013
15014rm -f conftest.err conftest.$ac_ext
15015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016echo "${ECHO_T}$ac_header_preproc" >&6; }
15017
15018# So? What about this header?
15019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 yes:no: )
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025 ac_header_preproc=yes
15026 ;;
15027 no:yes:* )
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15040 ( cat <<\_ASBOX
15041## ------------------------------ ##
15042## Report this to bugs@yourdomain ##
15043## ------------------------------ ##
15044_ASBOX
15045 ) | sed "s/^/$as_me: WARNING: /" >&2
15046 ;;
15047esac
15048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
15053 eval "$as_ac_Header=\$ac_header_preproc"
15054fi
15055ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057echo "${ECHO_T}$ac_res" >&6; }
15058
15059fi
15060if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15063_ACEOF
15064
15065fi
15066
15067done
15068
15069
15070for ac_header in valgrind/valgrind.h
15071do
15072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15078fi
15079ac_res=`eval echo '${'$as_ac_Header'}'`
15080 { echo "$as_me:$LINENO: result: $ac_res" >&5
15081echo "${ECHO_T}$ac_res" >&6; }
15082else
15083 # Is the header compilable?
15084{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15086cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
15092$ac_includes_default
15093#include <$ac_header>
15094_ACEOF
15095rm -f conftest.$ac_objext
15096if { (ac_try="$ac_compile"
15097case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_compile") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15110 { (case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113esac
15114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_try") 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_header_compiler=yes
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 ac_header_compiler=no
15135fi
15136
15137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15139echo "${ECHO_T}$ac_header_compiler" >&6; }
15140
15141# Is the header present?
15142{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15144cat >conftest.$ac_ext <<_ACEOF
15145/* confdefs.h. */
15146_ACEOF
15147cat confdefs.h >>conftest.$ac_ext
15148cat >>conftest.$ac_ext <<_ACEOF
15149/* end confdefs.h. */
15150#include <$ac_header>
15151_ACEOF
15152if { (ac_try="$ac_cpp conftest.$ac_ext"
15153case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156esac
15157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_c_preproc_warn_flag
15167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15168 else
15169 ac_cpp_err=
15170 fi
15171else
15172 ac_cpp_err=yes
15173fi
15174if test -z "$ac_cpp_err"; then
15175 ac_header_preproc=yes
15176else
15177 echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_header_preproc=no
15181fi
15182
15183rm -f conftest.err conftest.$ac_ext
15184{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185echo "${ECHO_T}$ac_header_preproc" >&6; }
15186
15187# So? What about this header?
15188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15189 yes:no: )
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15194 ac_header_preproc=yes
15195 ;;
15196 no:yes:* )
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15209 ( cat <<\_ASBOX
15210## ------------------------------ ##
15211## Report this to bugs@yourdomain ##
15212## ------------------------------ ##
15213_ASBOX
15214 ) | sed "s/^/$as_me: WARNING: /" >&2
15215 ;;
15216esac
15217{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 eval "$as_ac_Header=\$ac_header_preproc"
15223fi
15224ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226echo "${ECHO_T}$ac_res" >&6; }
15227
15228fi
15229if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232_ACEOF
15233
15234fi
15235
15236done
15237
15238
15239for ac_header in fenv.h
15240do
15241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247fi
15248ac_res=`eval echo '${'$as_ac_Header'}'`
15249 { echo "$as_me:$LINENO: result: $ac_res" >&5
15250echo "${ECHO_T}$ac_res" >&6; }
15251else
15252 # Is the header compilable?
15253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
15261$ac_includes_default
15262#include <$ac_header>
15263_ACEOF
15264rm -f conftest.$ac_objext
15265if { (ac_try="$ac_compile"
15266case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_compile") 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282esac
15283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest.$ac_objext'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_header_compiler=yes
15299else
15300 echo "$as_me: failed program was:" >&5
15301sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_header_compiler=no
15304fi
15305
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308echo "${ECHO_T}$ac_header_compiler" >&6; }
15309
15310# Is the header present?
15311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15313cat >conftest.$ac_ext <<_ACEOF
15314/* confdefs.h. */
15315_ACEOF
15316cat confdefs.h >>conftest.$ac_ext
15317cat >>conftest.$ac_ext <<_ACEOF
15318/* end confdefs.h. */
15319#include <$ac_header>
15320_ACEOF
15321if { (ac_try="$ac_cpp conftest.$ac_ext"
15322case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } >/dev/null; then
15334 if test -s conftest.err; then
15335 ac_cpp_err=$ac_c_preproc_warn_flag
15336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15337 else
15338 ac_cpp_err=
15339 fi
15340else
15341 ac_cpp_err=yes
15342fi
15343if test -z "$ac_cpp_err"; then
15344 ac_header_preproc=yes
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_header_preproc=no
15350fi
15351
15352rm -f conftest.err conftest.$ac_ext
15353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15354echo "${ECHO_T}$ac_header_preproc" >&6; }
15355
15356# So? What about this header?
15357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15358 yes:no: )
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15363 ac_header_preproc=yes
15364 ;;
15365 no:yes:* )
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15378 ( cat <<\_ASBOX
15379## ------------------------------ ##
15380## Report this to bugs@yourdomain ##
15381## ------------------------------ ##
15382_ASBOX
15383 ) | sed "s/^/$as_me: WARNING: /" >&2
15384 ;;
15385esac
15386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390else
15391 eval "$as_ac_Header=\$ac_header_preproc"
15392fi
15393ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395echo "${ECHO_T}$ac_res" >&6; }
15396
15397fi
15398if test `eval echo '${'$as_ac_Header'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15401_ACEOF
15402
15403fi
15404
15405done
15406
15407if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15408
15409for ac_header in pthread.h
15410do
15411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417fi
15418ac_res=`eval echo '${'$as_ac_Header'}'`
15419 { echo "$as_me:$LINENO: result: $ac_res" >&5
15420echo "${ECHO_T}$ac_res" >&6; }
15421else
15422 # Is the header compilable?
15423{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15425cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431$ac_includes_default
15432#include <$ac_header>
15433_ACEOF
15434rm -f conftest.$ac_objext
15435if { (ac_try="$ac_compile"
15436case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_compile") 2>conftest.er1
15442 ac_status=$?
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
15448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest.$ac_objext'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462esac
15463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 ac_header_compiler=yes
15469else
15470 echo "$as_me: failed program was:" >&5
15471sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 ac_header_compiler=no
15474fi
15475
15476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478echo "${ECHO_T}$ac_header_compiler" >&6; }
15479
15480# Is the header present?
15481{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15483cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489#include <$ac_header>
15490_ACEOF
15491if { (ac_try="$ac_cpp conftest.$ac_ext"
15492case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495esac
15496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } >/dev/null; then
15504 if test -s conftest.err; then
15505 ac_cpp_err=$ac_c_preproc_warn_flag
15506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15507 else
15508 ac_cpp_err=
15509 fi
15510else
15511 ac_cpp_err=yes
15512fi
15513if test -z "$ac_cpp_err"; then
15514 ac_header_preproc=yes
15515else
15516 echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 ac_header_preproc=no
15520fi
15521
15522rm -f conftest.err conftest.$ac_ext
15523{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15524echo "${ECHO_T}$ac_header_preproc" >&6; }
15525
15526# So? What about this header?
15527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15528 yes:no: )
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15533 ac_header_preproc=yes
15534 ;;
15535 no:yes:* )
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15548 ( cat <<\_ASBOX
15549## ------------------------------ ##
15550## Report this to bugs@yourdomain ##
15551## ------------------------------ ##
15552_ASBOX
15553 ) | sed "s/^/$as_me: WARNING: /" >&2
15554 ;;
15555esac
15556{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560else
15561 eval "$as_ac_Header=\$ac_header_preproc"
15562fi
15563ac_res=`eval echo '${'$as_ac_Header'}'`
15564 { echo "$as_me:$LINENO: result: $ac_res" >&5
15565echo "${ECHO_T}$ac_res" >&6; }
15566
15567fi
15568if test `eval echo '${'$as_ac_Header'}'` = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571_ACEOF
15572 HAVE_PTHREAD=1
15573
15574else
15575 HAVE_PTHREAD=0
15576
15577fi
15578
15579done
15580
15581else
15582 HAVE_PTHREAD=0
15583
15584fi
15585
15586if test "$llvm_cv_enable_libffi" = "yes" ; then
15587
15588
15589for ac_header in ffi.h ffi/ffi.h
15590do
15591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597fi
15598ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600echo "${ECHO_T}$ac_res" >&6; }
15601else
15602 # Is the header compilable?
15603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15605cat >conftest.$ac_ext <<_ACEOF
15606/* confdefs.h. */
15607_ACEOF
15608cat confdefs.h >>conftest.$ac_ext
15609cat >>conftest.$ac_ext <<_ACEOF
15610/* end confdefs.h. */
15611$ac_includes_default
15612#include <$ac_header>
15613_ACEOF
15614rm -f conftest.$ac_objext
15615if { (ac_try="$ac_compile"
15616case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_compile") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632esac
15633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
15639 { (case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_try") 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_header_compiler=yes
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ac_header_compiler=no
15654fi
15655
15656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658echo "${ECHO_T}$ac_header_compiler" >&6; }
15659
15660# Is the header present?
15661{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15663cat >conftest.$ac_ext <<_ACEOF
15664/* confdefs.h. */
15665_ACEOF
15666cat confdefs.h >>conftest.$ac_ext
15667cat >>conftest.$ac_ext <<_ACEOF
15668/* end confdefs.h. */
15669#include <$ac_header>
15670_ACEOF
15671if { (ac_try="$ac_cpp conftest.$ac_ext"
15672case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15675esac
15676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } >/dev/null; then
15684 if test -s conftest.err; then
15685 ac_cpp_err=$ac_c_preproc_warn_flag
15686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15687 else
15688 ac_cpp_err=
15689 fi
15690else
15691 ac_cpp_err=yes
15692fi
15693if test -z "$ac_cpp_err"; then
15694 ac_header_preproc=yes
15695else
15696 echo "$as_me: failed program was:" >&5
15697sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 ac_header_preproc=no
15700fi
15701
15702rm -f conftest.err conftest.$ac_ext
15703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15704echo "${ECHO_T}$ac_header_preproc" >&6; }
15705
15706# So? What about this header?
15707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15708 yes:no: )
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15713 ac_header_preproc=yes
15714 ;;
15715 no:yes:* )
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15728 ( cat <<\_ASBOX
15729## ------------------------------ ##
15730## Report this to bugs@yourdomain ##
15731## ------------------------------ ##
15732_ASBOX
15733 ) | sed "s/^/$as_me: WARNING: /" >&2
15734 ;;
15735esac
15736{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740else
15741 eval "$as_ac_Header=\$ac_header_preproc"
15742fi
15743ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745echo "${ECHO_T}$ac_res" >&6; }
15746
15747fi
15748if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15751_ACEOF
15752
15753fi
15754
15755done
15756
15757fi
15758
15759
15760for ac_header in CrashReporterClient.h
15761do
15762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768fi
15769ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771echo "${ECHO_T}$ac_res" >&6; }
15772else
15773 # Is the header compilable?
15774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15776cat >conftest.$ac_ext <<_ACEOF
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782$ac_includes_default
15783#include <$ac_header>
15784_ACEOF
15785rm -f conftest.$ac_objext
15786if { (ac_try="$ac_compile"
15787case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15790esac
15791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_compile") 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15800 { (case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803esac
15804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_try") 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
15810 { (case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15813esac
15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_try") 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15819 ac_header_compiler=yes
15820else
15821 echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_header_compiler=no
15825fi
15826
15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829echo "${ECHO_T}$ac_header_compiler" >&6; }
15830
15831# Is the header present?
15832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15834cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h. */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h. */
15840#include <$ac_header>
15841_ACEOF
15842if { (ac_try="$ac_cpp conftest.$ac_ext"
15843case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846esac
15847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev/null; then
15855 if test -s conftest.err; then
15856 ac_cpp_err=$ac_c_preproc_warn_flag
15857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15858 else
15859 ac_cpp_err=
15860 fi
15861else
15862 ac_cpp_err=yes
15863fi
15864if test -z "$ac_cpp_err"; then
15865 ac_header_preproc=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_preproc=no
15871fi
15872
15873rm -f conftest.err conftest.$ac_ext
15874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15875echo "${ECHO_T}$ac_header_preproc" >&6; }
15876
15877# So? What about this header?
15878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15879 yes:no: )
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15884 ac_header_preproc=yes
15885 ;;
15886 no:yes:* )
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15899 ( cat <<\_ASBOX
15900## ------------------------------ ##
15901## Report this to bugs@yourdomain ##
15902## ------------------------------ ##
15903_ASBOX
15904 ) | sed "s/^/$as_me: WARNING: /" >&2
15905 ;;
15906esac
15907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 eval "$as_ac_Header=\$ac_header_preproc"
15913fi
15914ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916echo "${ECHO_T}$ac_res" >&6; }
15917
15918fi
15919if test `eval echo '${'$as_ac_Header'}'` = yes; then
15920 cat >>confdefs.h <<_ACEOF
15921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15922_ACEOF
15923
15924fi
15925
15926done
15927
15928
15929{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15930echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15931cat >conftest.$ac_ext <<_ACEOF
15932/* confdefs.h. */
15933_ACEOF
15934cat confdefs.h >>conftest.$ac_ext
15935cat >>conftest.$ac_ext <<_ACEOF
15936/* end confdefs.h. */
15937extern const char *__crashreporter_info__;
15938 int main() {
15939 __crashreporter_info__ = "test";
15940 return 0;
15941 }
15942
15943_ACEOF
15944rm -f conftest.$ac_objext conftest$ac_exeext
15945if { (ac_try="$ac_link"
15946case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949esac
15950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972esac
15973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 { echo "$as_me:$LINENO: result: yes" >&5
15979echo "${ECHO_T}yes" >&6; }
15980
15981cat >>confdefs.h <<\_ACEOF
15982#define HAVE_CRASHREPORTER_INFO 1
15983_ACEOF
15984
15985else
15986 echo "$as_me: failed program was:" >&5
15987sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 { echo "$as_me:$LINENO: result: no" >&5
15990echo "${ECHO_T}no" >&6; }
15991
15992cat >>confdefs.h <<\_ACEOF
15993#define HAVE_CRASHREPORTER_INFO 0
15994_ACEOF
15995
15996fi
15997
15998rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000
16001
16002
16003
16004 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16005echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16006if test "${ac_cv_huge_val_sanity+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008else
16009
16010 ac_ext=cpp
16011ac_cpp='$CXXCPP $CPPFLAGS'
16012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16015
16016 ac_save_CXXFLAGS=$CXXFLAGS
Benjamin Kramer00171802012-05-05 15:02:39 +000016017 CXXFLAGS="$CXXFLAGS -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000016018 if test "$cross_compiling" = yes; then
16019 ac_cv_huge_val_sanity=yes
16020else
16021 cat >conftest.$ac_ext <<_ACEOF
16022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
16027#include <math.h>
16028int
16029main ()
16030{
16031double x = HUGE_VAL; return x != x;
16032 ;
16033 return 0;
16034}
16035_ACEOF
16036rm -f conftest$ac_exeext
16037if { (ac_try="$ac_link"
16038case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041esac
16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_link") 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_huge_val_sanity=yes
16057else
16058 echo "$as_me: program exited with status $ac_status" >&5
16059echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062( exit $ac_status )
16063ac_cv_huge_val_sanity=no
16064fi
16065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16066fi
16067
16068
16069 CXXFLAGS=$ac_save_CXXFLAGS
16070 ac_ext=c
16071ac_cpp='$CPP $CPPFLAGS'
16072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075
16076
16077fi
16078{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16079echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16080 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16081
16082
16083{ echo "$as_me:$LINENO: checking for pid_t" >&5
16084echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16085if test "${ac_cv_type_pid_t+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087else
16088 cat >conftest.$ac_ext <<_ACEOF
16089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
16094$ac_includes_default
16095typedef pid_t ac__type_new_;
16096int
16097main ()
16098{
16099if ((ac__type_new_ *) 0)
16100 return 0;
16101if (sizeof (ac__type_new_))
16102 return 0;
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (ac_try="$ac_compile"
16109case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_type_pid_t=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_cv_type_pid_t=no
16147fi
16148
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150fi
16151{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16152echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16153if test $ac_cv_type_pid_t = yes; then
16154 :
16155else
16156
16157cat >>confdefs.h <<_ACEOF
16158#define pid_t int
16159_ACEOF
16160
16161fi
16162
16163{ echo "$as_me:$LINENO: checking for size_t" >&5
16164echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16165if test "${ac_cv_type_size_t+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168 cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h. */
16174$ac_includes_default
16175typedef size_t ac__type_new_;
16176int
16177main ()
16178{
16179if ((ac__type_new_ *) 0)
16180 return 0;
16181if (sizeof (ac__type_new_))
16182 return 0;
16183 ;
16184 return 0;
16185}
16186_ACEOF
16187rm -f conftest.$ac_objext
16188if { (ac_try="$ac_compile"
16189case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192esac
16193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_compile") 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202 { (case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205esac
16206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_try") 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; } &&
16211 { ac_try='test -s conftest.$ac_objext'
16212 { (case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16215esac
16216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_try") 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 ac_cv_type_size_t=yes
16222else
16223 echo "$as_me: failed program was:" >&5
16224sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 ac_cv_type_size_t=no
16227fi
16228
16229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230fi
16231{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16232echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16233if test $ac_cv_type_size_t = yes; then
16234 :
16235else
16236
16237cat >>confdefs.h <<_ACEOF
16238#define size_t unsigned int
16239_ACEOF
16240
16241fi
16242
16243
16244cat >>confdefs.h <<_ACEOF
16245#define RETSIGTYPE void
16246_ACEOF
16247
16248{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16249echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16250if test "${ac_cv_struct_tm+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252else
16253 cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#include <sys/types.h>
16260#include <time.h>
16261
16262int
16263main ()
16264{
16265struct tm *tp; tp->tm_sec;
16266 ;
16267 return 0;
16268}
16269_ACEOF
16270rm -f conftest.$ac_objext
16271if { (ac_try="$ac_compile"
16272case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275esac
16276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_compile") 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288esac
16289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_try") 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_cv_struct_tm=time.h
16305else
16306 echo "$as_me: failed program was:" >&5
16307sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 ac_cv_struct_tm=sys/time.h
16310fi
16311
16312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313fi
16314{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16315echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16316if test $ac_cv_struct_tm = sys/time.h; then
16317
16318cat >>confdefs.h <<\_ACEOF
16319#define TM_IN_SYS_TIME 1
16320_ACEOF
16321
16322fi
16323
16324{ echo "$as_me:$LINENO: checking for int64_t" >&5
16325echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16326if test "${ac_cv_type_int64_t+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328else
16329 cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336typedef int64_t ac__type_new_;
16337int
16338main ()
16339{
16340if ((ac__type_new_ *) 0)
16341 return 0;
16342if (sizeof (ac__type_new_))
16343 return 0;
16344 ;
16345 return 0;
16346}
16347_ACEOF
16348rm -f conftest.$ac_objext
16349if { (ac_try="$ac_compile"
16350case "(($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_compile") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376esac
16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_type_int64_t=yes
16383else
16384 echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 ac_cv_type_int64_t=no
16388fi
16389
16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391fi
16392{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16393echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16394if test $ac_cv_type_int64_t = yes; then
16395
16396cat >>confdefs.h <<_ACEOF
16397#define HAVE_INT64_T 1
16398_ACEOF
16399
16400
16401else
16402 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16403echo "$as_me: error: Type int64_t required but not found" >&2;}
16404 { (exit 1); exit 1; }; }
16405fi
16406
16407{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16408echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16409if test "${ac_cv_type_uint64_t+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 cat >conftest.$ac_ext <<_ACEOF
16413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
16418$ac_includes_default
16419typedef uint64_t ac__type_new_;
16420int
16421main ()
16422{
16423if ((ac__type_new_ *) 0)
16424 return 0;
16425if (sizeof (ac__type_new_))
16426 return 0;
16427 ;
16428 return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (ac_try="$ac_compile"
16433case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436esac
16437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_compile") 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449esac
16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_cv_type_uint64_t=yes
16466else
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 ac_cv_type_uint64_t=no
16471fi
16472
16473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474fi
16475{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16476echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16477if test $ac_cv_type_uint64_t = yes; then
16478
16479cat >>confdefs.h <<_ACEOF
16480#define HAVE_UINT64_T 1
16481_ACEOF
16482
16483
16484else
16485 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16486echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16487if test "${ac_cv_type_u_int64_t+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489else
16490 cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
16496$ac_includes_default
16497typedef u_int64_t ac__type_new_;
16498int
16499main ()
16500{
16501if ((ac__type_new_ *) 0)
16502 return 0;
16503if (sizeof (ac__type_new_))
16504 return 0;
16505 ;
16506 return 0;
16507}
16508_ACEOF
16509rm -f conftest.$ac_objext
16510if { (ac_try="$ac_compile"
16511case "(($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_compile") 2>conftest.er1
16517 ac_status=$?
16518 grep -v '^ *+' conftest.er1 >conftest.err
16519 rm -f conftest.er1
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_type_u_int64_t=yes
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_cv_type_u_int64_t=no
16549fi
16550
16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552fi
16553{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16554echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16555if test $ac_cv_type_u_int64_t = yes; then
16556
16557cat >>confdefs.h <<_ACEOF
16558#define HAVE_U_INT64_T 1
16559_ACEOF
16560
16561
16562else
16563 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16564echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16565 { (exit 1); exit 1; }; }
16566fi
16567
16568fi
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16580do
16581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16584if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586else
16587 cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595#define $ac_func innocuous_$ac_func
16596
16597/* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16601
16602#ifdef __STDC__
16603# include <limits.h>
16604#else
16605# include <assert.h>
16606#endif
16607
16608#undef $ac_func
16609
16610/* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16613#ifdef __cplusplus
16614extern "C"
16615#endif
16616char $ac_func ();
16617/* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620#if defined __stub_$ac_func || defined __stub___$ac_func
16621choke me
16622#endif
16623
16624int
16625main ()
16626{
16627return $ac_func ();
16628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext conftest$ac_exeext
16633if { (ac_try="$ac_link"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest$ac_exeext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 eval "$as_ac_var=yes"
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 eval "$as_ac_var=no"
16672fi
16673
16674rm -f core conftest.err conftest.$ac_objext \
16675 conftest$ac_exeext conftest.$ac_ext
16676fi
16677ac_res=`eval echo '${'$as_ac_var'}'`
16678 { echo "$as_me:$LINENO: result: $ac_res" >&5
16679echo "${ECHO_T}$ac_res" >&6; }
16680if test `eval echo '${'$as_ac_var'}'` = yes; then
16681 cat >>confdefs.h <<_ACEOF
16682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16683_ACEOF
16684
16685fi
16686done
16687
16688
16689
16690
16691
16692for ac_func in powf fmodf strtof round
16693do
16694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699else
16700 cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16708#define $ac_func innocuous_$ac_func
16709
16710/* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func (); below.
16712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713 <limits.h> exists even on freestanding compilers. */
16714
16715#ifdef __STDC__
16716# include <limits.h>
16717#else
16718# include <assert.h>
16719#endif
16720
16721#undef $ac_func
16722
16723/* Override any GCC internal prototype to avoid an error.
16724 Use char because int might match the return type of a GCC
16725 builtin and then its argument prototype would still apply. */
16726#ifdef __cplusplus
16727extern "C"
16728#endif
16729char $ac_func ();
16730/* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733#if defined __stub_$ac_func || defined __stub___$ac_func
16734choke me
16735#endif
16736
16737int
16738main ()
16739{
16740return $ac_func ();
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext conftest$ac_exeext
16746if { (ac_try="$ac_link"
16747case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_link") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest$ac_exeext'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 eval "$as_ac_var=yes"
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 eval "$as_ac_var=no"
16785fi
16786
16787rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16789fi
16790ac_res=`eval echo '${'$as_ac_var'}'`
16791 { echo "$as_me:$LINENO: result: $ac_res" >&5
16792echo "${ECHO_T}$ac_res" >&6; }
16793if test `eval echo '${'$as_ac_var'}'` = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16796_ACEOF
16797
16798fi
16799done
16800
16801
16802
16803
16804
16805
16806for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16807do
16808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16822#define $ac_func innocuous_$ac_func
16823
16824/* System header to define __stub macros and hopefully few prototypes,
16825 which can conflict with char $ac_func (); below.
16826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16827 <limits.h> exists even on freestanding compilers. */
16828
16829#ifdef __STDC__
16830# include <limits.h>
16831#else
16832# include <assert.h>
16833#endif
16834
16835#undef $ac_func
16836
16837/* Override any GCC internal prototype to avoid an error.
16838 Use char because int might match the return type of a GCC
16839 builtin and then its argument prototype would still apply. */
16840#ifdef __cplusplus
16841extern "C"
16842#endif
16843char $ac_func ();
16844/* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847#if defined __stub_$ac_func || defined __stub___$ac_func
16848choke me
16849#endif
16850
16851int
16852main ()
16853{
16854return $ac_func ();
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
16860if { (ac_try="$ac_link"
16861case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_link") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877esac
16878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 eval "$as_ac_var=yes"
16894else
16895 echo "$as_me: failed program was:" >&5
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 eval "$as_ac_var=no"
16899fi
16900
16901rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903fi
16904ac_res=`eval echo '${'$as_ac_var'}'`
16905 { echo "$as_me:$LINENO: result: $ac_res" >&5
16906echo "${ECHO_T}$ac_res" >&6; }
16907if test `eval echo '${'$as_ac_var'}'` = yes; then
16908 cat >>confdefs.h <<_ACEOF
16909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16910_ACEOF
16911
16912fi
16913done
16914
16915
16916
16917
16918for ac_func in isatty mkdtemp mkstemp
16919do
16920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
16932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934#define $ac_func innocuous_$ac_func
16935
16936/* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16940
16941#ifdef __STDC__
16942# include <limits.h>
16943#else
16944# include <assert.h>
16945#endif
16946
16947#undef $ac_func
16948
16949/* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16952#ifdef __cplusplus
16953extern "C"
16954#endif
16955char $ac_func ();
16956/* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959#if defined __stub_$ac_func || defined __stub___$ac_func
16960choke me
16961#endif
16962
16963int
16964main ()
16965{
16966return $ac_func ();
16967 ;
16968 return 0;
16969}
16970_ACEOF
16971rm -f conftest.$ac_objext conftest$ac_exeext
16972if { (ac_try="$ac_link"
16973case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976esac
16977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest$ac_exeext'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 eval "$as_ac_var=yes"
17006else
17007 echo "$as_me: failed program was:" >&5
17008sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 eval "$as_ac_var=no"
17011fi
17012
17013rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17015fi
17016ac_res=`eval echo '${'$as_ac_var'}'`
17017 { echo "$as_me:$LINENO: result: $ac_res" >&5
17018echo "${ECHO_T}$ac_res" >&6; }
17019if test `eval echo '${'$as_ac_var'}'` = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17022_ACEOF
17023
17024fi
17025done
17026
17027
17028
17029
17030
17031
17032
17033for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17034do
17035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040else
17041 cat >conftest.$ac_ext <<_ACEOF
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
17047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049#define $ac_func innocuous_$ac_func
17050
17051/* System header to define __stub macros and hopefully few prototypes,
17052 which can conflict with char $ac_func (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
17055
17056#ifdef __STDC__
17057# include <limits.h>
17058#else
17059# include <assert.h>
17060#endif
17061
17062#undef $ac_func
17063
17064/* Override any GCC internal prototype to avoid an error.
17065 Use char because int might match the return type of a GCC
17066 builtin and then its argument prototype would still apply. */
17067#ifdef __cplusplus
17068extern "C"
17069#endif
17070char $ac_func ();
17071/* The GNU C library defines this for functions which it implements
17072 to always fail with ENOSYS. Some functions are actually named
17073 something starting with __ and the normal name is an alias. */
17074#if defined __stub_$ac_func || defined __stub___$ac_func
17075choke me
17076#endif
17077
17078int
17079main ()
17080{
17081return $ac_func ();
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext conftest$ac_exeext
17087if { (ac_try="$ac_link"
17088case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest$ac_exeext'
17111 { (case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114esac
17115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 eval "$as_ac_var=yes"
17121else
17122 echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 eval "$as_ac_var=no"
17126fi
17127
17128rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17130fi
17131ac_res=`eval echo '${'$as_ac_var'}'`
17132 { echo "$as_me:$LINENO: result: $ac_res" >&5
17133echo "${ECHO_T}$ac_res" >&6; }
17134if test `eval echo '${'$as_ac_var'}'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137_ACEOF
17138
17139fi
17140done
17141
17142
17143
17144
17145for ac_func in strerror strerror_r setenv
17146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 eval "$as_ac_var=yes"
17233else
17234 echo "$as_me: failed program was:" >&5
17235sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 eval "$as_ac_var=no"
17238fi
17239
17240rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242fi
17243ac_res=`eval echo '${'$as_ac_var'}'`
17244 { echo "$as_me:$LINENO: result: $ac_res" >&5
17245echo "${ECHO_T}$ac_res" >&6; }
17246if test `eval echo '${'$as_ac_var'}'` = yes; then
17247 cat >>confdefs.h <<_ACEOF
17248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17249_ACEOF
17250
17251fi
17252done
17253
17254
17255
17256
17257
17258for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17259do
17260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17265else
17266 cat >conftest.$ac_ext <<_ACEOF
17267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
17272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17274#define $ac_func innocuous_$ac_func
17275
17276/* System header to define __stub macros and hopefully few prototypes,
17277 which can conflict with char $ac_func (); below.
17278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279 <limits.h> exists even on freestanding compilers. */
17280
17281#ifdef __STDC__
17282# include <limits.h>
17283#else
17284# include <assert.h>
17285#endif
17286
17287#undef $ac_func
17288
17289/* Override any GCC internal prototype to avoid an error.
17290 Use char because int might match the return type of a GCC
17291 builtin and then its argument prototype would still apply. */
17292#ifdef __cplusplus
17293extern "C"
17294#endif
17295char $ac_func ();
17296/* The GNU C library defines this for functions which it implements
17297 to always fail with ENOSYS. Some functions are actually named
17298 something starting with __ and the normal name is an alias. */
17299#if defined __stub_$ac_func || defined __stub___$ac_func
17300choke me
17301#endif
17302
17303int
17304main ()
17305{
17306return $ac_func ();
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext conftest$ac_exeext
17312if { (ac_try="$ac_link"
17313case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17316esac
17317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_link") 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17329esac
17330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17345 eval "$as_ac_var=yes"
17346else
17347 echo "$as_me: failed program was:" >&5
17348sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 eval "$as_ac_var=no"
17351fi
17352
17353rm -f core conftest.err conftest.$ac_objext \
17354 conftest$ac_exeext conftest.$ac_ext
17355fi
17356ac_res=`eval echo '${'$as_ac_var'}'`
17357 { echo "$as_me:$LINENO: result: $ac_res" >&5
17358echo "${ECHO_T}$ac_res" >&6; }
17359if test `eval echo '${'$as_ac_var'}'` = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362_ACEOF
17363
17364fi
17365done
17366
17367
17368
17369
17370
17371
17372for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17373do
17374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17379else
17380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17388#define $ac_func innocuous_$ac_func
17389
17390/* System header to define __stub macros and hopefully few prototypes,
17391 which can conflict with char $ac_func (); below.
17392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393 <limits.h> exists even on freestanding compilers. */
17394
17395#ifdef __STDC__
17396# include <limits.h>
17397#else
17398# include <assert.h>
17399#endif
17400
17401#undef $ac_func
17402
17403/* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17406#ifdef __cplusplus
17407extern "C"
17408#endif
17409char $ac_func ();
17410/* The GNU C library defines this for functions which it implements
17411 to always fail with ENOSYS. Some functions are actually named
17412 something starting with __ and the normal name is an alias. */
17413#if defined __stub_$ac_func || defined __stub___$ac_func
17414choke me
17415#endif
17416
17417int
17418main ()
17419{
17420return $ac_func ();
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext conftest$ac_exeext
17426if { (ac_try="$ac_link"
17427case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443esac
17444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 eval "$as_ac_var=yes"
17460else
17461 echo "$as_me: failed program was:" >&5
17462sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 eval "$as_ac_var=no"
17465fi
17466
17467rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469fi
17470ac_res=`eval echo '${'$as_ac_var'}'`
17471 { echo "$as_me:$LINENO: result: $ac_res" >&5
17472echo "${ECHO_T}$ac_res" >&6; }
17473if test `eval echo '${'$as_ac_var'}'` = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476_ACEOF
17477
17478fi
17479done
17480
17481{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17482echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17483if test "${llvm_cv_c_printf_a+set}" = set; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17485else
17486 ac_ext=c
17487ac_cpp='$CPP $CPPFLAGS'
17488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490ac_compiler_gnu=$ac_cv_c_compiler_gnu
17491
17492 if test "$cross_compiling" = yes; then
17493 llvmac_cv_c_printf_a=no
17494else
17495 cat >conftest.$ac_ext <<_ACEOF
17496
17497 /* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502
17503#include <stdio.h>
17504#include <stdlib.h>
17505
17506int
17507main ()
17508{
17509
17510volatile double A, B;
17511char Buffer[100];
17512A = 1;
17513A /= 10.0;
17514sprintf(Buffer, "%a", A);
17515B = atof(Buffer);
17516if (A != B)
17517 return (1);
17518if (A != 0x1.999999999999ap-4)
17519 return (1);
17520return (0);
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest$ac_exeext
17526if { (ac_try="$ac_link"
17527case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_link") 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 llvm_cv_c_printf_a=yes
17546else
17547 echo "$as_me: program exited with status $ac_status" >&5
17548echo "$as_me: failed program was:" >&5
17549sed 's/^/| /' conftest.$ac_ext >&5
17550
17551( exit $ac_status )
17552llvmac_cv_c_printf_a=no
17553fi
17554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17555fi
17556
17557
17558 ac_ext=c
17559ac_cpp='$CPP $CPPFLAGS'
17560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563
17564fi
17565{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17566echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17567 if test "$llvm_cv_c_printf_a" = "yes"; then
17568
17569cat >>confdefs.h <<\_ACEOF
17570#define HAVE_PRINTF_A 1
17571_ACEOF
17572
17573 fi
17574
17575
17576{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17577echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17578if test "${ac_cv_func_rand48+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580else
17581 ac_ext=cpp
17582ac_cpp='$CXXCPP $CPPFLAGS'
17583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17586
17587 cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
17593#include <stdlib.h>
17594int
17595main ()
17596{
17597srand48(0);lrand48();drand48();
17598 ;
17599 return 0;
17600}
17601_ACEOF
17602rm -f conftest.$ac_objext
17603if { (ac_try="$ac_compile"
17604case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620esac
17621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630esac
17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_func_rand48=yes
17637else
17638 echo "$as_me: failed program was:" >&5
17639sed 's/^/| /' conftest.$ac_ext >&5
17640
17641 ac_cv_func_rand48=no
17642fi
17643
17644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 ac_ext=c
17646ac_cpp='$CPP $CPPFLAGS'
17647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649ac_compiler_gnu=$ac_cv_c_compiler_gnu
17650
17651fi
17652{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17653echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17654
17655if test "$ac_cv_func_rand48" = "yes" ; then
17656
17657cat >>confdefs.h <<\_ACEOF
17658#define HAVE_RAND48 1
17659_ACEOF
17660
17661fi
17662
17663
17664{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17665echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17666if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675$ac_includes_default
17676int
17677main ()
17678{
17679#ifndef strerror_s
17680 char *p = (char *) strerror_s;
17681 return !p;
17682#endif
17683
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (ac_try="$ac_compile"
17690case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest.$ac_objext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_have_decl_strerror_s=yes
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_cv_have_decl_strerror_s=no
17728fi
17729
17730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731fi
17732{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17733echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17734if test $ac_cv_have_decl_strerror_s = yes; then
17735
17736cat >>confdefs.h <<_ACEOF
17737#define HAVE_DECL_STRERROR_S 1
17738_ACEOF
17739
17740
17741else
17742 cat >>confdefs.h <<_ACEOF
17743#define HAVE_DECL_STRERROR_S 0
17744_ACEOF
17745
17746
17747fi
17748
17749
17750
17751if test "$llvm_cv_os_type" = "MingW" ; then
17752 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17753echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17754if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 ac_check_lib_save_LIBS=$LIBS
17758LIBS="-lgcc $LIBS"
17759cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765
17766/* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17769#ifdef __cplusplus
17770extern "C"
17771#endif
17772char _alloca ();
17773int
17774main ()
17775{
17776return _alloca ();
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (ac_try="$ac_link"
17783case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786esac
17787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799esac
17800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_try") 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest$ac_exeext'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_lib_gcc__alloca=yes
17816else
17817 echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 ac_cv_lib_gcc__alloca=no
17821fi
17822
17823rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825LIBS=$ac_check_lib_save_LIBS
17826fi
17827{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17828echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17829if test $ac_cv_lib_gcc__alloca = yes; then
17830
17831cat >>confdefs.h <<\_ACEOF
17832#define HAVE__ALLOCA 1
17833_ACEOF
17834
17835fi
17836
17837 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17838echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17839if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841else
17842 ac_check_lib_save_LIBS=$LIBS
17843LIBS="-lgcc $LIBS"
17844cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850
17851/* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857char __alloca ();
17858int
17859main ()
17860{
17861return __alloca ();
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext conftest$ac_exeext
17867if { (ac_try="$ac_link"
17868case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871esac
17872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_link") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17884esac
17885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest$ac_exeext'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894esac
17895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_lib_gcc___alloca=yes
17901else
17902 echo "$as_me: failed program was:" >&5
17903sed 's/^/| /' conftest.$ac_ext >&5
17904
17905 ac_cv_lib_gcc___alloca=no
17906fi
17907
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910LIBS=$ac_check_lib_save_LIBS
17911fi
17912{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17913echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17914if test $ac_cv_lib_gcc___alloca = yes; then
17915
17916cat >>confdefs.h <<\_ACEOF
17917#define HAVE___ALLOCA 1
17918_ACEOF
17919
17920fi
17921
17922 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17923echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17924if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926else
17927 ac_check_lib_save_LIBS=$LIBS
17928LIBS="-lgcc $LIBS"
17929cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
17935
17936/* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17939#ifdef __cplusplus
17940extern "C"
17941#endif
17942char __chkstk ();
17943int
17944main ()
17945{
17946return __chkstk ();
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext conftest$ac_exeext
17952if { (ac_try="$ac_link"
17953case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956esac
17957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_link") 2>conftest.er1
17959 ac_status=$?
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
17965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17966 { (case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969esac
17970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_try") 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest$ac_exeext'
17976 { (case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979esac
17980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_try") 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_lib_gcc___chkstk=yes
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 ac_cv_lib_gcc___chkstk=no
17991fi
17992
17993rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995LIBS=$ac_check_lib_save_LIBS
17996fi
17997{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17998echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17999if test $ac_cv_lib_gcc___chkstk = yes; then
18000
18001cat >>confdefs.h <<\_ACEOF
18002#define HAVE___CHKSTK 1
18003_ACEOF
18004
18005fi
18006
18007 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18008echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18009if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011else
18012 ac_check_lib_save_LIBS=$LIBS
18013LIBS="-lgcc $LIBS"
18014cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h. */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h. */
18020
18021/* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18024#ifdef __cplusplus
18025extern "C"
18026#endif
18027char ___chkstk ();
18028int
18029main ()
18030{
18031return ___chkstk ();
18032 ;
18033 return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext conftest$ac_exeext
18037if { (ac_try="$ac_link"
18038case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_link") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_lib_gcc____chkstk=yes
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_lib_gcc____chkstk=no
18076fi
18077
18078rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080LIBS=$ac_check_lib_save_LIBS
18081fi
18082{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18083echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18084if test $ac_cv_lib_gcc____chkstk = yes; then
18085
18086cat >>confdefs.h <<\_ACEOF
18087#define HAVE____CHKSTK 1
18088_ACEOF
18089
18090fi
18091
18092
18093 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18094echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18095if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097else
18098 ac_check_lib_save_LIBS=$LIBS
18099LIBS="-lgcc $LIBS"
18100cat >conftest.$ac_ext <<_ACEOF
18101/* confdefs.h. */
18102_ACEOF
18103cat confdefs.h >>conftest.$ac_ext
18104cat >>conftest.$ac_ext <<_ACEOF
18105/* end confdefs.h. */
18106
18107/* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18110#ifdef __cplusplus
18111extern "C"
18112#endif
18113char __ashldi3 ();
18114int
18115main ()
18116{
18117return __ashldi3 ();
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext conftest$ac_exeext
18123if { (ac_try="$ac_link"
18124case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_link") 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140esac
18141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest$ac_exeext'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_lib_gcc___ashldi3=yes
18157else
18158 echo "$as_me: failed program was:" >&5
18159sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 ac_cv_lib_gcc___ashldi3=no
18162fi
18163
18164rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166LIBS=$ac_check_lib_save_LIBS
18167fi
18168{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18169echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18170if test $ac_cv_lib_gcc___ashldi3 = yes; then
18171
18172cat >>confdefs.h <<\_ACEOF
18173#define HAVE___ASHLDI3 1
18174_ACEOF
18175
18176fi
18177
18178 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18179echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18180if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182else
18183 ac_check_lib_save_LIBS=$LIBS
18184LIBS="-lgcc $LIBS"
18185cat >conftest.$ac_ext <<_ACEOF
18186/* confdefs.h. */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h. */
18191
18192/* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195#ifdef __cplusplus
18196extern "C"
18197#endif
18198char __ashrdi3 ();
18199int
18200main ()
18201{
18202return __ashrdi3 ();
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext conftest$ac_exeext
18208if { (ac_try="$ac_link"
18209case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235esac
18236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 ac_cv_lib_gcc___ashrdi3=yes
18242else
18243 echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
18246 ac_cv_lib_gcc___ashrdi3=no
18247fi
18248
18249rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251LIBS=$ac_check_lib_save_LIBS
18252fi
18253{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18254echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18255if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18256
18257cat >>confdefs.h <<\_ACEOF
18258#define HAVE___ASHRDI3 1
18259_ACEOF
18260
18261fi
18262
18263 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18264echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18265if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267else
18268 ac_check_lib_save_LIBS=$LIBS
18269LIBS="-lgcc $LIBS"
18270cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
18276
18277/* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
18280#ifdef __cplusplus
18281extern "C"
18282#endif
18283char __divdi3 ();
18284int
18285main ()
18286{
18287return __divdi3 ();
18288 ;
18289 return 0;
18290}
18291_ACEOF
18292rm -f conftest.$ac_objext conftest$ac_exeext
18293if { (ac_try="$ac_link"
18294case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320esac
18321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_cv_lib_gcc___divdi3=yes
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 ac_cv_lib_gcc___divdi3=no
18332fi
18333
18334rm -f core conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18336LIBS=$ac_check_lib_save_LIBS
18337fi
18338{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18339echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18340if test $ac_cv_lib_gcc___divdi3 = yes; then
18341
18342cat >>confdefs.h <<\_ACEOF
18343#define HAVE___DIVDI3 1
18344_ACEOF
18345
18346fi
18347
18348 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18349echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18350if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352else
18353 ac_check_lib_save_LIBS=$LIBS
18354LIBS="-lgcc $LIBS"
18355cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361
18362/* Override any GCC internal prototype to avoid an error.
18363 Use char because int might match the return type of a GCC
18364 builtin and then its argument prototype would still apply. */
18365#ifdef __cplusplus
18366extern "C"
18367#endif
18368char __fixdfdi ();
18369int
18370main ()
18371{
18372return __fixdfdi ();
18373 ;
18374 return 0;
18375}
18376_ACEOF
18377rm -f conftest.$ac_objext conftest$ac_exeext
18378if { (ac_try="$ac_link"
18379case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382esac
18383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_link") 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18392 { (case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395esac
18396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_try") 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_try") 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 ac_cv_lib_gcc___fixdfdi=yes
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 ac_cv_lib_gcc___fixdfdi=no
18417fi
18418
18419rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421LIBS=$ac_check_lib_save_LIBS
18422fi
18423{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18424echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18425if test $ac_cv_lib_gcc___fixdfdi = yes; then
18426
18427cat >>confdefs.h <<\_ACEOF
18428#define HAVE___FIXDFDI 1
18429_ACEOF
18430
18431fi
18432
18433 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18434echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18435if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18437else
18438 ac_check_lib_save_LIBS=$LIBS
18439LIBS="-lgcc $LIBS"
18440cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446
18447/* Override any GCC internal prototype to avoid an error.
18448 Use char because int might match the return type of a GCC
18449 builtin and then its argument prototype would still apply. */
18450#ifdef __cplusplus
18451extern "C"
18452#endif
18453char __fixsfdi ();
18454int
18455main ()
18456{
18457return __fixsfdi ();
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext conftest$ac_exeext
18463if { (ac_try="$ac_link"
18464case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_link") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480esac
18481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_try") 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest$ac_exeext'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_lib_gcc___fixsfdi=yes
18497else
18498 echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501 ac_cv_lib_gcc___fixsfdi=no
18502fi
18503
18504rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18506LIBS=$ac_check_lib_save_LIBS
18507fi
18508{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18509echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18510if test $ac_cv_lib_gcc___fixsfdi = yes; then
18511
18512cat >>confdefs.h <<\_ACEOF
18513#define HAVE___FIXSFDI 1
18514_ACEOF
18515
18516fi
18517
18518 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18519echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18520if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523 ac_check_lib_save_LIBS=$LIBS
18524LIBS="-lgcc $LIBS"
18525cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
18531
18532/* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535#ifdef __cplusplus
18536extern "C"
18537#endif
18538char __floatdidf ();
18539int
18540main ()
18541{
18542return __floatdidf ();
18543 ;
18544 return 0;
18545}
18546_ACEOF
18547rm -f conftest.$ac_objext conftest$ac_exeext
18548if { (ac_try="$ac_link"
18549case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest$ac_exeext'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_lib_gcc___floatdidf=yes
18582else
18583 echo "$as_me: failed program was:" >&5
18584sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_cv_lib_gcc___floatdidf=no
18587fi
18588
18589rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591LIBS=$ac_check_lib_save_LIBS
18592fi
18593{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18594echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18595if test $ac_cv_lib_gcc___floatdidf = yes; then
18596
18597cat >>confdefs.h <<\_ACEOF
18598#define HAVE___FLOATDIDF 1
18599_ACEOF
18600
18601fi
18602
18603 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18604echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18605if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608 ac_check_lib_save_LIBS=$LIBS
18609LIBS="-lgcc $LIBS"
18610cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616
18617/* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18620#ifdef __cplusplus
18621extern "C"
18622#endif
18623char __lshrdi3 ();
18624int
18625main ()
18626{
18627return __lshrdi3 ();
18628 ;
18629 return 0;
18630}
18631_ACEOF
18632rm -f conftest.$ac_objext conftest$ac_exeext
18633if { (ac_try="$ac_link"
18634case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_link") 2>conftest.er1
18640 ac_status=$?
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650esac
18651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest$ac_exeext'
18657 { (case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660esac
18661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_try") 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_cv_lib_gcc___lshrdi3=yes
18667else
18668 echo "$as_me: failed program was:" >&5
18669sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_cv_lib_gcc___lshrdi3=no
18672fi
18673
18674rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
18676LIBS=$ac_check_lib_save_LIBS
18677fi
18678{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18679echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18680if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18681
18682cat >>confdefs.h <<\_ACEOF
18683#define HAVE___LSHRDI3 1
18684_ACEOF
18685
18686fi
18687
18688 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18689echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18690if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18692else
18693 ac_check_lib_save_LIBS=$LIBS
18694LIBS="-lgcc $LIBS"
18695cat >conftest.$ac_ext <<_ACEOF
18696/* confdefs.h. */
18697_ACEOF
18698cat confdefs.h >>conftest.$ac_ext
18699cat >>conftest.$ac_ext <<_ACEOF
18700/* end confdefs.h. */
18701
18702/* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705#ifdef __cplusplus
18706extern "C"
18707#endif
18708char __moddi3 ();
18709int
18710main ()
18711{
18712return __moddi3 ();
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext conftest$ac_exeext
18718if { (ac_try="$ac_link"
18719case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18732 { (case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735esac
18736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_try") 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest$ac_exeext'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_lib_gcc___moddi3=yes
18752else
18753 echo "$as_me: failed program was:" >&5
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_cv_lib_gcc___moddi3=no
18757fi
18758
18759rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761LIBS=$ac_check_lib_save_LIBS
18762fi
18763{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18764echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18765if test $ac_cv_lib_gcc___moddi3 = yes; then
18766
18767cat >>confdefs.h <<\_ACEOF
18768#define HAVE___MODDI3 1
18769_ACEOF
18770
18771fi
18772
18773 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18774echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18775if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778 ac_check_lib_save_LIBS=$LIBS
18779LIBS="-lgcc $LIBS"
18780cat >conftest.$ac_ext <<_ACEOF
18781/* confdefs.h. */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h. */
18786
18787/* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18790#ifdef __cplusplus
18791extern "C"
18792#endif
18793char __udivdi3 ();
18794int
18795main ()
18796{
18797return __udivdi3 ();
18798 ;
18799 return 0;
18800}
18801_ACEOF
18802rm -f conftest.$ac_objext conftest$ac_exeext
18803if { (ac_try="$ac_link"
18804case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807esac
18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_link") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest$ac_exeext'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830esac
18831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_gcc___udivdi3=yes
18837else
18838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 ac_cv_lib_gcc___udivdi3=no
18842fi
18843
18844rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846LIBS=$ac_check_lib_save_LIBS
18847fi
18848{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18849echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18850if test $ac_cv_lib_gcc___udivdi3 = yes; then
18851
18852cat >>confdefs.h <<\_ACEOF
18853#define HAVE___UDIVDI3 1
18854_ACEOF
18855
18856fi
18857
18858 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18859echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18860if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862else
18863 ac_check_lib_save_LIBS=$LIBS
18864LIBS="-lgcc $LIBS"
18865cat >conftest.$ac_ext <<_ACEOF
18866/* confdefs.h. */
18867_ACEOF
18868cat confdefs.h >>conftest.$ac_ext
18869cat >>conftest.$ac_ext <<_ACEOF
18870/* end confdefs.h. */
18871
18872/* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18875#ifdef __cplusplus
18876extern "C"
18877#endif
18878char __umoddi3 ();
18879int
18880main ()
18881{
18882return __umoddi3 ();
18883 ;
18884 return 0;
18885}
18886_ACEOF
18887rm -f conftest.$ac_objext conftest$ac_exeext
18888if { (ac_try="$ac_link"
18889case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest$ac_exeext'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915esac
18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 ac_cv_lib_gcc___umoddi3=yes
18922else
18923 echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_cv_lib_gcc___umoddi3=no
18927fi
18928
18929rm -f core conftest.err conftest.$ac_objext \
18930 conftest$ac_exeext conftest.$ac_ext
18931LIBS=$ac_check_lib_save_LIBS
18932fi
18933{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18934echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18935if test $ac_cv_lib_gcc___umoddi3 = yes; then
18936
18937cat >>confdefs.h <<\_ACEOF
18938#define HAVE___UMODDI3 1
18939_ACEOF
18940
18941fi
18942
18943
18944 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18945echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18946if test "${ac_cv_lib_gcc___main+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948else
18949 ac_check_lib_save_LIBS=$LIBS
18950LIBS="-lgcc $LIBS"
18951cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957
18958/* Override any GCC internal prototype to avoid an error.
18959 Use char because int might match the return type of a GCC
18960 builtin and then its argument prototype would still apply. */
18961#ifdef __cplusplus
18962extern "C"
18963#endif
18964char __main ();
18965int
18966main ()
18967{
18968return __main ();
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext conftest$ac_exeext
18974if { (ac_try="$ac_link"
18975case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988 { (case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_try") 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest$ac_exeext'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_gcc___main=yes
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_lib_gcc___main=no
19013fi
19014
19015rm -f core conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19017LIBS=$ac_check_lib_save_LIBS
19018fi
19019{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19020echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19021if test $ac_cv_lib_gcc___main = yes; then
19022
19023cat >>confdefs.h <<\_ACEOF
19024#define HAVE___MAIN 1
19025_ACEOF
19026
19027fi
19028
19029 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19030echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19031if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 ac_check_lib_save_LIBS=$LIBS
19035LIBS="-lgcc $LIBS"
19036cat >conftest.$ac_ext <<_ACEOF
19037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
19042
19043/* Override any GCC internal prototype to avoid an error.
19044 Use char because int might match the return type of a GCC
19045 builtin and then its argument prototype would still apply. */
19046#ifdef __cplusplus
19047extern "C"
19048#endif
19049char __cmpdi2 ();
19050int
19051main ()
19052{
19053return __cmpdi2 ();
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest.$ac_objext conftest$ac_exeext
19059if { (ac_try="$ac_link"
19060case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
19072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19073 { (case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076esac
19077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_try") 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest$ac_exeext'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_cv_lib_gcc___cmpdi2=yes
19093else
19094 echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097 ac_cv_lib_gcc___cmpdi2=no
19098fi
19099
19100rm -f core conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19102LIBS=$ac_check_lib_save_LIBS
19103fi
19104{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19105echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19106if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19107
19108cat >>confdefs.h <<\_ACEOF
19109#define HAVE___CMPDI2 1
19110_ACEOF
19111
19112fi
19113
19114fi
19115
19116if test "$llvm_cv_os_type" = "MingW" ; then
19117 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19118echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19120#include <windows.h>
19121#include <imagehlp.h>
19122extern void foo(PENUMLOADED_MODULES_CALLBACK);
19123extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19124_ACEOF
19125rm -f conftest.$ac_objext
19126if { (ac_try="$ac_compile"
19127case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19130esac
19131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_compile") 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_try") 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
19150 { (case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153esac
19154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_try") 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159
19160 { echo "$as_me:$LINENO: result: yes" >&5
19161echo "${ECHO_T}yes" >&6; }
19162 llvm_cv_win32_elmcb_pcstr="PCSTR"
19163
19164else
19165 echo "$as_me: failed program was:" >&5
19166sed 's/^/| /' conftest.$ac_ext >&5
19167
19168
19169 { echo "$as_me:$LINENO: result: no" >&5
19170echo "${ECHO_T}no" >&6; }
19171 llvm_cv_win32_elmcb_pcstr="PSTR"
19172
19173fi
19174
19175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176
19177cat >>confdefs.h <<_ACEOF
19178#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19179_ACEOF
19180
19181fi
19182
19183
19184{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19185echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19186if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188else
19189 ac_ext=cpp
19190ac_cpp='$CXXCPP $CPPFLAGS'
19191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19194
19195 cat >conftest.$ac_ext <<_ACEOF
19196/* confdefs.h. */
19197_ACEOF
19198cat confdefs.h >>conftest.$ac_ext
19199cat >>conftest.$ac_ext <<_ACEOF
19200/* end confdefs.h. */
19201#include <math.h>
19202int
19203main ()
19204{
19205float f; isnan(f);
19206 ;
19207 return 0;
19208}
19209_ACEOF
19210rm -f conftest.$ac_objext
19211if { (ac_try="$ac_compile"
19212case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19215esac
19216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_compile") 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19225 { (case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_try") 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest.$ac_objext'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_func_isnan_in_math_h=yes
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_func_isnan_in_math_h=no
19250fi
19251
19252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253 ac_ext=c
19254ac_cpp='$CPP $CPPFLAGS'
19255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19257ac_compiler_gnu=$ac_cv_c_compiler_gnu
19258
19259fi
19260{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19261echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19262
19263
19264if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19265
19266cat >>confdefs.h <<\_ACEOF
19267#define HAVE_ISNAN_IN_MATH_H 1
19268_ACEOF
19269
19270fi
19271
19272{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19273echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19274if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19276else
19277 ac_ext=cpp
19278ac_cpp='$CXXCPP $CPPFLAGS'
19279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19282
19283 cat >conftest.$ac_ext <<_ACEOF
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
19289#include <cmath>
19290int
19291main ()
19292{
19293float f; isnan(f);
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext
19299if { (ac_try="$ac_compile"
19300case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303esac
19304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_compile") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19316esac
19317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_func_isnan_in_cmath=yes
19333else
19334 echo "$as_me: failed program was:" >&5
19335sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_func_isnan_in_cmath=no
19338fi
19339
19340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19341 ac_ext=c
19342ac_cpp='$CPP $CPPFLAGS'
19343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346
19347fi
19348{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19349echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19350
19351if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19352
19353cat >>confdefs.h <<\_ACEOF
19354#define HAVE_ISNAN_IN_CMATH 1
19355_ACEOF
19356
19357fi
19358
19359{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19360echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19361if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19363else
19364 ac_ext=cpp
19365ac_cpp='$CXXCPP $CPPFLAGS'
19366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19369
19370 cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376#include <cmath>
19377int
19378main ()
19379{
19380float f; std::isnan(f);
19381 ;
19382 return 0;
19383}
19384_ACEOF
19385rm -f conftest.$ac_objext
19386if { (ac_try="$ac_compile"
19387case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390esac
19391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_func_std_isnan_in_cmath=yes
19420else
19421 echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ac_cv_func_std_isnan_in_cmath=no
19425fi
19426
19427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428 ac_ext=c
19429ac_cpp='$CPP $CPPFLAGS'
19430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433
19434fi
19435{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19436echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19437
19438if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19439
19440cat >>confdefs.h <<\_ACEOF
19441#define HAVE_STD_ISNAN_IN_CMATH 1
19442_ACEOF
19443
19444fi
19445
19446
19447{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19448echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19449if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19451else
19452 ac_ext=cpp
19453ac_cpp='$CXXCPP $CPPFLAGS'
19454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19457
19458 cat >conftest.$ac_ext <<_ACEOF
19459/* confdefs.h. */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h. */
19464#include <math.h>
19465int
19466main ()
19467{
19468float f; isinf(f);
19469 ;
19470 return 0;
19471}
19472_ACEOF
19473rm -f conftest.$ac_objext
19474if { (ac_try="$ac_compile"
19475case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19481 ac_status=$?
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491esac
19492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_func_isinf_in_math_h=yes
19508else
19509 echo "$as_me: failed program was:" >&5
19510sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 ac_cv_func_isinf_in_math_h=no
19513fi
19514
19515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 ac_ext=c
19517ac_cpp='$CPP $CPPFLAGS'
19518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521
19522fi
19523{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19524echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19525
19526if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19527
19528cat >>confdefs.h <<\_ACEOF
19529#define HAVE_ISINF_IN_MATH_H 1
19530_ACEOF
19531
19532fi
19533
19534{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19535echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19536if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19538else
19539 ac_ext=cpp
19540ac_cpp='$CXXCPP $CPPFLAGS'
19541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19544
19545 cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
19551#include <cmath>
19552int
19553main ()
19554{
19555float f; isinf(f);
19556 ;
19557 return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (ac_try="$ac_compile"
19562case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19565esac
19566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_compile") 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19575 { (case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578esac
19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_try") 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest.$ac_objext'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 ac_cv_func_isinf_in_cmath=yes
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 ac_cv_func_isinf_in_cmath=no
19600fi
19601
19602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19603 ac_ext=c
19604ac_cpp='$CPP $CPPFLAGS'
19605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607ac_compiler_gnu=$ac_cv_c_compiler_gnu
19608
19609fi
19610{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19611echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19612
19613if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19614
19615cat >>confdefs.h <<\_ACEOF
19616#define HAVE_ISINF_IN_CMATH 1
19617_ACEOF
19618
19619fi
19620
19621{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19622echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19623if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625else
19626 ac_ext=cpp
19627ac_cpp='$CXXCPP $CPPFLAGS'
19628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19631
19632 cat >conftest.$ac_ext <<_ACEOF
19633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
19638#include <cmath>
19639int
19640main ()
19641{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019642float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019643 ;
19644 return 0;
19645}
19646_ACEOF
19647rm -f conftest.$ac_objext
19648if { (ac_try="$ac_compile"
19649case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_compile") 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19662 { (case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665esac
19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_try") 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675esac
19676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 ac_cv_func_std_isinf_in_cmath=yes
19682else
19683 echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 ac_cv_func_std_isinf_in_cmath=no
19687fi
19688
19689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 ac_ext=c
19691ac_cpp='$CPP $CPPFLAGS'
19692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694ac_compiler_gnu=$ac_cv_c_compiler_gnu
19695
19696fi
19697{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19698echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19699
19700if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19701
19702cat >>confdefs.h <<\_ACEOF
19703#define HAVE_STD_ISINF_IN_CMATH 1
19704_ACEOF
19705
19706fi
19707
19708{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19709echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19710if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713 ac_ext=cpp
19714ac_cpp='$CXXCPP $CPPFLAGS'
19715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19718
19719 cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h. */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h. */
19725#include <ieeefp.h>
19726int
19727main ()
19728{
19729float f; finite(f);
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
19735if { (ac_try="$ac_compile"
19736case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739esac
19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_compile") 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752esac
19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_try") 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; } &&
19758 { ac_try='test -s conftest.$ac_objext'
19759 { (case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762esac
19763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_try") 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_cv_func_finite_in_ieeefp_h=yes
19769else
19770 echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773 ac_cv_func_finite_in_ieeefp_h=no
19774fi
19775
19776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 ac_ext=c
19778ac_cpp='$CPP $CPPFLAGS'
19779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782
19783fi
19784{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19785echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19786
19787if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19788
19789cat >>confdefs.h <<\_ACEOF
19790#define HAVE_FINITE_IN_IEEEFP_H 1
19791_ACEOF
19792
19793fi
19794
19795
19796
19797if test "$llvm_cv_platform_type" = "Unix" ; then
19798
19799
19800for ac_header in stdlib.h unistd.h
19801do
19802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19808fi
19809ac_res=`eval echo '${'$as_ac_Header'}'`
19810 { echo "$as_me:$LINENO: result: $ac_res" >&5
19811echo "${ECHO_T}$ac_res" >&6; }
19812else
19813 # Is the header compilable?
19814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19816cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
19822$ac_includes_default
19823#include <$ac_header>
19824_ACEOF
19825rm -f conftest.$ac_objext
19826if { (ac_try="$ac_compile"
19827case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830esac
19831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_compile") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853esac
19854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_header_compiler=yes
19860else
19861 echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 ac_header_compiler=no
19865fi
19866
19867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869echo "${ECHO_T}$ac_header_compiler" >&6; }
19870
19871# Is the header present?
19872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874cat >conftest.$ac_ext <<_ACEOF
19875/* confdefs.h. */
19876_ACEOF
19877cat confdefs.h >>conftest.$ac_ext
19878cat >>conftest.$ac_ext <<_ACEOF
19879/* end confdefs.h. */
19880#include <$ac_header>
19881_ACEOF
19882if { (ac_try="$ac_cpp conftest.$ac_ext"
19883case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19889 ac_status=$?
19890 grep -v '^ *+' conftest.er1 >conftest.err
19891 rm -f conftest.er1
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } >/dev/null; then
19895 if test -s conftest.err; then
19896 ac_cpp_err=$ac_c_preproc_warn_flag
19897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19898 else
19899 ac_cpp_err=
19900 fi
19901else
19902 ac_cpp_err=yes
19903fi
19904if test -z "$ac_cpp_err"; then
19905 ac_header_preproc=yes
19906else
19907 echo "$as_me: failed program was:" >&5
19908sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ac_header_preproc=no
19911fi
19912
19913rm -f conftest.err conftest.$ac_ext
19914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915echo "${ECHO_T}$ac_header_preproc" >&6; }
19916
19917# So? What about this header?
19918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 yes:no: )
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19925 ;;
19926 no:yes:* )
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19939 ( cat <<\_ASBOX
19940## ------------------------------ ##
19941## Report this to bugs@yourdomain ##
19942## ------------------------------ ##
19943_ASBOX
19944 ) | sed "s/^/$as_me: WARNING: /" >&2
19945 ;;
19946esac
19947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951else
19952 eval "$as_ac_Header=\$ac_header_preproc"
19953fi
19954ac_res=`eval echo '${'$as_ac_Header'}'`
19955 { echo "$as_me:$LINENO: result: $ac_res" >&5
19956echo "${ECHO_T}$ac_res" >&6; }
19957
19958fi
19959if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19962_ACEOF
19963
19964fi
19965
19966done
19967
19968
19969for ac_func in getpagesize
19970do
19971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19976else
19977 cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19985#define $ac_func innocuous_$ac_func
19986
19987/* System header to define __stub macros and hopefully few prototypes,
19988 which can conflict with char $ac_func (); below.
19989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19990 <limits.h> exists even on freestanding compilers. */
19991
19992#ifdef __STDC__
19993# include <limits.h>
19994#else
19995# include <assert.h>
19996#endif
19997
19998#undef $ac_func
19999
20000/* Override any GCC internal prototype to avoid an error.
20001 Use char because int might match the return type of a GCC
20002 builtin and then its argument prototype would still apply. */
20003#ifdef __cplusplus
20004extern "C"
20005#endif
20006char $ac_func ();
20007/* The GNU C library defines this for functions which it implements
20008 to always fail with ENOSYS. Some functions are actually named
20009 something starting with __ and the normal name is an alias. */
20010#if defined __stub_$ac_func || defined __stub___$ac_func
20011choke me
20012#endif
20013
20014int
20015main ()
20016{
20017return $ac_func ();
20018 ;
20019 return 0;
20020}
20021_ACEOF
20022rm -f conftest.$ac_objext conftest$ac_exeext
20023if { (ac_try="$ac_link"
20024case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027esac
20028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050esac
20051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 eval "$as_ac_var=yes"
20057else
20058 echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 eval "$as_ac_var=no"
20062fi
20063
20064rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066fi
20067ac_res=`eval echo '${'$as_ac_var'}'`
20068 { echo "$as_me:$LINENO: result: $ac_res" >&5
20069echo "${ECHO_T}$ac_res" >&6; }
20070if test `eval echo '${'$as_ac_var'}'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20073_ACEOF
20074
20075fi
20076done
20077
20078{ echo "$as_me:$LINENO: checking for working mmap" >&5
20079echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20080if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082else
20083 if test "$cross_compiling" = yes; then
20084 ac_cv_func_mmap_fixed_mapped=no
20085else
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092$ac_includes_default
20093/* malloc might have been renamed as rpl_malloc. */
20094#undef malloc
20095
20096/* Thanks to Mike Haertel and Jim Avera for this test.
20097 Here is a matrix of mmap possibilities:
20098 mmap private not fixed
20099 mmap private fixed at somewhere currently unmapped
20100 mmap private fixed at somewhere already mapped
20101 mmap shared not fixed
20102 mmap shared fixed at somewhere currently unmapped
20103 mmap shared fixed at somewhere already mapped
20104 For private mappings, we should verify that changes cannot be read()
20105 back from the file, nor mmap's back from the file at a different
20106 address. (There have been systems where private was not correctly
20107 implemented like the infamous i386 svr4.0, and systems where the
20108 VM page cache was not coherent with the file system buffer cache
20109 like early versions of FreeBSD and possibly contemporary NetBSD.)
20110 For shared mappings, we should conversely verify that changes get
20111 propagated back to all the places they're supposed to be.
20112
20113 Grep wants private fixed already mapped.
20114 The main things grep needs to know about mmap are:
20115 * does it exist and is it safe to write into the mmap'd area
20116 * how to use it (BSD variants) */
20117
20118#include <fcntl.h>
20119#include <sys/mman.h>
20120
20121#if !STDC_HEADERS && !HAVE_STDLIB_H
20122char *malloc ();
20123#endif
20124
20125/* This mess was copied from the GNU getpagesize.h. */
20126#if !HAVE_GETPAGESIZE
20127/* Assume that all systems that can run configure have sys/param.h. */
20128# if !HAVE_SYS_PARAM_H
20129# define HAVE_SYS_PARAM_H 1
20130# endif
20131
20132# ifdef _SC_PAGESIZE
20133# define getpagesize() sysconf(_SC_PAGESIZE)
20134# else /* no _SC_PAGESIZE */
20135# if HAVE_SYS_PARAM_H
20136# include <sys/param.h>
20137# ifdef EXEC_PAGESIZE
20138# define getpagesize() EXEC_PAGESIZE
20139# else /* no EXEC_PAGESIZE */
20140# ifdef NBPG
20141# define getpagesize() NBPG * CLSIZE
20142# ifndef CLSIZE
20143# define CLSIZE 1
20144# endif /* no CLSIZE */
20145# else /* no NBPG */
20146# ifdef NBPC
20147# define getpagesize() NBPC
20148# else /* no NBPC */
20149# ifdef PAGESIZE
20150# define getpagesize() PAGESIZE
20151# endif /* PAGESIZE */
20152# endif /* no NBPC */
20153# endif /* no NBPG */
20154# endif /* no EXEC_PAGESIZE */
20155# else /* no HAVE_SYS_PARAM_H */
20156# define getpagesize() 8192 /* punt totally */
20157# endif /* no HAVE_SYS_PARAM_H */
20158# endif /* no _SC_PAGESIZE */
20159
20160#endif /* no HAVE_GETPAGESIZE */
20161
20162int
20163main ()
20164{
20165 char *data, *data2, *data3;
20166 int i, pagesize;
20167 int fd;
20168
20169 pagesize = getpagesize ();
20170
20171 /* First, make a file with some known garbage in it. */
20172 data = (char *) malloc (pagesize);
20173 if (!data)
20174 return 1;
20175 for (i = 0; i < pagesize; ++i)
20176 *(data + i) = rand ();
20177 umask (0);
20178 fd = creat ("conftest.mmap", 0600);
20179 if (fd < 0)
20180 return 1;
20181 if (write (fd, data, pagesize) != pagesize)
20182 return 1;
20183 close (fd);
20184
20185 /* Next, try to mmap the file at a fixed address which already has
20186 something else allocated at it. If we can, also make sure that
20187 we see the same garbage. */
20188 fd = open ("conftest.mmap", O_RDWR);
20189 if (fd < 0)
20190 return 1;
20191 data2 = (char *) malloc (2 * pagesize);
20192 if (!data2)
20193 return 1;
20194 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20197 return 1;
20198 for (i = 0; i < pagesize; ++i)
20199 if (*(data + i) != *(data2 + i))
20200 return 1;
20201
20202 /* Finally, make sure that changes to the mapped area do not
20203 percolate back to the file as seen by read(). (This is a bug on
20204 some variants of i386 svr4.0.) */
20205 for (i = 0; i < pagesize; ++i)
20206 *(data2 + i) = *(data2 + i) + 1;
20207 data3 = (char *) malloc (pagesize);
20208 if (!data3)
20209 return 1;
20210 if (read (fd, data3, pagesize) != pagesize)
20211 return 1;
20212 for (i = 0; i < pagesize; ++i)
20213 if (*(data + i) != *(data3 + i))
20214 return 1;
20215 close (fd);
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest$ac_exeext
20220if { (ac_try="$ac_link"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_func_mmap_fixed_mapped=yes
20240else
20241 echo "$as_me: program exited with status $ac_status" >&5
20242echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245( exit $ac_status )
20246ac_cv_func_mmap_fixed_mapped=no
20247fi
20248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249fi
20250
20251
20252fi
20253{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20254echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20255if test $ac_cv_func_mmap_fixed_mapped = yes; then
20256
20257cat >>confdefs.h <<\_ACEOF
20258#define HAVE_MMAP 1
20259_ACEOF
20260
20261fi
20262rm -f conftest.mmap
20263
20264 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20265echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20266if test "${ac_cv_func_mmap_file+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268else
20269 ac_ext=c
20270ac_cpp='$CPP $CPPFLAGS'
20271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273ac_compiler_gnu=$ac_cv_c_compiler_gnu
20274
20275 if test "$cross_compiling" = yes; then
20276 ac_cv_func_mmap_file=no
20277else
20278 cat >conftest.$ac_ext <<_ACEOF
20279
20280 /* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285
20286#include <sys/types.h>
20287#include <sys/mman.h>
20288#include <fcntl.h>
20289
20290int
20291main ()
20292{
20293
20294 int fd;
20295 fd = creat ("foo",0777);
20296 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20297 unlink ("foo");
20298 return (fd != (int) MAP_FAILED);
20299 ;
20300 return 0;
20301}
20302_ACEOF
20303rm -f conftest$ac_exeext
20304if { (ac_try="$ac_link"
20305case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308esac
20309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_func_mmap_file=yes
20324else
20325 echo "$as_me: program exited with status $ac_status" >&5
20326echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329( exit $ac_status )
20330ac_cv_func_mmap_file=no
20331fi
20332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333fi
20334
20335
20336 ac_ext=c
20337ac_cpp='$CPP $CPPFLAGS'
20338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341
20342
20343fi
20344{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20345echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20346if test "$ac_cv_func_mmap_file" = yes; then
20347
20348cat >>confdefs.h <<\_ACEOF
20349#define HAVE_MMAP_FILE
20350_ACEOF
20351
20352 MMAP_FILE=yes
20353
20354fi
20355
20356 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20357echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20358if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360else
20361 if test "$llvm_cv_os_type" = "Interix" ; then
20362 ac_cv_need_dev_zero_for_mmap=yes
20363 else
20364 ac_cv_need_dev_zero_for_mmap=no
20365 fi
20366
20367fi
20368{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20369echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20370if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20371
20372cat >>confdefs.h <<\_ACEOF
20373#define NEED_DEV_ZERO_FOR_MMAP 1
20374_ACEOF
20375
20376fi
20377
20378 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20379 then
20380 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20381echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20382 fi
20383 if test "$ac_cv_func_mmap_file" = "no"
20384 then
20385 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20386echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20387 fi
20388fi
20389
20390{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20391echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20392ac_ext=cpp
20393ac_cpp='$CXXCPP $CPPFLAGS'
20394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20397
20398cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404int main() {
20405 volatile unsigned long val = 1;
20406 __sync_synchronize();
20407 __sync_val_compare_and_swap(&val, 1, 0);
20408 __sync_add_and_fetch(&val, 1);
20409 __sync_sub_and_fetch(&val, 1);
20410 return 0;
20411 }
20412
20413_ACEOF
20414rm -f conftest.$ac_objext conftest$ac_exeext
20415if { (ac_try="$ac_link"
20416case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419esac
20420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20429 { (case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432esac
20433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_try") 2>&5
20435 ac_status=$?
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; } &&
20438 { ac_try='test -s conftest$ac_exeext'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455echo "${ECHO_T}yes" >&6; }
20456
20457cat >>confdefs.h <<\_ACEOF
20458#define LLVM_HAS_ATOMICS 1
20459_ACEOF
20460
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 { echo "$as_me:$LINENO: result: no" >&5
20466echo "${ECHO_T}no" >&6; }
20467
20468cat >>confdefs.h <<\_ACEOF
20469#define LLVM_HAS_ATOMICS 0
20470_ACEOF
20471
20472 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20473echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20474fi
20475
20476rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478
20479
20480if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20481 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20482echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20483if test "${llvm_cv_linux_mixed+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20485else
20486 ac_ext=c
20487ac_cpp='$CPP $CPPFLAGS'
20488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491
20492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498#ifndef __x86_64__
20499 error: Not x86-64 even if uname says so!
20500 #endif
20501
20502int
20503main ()
20504{
20505
20506 ;
20507 return 0;
20508}
20509_ACEOF
20510rm -f conftest.$ac_objext
20511if { (ac_try="$ac_compile"
20512case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20515esac
20516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 llvm_cv_linux_mixed=no
20545else
20546 echo "$as_me: failed program was:" >&5
20547sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 llvm_cv_linux_mixed=yes
20550fi
20551
20552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 ac_ext=c
20554ac_cpp='$CPP $CPPFLAGS'
20555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559
20560fi
20561{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20562echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20563
20564 if test "$llvm_cv_linux_mixed" = "yes"; then
20565 llvm_cv_target_arch="x86"
20566 ARCH="x86"
20567 fi
20568fi
20569
20570
20571for ac_func in __dso_handle
20572do
20573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578else
20579 cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20587#define $ac_func innocuous_$ac_func
20588
20589/* System header to define __stub macros and hopefully few prototypes,
20590 which can conflict with char $ac_func (); below.
20591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592 <limits.h> exists even on freestanding compilers. */
20593
20594#ifdef __STDC__
20595# include <limits.h>
20596#else
20597# include <assert.h>
20598#endif
20599
20600#undef $ac_func
20601
20602/* Override any GCC internal prototype to avoid an error.
20603 Use char because int might match the return type of a GCC
20604 builtin and then its argument prototype would still apply. */
20605#ifdef __cplusplus
20606extern "C"
20607#endif
20608char $ac_func ();
20609/* The GNU C library defines this for functions which it implements
20610 to always fail with ENOSYS. Some functions are actually named
20611 something starting with __ and the normal name is an alias. */
20612#if defined __stub_$ac_func || defined __stub___$ac_func
20613choke me
20614#endif
20615
20616int
20617main ()
20618{
20619return $ac_func ();
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext conftest$ac_exeext
20625if { (ac_try="$ac_link"
20626case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629esac
20630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest$ac_exeext'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652esac
20653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 eval "$as_ac_var=yes"
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 eval "$as_ac_var=no"
20664fi
20665
20666rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668fi
20669ac_res=`eval echo '${'$as_ac_var'}'`
20670 { echo "$as_me:$LINENO: result: $ac_res" >&5
20671echo "${ECHO_T}$ac_res" >&6; }
20672if test `eval echo '${'$as_ac_var'}'` = yes; then
20673 cat >>confdefs.h <<_ACEOF
20674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20675_ACEOF
20676
20677fi
20678done
20679
20680
20681SHLIBEXT=$libltdl_cv_shlibext
20682
20683
20684SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20685
20686
20687# Translate the various configuration directories and other basic
20688# information into substitutions that will end up in Makefile.config.in
20689# that these configured values can be used by the makefiles
20690if test "${prefix}" = "NONE" ; then
20691 prefix="/usr/local"
20692fi
20693eval LLVM_PREFIX="${prefix}";
20694eval LLVM_BINDIR="${prefix}/bin";
20695eval LLVM_LIBDIR="${prefix}/lib";
20696eval LLVM_DATADIR="${prefix}/share/llvm";
20697eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20698eval LLVM_ETCDIR="${prefix}/etc/llvm";
20699eval LLVM_INCLUDEDIR="${prefix}/include";
20700eval LLVM_INFODIR="${prefix}/info";
20701eval LLVM_MANDIR="${prefix}/man";
20702LLVM_CONFIGTIME=`date`
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714# Place the various directores into the config.h file as #defines so that we
20715# can know about the installation paths within LLVM.
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_PREFIX "$LLVM_PREFIX"
20719_ACEOF
20720
20721
20722cat >>confdefs.h <<_ACEOF
20723#define LLVM_BINDIR "$LLVM_BINDIR"
20724_ACEOF
20725
20726
20727cat >>confdefs.h <<_ACEOF
20728#define LLVM_LIBDIR "$LLVM_LIBDIR"
20729_ACEOF
20730
20731
20732cat >>confdefs.h <<_ACEOF
20733#define LLVM_DATADIR "$LLVM_DATADIR"
20734_ACEOF
20735
20736
20737cat >>confdefs.h <<_ACEOF
20738#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20739_ACEOF
20740
20741
20742cat >>confdefs.h <<_ACEOF
20743#define LLVM_ETCDIR "$LLVM_ETCDIR"
20744_ACEOF
20745
20746
20747cat >>confdefs.h <<_ACEOF
20748#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20749_ACEOF
20750
20751
20752cat >>confdefs.h <<_ACEOF
20753#define LLVM_INFODIR "$LLVM_INFODIR"
20754_ACEOF
20755
20756
20757cat >>confdefs.h <<_ACEOF
20758#define LLVM_MANDIR "$LLVM_MANDIR"
20759_ACEOF
20760
20761
20762cat >>confdefs.h <<_ACEOF
20763#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20764_ACEOF
20765
20766
20767cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020768#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020769_ACEOF
20770
20771
20772# Determine which bindings to build.
20773if test "$BINDINGS_TO_BUILD" = auto ; then
20774 BINDINGS_TO_BUILD=""
20775 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20776 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20777 fi
20778fi
20779BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20780
20781
20782# This isn't really configurey, but it avoids having to repeat the list in
20783# other files.
20784ALL_BINDINGS=ocaml
20785
20786
20787# Do any work necessary to ensure that bindings have what they need.
20788binding_prereqs_failed=0
20789for a_binding in $BINDINGS_TO_BUILD ; do
20790 case "$a_binding" in
20791 ocaml)
20792 if test "x$OCAMLC" = x ; then
20793 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20794echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20795 binding_prereqs_failed=1
20796 fi
20797 if test "x$OCAMLDEP" = x ; then
20798 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20799echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20800 binding_prereqs_failed=1
20801 fi
20802 if test "x$OCAMLOPT" = x ; then
20803 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20804echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20805 fi
20806 if test "x$with_ocaml_libdir" != xauto ; then
20807 OCAML_LIBDIR=$with_ocaml_libdir
20808
20809 else
20810 ocaml_stdlib="`"$OCAMLC" -where`"
20811 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20812 then
20813 # ocaml stdlib is beneath our prefix; use stdlib
20814 OCAML_LIBDIR=$ocaml_stdlib
20815
20816 else
20817 # ocaml stdlib is outside our prefix; use libdir/ocaml
20818 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20819
20820 fi
20821 fi
20822 ;;
20823 esac
20824done
20825if test "$binding_prereqs_failed" = 1 ; then
20826 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20827echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20828 { (exit 1); exit 1; }; }
20829fi
20830
20831{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20832echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20833if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836 ac_ext=cpp
20837ac_cpp='$CXXCPP $CPPFLAGS'
20838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841
20842 oldcxxflags="$CXXFLAGS"
Benjamin Kramer00171802012-05-05 15:02:39 +000020843 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020844 cat >conftest.$ac_ext <<_ACEOF
20845/* confdefs.h. */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h. */
Benjamin Kramer00171802012-05-05 15:02:39 +000020850template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020851int
20852main ()
20853{
Benjamin Kramer00171802012-05-05 15:02:39 +000020854X<int>().f();
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (ac_try="$ac_compile"
20861case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20874 { (case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877esac
20878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_try") 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 llvm_cv_cxx_visibility_inlines_hidden=yes
20894else
20895 echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 llvm_cv_cxx_visibility_inlines_hidden=no
20899fi
20900
20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 CXXFLAGS="$oldcxxflags"
20903 ac_ext=c
20904ac_cpp='$CPP $CPPFLAGS'
20905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908
20909
20910fi
20911{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20912echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20913if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20914 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20915
20916else
20917 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20918
20919fi
20920
20921
20922if test "$llvm_cv_link_use_r" = "yes" ; then
20923 RPATH="-Wl,-R"
20924else
20925 RPATH="-Wl,-rpath"
20926fi
20927
20928
20929if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20930 RDYNAMIC="-Wl,-export-dynamic"
20931else
20932 RDYNAMIC=""
20933fi
20934
20935
20936
Reid Spencer421ec052005-02-24 18:53:47 +000020937
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020938ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020939
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020940ac_config_files="$ac_config_files Makefile.llvm.config"
20941
John Criswell451f67f2003-10-16 01:45:35 +000020942
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020943ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020944
20945
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020946ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020947
20948
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020949ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020950
20951
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020952ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020953
20954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020955ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020956
20957
20958
John Criswell451f67f2003-10-16 01:45:35 +000020959cat >confcache <<\_ACEOF
20960# This file is a shell script that caches the results of configure
20961# tests run on this system so they can be shared between configure
20962# scripts and configure runs, see configure's option --config-cache.
20963# It is not useful on other systems. If it contains results you don't
20964# want to keep, you may remove or edit it.
20965#
20966# config.status only pays attention to the cache file if you give it
20967# the --recheck option to rerun configure.
20968#
20969# `ac_cv_env_foo' variables (set or unset) will be overridden when
20970# loading this file, other *unset* `ac_cv_foo' will be assigned the
20971# following values.
20972
20973_ACEOF
20974
20975# The following way of writing the cache mishandles newlines in values,
20976# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020977# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020978# Ultrix sh set writes to stderr and can't be redirected directly,
20979# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020980(
20981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20982 eval ac_val=\$$ac_var
20983 case $ac_val in #(
20984 *${as_nl}*)
20985 case $ac_var in #(
20986 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20987echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20988 esac
20989 case $ac_var in #(
20990 _ | IFS | as_nl) ;; #(
20991 *) $as_unset $ac_var ;;
20992 esac ;;
20993 esac
20994 done
20995
John Criswell451f67f2003-10-16 01:45:35 +000020996 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20998 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020999 # `set' does not quote correctly, so add quotes (double-quote
21000 # substitution turns \\\\ into \\, and sed turns \\ into \).
21001 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021002 "s/'/'\\\\''/g;
21003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021004 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021005 *)
21006 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021008 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021009 esac |
21010 sort
21011) |
John Criswell451f67f2003-10-16 01:45:35 +000021012 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021013 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021014 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021015 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21017 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21019 :end' >>confcache
21020if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21021 if test -w "$cache_file"; then
21022 test "x$cache_file" != "x/dev/null" &&
21023 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21024echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021025 cat confcache >$cache_file
21026 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021027 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21028echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021029 fi
21030fi
21031rm -f confcache
21032
21033test "x$prefix" = xNONE && prefix=$ac_default_prefix
21034# Let make expand exec_prefix.
21035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21036
John Criswell451f67f2003-10-16 01:45:35 +000021037# Transform confdefs.h into DEFS.
21038# Protect against shell expansion while executing Makefile rules.
21039# Protect against Makefile macro expansion.
21040#
21041# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021042# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021043# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021044ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021045t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021046:clear
21047s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021048t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021049s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021050t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021051b any
21052:quote
21053s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21054s/\[/\\&/g
21055s/\]/\\&/g
21056s/\$/$$/g
21057H
21058:any
21059${
21060 g
21061 s/^\n//
21062 s/\n/ /g
21063 p
21064}
21065'
21066DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021067
21068
21069ac_libobjs=
21070ac_ltlibobjs=
21071for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21072 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21074 ac_i=`echo "$ac_i" | sed "$ac_script"`
21075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21076 # will be set to the directory where LIBOBJS objects are built.
21077 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21078 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021079done
21080LIBOBJS=$ac_libobjs
21081
21082LTLIBOBJS=$ac_ltlibobjs
21083
21084
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021085if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21086 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21087Usually this means the macro was only invoked conditionally." >&5
21088echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21089Usually this means the macro was only invoked conditionally." >&2;}
21090 { (exit 1); exit 1; }; }
21091fi
21092if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21093 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21094Usually this means the macro was only invoked conditionally." >&5
21095echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21096Usually this means the macro was only invoked conditionally." >&2;}
21097 { (exit 1); exit 1; }; }
21098fi
John Criswell451f67f2003-10-16 01:45:35 +000021099
21100: ${CONFIG_STATUS=./config.status}
21101ac_clean_files_save=$ac_clean_files
21102ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21103{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21104echo "$as_me: creating $CONFIG_STATUS" >&6;}
21105cat >$CONFIG_STATUS <<_ACEOF
21106#! $SHELL
21107# Generated by $as_me.
21108# Run this file to recreate the current configuration.
21109# Compiler output produced by configure, useful for debugging
21110# configure, is in config.log if it exists.
21111
21112debug=false
21113ac_cs_recheck=false
21114ac_cs_silent=false
21115SHELL=\${CONFIG_SHELL-$SHELL}
21116_ACEOF
21117
21118cat >>$CONFIG_STATUS <<\_ACEOF
21119## --------------------- ##
21120## M4sh Initialization. ##
21121## --------------------- ##
21122
Dan Gohman324f6082009-03-25 00:52:11 +000021123# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021124if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21125 emulate sh
21126 NULLCMD=:
21127 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21128 # is contrary to our usage. Disable this feature.
21129 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021130 setopt NO_GLOB_SUBST
21131else
21132 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021133fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021134BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021135DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021136
John Criswell451f67f2003-10-16 01:45:35 +000021137
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021138# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021139# Avoid depending upon Character Ranges.
21140as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21142as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21143as_cr_digits='0123456789'
21144as_cr_alnum=$as_cr_Letters$as_cr_digits
21145
21146# The user is always right.
21147if test "${PATH_SEPARATOR+set}" != set; then
21148 echo "#! /bin/sh" >conf$$.sh
21149 echo "exit 0" >>conf$$.sh
21150 chmod +x conf$$.sh
21151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21152 PATH_SEPARATOR=';'
21153 else
21154 PATH_SEPARATOR=:
21155 fi
21156 rm -f conf$$.sh
21157fi
21158
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021159# Support unset when possible.
21160if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21161 as_unset=unset
21162else
21163 as_unset=false
21164fi
John Criswell451f67f2003-10-16 01:45:35 +000021165
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021166
21167# IFS
21168# We need space, tab and new line, in precisely that order. Quoting is
21169# there to prevent editors from complaining about space-tab.
21170# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21171# splitting by setting IFS to empty value.)
21172as_nl='
21173'
21174IFS=" "" $as_nl"
21175
21176# Find who we are. Look in the path if we contain no directory separator.
21177case $0 in
21178 *[\\/]* ) as_myself=$0 ;;
21179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021180for as_dir in $PATH
21181do
21182 IFS=$as_save_IFS
21183 test -z "$as_dir" && as_dir=.
21184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21185done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021186IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021188 ;;
21189esac
21190# We did not find ourselves, most probably we were run as `sh COMMAND'
21191# in which case we are not to be found in the path.
21192if test "x$as_myself" = x; then
21193 as_myself=$0
21194fi
21195if test ! -f "$as_myself"; then
21196 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21197 { (exit 1); exit 1; }
21198fi
21199
21200# Work around bugs in pre-3.0 UWIN ksh.
21201for as_var in ENV MAIL MAILPATH
21202do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21203done
21204PS1='$ '
21205PS2='> '
21206PS4='+ '
21207
21208# NLS nuisances.
21209for as_var in \
21210 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21211 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21212 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021213do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021214 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21215 eval $as_var=C; export $as_var
21216 else
21217 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21218 fi
21219done
21220
21221# Required to use basename.
21222if expr a : '\(a\)' >/dev/null 2>&1 &&
21223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21224 as_expr=expr
21225else
21226 as_expr=false
21227fi
21228
21229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21230 as_basename=basename
21231else
21232 as_basename=false
21233fi
21234
21235
21236# Name of the executable.
21237as_me=`$as_basename -- "$0" ||
21238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21239 X"$0" : 'X\(//\)$' \| \
21240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21241echo X/"$0" |
21242 sed '/^.*\/\([^/][^/]*\)\/*$/{
21243 s//\1/
21244 q
21245 }
21246 /^X\/\(\/\/\)$/{
21247 s//\1/
21248 q
21249 }
21250 /^X\/\(\/\).*/{
21251 s//\1/
21252 q
21253 }
21254 s/.*/./; q'`
21255
21256# CDPATH.
21257$as_unset CDPATH
21258
21259
21260
John Criswell451f67f2003-10-16 01:45:35 +000021261 as_lineno_1=$LINENO
21262 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021263 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021264 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021265
21266 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21267 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021268 # line-number line after each line using $LINENO; the second 'sed'
21269 # does the real work. The second script uses 'N' to pair each
21270 # line-number line with the line containing $LINENO, and appends
21271 # trailing '-' during substitution so that $LINENO is not a special
21272 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021273 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021274 # scripts with optimization help from Paolo Bonzini. Blame Lee
21275 # E. McMahon (1931-1989) for sed's syntax. :-)
21276 sed -n '
21277 p
21278 /[$]LINENO/=
21279 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021280 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021281 s/[$]LINENO.*/&-/
21282 t lineno
21283 b
21284 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021285 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021286 :loop
21287 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021288 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021289 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021290 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021291 chmod +x "$as_me.lineno" ||
21292 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021293 { (exit 1); exit 1; }; }
21294
21295 # Don't try to exec as it changes $[0], causing all sort of problems
21296 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021297 # original and so on. Autoconf is especially sensitive to this).
21298 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021299 # Exit status is that of the last command.
21300 exit
21301}
21302
21303
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021304if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21305 as_dirname=dirname
21306else
21307 as_dirname=false
21308fi
21309
21310ECHO_C= ECHO_N= ECHO_T=
21311case `echo -n x` in
21312-n*)
21313 case `echo 'x\c'` in
21314 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21315 *) ECHO_C='\c';;
21316 esac;;
21317*)
21318 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021319esac
21320
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021321if expr a : '\(a\)' >/dev/null 2>&1 &&
21322 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021323 as_expr=expr
21324else
21325 as_expr=false
21326fi
21327
21328rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021329if test -d conf$$.dir; then
21330 rm -f conf$$.dir/conf$$.file
21331else
21332 rm -f conf$$.dir
21333 mkdir conf$$.dir
21334fi
John Criswell451f67f2003-10-16 01:45:35 +000021335echo >conf$$.file
21336if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021337 as_ln_s='ln -s'
21338 # ... but there are two gotchas:
21339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21341 # In both cases, we have to default to `cp -p'.
21342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021343 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021344elif ln conf$$.file conf$$ 2>/dev/null; then
21345 as_ln_s=ln
21346else
21347 as_ln_s='cp -p'
21348fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21350rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021351
21352if mkdir -p . 2>/dev/null; then
21353 as_mkdir_p=:
21354else
Reid Spencer9964cd82005-01-01 09:26:55 +000021355 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021356 as_mkdir_p=false
21357fi
21358
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021359# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21360# systems may use methods other than mode bits to determine executability.
21361cat >conf$$.file <<_ASEOF
21362#! /bin/sh
21363exit 0
21364_ASEOF
21365chmod +x conf$$.file
21366if test -x conf$$.file >/dev/null 2>&1; then
21367 as_executable_p="test -x"
21368else
21369 as_executable_p=:
21370fi
21371rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021372
21373# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021375
21376# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021378
21379
John Criswell451f67f2003-10-16 01:45:35 +000021380exec 6>&1
21381
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021382# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021383# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384# values after options handling.
21385ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021386This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021387generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021388
21389 CONFIG_FILES = $CONFIG_FILES
21390 CONFIG_HEADERS = $CONFIG_HEADERS
21391 CONFIG_LINKS = $CONFIG_LINKS
21392 CONFIG_COMMANDS = $CONFIG_COMMANDS
21393 $ $0 $@
21394
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021395on `(hostname || uname -n) 2>/dev/null | sed 1q`
21396"
21397
John Criswell451f67f2003-10-16 01:45:35 +000021398_ACEOF
21399
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021400cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021401# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021402config_files="$ac_config_files"
21403config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021404
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021405_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021406
21407cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021408ac_cs_usage="\
21409\`$as_me' instantiates files from templates according to the
21410current configuration.
21411
21412Usage: $0 [OPTIONS] [FILE]...
21413
21414 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021415 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021416 -q, --quiet do not print progress messages
21417 -d, --debug don't remove temporary files
21418 --recheck update $as_me by reconfiguring in the same conditions
21419 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021420 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021421
21422Configuration files:
21423$config_files
21424
21425Configuration commands:
21426$config_commands
21427
21428Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021429
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021430_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021431cat >>$CONFIG_STATUS <<_ACEOF
21432ac_cs_version="\\
21433[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021434configured by $0, generated by GNU Autoconf 2.60,
21435 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021436
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021437Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021438This config.status script is free software; the Free Software Foundation
21439gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021440
21441ac_pwd='$ac_pwd'
21442srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021443INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021444_ACEOF
21445
21446cat >>$CONFIG_STATUS <<\_ACEOF
21447# If no file are specified by the user, then we need to provide default
21448# value. By we need to know if files were specified by the user.
21449ac_need_defaults=:
21450while test $# != 0
21451do
21452 case $1 in
21453 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021456 ac_shift=:
21457 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021458 *)
John Criswell451f67f2003-10-16 01:45:35 +000021459 ac_option=$1
21460 ac_optarg=$2
21461 ac_shift=shift
21462 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021463 esac
21464
21465 case $ac_option in
21466 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21468 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21470 echo "$ac_cs_version"; exit ;;
21471 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021472 debug=: ;;
21473 --file | --fil | --fi | --f )
21474 $ac_shift
21475 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21476 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021477 --he | --h | --help | --hel | -h )
21478 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21481 ac_cs_silent=: ;;
21482
21483 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021484 -*) { echo "$as_me: error: unrecognized option: $1
21485Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021486 { (exit 1); exit 1; }; } ;;
21487
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021488 *) ac_config_targets="$ac_config_targets $1"
21489 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021490
21491 esac
21492 shift
21493done
21494
21495ac_configure_extra_args=
21496
21497if $ac_cs_silent; then
21498 exec 6>/dev/null
21499 ac_configure_extra_args="$ac_configure_extra_args --silent"
21500fi
21501
21502_ACEOF
21503cat >>$CONFIG_STATUS <<_ACEOF
21504if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021505 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21506 CONFIG_SHELL=$SHELL
21507 export CONFIG_SHELL
21508 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021509fi
21510
21511_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021512cat >>$CONFIG_STATUS <<\_ACEOF
21513exec 5>>config.log
21514{
21515 echo
21516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21517## Running $as_me. ##
21518_ASBOX
21519 echo "$ac_log"
21520} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021521
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021522_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021523cat >>$CONFIG_STATUS <<_ACEOF
21524#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021525# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021526#
Reid Spencer421ec052005-02-24 18:53:47 +000021527llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021528
21529_ACEOF
21530
Dan Gohman324f6082009-03-25 00:52:11 +000021531cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021532
21533# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021534for ac_config_target in $ac_config_targets
21535do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021536 case $ac_config_target in
21537 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21538 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021539 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021540 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21541 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21542 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21543 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21544 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21545
John Criswell451f67f2003-10-16 01:45:35 +000021546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21547echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21548 { (exit 1); exit 1; }; };;
21549 esac
21550done
21551
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021552
John Criswell451f67f2003-10-16 01:45:35 +000021553# If the user did not use the arguments to specify the items to instantiate,
21554# then the envvar interface is used. Set only those that are not.
21555# We use the long form for the default assignment because of an extremely
21556# bizarre bug on SunOS 4.1.3.
21557if $ac_need_defaults; then
21558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21560fi
21561
21562# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021563# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021564# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021565# Hook for its removal unless debugging.
21566# Note that there is a small window in which the directory will not be cleaned:
21567# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021568$debug ||
21569{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021570 tmp=
21571 trap 'exit_status=$?
21572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21573' 0
John Criswell451f67f2003-10-16 01:45:35 +000021574 trap '{ (exit 1); exit 1; }' 1 2 13 15
21575}
John Criswell451f67f2003-10-16 01:45:35 +000021576# Create a (secure) tmp directory for tmp files.
21577
21578{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021580 test -n "$tmp" && test -d "$tmp"
21581} ||
21582{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021583 tmp=./conf$$-$RANDOM
21584 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021585} ||
21586{
21587 echo "$me: cannot create a temporary directory in ." >&2
21588 { (exit 1); exit 1; }
21589}
21590
John Criswell451f67f2003-10-16 01:45:35 +000021591#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021592# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021593#
21594
21595# No need to generate the scripts if there are no CONFIG_FILES.
21596# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021597if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021598
21599_ACEOF
21600
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021601
21602
21603ac_delim='%!_!# '
21604for ac_last_try in false false false false false :; do
21605 cat >conf$$subs.sed <<_ACEOF
21606SHELL!$SHELL$ac_delim
21607PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21608PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21609PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21610PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21611PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21612PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21613exec_prefix!$exec_prefix$ac_delim
21614prefix!$prefix$ac_delim
21615program_transform_name!$program_transform_name$ac_delim
21616bindir!$bindir$ac_delim
21617sbindir!$sbindir$ac_delim
21618libexecdir!$libexecdir$ac_delim
21619datarootdir!$datarootdir$ac_delim
21620datadir!$datadir$ac_delim
21621sysconfdir!$sysconfdir$ac_delim
21622sharedstatedir!$sharedstatedir$ac_delim
21623localstatedir!$localstatedir$ac_delim
21624includedir!$includedir$ac_delim
21625oldincludedir!$oldincludedir$ac_delim
21626docdir!$docdir$ac_delim
21627infodir!$infodir$ac_delim
21628htmldir!$htmldir$ac_delim
21629dvidir!$dvidir$ac_delim
21630pdfdir!$pdfdir$ac_delim
21631psdir!$psdir$ac_delim
21632libdir!$libdir$ac_delim
21633localedir!$localedir$ac_delim
21634mandir!$mandir$ac_delim
21635DEFS!$DEFS$ac_delim
21636ECHO_C!$ECHO_C$ac_delim
21637ECHO_N!$ECHO_N$ac_delim
21638ECHO_T!$ECHO_T$ac_delim
21639LIBS!$LIBS$ac_delim
21640build_alias!$build_alias$ac_delim
21641host_alias!$host_alias$ac_delim
21642target_alias!$target_alias$ac_delim
21643LLVM_SRC!$LLVM_SRC$ac_delim
21644LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021645LLVM_VERSION!$LLVM_VERSION$ac_delim
21646CC!$CC$ac_delim
21647CFLAGS!$CFLAGS$ac_delim
21648LDFLAGS!$LDFLAGS$ac_delim
21649CPPFLAGS!$CPPFLAGS$ac_delim
21650ac_ct_CC!$ac_ct_CC$ac_delim
21651EXEEXT!$EXEEXT$ac_delim
21652OBJEXT!$OBJEXT$ac_delim
21653CXX!$CXX$ac_delim
21654CXXFLAGS!$CXXFLAGS$ac_delim
21655ac_ct_CXX!$ac_ct_CXX$ac_delim
21656CPP!$CPP$ac_delim
21657ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21658LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21659subdirs!$subdirs$ac_delim
21660build!$build$ac_delim
21661build_cpu!$build_cpu$ac_delim
21662build_vendor!$build_vendor$ac_delim
21663build_os!$build_os$ac_delim
21664host!$host$ac_delim
21665host_cpu!$host_cpu$ac_delim
21666host_vendor!$host_vendor$ac_delim
21667host_os!$host_os$ac_delim
21668target!$target$ac_delim
21669target_cpu!$target_cpu$ac_delim
21670target_vendor!$target_vendor$ac_delim
21671target_os!$target_os$ac_delim
21672OS!$OS$ac_delim
21673HOST_OS!$HOST_OS$ac_delim
21674TARGET_OS!$TARGET_OS$ac_delim
21675LINKALL!$LINKALL$ac_delim
21676NOLINKALL!$NOLINKALL$ac_delim
21677LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21678LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21679ARCH!$ARCH$ac_delim
21680ENDIAN!$ENDIAN$ac_delim
21681GREP!$GREP$ac_delim
21682EGREP!$EGREP$ac_delim
21683LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21684BUILD_CC!$BUILD_CC$ac_delim
21685BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21686BUILD_CXX!$BUILD_CXX$ac_delim
21687CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021688ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021689ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021690ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21691ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21692DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021693ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021694ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21698JIT!$JIT$ac_delim
21699TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21701ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21702ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021703_ACEOF
21704
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021706 break
21707 elif $ac_last_try; then
21708 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21709echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21710 { (exit 1); exit 1; }; }
21711 else
21712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021713 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021714done
21715
21716ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21717if test -n "$ac_eof"; then
21718 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21719 ac_eof=`expr $ac_eof + 1`
21720fi
21721
21722cat >>$CONFIG_STATUS <<_ACEOF
21723cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21725_ACEOF
21726sed '
21727s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21728s/^/s,@/; s/!/@,|#_!!_#|/
21729:n
21730t n
21731s/'"$ac_delim"'$/,g/; t
21732s/$/\\/; p
21733N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21734' >>$CONFIG_STATUS <conf$$subs.sed
21735rm -f conf$$subs.sed
21736cat >>$CONFIG_STATUS <<_ACEOF
21737CEOF$ac_eof
21738_ACEOF
21739
21740
21741ac_delim='%!_!# '
21742for ac_last_try in false false false false false :; do
21743 cat >conf$$subs.sed <<_ACEOF
Craig Topper8ee39632012-11-12 06:11:12 +000021744ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21745ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021746ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021747ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21748ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21749TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21750LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21751LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21752LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21753LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021754OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21755EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21756EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21757BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21758NM!$NM$ac_delim
21759ifGNUmake!$ifGNUmake$ac_delim
21760LN_S!$LN_S$ac_delim
21761CMP!$CMP$ac_delim
21762CP!$CP$ac_delim
21763DATE!$DATE$ac_delim
21764FIND!$FIND$ac_delim
21765MKDIR!$MKDIR$ac_delim
21766MV!$MV$ac_delim
21767RANLIB!$RANLIB$ac_delim
21768AR!$AR$ac_delim
21769RM!$RM$ac_delim
21770SED!$SED$ac_delim
21771TAR!$TAR$ac_delim
21772BINPWD!$BINPWD$ac_delim
21773GRAPHVIZ!$GRAPHVIZ$ac_delim
21774DOT!$DOT$ac_delim
21775FDP!$FDP$ac_delim
21776NEATO!$NEATO$ac_delim
21777TWOPI!$TWOPI$ac_delim
21778CIRCO!$CIRCO$ac_delim
21779GV!$GV$ac_delim
21780DOTTY!$DOTTY$ac_delim
21781XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021782INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21783INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21784INSTALL_DATA!$INSTALL_DATA$ac_delim
21785BZIP2!$BZIP2$ac_delim
21786CAT!$CAT$ac_delim
21787DOXYGEN!$DOXYGEN$ac_delim
21788GROFF!$GROFF$ac_delim
21789GZIPBIN!$GZIPBIN$ac_delim
21790POD2HTML!$POD2HTML$ac_delim
21791POD2MAN!$POD2MAN$ac_delim
21792PDFROFF!$PDFROFF$ac_delim
21793RUNTEST!$RUNTEST$ac_delim
21794TCLSH!$TCLSH$ac_delim
21795ZIP!$ZIP$ac_delim
21796OCAMLC!$OCAMLC$ac_delim
21797OCAMLOPT!$OCAMLOPT$ac_delim
21798OCAMLDEP!$OCAMLDEP$ac_delim
21799OCAMLDOC!$OCAMLDOC$ac_delim
21800GAS!$GAS$ac_delim
21801HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21802INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21803INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21804CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21805CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21806LIBADD_DL!$LIBADD_DL$ac_delim
21807NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21808NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021809COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021810USE_UDIS86!$USE_UDIS86$ac_delim
21811USE_OPROFILE!$USE_OPROFILE$ac_delim
21812HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21813HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21814MMAP_FILE!$MMAP_FILE$ac_delim
21815SHLIBEXT!$SHLIBEXT$ac_delim
21816SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21817LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21818LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21819LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21820LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21821LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21822LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21823LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21824LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21825LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21826LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21827BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21828ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21829OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21830ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21831RPATH!$RPATH$ac_delim
21832RDYNAMIC!$RDYNAMIC$ac_delim
21833LIBOBJS!$LIBOBJS$ac_delim
21834LTLIBOBJS!$LTLIBOBJS$ac_delim
21835_ACEOF
21836
Craig Topper8ee39632012-11-12 06:11:12 +000021837 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021838 break
21839 elif $ac_last_try; then
21840 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21841echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21842 { (exit 1); exit 1; }; }
21843 else
21844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21845 fi
21846done
21847
21848ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21849if test -n "$ac_eof"; then
21850 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21851 ac_eof=`expr $ac_eof + 1`
21852fi
21853
21854cat >>$CONFIG_STATUS <<_ACEOF
21855cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21857_ACEOF
21858sed '
21859s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21860s/^/s,@/; s/!/@,|#_!!_#|/
21861:n
21862t n
21863s/'"$ac_delim"'$/,g/; t
21864s/$/\\/; p
21865N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21866' >>$CONFIG_STATUS <conf$$subs.sed
21867rm -f conf$$subs.sed
21868cat >>$CONFIG_STATUS <<_ACEOF
21869:end
21870s/|#_!!_#|//g
21871CEOF$ac_eof
21872_ACEOF
21873
21874
21875# VPATH may cause trouble with some makes, so we remove $(srcdir),
21876# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21877# trailing colons and then remove the whole line if VPATH becomes empty
21878# (actually we leave an empty line to preserve line numbers).
21879if test "x$srcdir" = x.; then
21880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21881s/:*\$(srcdir):*/:/
21882s/:*\${srcdir}:*/:/
21883s/:*@srcdir@:*/:/
21884s/^\([^=]*=[ ]*\):*/\1/
21885s/:*$//
21886s/^[^=]*=[ ]*$//
21887}'
21888fi
21889
21890cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021891fi # test -n "$CONFIG_FILES"
21892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021893
21894for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21895do
21896 case $ac_tag in
21897 :[FHLC]) ac_mode=$ac_tag; continue;;
21898 esac
21899 case $ac_mode$ac_tag in
21900 :[FHL]*:*);;
21901 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21902echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21903 { (exit 1); exit 1; }; };;
21904 :[FH]-) ac_tag=-:-;;
21905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21906 esac
21907 ac_save_IFS=$IFS
21908 IFS=:
21909 set x $ac_tag
21910 IFS=$ac_save_IFS
21911 shift
21912 ac_file=$1
21913 shift
21914
21915 case $ac_mode in
21916 :L) ac_source=$1;;
21917 :[FH])
21918 ac_file_inputs=
21919 for ac_f
21920 do
21921 case $ac_f in
21922 -) ac_f="$tmp/stdin";;
21923 *) # Look for the file first in the build tree, then in the source tree
21924 # (if the path is not absolute). The absolute path cannot be DOS-style,
21925 # because $ac_f cannot contain `:'.
21926 test -f "$ac_f" ||
21927 case $ac_f in
21928 [\\/$]*) false;;
21929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21930 esac ||
21931 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21932echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21933 { (exit 1); exit 1; }; };;
21934 esac
21935 ac_file_inputs="$ac_file_inputs $ac_f"
21936 done
21937
21938 # Let's still pretend it is `configure' which instantiates (i.e., don't
21939 # use $as_me), people would be surprised to read:
21940 # /* config.h. Generated by config.status. */
21941 configure_input="Generated from "`IFS=:
21942 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21943 if test x"$ac_file" != x-; then
21944 configure_input="$ac_file. $configure_input"
21945 { echo "$as_me:$LINENO: creating $ac_file" >&5
21946echo "$as_me: creating $ac_file" >&6;}
21947 fi
21948
21949 case $ac_tag in
21950 *:-:* | *:-) cat >"$tmp/stdin";;
21951 esac
21952 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021953 esac
21954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021955 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021956$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021957 X"$ac_file" : 'X\(//\)[^/]' \| \
21958 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021960echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21962 s//\1/
21963 q
21964 }
21965 /^X\(\/\/\)[^/].*/{
21966 s//\1/
21967 q
21968 }
21969 /^X\(\/\/\)$/{
21970 s//\1/
21971 q
21972 }
21973 /^X\(\/\).*/{
21974 s//\1/
21975 q
21976 }
21977 s/.*/./; q'`
21978 { as_dir="$ac_dir"
21979 case $as_dir in #(
21980 -*) as_dir=./$as_dir;;
21981 esac
21982 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021983 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021984 while :; do
21985 case $as_dir in #(
21986 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21987 *) as_qdir=$as_dir;;
21988 esac
21989 as_dirs="'$as_qdir' $as_dirs"
21990 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021992 X"$as_dir" : 'X\(//\)[^/]' \| \
21993 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021995echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21997 s//\1/
21998 q
21999 }
22000 /^X\(\/\/\)[^/].*/{
22001 s//\1/
22002 q
22003 }
22004 /^X\(\/\/\)$/{
22005 s//\1/
22006 q
22007 }
22008 /^X\(\/\).*/{
22009 s//\1/
22010 q
22011 }
22012 s/.*/./; q'`
22013 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022014 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022015 test -z "$as_dirs" || eval "mkdir $as_dirs"
22016 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22017echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022018 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022019 ac_builddir=.
22020
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022021case "$ac_dir" in
22022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22023*)
John Criswell451f67f2003-10-16 01:45:35 +000022024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022025 # A ".." for each directory in $ac_dir_suffix.
22026 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22027 case $ac_top_builddir_sub in
22028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22030 esac ;;
22031esac
22032ac_abs_top_builddir=$ac_pwd
22033ac_abs_builddir=$ac_pwd$ac_dir_suffix
22034# for backward compatibility:
22035ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022036
22037case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022038 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022039 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022040 ac_top_srcdir=$ac_top_builddir_sub
22041 ac_abs_top_srcdir=$ac_pwd ;;
22042 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022043 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022044 ac_top_srcdir=$srcdir
22045 ac_abs_top_srcdir=$srcdir ;;
22046 *) # Relative name.
22047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22048 ac_top_srcdir=$ac_top_build_prefix$srcdir
22049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022050esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022052
Dan Gohman324f6082009-03-25 00:52:11 +000022053
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022054 case $ac_mode in
22055 :F)
22056 #
22057 # CONFIG_FILE
22058 #
Dan Gohman324f6082009-03-25 00:52:11 +000022059
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022060 case $INSTALL in
22061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22063 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022064_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022065
22066cat >>$CONFIG_STATUS <<\_ACEOF
22067# If the template does not know about datarootdir, expand it.
22068# FIXME: This hack should be removed a few years after 2.60.
22069ac_datarootdir_hack=; ac_datarootdir_seen=
22070
22071case `sed -n '/datarootdir/ {
22072 p
22073 q
22074}
22075/@datadir@/p
22076/@docdir@/p
22077/@infodir@/p
22078/@localedir@/p
22079/@mandir@/p
22080' $ac_file_inputs` in
22081*datarootdir*) ac_datarootdir_seen=yes;;
22082*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22083 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22084echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22085_ACEOF
22086cat >>$CONFIG_STATUS <<_ACEOF
22087 ac_datarootdir_hack='
22088 s&@datadir@&$datadir&g
22089 s&@docdir@&$docdir&g
22090 s&@infodir@&$infodir&g
22091 s&@localedir@&$localedir&g
22092 s&@mandir@&$mandir&g
22093 s&\\\${datarootdir}&$datarootdir&g' ;;
22094esac
22095_ACEOF
22096
22097# Neutralize VPATH when `$srcdir' = `.'.
22098# Shell code in configure.ac might set extrasub.
22099# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022100cat >>$CONFIG_STATUS <<_ACEOF
22101 sed "$ac_vpsub
22102$extrasub
22103_ACEOF
22104cat >>$CONFIG_STATUS <<\_ACEOF
22105:t
22106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022107s&@configure_input@&$configure_input&;t t
22108s&@top_builddir@&$ac_top_builddir_sub&;t t
22109s&@srcdir@&$ac_srcdir&;t t
22110s&@abs_srcdir@&$ac_abs_srcdir&;t t
22111s&@top_srcdir@&$ac_top_srcdir&;t t
22112s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22113s&@builddir@&$ac_builddir&;t t
22114s&@abs_builddir@&$ac_abs_builddir&;t t
22115s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022116s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022117$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022118" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022119
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022120test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22121 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22123 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22124which seems to be undefined. Please make sure it is defined." >&5
22125echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22126which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022127
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022128 rm -f "$tmp/stdin"
22129 case $ac_file in
22130 -) cat "$tmp/out"; rm -f "$tmp/out";;
22131 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022132 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022133 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022134
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022135
22136 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22137echo "$as_me: executing $ac_file commands" >&6;}
22138 ;;
22139 esac
22140
22141
22142 case $ac_file$ac_mode in
Benjamin Kramer00171802012-05-05 15:02:39 +000022143 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22144 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22145 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22146 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22147 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22148 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22149 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22150 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22151 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22152 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022153
22154 esac
22155done # for ac_tag
22156
John Criswell451f67f2003-10-16 01:45:35 +000022157
22158{ (exit 0); exit 0; }
22159_ACEOF
22160chmod +x $CONFIG_STATUS
22161ac_clean_files=$ac_clean_files_save
22162
22163
22164# configure is writing to config.log, and then calls config.status.
22165# config.status does its own redirection, appending to config.log.
22166# Unfortunately, on DOS this fails, as config.log is still kept open
22167# by configure, so config.status won't be able to write to it; its
22168# output is simply discarded. So we exec the FD to /dev/null,
22169# effectively closing config.log, so it can be properly (re)opened and
22170# appended to by config.status. When coming back to configure, we
22171# need to make the FD available again.
22172if test "$no_create" != yes; then
22173 ac_cs_success=:
22174 ac_config_status_args=
22175 test "$silent" = yes &&
22176 ac_config_status_args="$ac_config_status_args --quiet"
22177 exec 5>/dev/null
22178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22179 exec 5>>config.log
22180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22181 # would make configure fail if this is the last instruction.
22182 $ac_cs_success || { (exit 1); exit 1; }
22183fi
22184
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022185#
22186# CONFIG_SUBDIRS section.
22187#
22188if test "$no_recursion" != yes; then
22189
22190 # Remove --cache-file and --srcdir arguments so they do not pile up.
22191 ac_sub_configure_args=
22192 ac_prev=
22193 eval "set x $ac_configure_args"
22194 shift
22195 for ac_arg
22196 do
22197 if test -n "$ac_prev"; then
22198 ac_prev=
22199 continue
22200 fi
22201 case $ac_arg in
22202 -cache-file | --cache-file | --cache-fil | --cache-fi \
22203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22204 ac_prev=cache_file ;;
22205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22207 | --c=*)
22208 ;;
22209 --config-cache | -C)
22210 ;;
22211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22212 ac_prev=srcdir ;;
22213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22214 ;;
22215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22216 ac_prev=prefix ;;
22217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22218 ;;
22219 *)
22220 case $ac_arg in
22221 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22222 esac
22223 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22224 esac
22225 done
22226
22227 # Always prepend --prefix to ensure using the same prefix
22228 # in subdir configurations.
22229 ac_arg="--prefix=$prefix"
22230 case $ac_arg in
22231 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22232 esac
22233 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22234
22235 ac_popdir=`pwd`
22236 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22237
22238 # Do not complain, so a configure script can configure whichever
22239 # parts of a large source tree are present.
22240 test -d "$srcdir/$ac_dir" || continue
22241
22242 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22243 echo "$as_me:$LINENO: $ac_msg" >&5
22244 echo "$ac_msg" >&6
22245 { as_dir="$ac_dir"
22246 case $as_dir in #(
22247 -*) as_dir=./$as_dir;;
22248 esac
22249 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22250 as_dirs=
22251 while :; do
22252 case $as_dir in #(
22253 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22254 *) as_qdir=$as_dir;;
22255 esac
22256 as_dirs="'$as_qdir' $as_dirs"
22257 as_dir=`$as_dirname -- "$as_dir" ||
22258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22259 X"$as_dir" : 'X\(//\)[^/]' \| \
22260 X"$as_dir" : 'X\(//\)$' \| \
22261 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22262echo X"$as_dir" |
22263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22264 s//\1/
22265 q
22266 }
22267 /^X\(\/\/\)[^/].*/{
22268 s//\1/
22269 q
22270 }
22271 /^X\(\/\/\)$/{
22272 s//\1/
22273 q
22274 }
22275 /^X\(\/\).*/{
22276 s//\1/
22277 q
22278 }
22279 s/.*/./; q'`
22280 test -d "$as_dir" && break
22281 done
22282 test -z "$as_dirs" || eval "mkdir $as_dirs"
22283 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22284echo "$as_me: error: cannot create directory $as_dir" >&2;}
22285 { (exit 1); exit 1; }; }; }
22286 ac_builddir=.
22287
22288case "$ac_dir" in
22289.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22290*)
22291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22292 # A ".." for each directory in $ac_dir_suffix.
22293 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22294 case $ac_top_builddir_sub in
22295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22297 esac ;;
22298esac
22299ac_abs_top_builddir=$ac_pwd
22300ac_abs_builddir=$ac_pwd$ac_dir_suffix
22301# for backward compatibility:
22302ac_top_builddir=$ac_top_build_prefix
22303
22304case $srcdir in
22305 .) # We are building in place.
22306 ac_srcdir=.
22307 ac_top_srcdir=$ac_top_builddir_sub
22308 ac_abs_top_srcdir=$ac_pwd ;;
22309 [\\/]* | ?:[\\/]* ) # Absolute name.
22310 ac_srcdir=$srcdir$ac_dir_suffix;
22311 ac_top_srcdir=$srcdir
22312 ac_abs_top_srcdir=$srcdir ;;
22313 *) # Relative name.
22314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22315 ac_top_srcdir=$ac_top_build_prefix$srcdir
22316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22317esac
22318ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22319
22320
22321 cd "$ac_dir"
22322
22323 # Check for guested configure; otherwise get Cygnus style configure.
22324 if test -f "$ac_srcdir/configure.gnu"; then
22325 ac_sub_configure=$ac_srcdir/configure.gnu
22326 elif test -f "$ac_srcdir/configure"; then
22327 ac_sub_configure=$ac_srcdir/configure
22328 elif test -f "$ac_srcdir/configure.in"; then
22329 # This should be Cygnus configure.
22330 ac_sub_configure=$ac_aux_dir/configure
22331 else
22332 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22333echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22334 ac_sub_configure=
22335 fi
22336
22337 # The recursion is here.
22338 if test -n "$ac_sub_configure"; then
22339 # Make the cache file name correct relative to the subdirectory.
22340 case $cache_file in
22341 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22342 *) # Relative name.
22343 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22344 esac
22345
22346 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22347echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22348 # The eval makes quoting arguments work.
22349 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22350 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22351 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22352echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22353 { (exit 1); exit 1; }; }
22354 fi
22355
22356 cd "$ac_popdir"
22357 done
22358fi
22359