blob: a54e15329f45125a17cb3b214ba9603dfc1de6ba [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001377 --enable-libcpp Use libc++ if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Justin Holewinski49683f32012-05-04 20:18:50 +00001405 xcore, msp430, ptx, nvptx, cbe, and cpp
1406 (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001407 --enable-bindings Build specific language bindings:
1408 all,auto,none,{binding-name} (default=auto)
1409 --enable-libffi Check for the presence of libffi (default is NO)
1410 --enable-ltdl-install install libltdl
1411
John Criswell451f67f2003-10-16 01:45:35 +00001412Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-llvmsrc Location of LLVM Source Code
1416 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001417 --with-optimize-option Select the compiler options to use for optimized
1418 builds
1419 --with-extra-options Specify additional options to compile LLVM with
1420 --with-extra-ld-options Specify additional options to link LLVM with
1421 --with-ocaml-libdir Specify install location for ocaml bindings (default
1422 is stdlib)
1423 --with-clang-resource-dir
1424 Relative directory from the Clang binary for
1425 resource files
1426 --with-c-include-dirs Colon separated list of directories clang will
1427 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001428 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001429 --with-binutils-include Specify path to binutils/include/ containing
1430 plugin-api.h file for gold plugin.
1431 --with-bug-report-url Specify the URL where bug reports should be
1432 submitted (default=http://llvm.org/bugs/)
1433 --with-tclinclude directory where tcl headers are
1434 --with-udis86=<path> Use udis86 external x86 disassembler library
1435 --with-oprofile=<prefix>
1436 Tell OProfile >= 0.9.4 how to symbolize JIT output
1437
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1447 CPP C preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001451
1452Report bugs to <bugs@yourdomain>.
1453_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001454ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001460 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001461 ac_builddir=.
1462
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
John Criswell451f67f2003-10-16 01:45:35 +00001466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001478
1479case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001480 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001481 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001485 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001492esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001494
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001503 else
1504 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001507 done
1508fi
1509
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001510test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001511if $ac_init_version; then
1512 cat <<\_ACEOF
1513[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001514generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001515
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001516Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15172002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001521 exit
John Criswell451f67f2003-10-16 01:45:35 +00001522fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001524This file contains any messages produced by compilers while
1525running configure, to aid debugging if configure makes a mistake.
1526
1527It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001528generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001529
1530 $ $0 $@
1531
1532_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001533exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001534{
1535cat <<_ASUNAME
1536## --------- ##
1537## Platform. ##
1538## --------- ##
1539
1540hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544uname -v = `(uname -v) 2>/dev/null || echo unknown`
1545
1546/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1548
1549/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1550/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1551/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001552/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001553/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1554/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1555/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1556
1557_ASUNAME
1558
1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 echo "PATH: $as_dir"
1565done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001566IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001567
1568} >&5
1569
1570cat >&5 <<_ACEOF
1571
1572
1573## ----------- ##
1574## Core tests. ##
1575## ----------- ##
1576
1577_ACEOF
1578
1579
1580# Keep a trace of the command line.
1581# Strip out --no-create and --no-recursion so they do not pile up.
1582# Strip out --silent because we don't want to record it for future runs.
1583# Also quote any args containing shell meta-characters.
1584# Make two passes to allow for proper duplicate-argument suppression.
1585ac_configure_args=
1586ac_configure_args0=
1587ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001588ac_must_keep_next=false
1589for ac_pass in 1 2
1590do
1591 for ac_arg
1592 do
1593 case $ac_arg in
1594 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596 | -silent | --silent | --silen | --sile | --sil)
1597 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001598 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001599 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1600 esac
1601 case $ac_pass in
1602 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1603 2)
1604 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001606 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001607 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001608 case $ac_arg in
1609 *=* | --config-cache | -C | -disable-* | --disable-* \
1610 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612 | -with-* | --with-* | -without-* | --without-* | --x)
1613 case "$ac_configure_args0 " in
1614 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1615 esac
1616 ;;
1617 -* ) ac_must_keep_next=true ;;
1618 esac
John Criswell451f67f2003-10-16 01:45:35 +00001619 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001620 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001621 ;;
1622 esac
1623 done
1624done
1625$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1627
1628# When interrupted or exit'd, cleanup temporary files, and complete
1629# config.log. We remove comments because anyway the quotes in there
1630# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001631# WARNING: Use '\'' to represent an apostrophe within the trap.
1632# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001633trap 'exit_status=$?
1634 # Save into config.log some information that might help in debugging.
1635 {
1636 echo
1637
1638 cat <<\_ASBOX
1639## ---------------- ##
1640## Cache variables. ##
1641## ---------------- ##
1642_ASBOX
1643 echo
1644 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001645(
1646 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647 eval ac_val=\$$ac_var
1648 case $ac_val in #(
1649 *${as_nl}*)
1650 case $ac_var in #(
1651 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1653 esac
1654 case $ac_var in #(
1655 _ | IFS | as_nl) ;; #(
1656 *) $as_unset $ac_var ;;
1657 esac ;;
1658 esac
1659 done
John Criswell451f67f2003-10-16 01:45:35 +00001660 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001661 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001663 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001664 "s/'\''/'\''\\\\'\'''\''/g;
1665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1666 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001667 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001669 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001670 esac |
1671 sort
1672)
John Criswell451f67f2003-10-16 01:45:35 +00001673 echo
1674
1675 cat <<\_ASBOX
1676## ----------------- ##
1677## Output variables. ##
1678## ----------------- ##
1679_ASBOX
1680 echo
1681 for ac_var in $ac_subst_vars
1682 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001683 eval ac_val=\$$ac_var
1684 case $ac_val in
1685 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 esac
1687 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001688 done | sort
1689 echo
1690
1691 if test -n "$ac_subst_files"; then
1692 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001693## ------------------- ##
1694## File substitutions. ##
1695## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001696_ASBOX
1697 echo
1698 for ac_var in $ac_subst_files
1699 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001700 eval ac_val=\$$ac_var
1701 case $ac_val in
1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 esac
1704 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001705 done | sort
1706 echo
1707 fi
1708
1709 if test -s confdefs.h; then
1710 cat <<\_ASBOX
1711## ----------- ##
1712## confdefs.h. ##
1713## ----------- ##
1714_ASBOX
1715 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001716 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001717 echo
1718 fi
1719 test "$ac_signal" != 0 &&
1720 echo "$as_me: caught signal $ac_signal"
1721 echo "$as_me: exit $exit_status"
1722 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723 rm -f core *.core core.conftest.* &&
1724 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001725 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001726' 0
John Criswell451f67f2003-10-16 01:45:35 +00001727for ac_signal in 1 2 13 15; do
1728 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729done
1730ac_signal=0
1731
1732# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001733rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001734
1735# Predefined preprocessor variables.
1736
1737cat >>confdefs.h <<_ACEOF
1738#define PACKAGE_NAME "$PACKAGE_NAME"
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744_ACEOF
1745
1746
1747cat >>confdefs.h <<_ACEOF
1748#define PACKAGE_VERSION "$PACKAGE_VERSION"
1749_ACEOF
1750
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_STRING "$PACKAGE_STRING"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759_ACEOF
1760
1761
1762# Let the site file select an alternate cache file if it wants to.
1763# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001764if test -n "$CONFIG_SITE"; then
1765 set x "$CONFIG_SITE"
1766elif test "x$prefix" != xNONE; then
1767 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1768else
1769 set x "$ac_default_prefix/share/config.site" \
1770 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001771fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001772shift
1773for ac_site_file
1774do
John Criswell451f67f2003-10-16 01:45:35 +00001775 if test -r "$ac_site_file"; then
1776 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1779 . "$ac_site_file"
1780 fi
1781done
1782
1783if test -r "$cache_file"; then
1784 # Some versions of bash will fail to source /dev/null (special
1785 # files actually), so we avoid doing that.
1786 if test -f "$cache_file"; then
1787 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788echo "$as_me: loading cache $cache_file" >&6;}
1789 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001790 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001792 esac
1793 fi
1794else
1795 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796echo "$as_me: creating cache $cache_file" >&6;}
1797 >$cache_file
1798fi
1799
1800# Check that the precious variables saved in the cache have kept the same
1801# value.
1802ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001803for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001808 case $ac_old_set,$ac_new_set in
1809 set,)
1810 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812 ac_cache_corrupted=: ;;
1813 ,set)
1814 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1817 ,);;
1818 *)
1819 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001820 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001821echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001822 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001823echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001824 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001825echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001826 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001827 fi;;
1828 esac
1829 # Pass precious variables to config.status.
1830 if test "$ac_new_set" = set; then
1831 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001832 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001833 *) ac_arg=$ac_var=$ac_new_val ;;
1834 esac
1835 case " $ac_configure_args " in
1836 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1837 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838 esac
1839 fi
1840done
1841if $ac_cache_corrupted; then
1842 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846 { (exit 1); exit 1; }; }
1847fi
1848
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
John Criswell451f67f2003-10-16 01:45:35 +00001873ac_ext=c
1874ac_cpp='$CPP $CPPFLAGS'
1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
1879
1880
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001881LLVM_SRC_ROOT="../.."
1882LLVM_OBJ_ROOT="../.."
1883
1884LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1885LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001886
1887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001888# Check whether --with-llvmsrc was given.
1889if test "${with_llvmsrc+set}" = set; then
1890 withval=$with_llvmsrc; llvm_src="$withval"
1891else
1892 llvm_src="$LLVM_ABS_SRC_ROOT"
1893fi
1894
1895 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001896
1897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001898# Check whether --with-llvmobj was given.
1899if test "${with_llvmobj+set}" = set; then
1900 withval=$with_llvmobj; llvm_obj="$withval"
1901else
1902 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1903fi
Dan Gohman324f6082009-03-25 00:52:11 +00001904
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001905 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001906
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001907 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001908
1909
1910
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001911{ echo "$as_me:$LINENO: checking llvm-config" >&5
1912echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1913llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1914if ! test -f "$llvm_config_path" ; then
1915 llvm_config_path="no"
1916fi
1917{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1918echo "${ECHO_T}$llvm_config_path" >&6; }
1919
1920{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1921echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1922if test "$llvm_config_path" != no ; then
1923 llvm_package_version=`$llvm_config_path --version`
1924else
1925 llvm_package_version="unknown";
1926fi
1927{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1928echo "${ECHO_T}$llvm_package_version" >&6; }
1929LLVM_VERSION=$llvm_package_version
1930
1931
1932
1933
John Criswell451f67f2003-10-16 01:45:35 +00001934ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001936 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001940 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001944 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
1949done
1950if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001953 { (exit 1); exit 1; }; }
1954fi
John Criswell451f67f2003-10-16 01:45:35 +00001955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001963
1964
1965
1966
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001967ac_ext=c
1968ac_cpp='$CPP $CPPFLAGS'
1969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972if test -n "$ac_tool_prefix"; then
1973 for ac_prog in clang llvm-gcc gcc
1974 do
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996done
1997done
1998IFS=$as_save_IFS
1999
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
2006else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
2009fi
2010
2011
2012 test -n "$CC" && break
2013 done
2014fi
2015if test -z "$CC"; then
2016 ac_ct_CC=$CC
2017 for ac_prog in clang llvm-gcc gcc
2018do
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020set dummy $ac_prog; ac_word=$2
2021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026 if test -n "$ac_ct_CC"; then
2027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_ac_ct_CC="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040done
2041done
2042IFS=$as_save_IFS
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6; }
2050else
2051 { echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6; }
2053fi
2054
2055
2056 test -n "$ac_ct_CC" && break
2057done
2058
2059 if test "x$ac_ct_CC" = x; then
2060 CC=""
2061 else
2062 case $cross_compiling:$ac_tool_warned in
2063yes:)
2064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065whose name does not start with the host triplet. If you think this
2066configuration is useful to you, please write to autoconf@gnu.org." >&5
2067echo "$as_me: 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." >&2;}
2070ac_tool_warned=yes ;;
2071esac
2072 CC=$ac_ct_CC
2073 fi
2074fi
2075
2076
2077test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078See \`config.log' for more details." >&5
2079echo "$as_me: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }
2082
2083# Provide some information about the compiler.
2084echo "$as_me:$LINENO: checking for C compiler version" >&5
2085ac_compiler=`set X $ac_compile; echo $2`
2086{ (ac_try="$ac_compiler --version >&5"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler --version >&5") 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096{ (ac_try="$ac_compiler -v >&5"
2097case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100esac
2101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -v >&5") 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106{ (ac_try="$ac_compiler -V >&5"
2107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
2111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler -V >&5") 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116
2117cat >conftest.$ac_ext <<_ACEOF
2118/* confdefs.h. */
2119_ACEOF
2120cat confdefs.h >>conftest.$ac_ext
2121cat >>conftest.$ac_ext <<_ACEOF
2122/* end confdefs.h. */
2123
2124int
2125main ()
2126{
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132ac_clean_files_save=$ac_clean_files
2133ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134# Try to create an executable without -o first, disregard a.out.
2135# It will help us diagnose broken compilers, and finding out an intuition
2136# of exeext.
2137{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2139ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140#
2141# List of possible output files, starting from the most likely.
2142# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2143# only as a last resort. b.out is created by i960 compilers.
2144ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145#
2146# The IRIX 6 linker writes into existing files which may not be
2147# executable, retaining their permissions. Remove them first so a
2148# subsequent execution test works.
2149ac_rmfiles=
2150for ac_file in $ac_files
2151do
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155 esac
2156done
2157rm -f $ac_rmfiles
2158
2159if { (ac_try="$ac_link_default"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165 (eval "$ac_link_default") 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2170# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2171# in a Makefile. We should not override ac_cv_exeext if it was cached,
2172# so that the user can short-circuit this test for compilers unknown to
2173# Autoconf.
2174for ac_file in $ac_files
2175do
2176 test -f "$ac_file" || continue
2177 case $ac_file in
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2179 ;;
2180 [ab].out )
2181 # We found the default executable, but exeext='' is most
2182 # certainly right.
2183 break;;
2184 *.* )
2185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186 then :; else
2187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 fi
2189 # We set ac_cv_exeext here because the later test for it is not
2190 # safe: cross compilers may not add the suffix if given an `-o'
2191 # argument, so we may need to know it at that point already.
2192 # Even if this section looks crufty: it has the advantage of
2193 # actually working.
2194 break;;
2195 * )
2196 break;;
2197 esac
2198done
2199test "$ac_cv_exeext" = no && ac_cv_exeext=
2200
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: C compiler cannot create executables
2208See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2210fi
2211
2212ac_exeext=$ac_cv_exeext
2213{ echo "$as_me:$LINENO: result: $ac_file" >&5
2214echo "${ECHO_T}$ac_file" >&6; }
2215
2216# Check that the compiler produces executables we can run. If not, either
2217# the compiler is broken, or we cross compile.
2218{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221# If not cross compiling, check that we can run a simple program.
2222if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_try") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247fi
2248{ echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6; }
2250
2251rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252ac_clean_files=$ac_clean_files_save
2253# Check that the compiler produces executables we can run. If not, either
2254# the compiler is broken, or we cross compile.
2255{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2257{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6; }
2259
2260{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2262if { (ac_try="$ac_link"
2263case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_link") 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2273# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2274# work properly (i.e., refer to `conftest.exe'), while it won't with
2275# `rm'.
2276for ac_file in conftest.exe conftest conftest.*; do
2277 test -f "$ac_file" || continue
2278 case $ac_file in
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 break;;
2282 * ) break;;
2283 esac
2284done
2285else
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2302if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
2311
2312int
2313main ()
2314{
2315
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (ac_try="$ac_compile"
2322case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325esac
2326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_compile") 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in conftest.o conftest.obj conftest.*; do
2332 test -f "$ac_file" || continue;
2333 case $ac_file in
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2348fi
2349
2350rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351fi
2352{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353echo "${ECHO_T}$ac_cv_objext" >&6; }
2354OBJEXT=$ac_cv_objext
2355ac_objext=$OBJEXT
2356{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2358if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367
2368int
2369main ()
2370{
2371#ifndef __GNUC__
2372 choke me
2373#endif
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (ac_try="$ac_compile"
2381case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compile") 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397esac
2398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_try") 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_try") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_compiler_gnu=yes
2414else
2415 echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_compiler_gnu=no
2419fi
2420
2421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422ac_cv_c_compiler_gnu=$ac_compiler_gnu
2423
2424fi
2425{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2426echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427GCC=`test $ac_compiler_gnu = yes && echo yes`
2428ac_test_CFLAGS=${CFLAGS+set}
2429ac_save_CFLAGS=$CFLAGS
2430{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2432if test "${ac_cv_prog_cc_g+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 ac_save_c_werror_flag=$ac_c_werror_flag
2436 ac_c_werror_flag=yes
2437 ac_cv_prog_cc_g=no
2438 CFLAGS="-g"
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445
2446int
2447main ()
2448{
2449
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (ac_try="$ac_compile"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compile") 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_try") 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cc_g=yes
2489else
2490 echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 CFLAGS=""
2494 cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500
2501int
2502main ()
2503{
2504
2505 ;
2506 return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (ac_try="$ac_compile"
2511case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_compile") 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2524 { (case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_try") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 :
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580 { (case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583esac
2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_try") 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593esac
2594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 ac_cv_prog_cc_g=yes
2600else
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604
2605fi
2606
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2615fi
2616{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2622 CFLAGS="-g -O2"
2623 else
2624 CFLAGS="-g"
2625 fi
2626else
2627 if test "$GCC" = yes; then
2628 CFLAGS="-O2"
2629 else
2630 CFLAGS=
2631 fi
2632fi
2633{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_cc_c89+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 ac_cv_prog_cc_c89=no
2639ac_save_CC=$CC
2640cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646#include <stdarg.h>
2647#include <stdio.h>
2648#include <sys/types.h>
2649#include <sys/stat.h>
2650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651struct buf { int x; };
2652FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653static char *e (p, i)
2654 char **p;
2655 int i;
2656{
2657 return p[i];
2658}
2659static char *f (char * (*g) (char **, int), char **p, ...)
2660{
2661 char *s;
2662 va_list v;
2663 va_start (v,p);
2664 s = g (p, va_arg (v,int));
2665 va_end (v);
2666 return s;
2667}
2668
2669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
2672 as 'x'. The following induces an error, until -std is added to get
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
2675 that's true only with -std. */
2676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
2678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2679 inside strings and character constants. */
2680#define FOO(x) 'x'
2681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682
2683int test (int i, double x);
2684struct s1 {int (*f) (int a);};
2685struct s2 {int (*f) (double a);};
2686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687int argc;
2688char **argv;
2689int
2690main ()
2691{
2692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699do
2700 CC="$ac_save_CC $ac_arg"
2701 rm -f conftest.$ac_objext
2702if { (ac_try="$ac_compile"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_try") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_c89=$ac_arg
2736else
2737 echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740
2741fi
2742
2743rm -f core conftest.err conftest.$ac_objext
2744 test "x$ac_cv_prog_cc_c89" != "xno" && break
2745done
2746rm -f conftest.$ac_ext
2747CC=$ac_save_CC
2748
2749fi
2750# AC_CACHE_VAL
2751case "x$ac_cv_prog_cc_c89" in
2752 x)
2753 { echo "$as_me:$LINENO: result: none needed" >&5
2754echo "${ECHO_T}none needed" >&6; } ;;
2755 xno)
2756 { echo "$as_me:$LINENO: result: unsupported" >&5
2757echo "${ECHO_T}unsupported" >&6; } ;;
2758 *)
2759 CC="$CC $ac_cv_prog_cc_c89"
2760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2761echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762esac
2763
2764
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771ac_ext=cpp
2772ac_cpp='$CXXCPP $CPPFLAGS'
2773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2776if test -z "$CXX"; then
2777 if test -n "$CCC"; then
2778 CXX=$CCC
2779 else
2780 if test -n "$ac_tool_prefix"; then
2781 for ac_prog in clang++ llvm-g++ g++
2782 do
2783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787if test "${ac_cv_prog_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CXX"; then
2791 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810CXX=$ac_cv_prog_CXX
2811if test -n "$CXX"; then
2812 { echo "$as_me:$LINENO: result: $CXX" >&5
2813echo "${ECHO_T}$CXX" >&6; }
2814else
2815 { echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6; }
2817fi
2818
2819
2820 test -n "$CXX" && break
2821 done
2822fi
2823if test -z "$CXX"; then
2824 ac_ct_CXX=$CXX
2825 for ac_prog in clang++ llvm-g++ g++
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$ac_ct_CXX"; then
2835 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850IFS=$as_save_IFS
2851
2852fi
2853fi
2854ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2855if test -n "$ac_ct_CXX"; then
2856 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2857echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858else
2859 { echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6; }
2861fi
2862
2863
2864 test -n "$ac_ct_CXX" && break
2865done
2866
2867 if test "x$ac_ct_CXX" = x; then
2868 CXX="g++"
2869 else
2870 case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873whose name does not start with the host triplet. If you think this
2874configuration is useful to you, please write to autoconf@gnu.org." >&5
2875echo "$as_me: 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." >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880 CXX=$ac_ct_CXX
2881 fi
2882fi
2883
2884 fi
2885fi
2886# Provide some information about the compiler.
2887echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2888ac_compiler=`set X $ac_compile; echo $2`
2889{ (ac_try="$ac_compiler --version >&5"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler --version >&5") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899{ (ac_try="$ac_compiler -v >&5"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -v >&5") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909{ (ac_try="$ac_compiler -V >&5"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler -V >&5") 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919
2920{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2921echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2922if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935#ifndef __GNUC__
2936 choke me
2937#endif
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (ac_try="$ac_compile"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2958 { (case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_try") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 ac_compiler_gnu=yes
2978else
2979 echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 ac_compiler_gnu=no
2983fi
2984
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2987
2988fi
2989{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2990echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2991GXX=`test $ac_compiler_gnu = yes && echo yes`
2992ac_test_CXXFLAGS=${CXXFLAGS+set}
2993ac_save_CXXFLAGS=$CXXFLAGS
2994{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2996if test "${ac_cv_prog_cxx_g+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000 ac_cxx_werror_flag=yes
3001 ac_cv_prog_cxx_g=no
3002 CXXFLAGS="-g"
3003 cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cxx_g=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 CXXFLAGS=""
3058 cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.$ac_objext
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 :
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113 CXXFLAGS="-g"
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_cv_prog_cxx_g=yes
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179fi
3180{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3182if test "$ac_test_CXXFLAGS" = set; then
3183 CXXFLAGS=$ac_save_CXXFLAGS
3184elif test $ac_cv_prog_cxx_g = yes; then
3185 if test "$GXX" = yes; then
3186 CXXFLAGS="-g -O2"
3187 else
3188 CXXFLAGS="-g"
3189 fi
3190else
3191 if test "$GXX" = yes; then
3192 CXXFLAGS="-O2"
3193 else
3194 CXXFLAGS=
3195 fi
3196fi
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3209echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3210# On Suns, sometimes $CPP names a directory.
3211if test -n "$CPP" && test -d "$CPP"; then
3212 CPP=
3213fi
3214if test -z "$CPP"; then
3215 if test "${ac_cv_prog_CPP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218 # Double quotes because CPP needs to be expanded
3219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3220 do
3221 ac_preproc_ok=false
3222for ac_c_preproc_warn_flag in '' yes
3223do
3224 # Use a header file that comes with gcc, so configuring glibc
3225 # with a fresh cross-compiler works.
3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 # <limits.h> exists even on freestanding compilers.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#ifdef __STDC__
3237# include <limits.h>
3238#else
3239# include <assert.h>
3240#endif
3241 Syntax error
3242_ACEOF
3243if { (ac_try="$ac_cpp conftest.$ac_ext"
3244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259 else
3260 ac_cpp_err=
3261 fi
3262else
3263 ac_cpp_err=yes
3264fi
3265if test -z "$ac_cpp_err"; then
3266 :
3267else
3268 echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 # Broken: fails on valid input.
3272continue
3273fi
3274
3275rm -f conftest.err conftest.$ac_ext
3276
3277 # OK, works on sane cases. Now check whether nonexistent headers
3278 # can be detected and how.
3279 cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285#include <ac_nonexistent.h>
3286_ACEOF
3287if { (ac_try="$ac_cpp conftest.$ac_ext"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311continue
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320
3321rm -f conftest.err conftest.$ac_ext
3322
3323done
3324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3325rm -f conftest.err conftest.$ac_ext
3326if $ac_preproc_ok; then
3327 break
3328fi
3329
3330 done
3331 ac_cv_prog_CPP=$CPP
3332
3333fi
3334 CPP=$ac_cv_prog_CPP
3335else
3336 ac_cv_prog_CPP=$CPP
3337fi
3338{ echo "$as_me:$LINENO: result: $CPP" >&5
3339echo "${ECHO_T}$CPP" >&6; }
3340ac_preproc_ok=false
3341for ac_c_preproc_warn_flag in '' yes
3342do
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat >conftest.$ac_ext <<_ACEOF
3350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */
3355#ifdef __STDC__
3356# include <limits.h>
3357#else
3358# include <assert.h>
3359#endif
3360 Syntax error
3361_ACEOF
3362if { (ac_try="$ac_cpp conftest.$ac_ext"
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 else
3379 ac_cpp_err=
3380 fi
3381else
3382 ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385 :
3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 # Broken: fails on valid input.
3391continue
3392fi
3393
3394rm -f conftest.err conftest.$ac_ext
3395
3396 # OK, works on sane cases. Now check whether nonexistent headers
3397 # can be detected and how.
3398 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404#include <ac_nonexistent.h>
3405_ACEOF
3406if { (ac_try="$ac_cpp conftest.$ac_ext"
3407case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410esac
3411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 else
3423 ac_cpp_err=
3424 fi
3425else
3426 ac_cpp_err=yes
3427fi
3428if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3430continue
3431else
3432 echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 # Passes both tests.
3436ac_preproc_ok=:
3437break
3438fi
3439
3440rm -f conftest.err conftest.$ac_ext
3441
3442done
3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444rm -f conftest.err conftest.$ac_ext
3445if $ac_preproc_ok; then
3446 :
3447else
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449See \`config.log' for more details." >&5
3450echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3453fi
3454
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463
3464# Check whether --enable-polly was given.
3465if test "${enable_polly+set}" = set; then
3466 enableval=$enable_polly;
3467else
3468 enableval=default
3469fi
3470
3471case "$enableval" in
3472 yes) ENABLE_POLLY=1
3473 ;;
3474 no) ENABLE_POLLY=0
3475 ;;
3476 default) ENABLE_POLLY=1
3477 ;;
3478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3479echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3480 { (exit 1); exit 1; }; } ;;
3481esac
3482
3483
3484if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3485 LLVM_HAS_POLLY=1
3486
3487 subdirs="$subdirs tools/polly"
3488
3489fi
3490
3491
3492# Make sure we can run config.sub.
3493$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3494 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3495echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498{ echo "$as_me:$LINENO: checking build system type" >&5
3499echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3500if test "${ac_cv_build+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 ac_build_alias=$build_alias
3504test "x$ac_build_alias" = x &&
3505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3506test "x$ac_build_alias" = x &&
3507 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3508echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3509 { (exit 1); exit 1; }; }
3510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3511 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3512echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3513 { (exit 1); exit 1; }; }
3514
3515fi
3516{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3517echo "${ECHO_T}$ac_cv_build" >&6; }
3518case $ac_cv_build in
3519*-*-*) ;;
3520*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3521echo "$as_me: error: invalid value of canonical build" >&2;}
3522 { (exit 1); exit 1; }; };;
3523esac
3524build=$ac_cv_build
3525ac_save_IFS=$IFS; IFS='-'
3526set x $ac_cv_build
3527shift
3528build_cpu=$1
3529build_vendor=$2
3530shift; shift
3531# Remember, the first character of IFS is used to create $*,
3532# except with old shells:
3533build_os=$*
3534IFS=$ac_save_IFS
3535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536
3537
3538{ echo "$as_me:$LINENO: checking host system type" >&5
3539echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3540if test "${ac_cv_host+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test "x$host_alias" = x; then
3544 ac_cv_host=$ac_cv_build
3545else
3546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3548echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3549 { (exit 1); exit 1; }; }
3550fi
3551
3552fi
3553{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3554echo "${ECHO_T}$ac_cv_host" >&6; }
3555case $ac_cv_host in
3556*-*-*) ;;
3557*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3558echo "$as_me: error: invalid value of canonical host" >&2;}
3559 { (exit 1); exit 1; }; };;
3560esac
3561host=$ac_cv_host
3562ac_save_IFS=$IFS; IFS='-'
3563set x $ac_cv_host
3564shift
3565host_cpu=$1
3566host_vendor=$2
3567shift; shift
3568# Remember, the first character of IFS is used to create $*,
3569# except with old shells:
3570host_os=$*
3571IFS=$ac_save_IFS
3572case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573
3574
3575{ echo "$as_me:$LINENO: checking target system type" >&5
3576echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3577if test "${ac_cv_target+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 if test "x$target_alias" = x; then
3581 ac_cv_target=$ac_cv_host
3582else
3583 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3584 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3585echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3586 { (exit 1); exit 1; }; }
3587fi
3588
3589fi
3590{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3591echo "${ECHO_T}$ac_cv_target" >&6; }
3592case $ac_cv_target in
3593*-*-*) ;;
3594*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3595echo "$as_me: error: invalid value of canonical target" >&2;}
3596 { (exit 1); exit 1; }; };;
3597esac
3598target=$ac_cv_target
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_target
3601shift
3602target_cpu=$1
3603target_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607target_os=$*
3608IFS=$ac_save_IFS
3609case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3610
3611
3612# The aliases save the names the user supplied, while $host etc.
3613# will get canonicalized.
3614test -n "$target_alias" &&
3615 test "$program_prefix$program_suffix$program_transform_name" = \
3616 NONENONEs,x,x, &&
3617 program_prefix=${target_alias}-
3618
3619{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3620echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3621if test "${llvm_cv_os_type+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 case $host in
3625 *-*-aix*)
3626 llvm_cv_link_all_option="-Wl,--whole-archive"
3627 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3628 llvm_cv_os_type="AIX"
3629 llvm_cv_platform_type="Unix" ;;
3630 *-*-irix*)
3631 llvm_cv_link_all_option="-Wl,--whole-archive"
3632 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633 llvm_cv_os_type="IRIX"
3634 llvm_cv_platform_type="Unix" ;;
3635 *-*-cygwin*)
3636 llvm_cv_link_all_option="-Wl,--whole-archive"
3637 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638 llvm_cv_os_type="Cygwin"
3639 llvm_cv_platform_type="Unix" ;;
3640 *-*-darwin*)
3641 llvm_cv_link_all_option="-Wl,-all_load"
3642 llvm_cv_no_link_all_option="-Wl,-noall_load"
3643 llvm_cv_os_type="Darwin"
3644 llvm_cv_platform_type="Unix" ;;
3645 *-*-minix*)
3646 llvm_cv_link_all_option="-Wl,-all_load"
3647 llvm_cv_no_link_all_option="-Wl,-noall_load"
3648 llvm_cv_os_type="Minix"
3649 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003650 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003651 llvm_cv_link_all_option="-Wl,--whole-archive"
3652 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3653 llvm_cv_os_type="FreeBSD"
3654 llvm_cv_platform_type="Unix" ;;
3655 *-*-openbsd*)
3656 llvm_cv_link_all_option="-Wl,--whole-archive"
3657 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658 llvm_cv_os_type="OpenBSD"
3659 llvm_cv_platform_type="Unix" ;;
3660 *-*-netbsd*)
3661 llvm_cv_link_all_option="-Wl,--whole-archive"
3662 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663 llvm_cv_os_type="NetBSD"
3664 llvm_cv_platform_type="Unix" ;;
3665 *-*-dragonfly*)
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="DragonFly"
3669 llvm_cv_platform_type="Unix" ;;
3670 *-*-hpux*)
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="HP-UX"
3674 llvm_cv_platform_type="Unix" ;;
3675 *-*-interix*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="Interix"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-linux*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Linux"
3684 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003685 *-*-gnu*)
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="GNU"
3689 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003690 *-*-solaris*)
3691 llvm_cv_link_all_option="-Wl,-z,allextract"
3692 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3693 llvm_cv_os_type="SunOS"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-auroraux*)
3696 llvm_cv_link_all_option="-Wl,-z,allextract"
3697 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3698 llvm_cv_os_type="AuroraUX"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-win32*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="Win32"
3704 llvm_cv_platform_type="Win32" ;;
3705 *-*-mingw*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="MingW"
3709 llvm_cv_platform_type="Win32" ;;
3710 *-*-haiku*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="Haiku"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-unknown-eabi*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Freestanding"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-unknown-elf*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Freestanding"
3724 llvm_cv_platform_type="Unix" ;;
3725 *)
3726 llvm_cv_link_all_option=""
3727 llvm_cv_no_link_all_option=""
3728 llvm_cv_os_type="Unknown"
3729 llvm_cv_platform_type="Unknown" ;;
3730esac
3731fi
3732{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3733echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3734
3735{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3736echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3737if test "${llvm_cv_target_os_type+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 case $target in
3741 *-*-aix*)
3742 llvm_cv_target_os_type="AIX" ;;
3743 *-*-irix*)
3744 llvm_cv_target_os_type="IRIX" ;;
3745 *-*-cygwin*)
3746 llvm_cv_target_os_type="Cygwin" ;;
3747 *-*-darwin*)
3748 llvm_cv_target_os_type="Darwin" ;;
3749 *-*-minix*)
3750 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003751 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003752 llvm_cv_target_os_type="FreeBSD" ;;
3753 *-*-openbsd*)
3754 llvm_cv_target_os_type="OpenBSD" ;;
3755 *-*-netbsd*)
3756 llvm_cv_target_os_type="NetBSD" ;;
3757 *-*-dragonfly*)
3758 llvm_cv_target_os_type="DragonFly" ;;
3759 *-*-hpux*)
3760 llvm_cv_target_os_type="HP-UX" ;;
3761 *-*-interix*)
3762 llvm_cv_target_os_type="Interix" ;;
3763 *-*-linux*)
3764 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003765 *-*-gnu*)
3766 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003767 *-*-solaris*)
3768 llvm_cv_target_os_type="SunOS" ;;
3769 *-*-auroraux*)
3770 llvm_cv_target_os_type="AuroraUX" ;;
3771 *-*-win32*)
3772 llvm_cv_target_os_type="Win32" ;;
3773 *-*-mingw*)
3774 llvm_cv_target_os_type="MingW" ;;
3775 *-*-haiku*)
3776 llvm_cv_target_os_type="Haiku" ;;
3777 *-*-rtems*)
3778 llvm_cv_target_os_type="RTEMS" ;;
3779 *-*-nacl*)
3780 llvm_cv_target_os_type="NativeClient" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_target_os_type="Freestanding" ;;
3783 *)
3784 llvm_cv_target_os_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796OS=$llvm_cv_os_type
3797
3798HOST_OS=$llvm_cv_os_type
3799
3800TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803LINKALL=$llvm_cv_link_all_option
3804
3805NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808case $llvm_cv_platform_type in
3809 Unix)
3810
3811cat >>confdefs.h <<\_ACEOF
3812#define LLVM_ON_UNIX 1
3813_ACEOF
3814
3815 LLVM_ON_UNIX=1
3816
3817 LLVM_ON_WIN32=0
3818
3819 ;;
3820 Win32)
3821
3822cat >>confdefs.h <<\_ACEOF
3823#define LLVM_ON_WIN32 1
3824_ACEOF
3825
3826 LLVM_ON_UNIX=0
3827
3828 LLVM_ON_WIN32=1
3829
3830 ;;
3831esac
3832
3833{ echo "$as_me:$LINENO: checking target architecture" >&5
3834echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 case $target in
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003843 arm*-*) llvm_cv_target_arch="ARM" ;;
3844 mips-*) llvm_cv_target_arch="Mips" ;;
3845 xcore-*) llvm_cv_target_arch="XCore" ;;
3846 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003847 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003848 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3849 ptx-*) llvm_cv_target_arch="PTX" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003850 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003851 *) llvm_cv_target_arch="Unknown" ;;
3852esac
3853fi
3854{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857if test "$llvm_cv_target_arch" = "Unknown" ; then
3858 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860fi
3861
3862# Determine the LLVM native architecture for the target
3863case "$llvm_cv_target_arch" in
3864 x86) LLVM_NATIVE_ARCH="X86" ;;
3865 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3866 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867esac
3868
3869ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Extract the first word of "grep ggrep" to use in msg output
3880if test -z "$GREP"; then
3881set dummy grep ggrep; ac_prog_name=$2
3882if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885 ac_path_GREP_found=false
3886# Loop through the user's path and test for each of PROGNAME-LIST
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898case `"$ac_path_GREP" --version 2>&1` in
3899*GNU*)
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901*)
3902 ac_count=0
3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 while :
3905 do
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 ac_count=`expr $ac_count + 1`
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3917 fi
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3920 done
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
3923
3924
3925 $ac_path_GREP_found && break 3
3926 done
3927done
3928
3929done
3930IFS=$as_save_IFS
3931
3932
3933fi
3934
3935GREP="$ac_cv_path_GREP"
3936if test -z "$GREP"; then
3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939 { (exit 1); exit 1; }; }
3940fi
3941
3942else
3943 ac_cv_path_GREP=$GREP
3944fi
3945
3946
3947fi
3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950 GREP="$ac_cv_path_GREP"
3951
3952
3953{ echo "$as_me:$LINENO: checking for egrep" >&5
3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959 then ac_cv_path_EGREP="$GREP -E"
3960 else
3961 # Extract the first word of "egrep" to use in msg output
3962if test -z "$EGREP"; then
3963set dummy egrep; ac_prog_name=$2
3964if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 ac_path_EGREP_found=false
3968# Loop through the user's path and test for each of PROGNAME-LIST
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980case `"$ac_path_EGREP" --version 2>&1` in
3981*GNU*)
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983*)
3984 ac_count=0
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 while :
3987 do
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
3999 fi
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4002 done
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004esac
4005
4006
4007 $ac_path_EGREP_found && break 3
4008 done
4009done
4010
4011done
4012IFS=$as_save_IFS
4013
4014
4015fi
4016
4017EGREP="$ac_cv_path_EGREP"
4018if test -z "$EGREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4022fi
4023
4024else
4025 ac_cv_path_EGREP=$EGREP
4026fi
4027
4028
4029 fi
4030fi
4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4034
4035
4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038if test "${ac_cv_header_stdc+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#include <stdlib.h>
4048#include <stdarg.h>
4049#include <string.h>
4050#include <float.h>
4051
4052int
4053main ()
4054{
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (ac_try="$ac_compile"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_try") 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_header_stdc=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_cv_header_stdc=no
4100fi
4101
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104if test $ac_cv_header_stdc = yes; then
4105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112#include <string.h>
4113
4114_ACEOF
4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then
4117 :
4118else
4119 ac_cv_header_stdc=no
4120fi
4121rm -f conftest*
4122
4123fi
4124
4125if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133#include <stdlib.h>
4134
4135_ACEOF
4136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "free" >/dev/null 2>&1; then
4138 :
4139else
4140 ac_cv_header_stdc=no
4141fi
4142rm -f conftest*
4143
4144fi
4145
4146if test $ac_cv_header_stdc = yes; then
4147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148 if test "$cross_compiling" = yes; then
4149 :
4150else
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <ctype.h>
4158#include <stdlib.h>
4159#if ((' ' & 0x0FF) == 0x020)
4160# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162#else
4163# define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168#endif
4169
4170#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171int
4172main ()
4173{
4174 int i;
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4178 return 2;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest$ac_exeext
4183if { (ac_try="$ac_link"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 :
4203else
4204 echo "$as_me: program exited with status $ac_status" >&5
4205echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208( exit $ac_status )
4209ac_cv_header_stdc=no
4210fi
4211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212fi
4213
4214
4215fi
4216fi
4217{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219if test $ac_cv_header_stdc = yes; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define STDC_HEADERS 1
4223_ACEOF
4224
4225fi
4226
4227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4239do
4240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252$ac_includes_default
4253
4254#include <$ac_header>
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_Header=no"
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299fi
4300ac_res=`eval echo '${'$as_ac_Header'}'`
4301 { echo "$as_me:$LINENO: result: $ac_res" >&5
4302echo "${ECHO_T}$ac_res" >&6; }
4303if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304 cat >>confdefs.h <<_ACEOF
4305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306_ACEOF
4307
4308fi
4309
4310done
4311
4312
4313{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315if test "${ac_cv_c_bigendian+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
4318 # See if sys/param.h defines the BYTE_ORDER macro.
4319cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#include <sys/types.h>
4326#include <sys/param.h>
4327
4328int
4329main ()
4330{
4331#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332 bogus endian macros
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <sys/types.h>
4381#include <sys/param.h>
4382
4383int
4384main ()
4385{
4386#if BYTE_ORDER != BIG_ENDIAN
4387 not big endian
4388#endif
4389
4390 ;
4391 return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (ac_try="$ac_compile"
4396case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_c_bigendian=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_c_bigendian=no
4434fi
4435
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 # It does not; compile a test program.
4442if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457int
4458main ()
4459{
4460 _ascii (); _ebcdic ();
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext
4466if { (ac_try="$ac_compile"
4467case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
4471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
4494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500 ac_cv_c_bigendian=yes
4501fi
4502if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503 if test "$ac_cv_c_bigendian" = unknown; then
4504 ac_cv_c_bigendian=no
4505 else
4506 # finding both strings is unlikely to happen, but who knows?
4507 ac_cv_c_bigendian=unknown
4508 fi
4509fi
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515fi
4516
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526int
4527main ()
4528{
4529
4530 /* Are we little or big endian? From Harbison&Steele. */
4531 union
4532 {
4533 long int l;
4534 char c[sizeof (long int)];
4535 } u;
4536 u.l = 1;
4537 return u.c[sizeof (long int) - 1] == 1;
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest$ac_exeext
4544if { (ac_try="$ac_link"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_c_bigendian=no
4564else
4565 echo "$as_me: program exited with status $ac_status" >&5
4566echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569( exit $ac_status )
4570ac_cv_c_bigendian=yes
4571fi
4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573fi
4574
4575
4576fi
4577
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582case $ac_cv_c_bigendian in
4583 yes)
4584 ENDIAN=big
4585 ;;
4586 no)
4587 ENDIAN=little
4588 ;;
4589 *)
4590 { { echo "$as_me:$LINENO: error: unknown endianness
4591presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592echo "$as_me: error: unknown endianness
4593presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4595esac
4596
4597
4598if test "$cross_compiling" = yes; then
4599 LLVM_CROSS_COMPILING=1
4600
4601
4602{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604if test "${ac_cv_build_exeext+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608 ac_cv_build_exeext=.exe
4609else
4610 ac_build_prefix=${build_alias}-
4611
4612 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613set dummy ${ac_build_prefix}gcc; ac_word=$2
4614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 if test -n "$BUILD_CC"; then
4620 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639BUILD_CC=$ac_cv_prog_BUILD_CC
4640if test -n "$BUILD_CC"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642echo "${ECHO_T}$BUILD_CC" >&6; }
4643else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
4646fi
4647
4648
4649 if test -z "$BUILD_CC"; then
4650 # Extract the first word of "gcc", so it can be a program name with args.
4651set dummy gcc; ac_word=$2
4652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677BUILD_CC=$ac_cv_prog_BUILD_CC
4678if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680echo "${ECHO_T}$BUILD_CC" >&6; }
4681else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6; }
4684fi
4685
4686
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689set dummy cc; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697else
4698 ac_prog_rejected=no
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4708 continue
4709 fi
4710 ac_cv_prog_BUILD_CC="cc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_BUILD_CC
4721 shift
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set BUILD_CC to just the basename; use the full file name.
4726 shift
4727 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728 fi
4729fi
4730fi
4731fi
4732BUILD_CC=$ac_cv_prog_BUILD_CC
4733if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735echo "${ECHO_T}$BUILD_CC" >&6; }
4736else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
4739fi
4740
4741
4742 fi
4743 fi
4744 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748 rm -f conftest*
4749 echo 'int main () { return 0; }' > conftest.$ac_ext
4750 ac_cv_build_exeext=
4751 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752 (eval $ac_build_link) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 for file in conftest.*; do
4757 case $file in
4758 *.c | *.o | *.obj | *.dSYM) ;;
4759 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760 esac
4761 done
4762 else
4763 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765 { (exit 1); exit 1; }; }
4766 fi
4767 rm -f conftest*
4768 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769fi
4770fi
4771
4772BUILD_EXEEXT=""
4773test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776ac_build_exeext=$BUILD_EXEEXT
4777
4778 ac_build_prefix=${build_alias}-
4779 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780set dummy ${ac_build_prefix}g++; ac_word=$2
4781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$BUILD_CXX"; then
4787 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807if test -n "$BUILD_CXX"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809echo "${ECHO_T}$BUILD_CXX" >&6; }
4810else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
4813fi
4814
4815
4816 if test -z "$BUILD_CXX"; then
4817 # Extract the first word of "g++", so it can be a program name with args.
4818set dummy g++; ac_word=$2
4819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847echo "${ECHO_T}$BUILD_CXX" >&6; }
4848else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6; }
4851fi
4852
4853
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "c++", so it can be a program name with args.
4856set dummy c++; ac_word=$2
4857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864else
4865 ac_prog_rejected=no
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874 ac_prog_rejected=yes
4875 continue
4876 fi
4877 ac_cv_prog_BUILD_CXX="c++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883IFS=$as_save_IFS
4884
4885if test $ac_prog_rejected = yes; then
4886 # We found a bogon in the path, so make sure we never use it.
4887 set dummy $ac_cv_prog_BUILD_CXX
4888 shift
4889 if test $# != 0; then
4890 # We chose a different compiler from the bogus one.
4891 # However, it has the same basename, so the bogon will be chosen
4892 # first if we set BUILD_CXX to just the basename; use the full file name.
4893 shift
4894 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895 fi
4896fi
4897fi
4898fi
4899BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902echo "${ECHO_T}$BUILD_CXX" >&6; }
4903else
4904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
4906fi
4907
4908
4909 fi
4910 fi
4911else
4912 LLVM_CROSS_COMPILING=0
4913
4914fi
4915
4916if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917 cvsbuild="yes"
4918 optimize="no"
4919 CVSBUILD=CVSBUILD=1
4920
4921else
4922 cvsbuild="no"
4923 optimize="yes"
4924fi
4925
4926
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004927# Check whether --enable-libcpp was given.
4928if test "${enable_libcpp+set}" = set; then
4929 enableval=$enable_libcpp;
4930else
4931 enableval=default
4932fi
4933
4934case "$enableval" in
4935 yes) ENABLE_LIBCPP=1
4936 ;;
4937 no) ENABLE_LIBCPP=0
4938 ;;
4939 default) ENABLE_LIBCPP=0
4940;;
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4942echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4944esac
4945
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004946# Check whether --enable-optimized was given.
4947if test "${enable_optimized+set}" = set; then
4948 enableval=$enable_optimized;
4949else
4950 enableval=$optimize
4951fi
4952
4953if test ${enableval} = "no" ; then
4954 ENABLE_OPTIMIZED=
4955
4956else
4957 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958
4959fi
4960
4961# Check whether --enable-profiling was given.
4962if test "${enable_profiling+set}" = set; then
4963 enableval=$enable_profiling;
4964else
4965 enableval="no"
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_PROFILING=
4970
4971else
4972 ENABLE_PROFILING=ENABLE_PROFILING=1
4973
4974fi
4975
4976# Check whether --enable-assertions was given.
4977if test "${enable_assertions+set}" = set; then
4978 enableval=$enable_assertions;
4979else
4980 enableval="yes"
4981fi
4982
4983if test ${enableval} = "yes" ; then
4984 DISABLE_ASSERTIONS=
4985
4986else
4987 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4988
4989fi
4990
4991# Check whether --enable-expensive-checks was given.
4992if test "${enable_expensive_checks+set}" = set; then
4993 enableval=$enable_expensive_checks;
4994else
4995 enableval="no"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5000
5001 EXPENSIVE_CHECKS=yes
5002
5003else
5004 ENABLE_EXPENSIVE_CHECKS=
5005
5006 EXPENSIVE_CHECKS=no
5007
5008fi
5009
5010# Check whether --enable-debug-runtime was given.
5011if test "${enable_debug_runtime+set}" = set; then
5012 enableval=$enable_debug_runtime;
5013else
5014 enableval=no
5015fi
5016
5017if test ${enableval} = "no" ; then
5018 DEBUG_RUNTIME=
5019
5020else
5021 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5022
5023fi
5024
5025# Check whether --enable-debug-symbols was given.
5026if test "${enable_debug_symbols+set}" = set; then
5027 enableval=$enable_debug_symbols;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_SYMBOLS=
5034
5035else
5036 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5037
5038fi
5039
5040# Check whether --enable-jit was given.
5041if test "${enable_jit+set}" = set; then
5042 enableval=$enable_jit;
5043else
5044 enableval=default
5045fi
5046
5047if test ${enableval} = "no"
5048then
5049 JIT=
5050
5051else
5052 case "$llvm_cv_target_arch" in
5053 x86) TARGET_HAS_JIT=1
5054 ;;
5055 Sparc) TARGET_HAS_JIT=0
5056 ;;
5057 PowerPC) TARGET_HAS_JIT=1
5058 ;;
5059 x86_64) TARGET_HAS_JIT=1
5060 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005061 ARM) TARGET_HAS_JIT=1
5062 ;;
5063 Mips) TARGET_HAS_JIT=1
5064 ;;
5065 XCore) TARGET_HAS_JIT=0
5066 ;;
5067 MSP430) TARGET_HAS_JIT=0
5068 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005069 Hexagon) TARGET_HAS_JIT=0
5070 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005071 MBlaze) TARGET_HAS_JIT=0
5072 ;;
5073 PTX) TARGET_HAS_JIT=0
5074 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005075 NVPTX) TARGET_HAS_JIT=0
5076 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005077 *) TARGET_HAS_JIT=0
5078 ;;
5079 esac
5080fi
5081
5082# Check whether --enable-docs was given.
5083if test "${enable_docs+set}" = set; then
5084 enableval=$enable_docs;
5085else
5086 enableval=default
5087fi
5088
5089case "$enableval" in
5090 yes) ENABLE_DOCS=1
5091 ;;
5092 no) ENABLE_DOCS=0
5093 ;;
5094 default) ENABLE_DOCS=1
5095 ;;
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5099esac
5100
5101# Check whether --enable-doxygen was given.
5102if test "${enable_doxygen+set}" = set; then
5103 enableval=$enable_doxygen;
5104else
5105 enableval=default
5106fi
5107
5108case "$enableval" in
5109 yes) ENABLE_DOXYGEN=1
5110 ;;
5111 no) ENABLE_DOXYGEN=0
5112 ;;
5113 default) ENABLE_DOXYGEN=0
5114 ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118esac
5119
5120# Check whether --enable-threads was given.
5121if test "${enable_threads+set}" = set; then
5122 enableval=$enable_threads;
5123else
5124 enableval=default
5125fi
5126
5127case "$enableval" in
5128 yes) ENABLE_THREADS=1
5129 ;;
5130 no) ENABLE_THREADS=0
5131 ;;
5132 default) ENABLE_THREADS=1
5133 ;;
5134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
5137esac
5138
5139cat >>confdefs.h <<_ACEOF
5140#define ENABLE_THREADS $ENABLE_THREADS
5141_ACEOF
5142
5143
5144# Check whether --enable-pthreads was given.
5145if test "${enable_pthreads+set}" = set; then
5146 enableval=$enable_pthreads;
5147else
5148 enableval=default
5149fi
5150
5151case "$enableval" in
5152 yes) ENABLE_PTHREADS=1
5153 ;;
5154 no) ENABLE_PTHREADS=0
5155 ;;
5156 default) ENABLE_PTHREADS=1
5157 ;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161esac
5162
5163# Check whether --enable-pic was given.
5164if test "${enable_pic+set}" = set; then
5165 enableval=$enable_pic;
5166else
5167 enableval=default
5168fi
5169
5170case "$enableval" in
5171 yes) ENABLE_PIC=1
5172 ;;
5173 no) ENABLE_PIC=0
5174 ;;
5175 default) ENABLE_PIC=1
5176 ;;
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5178echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180esac
5181
5182cat >>confdefs.h <<_ACEOF
5183#define ENABLE_PIC $ENABLE_PIC
5184_ACEOF
5185
5186
5187# Check whether --enable-shared was given.
5188if test "${enable_shared+set}" = set; then
5189 enableval=$enable_shared;
5190else
5191 enableval=default
5192fi
5193
5194case "$enableval" in
5195 yes) ENABLE_SHARED=1
5196 ;;
5197 no) ENABLE_SHARED=0
5198 ;;
5199 default) ENABLE_SHARED=0
5200 ;;
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5202echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5204esac
5205
5206# Check whether --enable-embed-stdcxx was given.
5207if test "${enable_embed_stdcxx+set}" = set; then
5208 enableval=$enable_embed_stdcxx;
5209else
5210 enableval=default
5211fi
5212
5213case "$enableval" in
5214 yes) ENABLE_EMBED_STDCXX=1
5215 ;;
5216 no) ENABLE_EMBED_STDCXX=0
5217 ;;
5218 default) ENABLE_EMBED_STDCXX=1
5219 ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5221echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5223esac
5224
5225# Check whether --enable-timestamps was given.
5226if test "${enable_timestamps+set}" = set; then
5227 enableval=$enable_timestamps;
5228else
5229 enableval=default
5230fi
5231
5232case "$enableval" in
5233 yes) ENABLE_TIMESTAMPS=1
5234 ;;
5235 no) ENABLE_TIMESTAMPS=0
5236 ;;
5237 default) ENABLE_TIMESTAMPS=1
5238 ;;
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5240echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242esac
5243
5244cat >>confdefs.h <<_ACEOF
5245#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5246_ACEOF
5247
5248
5249TARGETS_TO_BUILD=""
5250# Check whether --enable-targets was given.
5251if test "${enable_targets+set}" = set; then
5252 enableval=$enable_targets;
5253else
5254 enableval=all
5255fi
5256
5257if test "$enableval" = host-only ; then
5258 enableval=host
5259fi
5260case "$enableval" in
Justin Holewinski49683f32012-05-04 20:18:50 +00005261 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005262 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5263 case "$a_target" in
5264 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5265 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5266 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5267 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005268 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5269 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5270 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5271 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5272 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005273 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005274 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5275 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5276 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005277 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005278 host) case "$llvm_cv_target_arch" in
5279 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005283 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5284 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5285 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5286 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5287 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005289 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005290 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005291 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005292 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5293echo "$as_me: error: Can not set target to build" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5295 esac ;;
5296 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5297echo "$as_me: error: Unrecognized target $a_target" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5299 esac
5300 done
5301 ;;
5302esac
5303TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5304
5305
5306# Determine whether we are building LLVM support for the native architecture.
5307# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5308for a_target in $TARGETS_TO_BUILD; do
5309 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5310
5311cat >>confdefs.h <<_ACEOF
5312#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5313_ACEOF
5314
5315 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5316 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5317 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5318 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5321 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005322 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5323 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5324 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005325
5326cat >>confdefs.h <<_ACEOF
5327#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5328_ACEOF
5329
5330
5331cat >>confdefs.h <<_ACEOF
5332#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5333_ACEOF
5334
5335
5336cat >>confdefs.h <<_ACEOF
5337#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5338_ACEOF
5339
5340
5341cat >>confdefs.h <<_ACEOF
5342#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5343_ACEOF
5344
5345 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5346
5347cat >>confdefs.h <<_ACEOF
5348#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5349_ACEOF
5350
5351 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005352 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5353
5354cat >>confdefs.h <<_ACEOF
5355#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5356_ACEOF
5357
5358 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005359 fi
5360done
5361
5362# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5363# target feature def files.
5364LLVM_ENUM_TARGETS=""
5365LLVM_ENUM_ASM_PRINTERS=""
5366LLVM_ENUM_ASM_PARSERS=""
5367LLVM_ENUM_DISASSEMBLERS=""
5368for target_to_build in $TARGETS_TO_BUILD; do
5369 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5370 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5371 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5372 fi
5373 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5374 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5375 fi
5376 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5377 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5378 fi
5379done
5380
5381
5382
5383
5384
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005385
5386# Check whether --with-optimize-option was given.
5387if test "${with_optimize_option+set}" = set; then
5388 withval=$with_optimize_option;
5389else
5390 withval=default
5391fi
5392
5393{ echo "$as_me:$LINENO: checking optimization flags" >&5
5394echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5395case "$withval" in
5396 default)
5397 case "$llvm_cv_os_type" in
5398 FreeBSD) optimize_option=-O2 ;;
5399 MingW) optimize_option=-O2 ;;
5400 *) optimize_option=-O3 ;;
5401 esac ;;
5402 *) optimize_option="$withval" ;;
5403esac
5404OPTIMIZE_OPTION=$optimize_option
5405
5406{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5407echo "${ECHO_T}$optimize_option" >&6; }
5408
5409
5410# Check whether --with-extra-options was given.
5411if test "${with_extra_options+set}" = set; then
5412 withval=$with_extra_options;
5413else
5414 withval=default
5415fi
5416
5417case "$withval" in
5418 default) EXTRA_OPTIONS= ;;
5419 *) EXTRA_OPTIONS=$withval ;;
5420esac
5421EXTRA_OPTIONS=$EXTRA_OPTIONS
5422
5423
5424
5425# Check whether --with-extra-ld-options was given.
5426if test "${with_extra_ld_options+set}" = set; then
5427 withval=$with_extra_ld_options;
5428else
5429 withval=default
5430fi
5431
5432case "$withval" in
5433 default) EXTRA_LD_OPTIONS= ;;
5434 *) EXTRA_LD_OPTIONS=$withval ;;
5435esac
5436EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5437
5438
5439# Check whether --enable-bindings was given.
5440if test "${enable_bindings+set}" = set; then
5441 enableval=$enable_bindings;
5442else
5443 enableval=default
5444fi
5445
5446BINDINGS_TO_BUILD=""
5447case "$enableval" in
5448 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5449 all ) BINDINGS_TO_BUILD="ocaml" ;;
5450 none | no) BINDINGS_TO_BUILD="" ;;
5451 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5452 case "$a_binding" in
5453 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5454 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5455echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5457 esac
5458 done
5459 ;;
5460esac
5461
5462
5463# Check whether --with-ocaml-libdir was given.
5464if test "${with_ocaml_libdir+set}" = set; then
5465 withval=$with_ocaml_libdir;
5466else
5467 withval=auto
5468fi
5469
5470case "$withval" in
5471 auto) with_ocaml_libdir="$withval" ;;
5472 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5474echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5476esac
5477
5478
5479# Check whether --with-clang-resource-dir was given.
5480if test "${with_clang_resource_dir+set}" = set; then
5481 withval=$with_clang_resource_dir;
5482else
5483 withval=""
5484fi
5485
5486
5487cat >>confdefs.h <<_ACEOF
5488#define CLANG_RESOURCE_DIR "$withval"
5489_ACEOF
5490
5491
5492
5493# Check whether --with-c-include-dirs was given.
5494if test "${with_c_include_dirs+set}" = set; then
5495 withval=$with_c_include_dirs;
5496else
5497 withval=""
5498fi
5499
5500
5501cat >>confdefs.h <<_ACEOF
5502#define C_INCLUDE_DIRS "$withval"
5503_ACEOF
5504
5505
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005506# Clang normally uses the system c++ headers and libraries. With this option,
5507# clang will use the ones provided by a gcc installation instead. This option should
5508# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005509
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005510# Check whether --with-gcc-toolchain was given.
5511if test "${with_gcc_toolchain+set}" = set; then
5512 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005513else
5514 withval=""
5515fi
5516
5517
5518cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005519#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005520_ACEOF
5521
5522
5523
5524# Check whether --with-binutils-include was given.
5525if test "${with_binutils_include+set}" = set; then
5526 withval=$with_binutils_include;
5527else
5528 withval=default
5529fi
5530
5531case "$withval" in
5532 default) WITH_BINUTILS_INCDIR=default ;;
5533 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5534 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5535echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5537esac
5538if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5539 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5540
5541 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5542 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5543 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5544echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5545 { (exit 1); exit 1; }; };
5546 fi
5547fi
5548
5549
5550# Check whether --with-bug-report-url was given.
5551if test "${with_bug_report_url+set}" = set; then
5552 withval=$with_bug_report_url;
5553else
5554 withval="http://llvm.org/bugs/"
5555fi
5556
5557
5558cat >>confdefs.h <<_ACEOF
5559#define BUG_REPORT_URL "$withval"
5560_ACEOF
5561
5562
5563# Check whether --enable-libffi was given.
5564if test "${enable_libffi+set}" = set; then
5565 enableval=$enable_libffi; case "$enableval" in
5566 yes) llvm_cv_enable_libffi="yes" ;;
5567 no) llvm_cv_enable_libffi="no" ;;
5568 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5569echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5570 { (exit 1); exit 1; }; } ;;
5571 esac
5572else
5573 llvm_cv_enable_libffi=no
5574fi
5575
5576
5577
5578{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5579echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5580if test "${lt_cv_path_NM+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 if test -n "$NM"; then
5584 # Let the user override the test.
5585 lt_cv_path_NM="$NM"
5586else
5587 lt_nm_to_check="${ac_tool_prefix}nm"
5588 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5589 lt_nm_to_check="$lt_nm_to_check nm"
5590 fi
5591 for lt_tmp_nm in $lt_nm_to_check; do
5592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5594 IFS="$lt_save_ifs"
5595 test -z "$ac_dir" && ac_dir=.
5596 tmp_nm="$ac_dir/$lt_tmp_nm"
5597 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5598 # Check to see if the nm accepts a BSD-compat flag.
5599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5600 # nm: unknown option "B" ignored
5601 # Tru64's nm complains that /dev/null is an invalid object file
5602 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5603 */dev/null* | *'Invalid file or object type'*)
5604 lt_cv_path_NM="$tmp_nm -B"
5605 break
5606 ;;
5607 *)
5608 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5609 */dev/null*)
5610 lt_cv_path_NM="$tmp_nm -p"
5611 break
5612 ;;
5613 *)
5614 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5615 continue # so that we can try to find one that supports BSD flags
5616 ;;
5617 esac
5618 ;;
5619 esac
5620 fi
5621 done
5622 IFS="$lt_save_ifs"
5623 done
5624 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5625fi
5626fi
5627{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5628echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5629NM="$lt_cv_path_NM"
5630
5631
5632
5633{ echo "$as_me:$LINENO: checking for GNU make" >&5
5634echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5635if test "${llvm_cv_gnu_make_command+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 llvm_cv_gnu_make_command=''
5639 for a in "$MAKE" make gmake gnumake ; do
5640 if test -z "$a" ; then continue ; fi ;
5641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5642 then
5643 llvm_cv_gnu_make_command=$a ;
5644 break;
5645 fi
5646 done
5647fi
5648{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5649echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5650 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5651 ifGNUmake='' ;
5652 else
5653 ifGNUmake='#' ;
5654 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5655echo "${ECHO_T}\"Not found\"" >&6; };
5656 fi
5657
5658
5659{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5660echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5661LN_S=$as_ln_s
5662if test "$LN_S" = "ln -s"; then
5663 { echo "$as_me:$LINENO: result: yes" >&5
5664echo "${ECHO_T}yes" >&6; }
5665else
5666 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5667echo "${ECHO_T}no, using $LN_S" >&6; }
5668fi
5669
5670# Extract the first word of "cmp", so it can be a program name with args.
5671set dummy cmp; ac_word=$2
5672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674if test "${ac_cv_path_CMP+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 case $CMP in
5678 [\\/]* | ?:[\\/]*)
5679 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5680 ;;
5681 *)
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694done
5695IFS=$as_save_IFS
5696
5697 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5698 ;;
5699esac
5700fi
5701CMP=$ac_cv_path_CMP
5702if test -n "$CMP"; then
5703 { echo "$as_me:$LINENO: result: $CMP" >&5
5704echo "${ECHO_T}$CMP" >&6; }
5705else
5706 { echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6; }
5708fi
5709
5710
5711# Extract the first word of "cp", so it can be a program name with args.
5712set dummy cp; ac_word=$2
5713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715if test "${ac_cv_path_CP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 case $CP in
5719 [\\/]* | ?:[\\/]*)
5720 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5721 ;;
5722 *)
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734done
5735done
5736IFS=$as_save_IFS
5737
5738 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5739 ;;
5740esac
5741fi
5742CP=$ac_cv_path_CP
5743if test -n "$CP"; then
5744 { echo "$as_me:$LINENO: result: $CP" >&5
5745echo "${ECHO_T}$CP" >&6; }
5746else
5747 { echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6; }
5749fi
5750
5751
5752# Extract the first word of "date", so it can be a program name with args.
5753set dummy date; ac_word=$2
5754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756if test "${ac_cv_path_DATE+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 case $DATE in
5760 [\\/]* | ?:[\\/]*)
5761 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5762 ;;
5763 *)
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775done
5776done
5777IFS=$as_save_IFS
5778
5779 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5780 ;;
5781esac
5782fi
5783DATE=$ac_cv_path_DATE
5784if test -n "$DATE"; then
5785 { echo "$as_me:$LINENO: result: $DATE" >&5
5786echo "${ECHO_T}$DATE" >&6; }
5787else
5788 { echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6; }
5790fi
5791
5792
5793# Extract the first word of "find", so it can be a program name with args.
5794set dummy find; ac_word=$2
5795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797if test "${ac_cv_path_FIND+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 case $FIND in
5801 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5803 ;;
5804 *)
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817done
5818IFS=$as_save_IFS
5819
5820 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5821 ;;
5822esac
5823fi
5824FIND=$ac_cv_path_FIND
5825if test -n "$FIND"; then
5826 { echo "$as_me:$LINENO: result: $FIND" >&5
5827echo "${ECHO_T}$FIND" >&6; }
5828else
5829 { echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6; }
5831fi
5832
5833
5834# Extract the first word of "grep", so it can be a program name with args.
5835set dummy grep; ac_word=$2
5836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838if test "${ac_cv_path_GREP+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 case $GREP in
5842 [\\/]* | ?:[\\/]*)
5843 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5844 ;;
5845 *)
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857done
5858done
5859IFS=$as_save_IFS
5860
5861 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5862 ;;
5863esac
5864fi
5865GREP=$ac_cv_path_GREP
5866if test -n "$GREP"; then
5867 { echo "$as_me:$LINENO: result: $GREP" >&5
5868echo "${ECHO_T}$GREP" >&6; }
5869else
5870 { echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6; }
5872fi
5873
5874
5875# Extract the first word of "mkdir", so it can be a program name with args.
5876set dummy mkdir; ac_word=$2
5877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879if test "${ac_cv_path_MKDIR+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 case $MKDIR in
5883 [\\/]* | ?:[\\/]*)
5884 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5885 ;;
5886 *)
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899done
5900IFS=$as_save_IFS
5901
5902 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5903 ;;
5904esac
5905fi
5906MKDIR=$ac_cv_path_MKDIR
5907if test -n "$MKDIR"; then
5908 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5909echo "${ECHO_T}$MKDIR" >&6; }
5910else
5911 { echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6; }
5913fi
5914
5915
5916# Extract the first word of "mv", so it can be a program name with args.
5917set dummy mv; ac_word=$2
5918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920if test "${ac_cv_path_MV+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923 case $MV in
5924 [\\/]* | ?:[\\/]*)
5925 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5926 ;;
5927 *)
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5944 ;;
5945esac
5946fi
5947MV=$ac_cv_path_MV
5948if test -n "$MV"; then
5949 { echo "$as_me:$LINENO: result: $MV" >&5
5950echo "${ECHO_T}$MV" >&6; }
5951else
5952 { echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6; }
5954fi
5955
5956
5957if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5959set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962if test "${ac_cv_prog_RANLIB+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965 if test -n "$RANLIB"; then
5966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5967else
5968as_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_prog_RANLIB="${ac_tool_prefix}ranlib"
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
5983fi
5984fi
5985RANLIB=$ac_cv_prog_RANLIB
5986if test -n "$RANLIB"; then
5987 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5988echo "${ECHO_T}$RANLIB" >&6; }
5989else
5990 { echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6; }
5992fi
5993
5994
5995fi
5996if test -z "$ac_cv_prog_RANLIB"; then
5997 ac_ct_RANLIB=$RANLIB
5998 # Extract the first word of "ranlib", so it can be a program name with args.
5999set dummy 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_ac_ct_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 if test -n "$ac_ct_RANLIB"; then
6006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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
6025ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6026if test -n "$ac_ct_RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6028echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6029else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6; }
6032fi
6033
6034 if test "x$ac_ct_RANLIB" = x; then
6035 RANLIB=":"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038yes:)
6039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&5
6042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043whose name does not start with the host triplet. If you think this
6044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045ac_tool_warned=yes ;;
6046esac
6047 RANLIB=$ac_ct_RANLIB
6048 fi
6049else
6050 RANLIB="$ac_cv_prog_RANLIB"
6051fi
6052
6053if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6055set dummy ${ac_tool_prefix}ar; ac_word=$2
6056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058if test "${ac_cv_prog_AR+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061 if test -n "$AR"; then
6062 ac_cv_prog_AR="$AR" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_AR="${ac_tool_prefix}ar"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075done
6076done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081AR=$ac_cv_prog_AR
6082if test -n "$AR"; then
6083 { echo "$as_me:$LINENO: result: $AR" >&5
6084echo "${ECHO_T}$AR" >&6; }
6085else
6086 { echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6; }
6088fi
6089
6090
6091fi
6092if test -z "$ac_cv_prog_AR"; then
6093 ac_ct_AR=$AR
6094 # Extract the first word of "ar", so it can be a program name with args.
6095set dummy 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_ac_ct_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 if test -n "$ac_ct_AR"; then
6102 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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
6121ac_ct_AR=$ac_cv_prog_ac_ct_AR
6122if test -n "$ac_ct_AR"; then
6123 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6124echo "${ECHO_T}$ac_ct_AR" >&6; }
6125else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
6128fi
6129
6130 if test "x$ac_ct_AR" = x; then
6131 AR="false"
6132 else
6133 case $cross_compiling:$ac_tool_warned in
6134yes:)
6135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&5
6138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139whose name does not start with the host triplet. If you think this
6140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141ac_tool_warned=yes ;;
6142esac
6143 AR=$ac_ct_AR
6144 fi
6145else
6146 AR="$ac_cv_prog_AR"
6147fi
6148
6149# Extract the first word of "rm", so it can be a program name with args.
6150set dummy rm; ac_word=$2
6151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153if test "${ac_cv_path_RM+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 case $RM in
6157 [\\/]* | ?:[\\/]*)
6158 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6159 ;;
6160 *)
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172done
6173done
6174IFS=$as_save_IFS
6175
6176 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6177 ;;
6178esac
6179fi
6180RM=$ac_cv_path_RM
6181if test -n "$RM"; then
6182 { echo "$as_me:$LINENO: result: $RM" >&5
6183echo "${ECHO_T}$RM" >&6; }
6184else
6185 { echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6; }
6187fi
6188
6189
6190# Extract the first word of "sed", so it can be a program name with args.
6191set dummy sed; ac_word=$2
6192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194if test "${ac_cv_path_SED+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 case $SED in
6198 [\\/]* | ?:[\\/]*)
6199 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6200 ;;
6201 *)
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214done
6215IFS=$as_save_IFS
6216
6217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6218 ;;
6219esac
6220fi
6221SED=$ac_cv_path_SED
6222if test -n "$SED"; then
6223 { echo "$as_me:$LINENO: result: $SED" >&5
6224echo "${ECHO_T}$SED" >&6; }
6225else
6226 { echo "$as_me:$LINENO: result: no" >&5
6227echo "${ECHO_T}no" >&6; }
6228fi
6229
6230
6231# Extract the first word of "tar", so it can be a program name with args.
6232set dummy tar; ac_word=$2
6233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235if test "${ac_cv_path_TAR+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 case $TAR in
6239 [\\/]* | ?:[\\/]*)
6240 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6241 ;;
6242 *)
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254done
6255done
6256IFS=$as_save_IFS
6257
6258 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6259 ;;
6260esac
6261fi
6262TAR=$ac_cv_path_TAR
6263if test -n "$TAR"; then
6264 { echo "$as_me:$LINENO: result: $TAR" >&5
6265echo "${ECHO_T}$TAR" >&6; }
6266else
6267 { echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6; }
6269fi
6270
6271
6272# Extract the first word of "pwd", so it can be a program name with args.
6273set dummy pwd; ac_word=$2
6274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276if test "${ac_cv_path_BINPWD+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 case $BINPWD in
6280 [\\/]* | ?:[\\/]*)
6281 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6282 ;;
6283 *)
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295done
6296done
6297IFS=$as_save_IFS
6298
6299 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6300 ;;
6301esac
6302fi
6303BINPWD=$ac_cv_path_BINPWD
6304if test -n "$BINPWD"; then
6305 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6306echo "${ECHO_T}$BINPWD" >&6; }
6307else
6308 { echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6; }
6310fi
6311
6312
6313
6314# Extract the first word of "Graphviz", so it can be a program name with args.
6315set dummy Graphviz; ac_word=$2
6316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 case $GRAPHVIZ in
6322 [\\/]* | ?:[\\/]*)
6323 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6324 ;;
6325 *)
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337done
6338done
6339IFS=$as_save_IFS
6340
6341 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6342 ;;
6343esac
6344fi
6345GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6346if test -n "$GRAPHVIZ"; then
6347 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6348echo "${ECHO_T}$GRAPHVIZ" >&6; }
6349else
6350 { echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6; }
6352fi
6353
6354
6355if test "$GRAPHVIZ" != "echo Graphviz" ; then
6356
6357cat >>confdefs.h <<\_ACEOF
6358#define HAVE_GRAPHVIZ 1
6359_ACEOF
6360
6361 if test "$llvm_cv_os_type" = "MingW" ; then
6362 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6363 fi
6364
6365cat >>confdefs.h <<_ACEOF
6366#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6367_ACEOF
6368
6369fi
6370# Extract the first word of "dot", so it can be a program name with args.
6371set dummy dot; ac_word=$2
6372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374if test "${ac_cv_path_DOT+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 case $DOT in
6378 [\\/]* | ?:[\\/]*)
6379 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6380 ;;
6381 *)
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394done
6395IFS=$as_save_IFS
6396
6397 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6398 ;;
6399esac
6400fi
6401DOT=$ac_cv_path_DOT
6402if test -n "$DOT"; then
6403 { echo "$as_me:$LINENO: result: $DOT" >&5
6404echo "${ECHO_T}$DOT" >&6; }
6405else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407echo "${ECHO_T}no" >&6; }
6408fi
6409
6410
6411if test "$DOT" != "echo dot" ; then
6412
6413cat >>confdefs.h <<\_ACEOF
6414#define HAVE_DOT 1
6415_ACEOF
6416
6417 if test "$llvm_cv_os_type" = "MingW" ; then
6418 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6419 fi
6420
6421cat >>confdefs.h <<_ACEOF
6422#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6423_ACEOF
6424
6425fi
6426# Extract the first word of "fdp", so it can be a program name with args.
6427set dummy fdp; ac_word=$2
6428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430if test "${ac_cv_path_FDP+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 case $FDP in
6434 [\\/]* | ?:[\\/]*)
6435 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6436 ;;
6437 *)
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451IFS=$as_save_IFS
6452
6453 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6454 ;;
6455esac
6456fi
6457FDP=$ac_cv_path_FDP
6458if test -n "$FDP"; then
6459 { echo "$as_me:$LINENO: result: $FDP" >&5
6460echo "${ECHO_T}$FDP" >&6; }
6461else
6462 { echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6; }
6464fi
6465
6466
6467if test "$FDP" != "echo fdp" ; then
6468
6469cat >>confdefs.h <<\_ACEOF
6470#define HAVE_FDP 1
6471_ACEOF
6472
6473 if test "$llvm_cv_os_type" = "MingW" ; then
6474 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6475 fi
6476
6477cat >>confdefs.h <<_ACEOF
6478#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6479_ACEOF
6480
6481fi
6482# Extract the first word of "neato", so it can be a program name with args.
6483set dummy neato; ac_word=$2
6484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486if test "${ac_cv_path_NEATO+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489 case $NEATO in
6490 [\\/]* | ?:[\\/]*)
6491 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6492 ;;
6493 *)
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506done
6507IFS=$as_save_IFS
6508
6509 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6510 ;;
6511esac
6512fi
6513NEATO=$ac_cv_path_NEATO
6514if test -n "$NEATO"; then
6515 { echo "$as_me:$LINENO: result: $NEATO" >&5
6516echo "${ECHO_T}$NEATO" >&6; }
6517else
6518 { echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6; }
6520fi
6521
6522
6523if test "$NEATO" != "echo neato" ; then
6524
6525cat >>confdefs.h <<\_ACEOF
6526#define HAVE_NEATO 1
6527_ACEOF
6528
6529 if test "$llvm_cv_os_type" = "MingW" ; then
6530 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531 fi
6532
6533cat >>confdefs.h <<_ACEOF
6534#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6535_ACEOF
6536
6537fi
6538# Extract the first word of "twopi", so it can be a program name with args.
6539set dummy twopi; ac_word=$2
6540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542if test "${ac_cv_path_TWOPI+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 case $TWOPI in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6548 ;;
6549 *)
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563IFS=$as_save_IFS
6564
6565 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6566 ;;
6567esac
6568fi
6569TWOPI=$ac_cv_path_TWOPI
6570if test -n "$TWOPI"; then
6571 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6572echo "${ECHO_T}$TWOPI" >&6; }
6573else
6574 { echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6; }
6576fi
6577
6578
6579if test "$TWOPI" != "echo twopi" ; then
6580
6581cat >>confdefs.h <<\_ACEOF
6582#define HAVE_TWOPI 1
6583_ACEOF
6584
6585 if test "$llvm_cv_os_type" = "MingW" ; then
6586 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6587 fi
6588
6589cat >>confdefs.h <<_ACEOF
6590#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6591_ACEOF
6592
6593fi
6594# Extract the first word of "circo", so it can be a program name with args.
6595set dummy circo; ac_word=$2
6596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598if test "${ac_cv_path_CIRCO+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600else
6601 case $CIRCO in
6602 [\\/]* | ?:[\\/]*)
6603 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6604 ;;
6605 *)
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6622 ;;
6623esac
6624fi
6625CIRCO=$ac_cv_path_CIRCO
6626if test -n "$CIRCO"; then
6627 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6628echo "${ECHO_T}$CIRCO" >&6; }
6629else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6; }
6632fi
6633
6634
6635if test "$CIRCO" != "echo circo" ; then
6636
6637cat >>confdefs.h <<\_ACEOF
6638#define HAVE_CIRCO 1
6639_ACEOF
6640
6641 if test "$llvm_cv_os_type" = "MingW" ; then
6642 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6643 fi
6644
6645cat >>confdefs.h <<_ACEOF
6646#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6647_ACEOF
6648
6649fi
6650for ac_prog in gv gsview32
6651do
6652 # Extract the first word of "$ac_prog", so it can be a program name with args.
6653set dummy $ac_prog; ac_word=$2
6654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656if test "${ac_cv_path_GV+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659 case $GV in
6660 [\\/]* | ?:[\\/]*)
6661 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6662 ;;
6663 *)
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676done
6677IFS=$as_save_IFS
6678
6679 ;;
6680esac
6681fi
6682GV=$ac_cv_path_GV
6683if test -n "$GV"; then
6684 { echo "$as_me:$LINENO: result: $GV" >&5
6685echo "${ECHO_T}$GV" >&6; }
6686else
6687 { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
6689fi
6690
6691
6692 test -n "$GV" && break
6693done
6694test -n "$GV" || GV="echo gv"
6695
6696if test "$GV" != "echo gv" ; then
6697
6698cat >>confdefs.h <<\_ACEOF
6699#define HAVE_GV 1
6700_ACEOF
6701
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704 fi
6705
6706cat >>confdefs.h <<_ACEOF
6707#define LLVM_PATH_GV "$GV${EXEEXT}"
6708_ACEOF
6709
6710fi
6711# Extract the first word of "dotty", so it can be a program name with args.
6712set dummy dotty; ac_word=$2
6713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715if test "${ac_cv_path_DOTTY+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 case $DOTTY in
6719 [\\/]* | ?:[\\/]*)
6720 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6721 ;;
6722 *)
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735done
6736IFS=$as_save_IFS
6737
6738 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6739 ;;
6740esac
6741fi
6742DOTTY=$ac_cv_path_DOTTY
6743if test -n "$DOTTY"; then
6744 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6745echo "${ECHO_T}$DOTTY" >&6; }
6746else
6747 { echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6; }
6749fi
6750
6751
6752if test "$DOTTY" != "echo dotty" ; then
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define HAVE_DOTTY 1
6756_ACEOF
6757
6758 if test "$llvm_cv_os_type" = "MingW" ; then
6759 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760 fi
6761
6762cat >>confdefs.h <<_ACEOF
6763#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6764_ACEOF
6765
6766fi
6767# Extract the first word of "xdot.py", so it can be a program name with args.
6768set dummy xdot.py; ac_word=$2
6769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_path_XDOT_PY+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 case $XDOT_PY in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
6792IFS=$as_save_IFS
6793
6794 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6795 ;;
6796esac
6797fi
6798XDOT_PY=$ac_cv_path_XDOT_PY
6799if test -n "$XDOT_PY"; then
6800 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6801echo "${ECHO_T}$XDOT_PY" >&6; }
6802else
6803 { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
6805fi
6806
6807
6808if test "$XDOT_PY" != "echo xdot.py" ; then
6809
6810cat >>confdefs.h <<\_ACEOF
6811#define HAVE_XDOT_PY 1
6812_ACEOF
6813
6814 if test "$llvm_cv_os_type" = "MingW" ; then
6815 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6816 fi
6817
6818cat >>confdefs.h <<_ACEOF
6819#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6820_ACEOF
6821
6822fi
6823
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006824# Find a good install program. We prefer a C program (faster),
6825# so one script is as good as another. But avoid the broken or
6826# incompatible versions:
6827# SysV /etc/install, /usr/sbin/install
6828# SunOS /usr/etc/install
6829# IRIX /sbin/install
6830# AIX /bin/install
6831# AmigaOS /C/install, which installs bootblocks on floppy discs
6832# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6833# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6834# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6835# OS/2's system install, which has a completely different semantic
6836# ./install, which can be erroneously created by make from ./install.sh.
6837{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6838echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6839if test -z "$INSTALL"; then
6840if test "${ac_cv_path_install+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 # Account for people who put trailing slashes in PATH elements.
6849case $as_dir/ in
6850 ./ | .// | /cC/* | \
6851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6852 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6853 /usr/ucb/* ) ;;
6854 *)
6855 # OSF1 and SCO ODT 3.0 have their own names for install.
6856 # Don't use installbsd from OSF since it installs stuff as root
6857 # by default.
6858 for ac_prog in ginstall scoinst install; do
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6861 if test $ac_prog = install &&
6862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6863 # AIX install. It has an incompatible calling convention.
6864 :
6865 elif test $ac_prog = install &&
6866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6867 # program-specific install script used by HP pwplus--don't use.
6868 :
6869 else
6870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6871 break 3
6872 fi
6873 fi
6874 done
6875 done
6876 ;;
6877esac
6878done
6879IFS=$as_save_IFS
6880
6881
6882fi
6883 if test "${ac_cv_path_install+set}" = set; then
6884 INSTALL=$ac_cv_path_install
6885 else
6886 # As a last resort, use the slow shell script. Don't cache a
6887 # value for INSTALL within a source directory, because that will
6888 # break other packages using the cache if that directory is
6889 # removed, or if the value is a relative name.
6890 INSTALL=$ac_install_sh
6891 fi
6892fi
6893{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6894echo "${ECHO_T}$INSTALL" >&6; }
6895
6896# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6897# It thinks the first close brace ends the variable substitution.
6898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6899
6900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6901
6902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6903
6904case "$INSTALL" in
6905 [\\/$]* | ?:[\\/]* ) ;;
6906 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6907esac
6908
6909# Extract the first word of "bzip2", so it can be a program name with args.
6910set dummy bzip2; ac_word=$2
6911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_BZIP2+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916 case $BZIP2 in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933done
6934IFS=$as_save_IFS
6935
6936 ;;
6937esac
6938fi
6939BZIP2=$ac_cv_path_BZIP2
6940if test -n "$BZIP2"; then
6941 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6942echo "${ECHO_T}$BZIP2" >&6; }
6943else
6944 { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
6946fi
6947
6948
6949# Extract the first word of "cat", so it can be a program name with args.
6950set dummy cat; 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_CAT+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $CAT in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_CAT="$CAT" # 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_CAT="$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
6979CAT=$ac_cv_path_CAT
6980if test -n "$CAT"; then
6981 { echo "$as_me:$LINENO: result: $CAT" >&5
6982echo "${ECHO_T}$CAT" >&6; }
6983else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988
6989# Extract the first word of "doxygen", so it can be a program name with args.
6990set dummy doxygen; 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_DOXYGEN+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 case $DOXYGEN in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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
7019DOXYGEN=$ac_cv_path_DOXYGEN
7020if test -n "$DOXYGEN"; then
7021 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7022echo "${ECHO_T}$DOXYGEN" >&6; }
7023else
7024 { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
7026fi
7027
7028
7029# Extract the first word of "groff", so it can be a program name with args.
7030set dummy groff; 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_GROFF+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036 case $GROFF in
7037 [\\/]* | ?:[\\/]*)
7038 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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
7059GROFF=$ac_cv_path_GROFF
7060if test -n "$GROFF"; then
7061 { echo "$as_me:$LINENO: result: $GROFF" >&5
7062echo "${ECHO_T}$GROFF" >&6; }
7063else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069# Extract the first word of "gzip", so it can be a program name with args.
7070set dummy gzip; 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_GZIPBIN+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $GZIPBIN in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$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
7099GZIPBIN=$ac_cv_path_GZIPBIN
7100if test -n "$GZIPBIN"; then
7101 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7102echo "${ECHO_T}$GZIPBIN" >&6; }
7103else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109# Extract the first word of "pod2html", so it can be a program name with args.
7110set dummy pod2html; 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_POD2HTML+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116 case $POD2HTML in
7117 [\\/]* | ?:[\\/]*)
7118 ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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
7139POD2HTML=$ac_cv_path_POD2HTML
7140if test -n "$POD2HTML"; then
7141 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7142echo "${ECHO_T}$POD2HTML" >&6; }
7143else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147
7148
7149# Extract the first word of "pod2man", so it can be a program name with args.
7150set dummy pod2man; 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_POD2MAN+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 case $POD2MAN in
7157 [\\/]* | ?:[\\/]*)
7158 ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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
7179POD2MAN=$ac_cv_path_POD2MAN
7180if test -n "$POD2MAN"; then
7181 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7182echo "${ECHO_T}$POD2MAN" >&6; }
7183else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6; }
7186fi
7187
7188
7189# Extract the first word of "pdfroff", so it can be a program name with args.
7190set dummy pdfroff; 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_PDFROFF+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $PDFROFF in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$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
7219PDFROFF=$ac_cv_path_PDFROFF
7220if test -n "$PDFROFF"; then
7221 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7222echo "${ECHO_T}$PDFROFF" >&6; }
7223else
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
7226fi
7227
7228
7229# Extract the first word of "runtest", so it can be a program name with args.
7230set dummy runtest; 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_RUNTEST+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 case $RUNTEST in
7237 [\\/]* | ?:[\\/]*)
7238 ac_cv_path_RUNTEST="$RUNTEST" # 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_RUNTEST="$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
7259RUNTEST=$ac_cv_path_RUNTEST
7260if test -n "$RUNTEST"; then
7261 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7262echo "${ECHO_T}$RUNTEST" >&6; }
7263else
7264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
7266fi
7267
7268
7269
7270no_itcl=true
7271{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7272echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7273
7274# Check whether --with-tclinclude was given.
7275if test "${with_tclinclude+set}" = set; then
7276 withval=$with_tclinclude; with_tclinclude=${withval}
7277else
7278 with_tclinclude=''
7279fi
7280
7281if test "${ac_cv_path_tclsh+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284
7285if test x"${with_tclinclude}" != x ; then
7286 if test -f ${with_tclinclude}/tclsh ; then
7287 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7288 elif test -f ${with_tclinclude}/src/tclsh ; then
7289 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7290 else
7291 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7292echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7293 { (exit 1); exit 1; }; }
7294 fi
7295fi
7296fi
7297
7298
7299if test x"${ac_cv_path_tclsh}" = x ; then
7300 { echo "$as_me:$LINENO: result: none" >&5
7301echo "${ECHO_T}none" >&6; }
7302 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
7303do
7304 # Extract the first word of "$ac_prog", so it can be a program name with args.
7305set dummy $ac_prog; ac_word=$2
7306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_path_TCLSH+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 case $TCLSH in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329IFS=$as_save_IFS
7330
7331 ;;
7332esac
7333fi
7334TCLSH=$ac_cv_path_TCLSH
7335if test -n "$TCLSH"; then
7336 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7337echo "${ECHO_T}$TCLSH" >&6; }
7338else
7339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
7341fi
7342
7343
7344 test -n "$TCLSH" && break
7345done
7346
7347 if test x"${TCLSH}" = x ; then
7348 ac_cv_path_tclsh='';
7349 else
7350 ac_cv_path_tclsh="${TCLSH}";
7351 fi
7352else
7353 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7354echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7355 TCLSH="${ac_cv_path_tclsh}"
7356
7357fi
7358
7359# Extract the first word of "zip", so it can be a program name with args.
7360set dummy zip; ac_word=$2
7361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363if test "${ac_cv_path_ZIP+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366 case $ZIP in
7367 [\\/]* | ?:[\\/]*)
7368 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7369 ;;
7370 *)
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382done
7383done
7384IFS=$as_save_IFS
7385
7386 ;;
7387esac
7388fi
7389ZIP=$ac_cv_path_ZIP
7390if test -n "$ZIP"; then
7391 { echo "$as_me:$LINENO: result: $ZIP" >&5
7392echo "${ECHO_T}$ZIP" >&6; }
7393else
7394 { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
7396fi
7397
7398
7399for ac_prog in ocamlc
7400do
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402set dummy $ac_prog; ac_word=$2
7403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405if test "${ac_cv_path_OCAMLC+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 case $OCAMLC in
7409 [\\/]* | ?:[\\/]*)
7410 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7411 ;;
7412 *)
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424done
7425done
7426IFS=$as_save_IFS
7427
7428 ;;
7429esac
7430fi
7431OCAMLC=$ac_cv_path_OCAMLC
7432if test -n "$OCAMLC"; then
7433 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434echo "${ECHO_T}$OCAMLC" >&6; }
7435else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
7438fi
7439
7440
7441 test -n "$OCAMLC" && break
7442done
7443
7444for ac_prog in ocamlopt
7445do
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447set dummy $ac_prog; ac_word=$2
7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 case $OCAMLOPT in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7456 ;;
7457 *)
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471IFS=$as_save_IFS
7472
7473 ;;
7474esac
7475fi
7476OCAMLOPT=$ac_cv_path_OCAMLOPT
7477if test -n "$OCAMLOPT"; then
7478 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479echo "${ECHO_T}$OCAMLOPT" >&6; }
7480else
7481 { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
7483fi
7484
7485
7486 test -n "$OCAMLOPT" && break
7487done
7488
7489for ac_prog in ocamldep
7490do
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492set dummy $ac_prog; ac_word=$2
7493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498 case $OCAMLDEP in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518 ;;
7519esac
7520fi
7521OCAMLDEP=$ac_cv_path_OCAMLDEP
7522if test -n "$OCAMLDEP"; then
7523 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524echo "${ECHO_T}$OCAMLDEP" >&6; }
7525else
7526 { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
7531 test -n "$OCAMLDEP" && break
7532done
7533
7534for ac_prog in ocamldoc
7535do
7536 # Extract the first word of "$ac_prog", so it can be a program name with args.
7537set dummy $ac_prog; ac_word=$2
7538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542else
7543 case $OCAMLDOC in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559done
7560done
7561IFS=$as_save_IFS
7562
7563 ;;
7564esac
7565fi
7566OCAMLDOC=$ac_cv_path_OCAMLDOC
7567if test -n "$OCAMLDOC"; then
7568 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569echo "${ECHO_T}$OCAMLDOC" >&6; }
7570else
7571 { echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6; }
7573fi
7574
7575
7576 test -n "$OCAMLDOC" && break
7577done
7578
7579for ac_prog in gas as
7580do
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582set dummy $ac_prog; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_GAS+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 case $GAS in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7591 ;;
7592 *)
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608 ;;
7609esac
7610fi
7611GAS=$ac_cv_path_GAS
7612if test -n "$GAS"; then
7613 { echo "$as_me:$LINENO: result: $GAS" >&5
7614echo "${ECHO_T}$GAS" >&6; }
7615else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
7618fi
7619
7620
7621 test -n "$GAS" && break
7622done
7623
7624
7625{ echo "$as_me:$LINENO: checking for linker version" >&5
7626echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627if test "${llvm_cv_link_version+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630
7631 version_string="$(ld -v 2>&1 | head -1)"
7632
7633 # Check for ld64.
7634 if (echo "$version_string" | grep -q "ld64"); then
Benjamin Kramer00171802012-05-05 15:02:39 +00007635 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarbf79f912011-10-18 23:10:58 +00007636 else
7637 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7638 fi
7639
7640fi
7641{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7643
7644cat >>confdefs.h <<_ACEOF
7645#define HOST_LINK_VERSION "$llvm_cv_link_version"
7646_ACEOF
7647
7648
7649
7650{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652if test "${llvm_cv_link_use_r+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655 ac_ext=c
7656ac_cpp='$CPP $CPPFLAGS'
7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661 oldcflags="$CFLAGS"
7662 CFLAGS="$CFLAGS -Wl,-R."
7663 cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
7669
7670int
7671main ()
7672{
7673
7674 ;
7675 return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext conftest$ac_exeext
7679if { (ac_try="$ac_link"
7680case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_try") 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 llvm_cv_link_use_r=yes
7713else
7714 echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 llvm_cv_link_use_r=no
7718fi
7719
7720rm -f core conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 CFLAGS="$oldcflags"
7723 ac_ext=c
7724ac_cpp='$CPP $CPPFLAGS'
7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730fi
7731{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733if test "$llvm_cv_link_use_r" = yes ; then
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define HAVE_LINK_R 1
7737_ACEOF
7738
7739 fi
7740
7741
7742{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 ac_ext=c
7748ac_cpp='$CPP $CPPFLAGS'
7749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753 oldcflags="$CFLAGS"
7754 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755 cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
7761
7762int
7763main ()
7764{
7765
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext conftest$ac_exeext
7771if { (ac_try="$ac_link"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 llvm_cv_link_use_export_dynamic=yes
7805else
7806 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 llvm_cv_link_use_export_dynamic=no
7810fi
7811
7812rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 CFLAGS="$oldcflags"
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822fi
7823{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define HAVE_LINK_EXPORT_DYNAMIC 1
7829_ACEOF
7830
7831 fi
7832
7833
7834{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836if test "${llvm_cv_link_use_version_script+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 ac_ext=c
7840ac_cpp='$CPP $CPPFLAGS'
7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845 oldcflags="$CFLAGS"
7846
7847 # The following code is from the autoconf manual,
7848 # "11.13: Limitations of Usual Tools".
7849 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850 # Use mktemp if possible; otherwise fall back on mkdir,
7851 # with $RANDOM to make collisions less likely.
7852 : ${TMPDIR=/tmp}
7853 {
7854 tmp=`
7855 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7856 ` &&
7857 test -n "$tmp" && test -d "$tmp"
7858 } || {
7859 tmp=$TMPDIR/foo$$-$RANDOM
7860 (umask 077 && mkdir "$tmp")
7861 } || exit $?
7862
7863 echo "{" > "$tmp/export.map"
7864 echo " global: main;" >> "$tmp/export.map"
7865 echo " local: *;" >> "$tmp/export.map"
7866 echo "};" >> "$tmp/export.map"
7867
7868 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869 cat >conftest.$ac_ext <<_ACEOF
7870/* confdefs.h. */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h. */
7875
7876int
7877main ()
7878{
7879
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884rm -f conftest.$ac_objext conftest$ac_exeext
7885if { (ac_try="$ac_link"
7886case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902esac
7903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_try") 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_try") 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 llvm_cv_link_use_version_script=yes
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 llvm_cv_link_use_version_script=no
7924fi
7925
7926rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 rm "$tmp/export.map"
7929 rmdir "$tmp"
7930 CFLAGS="$oldcflags"
7931 ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937
7938fi
7939{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941if test "$llvm_cv_link_use_version_script" = yes ; then
7942 HAVE_LINK_VERSION_SCRIPT=1
7943
7944 fi
7945
7946
7947
7948
7949{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951if test "${ac_cv_c_const+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954 cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h. */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h. */
7960
7961int
7962main ()
7963{
7964/* FIXME: Include the comments suggested by Paul. */
7965#ifndef __cplusplus
7966 /* Ultrix mips cc rejects this. */
7967 typedef int charset[2];
7968 const charset x;
7969 /* SunOS 4.1.1 cc rejects this. */
7970 char const *const *ccp;
7971 char **p;
7972 /* NEC SVR4.0.2 mips cc rejects this. */
7973 struct point {int x, y;};
7974 static struct point const zero = {0,0};
7975 /* AIX XL C 1.02.0.0 rejects this.
7976 It does not let you subtract one const X* pointer from another in
7977 an arm of an if-expression whose if-part is not a constant
7978 expression */
7979 const char *g = "string";
7980 ccp = &g + (g ? g-g : 0);
7981 /* HPUX 7.0 cc rejects these. */
7982 ++ccp;
7983 p = (char**) ccp;
7984 ccp = (char const *const *) p;
7985 { /* SCO 3.2v4 cc rejects this. */
7986 char *t;
7987 char const *s = 0 ? (char *) 0 : (char const *) 0;
7988
7989 *t++ = 0;
7990 if (s) return 0;
7991 }
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7993 int x[] = {25, 17};
7994 const int *foo = &x[0];
7995 ++foo;
7996 }
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
7999 iptr p = 0;
8000 ++p;
8001 }
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8006 }
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008 const int foo = 10;
8009 if (!foo) return 0;
8010 }
8011 return !x[0] && !zero.x;
8012#endif
8013
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext
8019if { (ac_try="$ac_compile"
8020case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023esac
8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_compile") 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033 { (case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_try") 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046esac
8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_try") 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_c_const=yes
8053else
8054 echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_cv_c_const=no
8058fi
8059
8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi
8062{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064if test $ac_cv_c_const = no; then
8065
8066cat >>confdefs.h <<\_ACEOF
8067#define const
8068_ACEOF
8069
8070fi
8071
8072
8073
8074
8075
8076
8077ac_header_dirent=no
8078for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085 cat >conftest.$ac_ext <<_ACEOF
8086/* confdefs.h. */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
8090/* end confdefs.h. */
8091#include <sys/types.h>
8092#include <$ac_hdr>
8093
8094int
8095main ()
8096{
8097if ((DIR *) 0)
8098return 0;
8099 ;
8100 return 0;
8101}
8102_ACEOF
8103rm -f conftest.$ac_objext
8104if { (ac_try="$ac_compile"
8105case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
8132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 eval "$as_ac_Header=yes"
8138else
8139 echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 eval "$as_ac_Header=no"
8143fi
8144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147ac_res=`eval echo '${'$as_ac_Header'}'`
8148 { echo "$as_me:$LINENO: result: $ac_res" >&5
8149echo "${ECHO_T}$ac_res" >&6; }
8150if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151 cat >>confdefs.h <<_ACEOF
8152#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8153_ACEOF
8154
8155ac_header_dirent=$ac_hdr; break
8156fi
8157
8158done
8159# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160if test $ac_header_dirent = dirent.h; then
8161 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163if test "${ac_cv_search_opendir+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 ac_func_search_save_LIBS=$LIBS
8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173
8174/* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8177#ifdef __cplusplus
8178extern "C"
8179#endif
8180char opendir ();
8181int
8182main ()
8183{
8184return opendir ();
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189for ac_lib in '' dir; do
8190 if test -z "$ac_lib"; then
8191 ac_res="none required"
8192 else
8193 ac_res=-l$ac_lib
8194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8195 fi
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197if { (ac_try="$ac_link"
8198case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_link") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_search_opendir=$ac_res
8231else
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236fi
8237
8238rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext
8240 if test "${ac_cv_search_opendir+set}" = set; then
8241 break
8242fi
8243done
8244if test "${ac_cv_search_opendir+set}" = set; then
8245 :
8246else
8247 ac_cv_search_opendir=no
8248fi
8249rm conftest.$ac_ext
8250LIBS=$ac_func_search_save_LIBS
8251fi
8252{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254ac_res=$ac_cv_search_opendir
8255if test "$ac_res" != no; then
8256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8257
8258fi
8259
8260else
8261 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263if test "${ac_cv_search_opendir+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 ac_func_search_save_LIBS=$LIBS
8267cat >conftest.$ac_ext <<_ACEOF
8268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h. */
8273
8274/* Override any GCC internal prototype to avoid an error.
8275 Use char because int might match the return type of a GCC
8276 builtin and then its argument prototype would still apply. */
8277#ifdef __cplusplus
8278extern "C"
8279#endif
8280char opendir ();
8281int
8282main ()
8283{
8284return opendir ();
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289for ac_lib in '' x; do
8290 if test -z "$ac_lib"; then
8291 ac_res="none required"
8292 else
8293 ac_res=-l$ac_lib
8294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297if { (ac_try="$ac_link"
8298case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_link") 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_try") 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_search_opendir=$ac_res
8331else
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336fi
8337
8338rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext
8340 if test "${ac_cv_search_opendir+set}" = set; then
8341 break
8342fi
8343done
8344if test "${ac_cv_search_opendir+set}" = set; then
8345 :
8346else
8347 ac_cv_search_opendir=no
8348fi
8349rm conftest.$ac_ext
8350LIBS=$ac_func_search_save_LIBS
8351fi
8352{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354ac_res=$ac_cv_search_opendir
8355if test "$ac_res" != no; then
8356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357
8358fi
8359
8360fi
8361
8362
8363for ac_header in dlfcn.h
8364do
8365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371fi
8372ac_res=`eval echo '${'$as_ac_Header'}'`
8373 { echo "$as_me:$LINENO: result: $ac_res" >&5
8374echo "${ECHO_T}$ac_res" >&6; }
8375else
8376 # Is the header compilable?
8377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385$ac_includes_default
8386#include <$ac_header>
8387_ACEOF
8388rm -f conftest.$ac_objext
8389if { (ac_try="$ac_compile"
8390case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_header_compiler=yes
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_header_compiler=no
8428fi
8429
8430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432echo "${ECHO_T}$ac_header_compiler" >&6; }
8433
8434# Is the header present?
8435{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
8443#include <$ac_header>
8444_ACEOF
8445if { (ac_try="$ac_cpp conftest.$ac_ext"
8446case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } >/dev/null; then
8458 if test -s conftest.err; then
8459 ac_cpp_err=$ac_c_preproc_warn_flag
8460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8461 else
8462 ac_cpp_err=
8463 fi
8464else
8465 ac_cpp_err=yes
8466fi
8467if test -z "$ac_cpp_err"; then
8468 ac_header_preproc=yes
8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_header_preproc=no
8474fi
8475
8476rm -f conftest.err conftest.$ac_ext
8477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478echo "${ECHO_T}$ac_header_preproc" >&6; }
8479
8480# So? What about this header?
8481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8482 yes:no: )
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487 ac_header_preproc=yes
8488 ;;
8489 no:yes:* )
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8502 ( cat <<\_ASBOX
8503## ------------------------------ ##
8504## Report this to bugs@yourdomain ##
8505## ------------------------------ ##
8506_ASBOX
8507 ) | sed "s/^/$as_me: WARNING: /" >&2
8508 ;;
8509esac
8510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515 eval "$as_ac_Header=\$ac_header_preproc"
8516fi
8517ac_res=`eval echo '${'$as_ac_Header'}'`
8518 { echo "$as_me:$LINENO: result: $ac_res" >&5
8519echo "${ECHO_T}$ac_res" >&6; }
8520
8521fi
8522if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523 cat >>confdefs.h <<_ACEOF
8524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525_ACEOF
8526
8527fi
8528
8529done
8530
8531# Check whether --enable-ltdl-install was given.
8532if test "${enable_ltdl_install+set}" = set; then
8533 enableval=$enable_ltdl_install;
8534fi
8535
8536
8537
8538
8539if test x"${enable_ltdl_install-no}" != xno; then
8540 INSTALL_LTDL_TRUE=
8541 INSTALL_LTDL_FALSE='#'
8542else
8543 INSTALL_LTDL_TRUE='#'
8544 INSTALL_LTDL_FALSE=
8545fi
8546
8547
8548
8549if test x"${enable_ltdl_convenience-no}" != xno; then
8550 CONVENIENCE_LTDL_TRUE=
8551 CONVENIENCE_LTDL_FALSE='#'
8552else
8553 CONVENIENCE_LTDL_TRUE='#'
8554 CONVENIENCE_LTDL_FALSE=
8555fi
8556
8557
8558{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8560library_names_spec=
8561libname_spec='lib$name'
8562soname_spec=
8563shrext_cmds=".so"
8564postinstall_cmds=
8565postuninstall_cmds=
8566finish_cmds=
8567finish_eval=
8568shlibpath_var=
8569shlibpath_overrides_runpath=unknown
8570version_type=none
8571dynamic_linker="$host_os ld.so"
8572sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573if test "$GCC" = yes; then
8574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576 # if the path contains ";" then we assume it to be the separator
8577 # otherwise default to the standard path separator (i.e. ":") - it is
8578 # assumed that no part of a normal pathname contains ";" but that should
8579 # okay in the real world where ";" in dirpaths is itself problematic.
8580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8581 else
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8583 fi
8584else
8585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8586fi
8587need_lib_prefix=unknown
8588hardcode_into_libs=no
8589
8590# when you set need_version to no, make sure it does not cause -set_version
8591# flags to be left without arguments
8592need_version=unknown
8593
8594case $host_os in
8595aix3*)
8596 version_type=linux
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598 shlibpath_var=LIBPATH
8599
8600 # AIX 3 has no versioning support, so we append a major version to the name.
8601 soname_spec='${libname}${release}${shared_ext}$major'
8602 ;;
8603
8604aix4* | aix5*)
8605 version_type=linux
8606 need_lib_prefix=no
8607 need_version=no
8608 hardcode_into_libs=yes
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 supports IA64
8611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 else
8614 # With GCC up to 2.95.x, collect2 would create an import file
8615 # for dependence libraries. The import file would start with
8616 # the line `#! .'. This would cause the generated library to
8617 # depend on `.', always an invalid library. This was fixed in
8618 # development snapshots of GCC prior to 3.0.
8619 case $host_os in
8620 aix4 | aix4.[01] | aix4.[01].*)
8621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622 echo ' yes '
8623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8624 :
8625 else
8626 can_build_shared=no
8627 fi
8628 ;;
8629 esac
8630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631 # soname into executable. Probably we can add versioning support to
8632 # collect2, so additional links can be useful in future.
8633 if test "$aix_use_runtimelinking" = yes; then
8634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635 # instead of lib<name>.a to let people know that these are not
8636 # typical AIX shared libraries.
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638 else
8639 # We preserve .a as extension for shared libraries through AIX4.2
8640 # and later when we are not doing run time linking.
8641 library_names_spec='${libname}${release}.a $libname.a'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8643 fi
8644 shlibpath_var=LIBPATH
8645 fi
8646 ;;
8647
8648amigaos*)
8649 library_names_spec='$libname.ixlibrary $libname.a'
8650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651 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'
8652 ;;
8653
8654beos*)
8655 library_names_spec='${libname}${shared_ext}'
8656 dynamic_linker="$host_os ld.so"
8657 shlibpath_var=LIBRARY_PATH
8658 ;;
8659
8660bsdi[45]*)
8661 version_type=linux
8662 need_version=no
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669 # the default ld.so.conf also contains /usr/contrib/lib and
8670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671 # libtool to hard-code these into programs
8672 ;;
8673
8674cygwin* | mingw* | pw32*)
8675 version_type=windows
8676 shrext_cmds=".dll"
8677 need_version=no
8678 need_lib_prefix=no
8679
8680 case $GCC,$host_os in
8681 yes,cygwin* | yes,mingw* | yes,pw32*)
8682 library_names_spec='$libname.dll.a'
8683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684 postinstall_cmds='base_file=`basename \${file}`~
8685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686 dldir=$destdir/`dirname \$dlpath`~
8687 test -d \$dldir || mkdir -p \$dldir~
8688 $install_prog $dir/$dlname \$dldir/$dlname~
8689 chmod a+x \$dldir/$dlname'
8690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691 dlpath=$dir/\$dldll~
8692 $rm \$dlpath'
8693 shlibpath_overrides_runpath=yes
8694
8695 case $host_os in
8696 cygwin*)
8697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8700 ;;
8701 mingw*)
8702 # MinGW DLLs use traditional 'lib' prefix
8703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706 # It is most probably a Windows format PATH printed by
8707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708 # path with ; separators, and with drive letters. We can handle the
8709 # drive letters (cygwin fileutils understands them), so leave them,
8710 # especially as we might pass files found there to a mingw objdump,
8711 # which wouldn't understand a cygwinified path. Ahh.
8712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8713 else
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8715 fi
8716 ;;
8717 pw32*)
8718 # pw32 DLLs use 'pw' prefix rather than 'lib'
8719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720 ;;
8721 esac
8722 ;;
8723
8724 *)
8725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8726 ;;
8727 esac
8728 dynamic_linker='Win32 ld.exe'
8729 # FIXME: first we should search . and the directory the executable is in
8730 shlibpath_var=PATH
8731 ;;
8732
8733darwin* | rhapsody*)
8734 dynamic_linker="$host_os dyld"
8735 version_type=darwin
8736 need_lib_prefix=no
8737 need_version=no
8738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739 soname_spec='${libname}${release}${major}$shared_ext'
8740 shlibpath_overrides_runpath=yes
8741 shlibpath_var=DYLD_LIBRARY_PATH
8742 shrext_cmds='.dylib'
8743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744 if test "$GCC" = yes; then
8745 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"`
8746 else
8747 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8748 fi
8749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8750 ;;
8751
8752dgux*)
8753 version_type=linux
8754 need_lib_prefix=no
8755 need_version=no
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 ;;
8760
Rafael Espindola48381e52012-01-31 17:18:47 +00008761freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008762 dynamic_linker=no
8763 ;;
8764
8765kfreebsd*-gnu)
8766 version_type=linux
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=no
8773 hardcode_into_libs=yes
8774 dynamic_linker='GNU ld.so'
8775 ;;
8776
8777freebsd* | dragonfly*)
8778 # DragonFly does not have aout. When/if they implement a new
8779 # versioning mechanism, adjust this.
8780 if test -x /usr/bin/objformat; then
8781 objformat=`/usr/bin/objformat`
8782 else
8783 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008784 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008785 *) objformat=elf ;;
8786 esac
8787 fi
8788 version_type=freebsd-$objformat
8789 case $version_type in
8790 freebsd-elf*)
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792 need_version=no
8793 need_lib_prefix=no
8794 ;;
8795 freebsd-*)
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8797 need_version=yes
8798 ;;
8799 esac
8800 shlibpath_var=LD_LIBRARY_PATH
8801 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008802 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008803 shlibpath_overrides_runpath=yes
8804 ;;
8805 freebsd3.[01]* | freebsdelf3.[01]*)
8806 shlibpath_overrides_runpath=yes
8807 hardcode_into_libs=yes
8808 ;;
8809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811 shlibpath_overrides_runpath=no
8812 hardcode_into_libs=yes
8813 ;;
8814 freebsd*) # from 4.6 on
8815 shlibpath_overrides_runpath=yes
8816 hardcode_into_libs=yes
8817 ;;
8818 esac
8819 ;;
8820
8821gnu*)
8822 version_type=linux
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 hardcode_into_libs=yes
8829 ;;
8830
8831hpux9* | hpux10* | hpux11*)
8832 # Give a soname corresponding to the major version so that dld.sl refuses to
8833 # link against other versions.
8834 version_type=sunos
8835 need_lib_prefix=no
8836 need_version=no
8837 case $host_cpu in
8838 ia64*)
8839 shrext_cmds='.so'
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.so"
8842 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 if test "X$HPUX_IA64_MODE" = X32; then
8847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848 else
8849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850 fi
8851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852 ;;
8853 hppa*64*)
8854 shrext_cmds='.sl'
8855 hardcode_into_libs=yes
8856 dynamic_linker="$host_os dld.sl"
8857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863 ;;
8864 *)
8865 shrext_cmds='.sl'
8866 dynamic_linker="$host_os dld.sl"
8867 shlibpath_var=SHLIB_PATH
8868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 ;;
8872 esac
8873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874 postinstall_cmds='chmod 555 $lib'
8875 ;;
8876
8877interix3*)
8878 version_type=linux
8879 need_lib_prefix=no
8880 need_version=no
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=no
8886 hardcode_into_libs=yes
8887 ;;
8888
8889irix5* | irix6* | nonstopux*)
8890 case $host_os in
8891 nonstopux*) version_type=nonstopux ;;
8892 *)
8893 if test "$lt_cv_prog_gnu_ld" = yes; then
8894 version_type=linux
8895 else
8896 version_type=irix
8897 fi ;;
8898 esac
8899 need_lib_prefix=no
8900 need_version=no
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903 case $host_os in
8904 irix5* | nonstopux*)
8905 libsuff= shlibsuff=
8906 ;;
8907 *)
8908 case $LD in # libtool.m4 will add one of these switches to LD
8909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910 libsuff= shlibsuff= libmagic=32-bit;;
8911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912 libsuff=32 shlibsuff=N32 libmagic=N32;;
8913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915 *) libsuff= shlibsuff= libmagic=never-match;;
8916 esac
8917 ;;
8918 esac
8919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920 shlibpath_overrides_runpath=no
8921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923 hardcode_into_libs=yes
8924 ;;
8925
8926# No shared lib support for Linux oldld, aout, or coff.
8927linux*oldld* | linux*aout* | linux*coff*)
8928 dynamic_linker=no
8929 ;;
8930
8931# This must be Linux ELF.
8932linux*)
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=no
8941 # This implies no fast_install, which is unacceptable.
8942 # Some rework will be needed to allow for fast_install
8943 # before this can be enabled.
8944 hardcode_into_libs=yes
8945
8946 # Append ld.so.conf contents to the search path
8947 if test -f /etc/ld.so.conf; then
8948 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' ' '`
8949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8950 fi
8951
8952 # We used to test for /lib/ld.so.1 and disable shared libraries on
8953 # powerpc, because MkLinux only supported shared libraries with the
8954 # GNU dynamic linker. Since this was broken with cross compilers,
8955 # most powerpc-linux boxes support dynamic linking these days and
8956 # people can always --disable-shared, the test was removed, and we
8957 # assume the GNU/Linux dynamic linker is in use.
8958 dynamic_linker='GNU/Linux ld.so'
8959 ;;
8960
8961knetbsd*-gnu)
8962 version_type=linux
8963 need_lib_prefix=no
8964 need_version=no
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 dynamic_linker='GNU ld.so'
8971 ;;
8972
8973netbsd*)
8974 version_type=sunos
8975 need_lib_prefix=no
8976 need_version=no
8977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980 dynamic_linker='NetBSD (a.out) ld.so'
8981 else
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 dynamic_linker='NetBSD ld.elf_so'
8985 fi
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8989 ;;
8990
8991newsos6)
8992 version_type=linux
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
8996 ;;
8997
8998nto-qnx*)
8999 version_type=linux
9000 need_lib_prefix=no
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9006 ;;
9007
9008openbsd*)
9009 version_type=sunos
9010 sys_lib_dlsearch_path_spec="/usr/lib"
9011 need_lib_prefix=no
9012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9013 case $host_os in
9014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015 *) need_version=no ;;
9016 esac
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021 case $host_os in
9022 openbsd2.[89] | openbsd2.[89].*)
9023 shlibpath_overrides_runpath=no
9024 ;;
9025 *)
9026 shlibpath_overrides_runpath=yes
9027 ;;
9028 esac
9029 else
9030 shlibpath_overrides_runpath=yes
9031 fi
9032 ;;
9033
9034os2*)
9035 libname_spec='$name'
9036 shrext_cmds=".dll"
9037 need_lib_prefix=no
9038 library_names_spec='$libname${shared_ext} $libname.a'
9039 dynamic_linker='OS/2 ld.exe'
9040 shlibpath_var=LIBPATH
9041 ;;
9042
9043osf3* | osf4* | osf5*)
9044 version_type=osf
9045 need_lib_prefix=no
9046 need_version=no
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9052 ;;
9053
9054solaris*)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 # ldd complains unless libraries are executable
9064 postinstall_cmds='chmod +x $lib'
9065 ;;
9066
9067sunos4*)
9068 version_type=sunos
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 if test "$with_gnu_ld" = yes; then
9074 need_lib_prefix=no
9075 fi
9076 need_version=yes
9077 ;;
9078
9079sysv4 | sysv4.3*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 case $host_vendor in
9085 sni)
9086 shlibpath_overrides_runpath=no
9087 need_lib_prefix=no
9088 export_dynamic_flag_spec='${wl}-Blargedynsym'
9089 runpath_var=LD_RUN_PATH
9090 ;;
9091 siemens)
9092 need_lib_prefix=no
9093 ;;
9094 motorola)
9095 need_lib_prefix=no
9096 need_version=no
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9099 ;;
9100 esac
9101 ;;
9102
9103sysv4*MP*)
9104 if test -d /usr/nec ;then
9105 version_type=linux
9106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107 soname_spec='$libname${shared_ext}.$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 fi
9110 ;;
9111
9112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113 version_type=freebsd-elf
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9120 if test "$with_gnu_ld" = yes; then
9121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122 shlibpath_overrides_runpath=no
9123 else
9124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125 shlibpath_overrides_runpath=yes
9126 case $host_os in
9127 sco3.2v5*)
9128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9129 ;;
9130 esac
9131 fi
9132 sys_lib_dlsearch_path_spec='/usr/lib'
9133 ;;
9134
9135uts4*)
9136 version_type=linux
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 ;;
9141
9142*)
9143 dynamic_linker=no
9144 ;;
9145esac
9146{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147echo "${ECHO_T}$dynamic_linker" >&6; }
9148test "$dynamic_linker" = no && can_build_shared=no
9149
9150variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151if test "$GCC" = yes; then
9152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9153fi
9154
9155
9156{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158if test "${libltdl_cv_shlibext+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161
9162module=yes
9163eval libltdl_cv_shlibext=$shrext_cmds
9164
9165fi
9166{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168if test -n "$libltdl_cv_shlibext"; then
9169
9170cat >>confdefs.h <<_ACEOF
9171#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9172_ACEOF
9173
9174fi
9175
9176
9177{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182 libltdl_cv_shlibpath_var="$shlibpath_var"
9183fi
9184{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186if test -n "$libltdl_cv_shlibpath_var"; then
9187
9188cat >>confdefs.h <<_ACEOF
9189#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9190_ACEOF
9191
9192fi
9193
9194
9195{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9196echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197if test "${libltdl_cv_sys_search_path+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9201fi
9202{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204if test -n "$libltdl_cv_sys_search_path"; then
9205 sys_search_path=
9206 for dir in $libltdl_cv_sys_search_path; do
9207 if test -z "$sys_search_path"; then
9208 sys_search_path="$dir"
9209 else
9210 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9211 fi
9212 done
9213
9214cat >>confdefs.h <<_ACEOF
9215#define LTDL_SYSSEARCHPATH "$sys_search_path"
9216_ACEOF
9217
9218fi
9219
9220{ echo "$as_me:$LINENO: checking for objdir" >&5
9221echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222if test "${libltdl_cv_objdir+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 libltdl_cv_objdir="$objdir"
9226 if test -n "$objdir"; then
9227 :
9228 else
9229 rm -f .libs 2>/dev/null
9230 mkdir .libs 2>/dev/null
9231 if test -d .libs; then
9232 libltdl_cv_objdir=.libs
9233 else
9234 # MS-DOS does not allow filenames that begin with a dot.
9235 libltdl_cv_objdir=_libs
9236 fi
9237 rmdir .libs 2>/dev/null
9238 fi
9239
9240fi
9241{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9243
9244cat >>confdefs.h <<_ACEOF
9245#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9246_ACEOF
9247
9248
9249
9250
9251
9252
9253# Check for command to grab the raw symbol name followed by C symbol from nm.
9254{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259
9260# These are sane defaults that work on at least a few old systems.
9261# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9262
9263# Character class describing NM global symbol codes.
9264symcode='[BCDEGRST]'
9265
9266# Regexp to match symbols that can be accessed directly from C.
9267sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9268
9269# Transform an extracted symbol line into a proper C declaration
9270lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9271
9272# Transform an extracted symbol line into symbol name and symbol address
9273lt_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'"
9274
9275# Define system-specific variables.
9276case $host_os in
9277aix*)
9278 symcode='[BCDT]'
9279 ;;
9280cygwin* | mingw* | pw32*)
9281 symcode='[ABCDGISTW]'
9282 ;;
9283hpux*) # Its linker distinguishes data from code symbols
9284 if test "$host_cpu" = ia64; then
9285 symcode='[ABCDEGRST]'
9286 fi
9287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288 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'"
9289 ;;
9290linux*)
9291 if test "$host_cpu" = ia64; then
9292 symcode='[ABCDGIRSTW]'
9293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294 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'"
9295 fi
9296 ;;
9297irix* | nonstopux*)
9298 symcode='[BCDEGRST]'
9299 ;;
9300osf*)
9301 symcode='[BCDEGQRST]'
9302 ;;
9303solaris*)
9304 symcode='[BDRT]'
9305 ;;
9306sco3.2v5*)
9307 symcode='[DT]'
9308 ;;
9309sysv4.2uw2*)
9310 symcode='[DT]'
9311 ;;
9312sysv5* | sco5v6* | unixware* | OpenUNIX*)
9313 symcode='[ABDT]'
9314 ;;
9315sysv4)
9316 symcode='[DFNSTU]'
9317 ;;
9318esac
9319
9320# Handle CRLF in mingw tool chain
9321opt_cr=
9322case $build_os in
9323mingw*)
9324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9325 ;;
9326esac
9327
9328# If we're using GNU nm, then use its standard symbol codes.
9329case `$NM -V 2>&1` in
9330*GNU* | *'with BFD'*)
9331 symcode='[ABCDGIRSTW]' ;;
9332esac
9333
9334# Try without a prefix undercore, then with it.
9335for ac_symprfx in "" "_"; do
9336
9337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338 symxfrm="\\1 $ac_symprfx\\2 \\2"
9339
9340 # Write the raw and C identifiers.
9341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9342
9343 # Check to see that the pipe works correctly.
9344 pipe_works=no
9345
9346 rm -f conftest*
9347 cat > conftest.$ac_ext <<EOF
9348#ifdef __cplusplus
9349extern "C" {
9350#endif
9351char nm_test_var;
9352void nm_test_func(){}
9353#ifdef __cplusplus
9354}
9355#endif
9356int main(){nm_test_var='a';nm_test_func();return(0);}
9357EOF
9358
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; then
9364 # Now try to grab the symbols.
9365 nlist=conftest.nm
9366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && test -s "$nlist"; then
9371 # Try sorting and uniquifying the output.
9372 if sort "$nlist" | uniq > "$nlist"T; then
9373 mv -f "$nlist"T "$nlist"
9374 else
9375 rm -f "$nlist"T
9376 fi
9377
9378 # Make sure that we snagged all the symbols we need.
9379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381 cat <<EOF > conftest.$ac_ext
9382#ifdef __cplusplus
9383extern "C" {
9384#endif
9385
9386EOF
9387 # Now generate the symbol file.
9388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9389
9390 cat <<EOF >> conftest.$ac_ext
9391#if defined (__STDC__) && __STDC__
9392# define lt_ptr_t void *
9393#else
9394# define lt_ptr_t char *
9395# define const
9396#endif
9397
9398/* The mapping between symbol names and symbols. */
9399const struct {
9400 const char *name;
9401 lt_ptr_t address;
9402}
9403lt_preloaded_symbols[] =
9404{
9405EOF
9406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407 cat <<\EOF >> conftest.$ac_ext
9408 {0, (lt_ptr_t) 0}
9409};
9410
9411#ifdef __cplusplus
9412}
9413#endif
9414EOF
9415 # Now try linking the two files.
9416 mv conftest.$ac_objext conftstm.$ac_objext
9417 lt_save_LIBS="$LIBS"
9418 lt_save_CFLAGS="$CFLAGS"
9419 LIBS="conftstm.$ac_objext"
9420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9426 pipe_works=yes
9427 fi
9428 LIBS="$lt_save_LIBS"
9429 CFLAGS="$lt_save_CFLAGS"
9430 else
9431 echo "cannot find nm_test_func in $nlist" >&5
9432 fi
9433 else
9434 echo "cannot find nm_test_var in $nlist" >&5
9435 fi
9436 else
9437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9438 fi
9439 else
9440 echo "$progname: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 fi
9443 rm -f conftest* conftst*
9444
9445 # Do not use the global_symbol_pipe unless it works.
9446 if test "$pipe_works" = yes; then
9447 break
9448 else
9449 lt_cv_sys_global_symbol_pipe=
9450 fi
9451done
9452
9453fi
9454
9455if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456 lt_cv_sys_global_symbol_to_cdecl=
9457fi
9458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459 { echo "$as_me:$LINENO: result: failed" >&5
9460echo "${ECHO_T}failed" >&6; }
9461else
9462 { echo "$as_me:$LINENO: result: ok" >&5
9463echo "${ECHO_T}ok" >&6; }
9464fi
9465
9466
9467{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473 libltdl_cv_preloaded_symbols=yes
9474 else
9475 libltdl_cv_preloaded_symbols=no
9476 fi
9477
9478fi
9479{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9482
9483cat >>confdefs.h <<\_ACEOF
9484#define HAVE_PRELOADED_SYMBOLS 1
9485_ACEOF
9486
9487fi
9488
9489LIBADD_DL=
9490
9491ac_ext=c
9492ac_cpp='$CPP $CPPFLAGS'
9493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495ac_compiler_gnu=$ac_cv_c_compiler_gnu
9496
9497
9498{ echo "$as_me:$LINENO: checking for shl_load" >&5
9499echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500if test "${ac_cv_func_shl_load+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503 cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h. */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h. */
9509/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511#define shl_load innocuous_shl_load
9512
9513/* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char shl_load (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9517
9518#ifdef __STDC__
9519# include <limits.h>
9520#else
9521# include <assert.h>
9522#endif
9523
9524#undef shl_load
9525
9526/* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529#ifdef __cplusplus
9530extern "C"
9531#endif
9532char shl_load ();
9533/* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536#if defined __stub_shl_load || defined __stub___shl_load
9537choke me
9538#endif
9539
9540int
9541main ()
9542{
9543return shl_load ();
9544 ;
9545 return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext conftest$ac_exeext
9549if { (ac_try="$ac_link"
9550case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_link") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563 { (case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_try") 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_func_shl_load=yes
9583else
9584 echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ac_cv_func_shl_load=no
9588fi
9589
9590rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592fi
9593{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595if test $ac_cv_func_shl_load = yes; then
9596
9597cat >>confdefs.h <<\_ACEOF
9598#define HAVE_SHL_LOAD 1
9599_ACEOF
9600
9601else
9602 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607 ac_check_lib_save_LIBS=$LIBS
9608LIBS="-ldld $LIBS"
9609cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615
9616/* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619#ifdef __cplusplus
9620extern "C"
9621#endif
9622char shl_load ();
9623int
9624main ()
9625{
9626return shl_load ();
9627 ;
9628 return 0;
9629}
9630_ACEOF
9631rm -f conftest.$ac_objext conftest$ac_exeext
9632if { (ac_try="$ac_link"
9633case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_lib_dld_shl_load=yes
9666else
9667 echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_lib_dld_shl_load=no
9671fi
9672
9673rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675LIBS=$ac_check_lib_save_LIBS
9676fi
9677{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679if test $ac_cv_lib_dld_shl_load = yes; then
9680
9681cat >>confdefs.h <<\_ACEOF
9682#define HAVE_SHL_LOAD 1
9683_ACEOF
9684
9685 LIBADD_DL="$LIBADD_DL -ldld"
9686else
9687 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-ldl $LIBS"
9694cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
9700
9701/* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9704#ifdef __cplusplus
9705extern "C"
9706#endif
9707char dlopen ();
9708int
9709main ()
9710{
9711return dlopen ();
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (ac_try="$ac_link"
9718case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731 { (case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_try") 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest$ac_exeext'
9741 { (case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744esac
9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_try") 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_dl_dlopen=yes
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_cv_lib_dl_dlopen=no
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760LIBS=$ac_check_lib_save_LIBS
9761fi
9762{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764if test $ac_cv_lib_dl_dlopen = yes; then
9765
9766cat >>confdefs.h <<\_ACEOF
9767#define HAVE_LIBDL 1
9768_ACEOF
9769
9770 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9771else
9772 cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
9778#if HAVE_DLFCN_H
9779# include <dlfcn.h>
9780#endif
9781
9782int
9783main ()
9784{
9785dlopen(0, 0);
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (ac_try="$ac_link"
9792case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818esac
9819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_try") 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824
9825cat >>confdefs.h <<\_ACEOF
9826#define HAVE_LIBDL 1
9827_ACEOF
9828 libltdl_cv_func_dlopen="yes"
9829else
9830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838 ac_check_lib_save_LIBS=$LIBS
9839LIBS="-lsvld $LIBS"
9840cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h. */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h. */
9846
9847/* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9850#ifdef __cplusplus
9851extern "C"
9852#endif
9853char dlopen ();
9854int
9855main ()
9856{
9857return dlopen ();
9858 ;
9859 return 0;
9860}
9861_ACEOF
9862rm -f conftest.$ac_objext conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_lib_svld_dlopen=yes
9897else
9898 echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901 ac_cv_lib_svld_dlopen=no
9902fi
9903
9904rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910if test $ac_cv_lib_svld_dlopen = yes; then
9911
9912cat >>confdefs.h <<\_ACEOF
9913#define HAVE_LIBDL 1
9914_ACEOF
9915
9916 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9917else
9918 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 ac_check_lib_save_LIBS=$LIBS
9924LIBS="-ldld $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931
9932/* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935#ifdef __cplusplus
9936extern "C"
9937#endif
9938char dld_link ();
9939int
9940main ()
9941{
9942return dld_link ();
9943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (ac_try="$ac_link"
9949case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_dld_dld_link=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_cv_lib_dld_dld_link=no
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
9993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995if test $ac_cv_lib_dld_dld_link = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_DLD 1
9999_ACEOF
10000
10001 LIBADD_DL="$LIBADD_DL -ldld"
10002else
10003 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h. */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h. */
10014/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10016#define _dyld_func_lookup innocuous__dyld_func_lookup
10017
10018/* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char _dyld_func_lookup (); below.
10020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021 <limits.h> exists even on freestanding compilers. */
10022
10023#ifdef __STDC__
10024# include <limits.h>
10025#else
10026# include <assert.h>
10027#endif
10028
10029#undef _dyld_func_lookup
10030
10031/* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10034#ifdef __cplusplus
10035extern "C"
10036#endif
10037char _dyld_func_lookup ();
10038/* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10042choke me
10043#endif
10044
10045int
10046main ()
10047{
10048return _dyld_func_lookup ();
10049 ;
10050 return 0;
10051}
10052_ACEOF
10053rm -f conftest.$ac_objext conftest$ac_exeext
10054if { (ac_try="$ac_link"
10055case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081esac
10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_func__dyld_func_lookup=yes
10088else
10089 echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_func__dyld_func_lookup=no
10093fi
10094
10095rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097fi
10098{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100if test $ac_cv_func__dyld_func_lookup = yes; then
10101
10102cat >>confdefs.h <<\_ACEOF
10103#define HAVE_DYLD 1
10104_ACEOF
10105
10106fi
10107
10108
10109fi
10110
10111
10112fi
10113
10114
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119
10120fi
10121
10122
10123fi
10124
10125
10126fi
10127
10128
10129if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10130then
10131 lt_save_LIBS="$LIBS"
10132 LIBS="$LIBS $LIBADD_DL"
10133
10134for ac_func in dlerror
10135do
10136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142 cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h. */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h. */
10148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10150#define $ac_func innocuous_$ac_func
10151
10152/* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func (); below.
10154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155 <limits.h> exists even on freestanding compilers. */
10156
10157#ifdef __STDC__
10158# include <limits.h>
10159#else
10160# include <assert.h>
10161#endif
10162
10163#undef $ac_func
10164
10165/* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char $ac_func ();
10172/* The GNU C library defines this for functions which it implements
10173 to always fail with ENOSYS. Some functions are actually named
10174 something starting with __ and the normal name is an alias. */
10175#if defined __stub_$ac_func || defined __stub___$ac_func
10176choke me
10177#endif
10178
10179int
10180main ()
10181{
10182return $ac_func ();
10183 ;
10184 return 0;
10185}
10186_ACEOF
10187rm -f conftest.$ac_objext conftest$ac_exeext
10188if { (ac_try="$ac_link"
10189case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215esac
10216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 eval "$as_ac_var=yes"
10222else
10223 echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 eval "$as_ac_var=no"
10227fi
10228
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231fi
10232ac_res=`eval echo '${'$as_ac_var'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234echo "${ECHO_T}$ac_res" >&6; }
10235if test `eval echo '${'$as_ac_var'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238_ACEOF
10239
10240fi
10241done
10242
10243 LIBS="$lt_save_LIBS"
10244fi
10245ac_ext=c
10246ac_cpp='$CPP $CPPFLAGS'
10247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252
10253{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258 ac_cv_sys_symbol_underscore=no
10259 cat > conftest.$ac_ext <<EOF
10260void nm_test_func(){}
10261int main(){nm_test_func;return 0;}
10262EOF
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264 (eval $ac_compile) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; then
10268 # Now try to grab the symbols.
10269 ac_nlist=conftest.nm
10270 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && test -s "$ac_nlist"; then
10275 # See whether the symbols have a leading underscore.
10276 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277 ac_cv_sys_symbol_underscore=yes
10278 else
10279 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10280 :
10281 else
10282 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10283 fi
10284 fi
10285 else
10286 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10287 fi
10288 else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.c >&5
10291 fi
10292 rm -rf conftest*
10293
10294fi
10295{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10297
10298
10299if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300 if test x"$libltdl_cv_func_dlopen" = xyes ||
10301 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304if test "${libltdl_cv_need_uscore+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 libltdl_cv_need_uscore=unknown
10308 save_LIBS="$LIBS"
10309 LIBS="$LIBS $LIBADD_DL"
10310 if test "$cross_compiling" = yes; then :
10311 libltdl_cv_need_uscore=cross
10312else
10313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314 lt_status=$lt_dlunknown
10315 cat > conftest.$ac_ext <<EOF
Justin Holewinski49683f32012-05-04 20:18:50 +000010316#line 10316 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010317#include "confdefs.h"
10318
10319#if HAVE_DLFCN_H
10320#include <dlfcn.h>
10321#endif
10322
10323#include <stdio.h>
10324
10325#ifdef RTLD_GLOBAL
10326# define LT_DLGLOBAL RTLD_GLOBAL
10327#else
10328# ifdef DL_GLOBAL
10329# define LT_DLGLOBAL DL_GLOBAL
10330# else
10331# define LT_DLGLOBAL 0
10332# endif
10333#endif
10334
10335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336 find out it does not work in some platform. */
10337#ifndef LT_DLLAZY_OR_NOW
10338# ifdef RTLD_LAZY
10339# define LT_DLLAZY_OR_NOW RTLD_LAZY
10340# else
10341# ifdef DL_LAZY
10342# define LT_DLLAZY_OR_NOW DL_LAZY
10343# else
10344# ifdef RTLD_NOW
10345# define LT_DLLAZY_OR_NOW RTLD_NOW
10346# else
10347# ifdef DL_NOW
10348# define LT_DLLAZY_OR_NOW DL_NOW
10349# else
10350# define LT_DLLAZY_OR_NOW 0
10351# endif
10352# endif
10353# endif
10354# endif
10355#endif
10356
10357#ifdef __cplusplus
10358extern "C" void exit (int);
10359#endif
10360
10361void fnord() { int i=42;}
10362int main ()
10363{
10364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365 int status = $lt_dlunknown;
10366
10367 if (self)
10368 {
10369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371 /* dlclose (self); */
10372 }
10373 else
10374 puts (dlerror ());
10375
10376 exit (status);
10377}
10378EOF
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384 (./conftest; exit; ) >&5 2>/dev/null
10385 lt_status=$?
10386 case x$lt_status in
10387 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389 x$lt_dlunknown|x*) ;;
10390 esac
10391 else :
10392 # compilation failed
10393
10394 fi
10395fi
10396rm -fr conftest*
10397
10398 LIBS="$save_LIBS"
10399
10400fi
10401{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10403 fi
10404fi
10405
10406if test x"$libltdl_cv_need_uscore" = xyes; then
10407
10408cat >>confdefs.h <<\_ACEOF
10409#define NEED_USCORE 1
10410_ACEOF
10411
10412fi
10413
10414
10415{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 # PORTME does your system automatically load deplibs for dlopen?
10421 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422 # For now, we just catch OSes we know something about -- in the
10423 # future, we'll try test this programmatically.
10424 libltdl_cv_sys_dlopen_deplibs=unknown
10425 case "$host_os" in
10426 aix3*|aix4.1.*|aix4.2.*)
10427 # Unknown whether this is true for these versions of AIX, but
10428 # we want this `case' here to explicitly catch those versions.
10429 libltdl_cv_sys_dlopen_deplibs=unknown
10430 ;;
10431 aix[45]*)
10432 libltdl_cv_sys_dlopen_deplibs=yes
10433 ;;
10434 darwin*)
10435 # Assuming the user has installed a libdl from somewhere, this is true
10436 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437 libltdl_cv_sys_dlopen_deplibs=yes
10438 ;;
10439 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440 # GNU and its variants, using gnu ld.so (Glibc)
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 hpux10*|hpux11*)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 interix*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
10449 irix[12345]*|irix6.[01]*)
10450 # Catch all versions of IRIX before 6.2, and indicate that we don't
10451 # know how it worked for any of those versions.
10452 libltdl_cv_sys_dlopen_deplibs=unknown
10453 ;;
10454 irix*)
10455 # The case above catches anything before 6.2, and it's known that
10456 # at 6.2 and later dlopen does load deplibs.
10457 libltdl_cv_sys_dlopen_deplibs=yes
10458 ;;
10459 netbsd*)
10460 libltdl_cv_sys_dlopen_deplibs=yes
10461 ;;
10462 openbsd*)
10463 libltdl_cv_sys_dlopen_deplibs=yes
10464 ;;
10465 osf[1234]*)
10466 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467 # it did *not* use an RPATH in a shared library to find objects the
10468 # library depends on, so we explicitly say `no'.
10469 libltdl_cv_sys_dlopen_deplibs=no
10470 ;;
10471 osf5.0|osf5.0a|osf5.1)
10472 # dlopen *does* load deplibs and with the right loader patch applied
10473 # it even uses RPATH in a shared library to search for shared objects
10474 # that the library depends on, but there's no easy way to know if that
10475 # patch is installed. Since this is the case, all we can really
10476 # say is unknown -- it depends on the patch being installed. If
10477 # it is, this changes to `yes'. Without it, it would be `no'.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10479 ;;
10480 osf*)
10481 # the two cases above should catch all versions of osf <= 5.1. Read
10482 # the comments above for what we know about them.
10483 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484 # is used to find them so we can finally say `yes'.
10485 libltdl_cv_sys_dlopen_deplibs=yes
10486 ;;
10487 solaris*)
10488 libltdl_cv_sys_dlopen_deplibs=yes
10489 ;;
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 libltdl_cv_sys_dlopen_deplibs=yes
10492 ;;
10493 esac
10494
10495fi
10496{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10499
10500cat >>confdefs.h <<\_ACEOF
10501#define LTDL_DLOPEN_DEPLIBS 1
10502_ACEOF
10503
10504fi
10505
10506
10507for ac_header in argz.h
10508do
10509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515fi
10516ac_res=`eval echo '${'$as_ac_Header'}'`
10517 { echo "$as_me:$LINENO: result: $ac_res" >&5
10518echo "${ECHO_T}$ac_res" >&6; }
10519else
10520 # Is the header compilable?
10521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h. */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h. */
10529$ac_includes_default
10530#include <$ac_header>
10531_ACEOF
10532rm -f conftest.$ac_objext
10533if { (ac_try="$ac_compile"
10534case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560esac
10561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_header_compiler=yes
10567else
10568 echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_header_compiler=no
10572fi
10573
10574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576echo "${ECHO_T}$ac_header_compiler" >&6; }
10577
10578# Is the header present?
10579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587#include <$ac_header>
10588_ACEOF
10589if { (ac_try="$ac_cpp conftest.$ac_ext"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605 else
10606 ac_cpp_err=
10607 fi
10608else
10609 ac_cpp_err=yes
10610fi
10611if test -z "$ac_cpp_err"; then
10612 ac_header_preproc=yes
10613else
10614 echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_header_preproc=no
10618fi
10619
10620rm -f conftest.err conftest.$ac_ext
10621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622echo "${ECHO_T}$ac_header_preproc" >&6; }
10623
10624# So? What about this header?
10625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626 yes:no: )
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631 ac_header_preproc=yes
10632 ;;
10633 no:yes:* )
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646 ( cat <<\_ASBOX
10647## ------------------------------ ##
10648## Report this to bugs@yourdomain ##
10649## ------------------------------ ##
10650_ASBOX
10651 ) | sed "s/^/$as_me: WARNING: /" >&2
10652 ;;
10653esac
10654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10658else
10659 eval "$as_ac_Header=\$ac_header_preproc"
10660fi
10661ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
10664
10665fi
10666if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667 cat >>confdefs.h <<_ACEOF
10668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669_ACEOF
10670
10671fi
10672
10673done
10674
10675
10676{ echo "$as_me:$LINENO: checking for error_t" >&5
10677echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678if test "${ac_cv_type_error_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681 cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687#if HAVE_ARGZ_H
10688# include <argz.h>
10689#endif
10690
10691typedef error_t ac__type_new_;
10692int
10693main ()
10694{
10695if ((ac__type_new_ *) 0)
10696 return 0;
10697if (sizeof (ac__type_new_))
10698 return 0;
10699 ;
10700 return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (ac_try="$ac_compile"
10705case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718 { (case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_try") 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest.$ac_objext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_type_error_t=yes
10738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ac_cv_type_error_t=no
10743fi
10744
10745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746fi
10747{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749if test $ac_cv_type_error_t = yes; then
10750
10751cat >>confdefs.h <<_ACEOF
10752#define HAVE_ERROR_T 1
10753_ACEOF
10754
10755
10756else
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define error_t int
10760_ACEOF
10761
10762fi
10763
10764
10765
10766
10767
10768
10769
10770for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10771do
10772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786#define $ac_func innocuous_$ac_func
10787
10788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char $ac_func (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef $ac_func
10800
10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804#ifdef __cplusplus
10805extern "C"
10806#endif
10807char $ac_func ();
10808/* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811#if defined __stub_$ac_func || defined __stub___$ac_func
10812choke me
10813#endif
10814
10815int
10816main ()
10817{
10818return $ac_func ();
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 eval "$as_ac_var=no"
10863fi
10864
10865rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867fi
10868ac_res=`eval echo '${'$as_ac_var'}'`
10869 { echo "$as_me:$LINENO: result: $ac_res" >&5
10870echo "${ECHO_T}$ac_res" >&6; }
10871if test `eval echo '${'$as_ac_var'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874_ACEOF
10875
10876fi
10877done
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10907 stdio.h unistd.h
10908do
10909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915fi
10916ac_res=`eval echo '${'$as_ac_Header'}'`
10917 { echo "$as_me:$LINENO: result: $ac_res" >&5
10918echo "${ECHO_T}$ac_res" >&6; }
10919else
10920 # Is the header compilable?
10921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h. */
10925_ACEOF
10926cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h. */
10929$ac_includes_default
10930#include <$ac_header>
10931_ACEOF
10932rm -f conftest.$ac_objext
10933if { (ac_try="$ac_compile"
10934case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10950esac
10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960esac
10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_header_compiler=yes
10967else
10968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_header_compiler=no
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976echo "${ECHO_T}$ac_header_compiler" >&6; }
10977
10978# Is the header present?
10979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h. */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
10986/* end confdefs.h. */
10987#include <$ac_header>
10988_ACEOF
10989if { (ac_try="$ac_cpp conftest.$ac_ext"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } >/dev/null; then
11002 if test -s conftest.err; then
11003 ac_cpp_err=$ac_c_preproc_warn_flag
11004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11005 else
11006 ac_cpp_err=
11007 fi
11008else
11009 ac_cpp_err=yes
11010fi
11011if test -z "$ac_cpp_err"; then
11012 ac_header_preproc=yes
11013else
11014 echo "$as_me: failed program was:" >&5
11015sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 ac_header_preproc=no
11018fi
11019
11020rm -f conftest.err conftest.$ac_ext
11021{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022echo "${ECHO_T}$ac_header_preproc" >&6; }
11023
11024# So? What about this header?
11025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026 yes:no: )
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031 ac_header_preproc=yes
11032 ;;
11033 no:yes:* )
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046 ( cat <<\_ASBOX
11047## ------------------------------ ##
11048## Report this to bugs@yourdomain ##
11049## ------------------------------ ##
11050_ASBOX
11051 ) | sed "s/^/$as_me: WARNING: /" >&2
11052 ;;
11053esac
11054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 eval "$as_ac_Header=\$ac_header_preproc"
11060fi
11061ac_res=`eval echo '${'$as_ac_Header'}'`
11062 { echo "$as_me:$LINENO: result: $ac_res" >&5
11063echo "${ECHO_T}$ac_res" >&6; }
11064
11065fi
11066if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069_ACEOF
11070
11071fi
11072
11073done
11074
11075
11076
11077
11078
11079for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11080do
11081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087fi
11088ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090echo "${ECHO_T}$ac_res" >&6; }
11091else
11092 # Is the header compilable?
11093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101$ac_includes_default
11102#include <$ac_header>
11103_ACEOF
11104rm -f conftest.$ac_objext
11105if { (ac_try="$ac_compile"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11139else
11140 echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 ac_header_compiler=no
11144fi
11145
11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150# Is the header present?
11151{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159#include <$ac_header>
11160_ACEOF
11161if { (ac_try="$ac_cpp conftest.$ac_ext"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177 else
11178 ac_cpp_err=
11179 fi
11180else
11181 ac_cpp_err=yes
11182fi
11183if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11185else
11186 echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_header_preproc=no
11190fi
11191
11192rm -f conftest.err conftest.$ac_ext
11193{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196# So? What about this header?
11197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198 yes:no: )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11204 ;;
11205 no:yes:* )
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218 ( cat <<\_ASBOX
11219## ------------------------------ ##
11220## Report this to bugs@yourdomain ##
11221## ------------------------------ ##
11222_ASBOX
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11224 ;;
11225esac
11226{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 eval "$as_ac_Header=\$ac_header_preproc"
11232fi
11233ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
11236
11237fi
11238if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241_ACEOF
11242
11243fi
11244
11245done
11246
11247
11248
11249for ac_header in string.h strings.h
11250do
11251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257fi
11258ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260echo "${ECHO_T}$ac_res" >&6; }
11261else
11262 # Is the header compilable?
11263{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271$ac_includes_default
11272#include <$ac_header>
11273_ACEOF
11274rm -f conftest.$ac_objext
11275if { (ac_try="$ac_compile"
11276case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289 { (case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292esac
11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_try") 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_try") 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_header_compiler=yes
11309else
11310 echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313 ac_header_compiler=no
11314fi
11315
11316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318echo "${ECHO_T}$ac_header_compiler" >&6; }
11319
11320# Is the header present?
11321{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323cat >conftest.$ac_ext <<_ACEOF
11324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
11329#include <$ac_header>
11330_ACEOF
11331if { (ac_try="$ac_cpp conftest.$ac_ext"
11332case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null; then
11344 if test -s conftest.err; then
11345 ac_cpp_err=$ac_c_preproc_warn_flag
11346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11347 else
11348 ac_cpp_err=
11349 fi
11350else
11351 ac_cpp_err=yes
11352fi
11353if test -z "$ac_cpp_err"; then
11354 ac_header_preproc=yes
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 ac_header_preproc=no
11360fi
11361
11362rm -f conftest.err conftest.$ac_ext
11363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364echo "${ECHO_T}$ac_header_preproc" >&6; }
11365
11366# So? What about this header?
11367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 yes:no: )
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11374 ;;
11375 no:yes:* )
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388 ( cat <<\_ASBOX
11389## ------------------------------ ##
11390## Report this to bugs@yourdomain ##
11391## ------------------------------ ##
11392_ASBOX
11393 ) | sed "s/^/$as_me: WARNING: /" >&2
11394 ;;
11395esac
11396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401 eval "$as_ac_Header=\$ac_header_preproc"
11402fi
11403ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405echo "${ECHO_T}$ac_res" >&6; }
11406
11407fi
11408if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h <<_ACEOF
11410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411_ACEOF
11412 break
11413fi
11414
11415done
11416
11417
11418
11419
11420for ac_func in strchr index
11421do
11422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428 cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h. */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h. */
11434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11436#define $ac_func innocuous_$ac_func
11437
11438/* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char $ac_func (); below.
11440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441 <limits.h> exists even on freestanding compilers. */
11442
11443#ifdef __STDC__
11444# include <limits.h>
11445#else
11446# include <assert.h>
11447#endif
11448
11449#undef $ac_func
11450
11451/* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char $ac_func ();
11458/* The GNU C library defines this for functions which it implements
11459 to always fail with ENOSYS. Some functions are actually named
11460 something starting with __ and the normal name is an alias. */
11461#if defined __stub_$ac_func || defined __stub___$ac_func
11462choke me
11463#endif
11464
11465int
11466main ()
11467{
11468return $ac_func ();
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext conftest$ac_exeext
11474if { (ac_try="$ac_link"
11475case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_link") 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 eval "$as_ac_var=yes"
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 eval "$as_ac_var=no"
11513fi
11514
11515rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517fi
11518ac_res=`eval echo '${'$as_ac_var'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520echo "${ECHO_T}$ac_res" >&6; }
11521if test `eval echo '${'$as_ac_var'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524_ACEOF
11525 break
11526fi
11527done
11528
11529
11530
11531for ac_func in strrchr rindex
11532do
11533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11547#define $ac_func innocuous_$ac_func
11548
11549/* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func (); below.
11551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552 <limits.h> exists even on freestanding compilers. */
11553
11554#ifdef __STDC__
11555# include <limits.h>
11556#else
11557# include <assert.h>
11558#endif
11559
11560#undef $ac_func
11561
11562/* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char $ac_func ();
11569/* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572#if defined __stub_$ac_func || defined __stub___$ac_func
11573choke me
11574#endif
11575
11576int
11577main ()
11578{
11579return $ac_func ();
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (ac_try="$ac_link"
11586case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599 { (case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_try") 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest$ac_exeext'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11619else
11620 echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 eval "$as_ac_var=no"
11624fi
11625
11626rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628fi
11629ac_res=`eval echo '${'$as_ac_var'}'`
11630 { echo "$as_me:$LINENO: result: $ac_res" >&5
11631echo "${ECHO_T}$ac_res" >&6; }
11632if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635_ACEOF
11636 break
11637fi
11638done
11639
11640
11641
11642for ac_func in memcpy bcopy
11643do
11644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658#define $ac_func innocuous_$ac_func
11659
11660/* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11664
11665#ifdef __STDC__
11666# include <limits.h>
11667#else
11668# include <assert.h>
11669#endif
11670
11671#undef $ac_func
11672
11673/* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char $ac_func ();
11680/* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683#if defined __stub_$ac_func || defined __stub___$ac_func
11684choke me
11685#endif
11686
11687int
11688main ()
11689{
11690return $ac_func ();
11691 ;
11692 return 0;
11693}
11694_ACEOF
11695rm -f conftest.$ac_objext conftest$ac_exeext
11696if { (ac_try="$ac_link"
11697case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710 { (case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_try") 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723esac
11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "$as_ac_var=yes"
11730else
11731 echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 eval "$as_ac_var=no"
11735fi
11736
11737rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11739fi
11740ac_res=`eval echo '${'$as_ac_var'}'`
11741 { echo "$as_me:$LINENO: result: $ac_res" >&5
11742echo "${ECHO_T}$ac_res" >&6; }
11743if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746_ACEOF
11747 break
11748fi
11749done
11750
11751
11752
11753for ac_func in memmove strcmp
11754do
11755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761 cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769#define $ac_func innocuous_$ac_func
11770
11771/* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11775
11776#ifdef __STDC__
11777# include <limits.h>
11778#else
11779# include <assert.h>
11780#endif
11781
11782#undef $ac_func
11783
11784/* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11787#ifdef __cplusplus
11788extern "C"
11789#endif
11790char $ac_func ();
11791/* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794#if defined __stub_$ac_func || defined __stub___$ac_func
11795choke me
11796#endif
11797
11798int
11799main ()
11800{
11801return $ac_func ();
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806rm -f conftest.$ac_objext conftest$ac_exeext
11807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_var=yes"
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 eval "$as_ac_var=no"
11846fi
11847
11848rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850fi
11851ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853echo "${ECHO_T}$ac_res" >&6; }
11854if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857_ACEOF
11858
11859fi
11860done
11861
11862
11863
11864
11865for ac_func in closedir opendir readdir
11866do
11867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881#define $ac_func innocuous_$ac_func
11882
11883/* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11887
11888#ifdef __STDC__
11889# include <limits.h>
11890#else
11891# include <assert.h>
11892#endif
11893
11894#undef $ac_func
11895
11896/* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899#ifdef __cplusplus
11900extern "C"
11901#endif
11902char $ac_func ();
11903/* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906#if defined __stub_$ac_func || defined __stub___$ac_func
11907choke me
11908#endif
11909
11910int
11911main ()
11912{
11913return $ac_func ();
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext conftest$ac_exeext
11919if { (ac_try="$ac_link"
11920case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 eval "$as_ac_var=no"
11958fi
11959
11960rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962fi
11963ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965echo "${ECHO_T}$ac_res" >&6; }
11966if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969_ACEOF
11970
11971fi
11972done
11973
11974
11975
11976{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11977echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11978
11979ICC=no
11980IXX=no
11981case $CC in
11982 icc*|icpc*)
11983 ICC=yes
11984 IXX=yes
11985 ;;
11986 *)
11987 ;;
11988esac
11989
11990if test "$GCC" != "yes" && test "$ICC" != "yes"
11991then
11992 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993echo "$as_me: error: gcc|icc required but not found" >&2;}
11994 { (exit 1); exit 1; }; }
11995fi
11996
11997if test "$GXX" != "yes" && test "$IXX" != "yes"
11998then
11999 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001 { (exit 1); exit 1; }; }
12002fi
12003
12004if test "$GCC" = "yes"
12005then
12006 cat >conftest.$ac_ext <<_ACEOF
12007#if !defined(__GNUC__) || __GNUC__ < 3
12008#error Unsupported GCC version
12009#endif
12010
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (ac_try="$ac_compile"
12014case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 :
12047else
12048 echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053 { (exit 1); exit 1; }; }
12054fi
12055
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057fi
12058
12059if test -z "$llvm_cv_gnu_make_command"
12060then
12061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062echo "$as_me: error: GNU Make required but not found" >&2;}
12063 { (exit 1); exit 1; }; }
12064fi
12065
12066{ echo "$as_me:$LINENO: result: ok" >&5
12067echo "${ECHO_T}ok" >&6; }
12068
12069{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012071NO_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 +000012072
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012073NO_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 +000012074
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012075COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12076
12077{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012079
12080
12081
12082{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084if test "${ac_cv_lib_m_sin+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 ac_check_lib_save_LIBS=$LIBS
12088LIBS="-lm $LIBS"
12089cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095
12096/* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12099#ifdef __cplusplus
12100extern "C"
12101#endif
12102char sin ();
12103int
12104main ()
12105{
12106return sin ();
12107 ;
12108 return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext conftest$ac_exeext
12112if { (ac_try="$ac_link"
12113case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_m_sin=yes
12146else
12147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_cv_lib_m_sin=no
12151fi
12152
12153rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155LIBS=$ac_check_lib_save_LIBS
12156fi
12157{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159if test $ac_cv_lib_m_sin = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161#define HAVE_LIBM 1
12162_ACEOF
12163
12164 LIBS="-lm $LIBS"
12165
12166fi
12167
12168if test "$llvm_cv_os_type" = "MingW" ; then
12169
12170{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174else
12175 ac_check_lib_save_LIBS=$LIBS
12176LIBS="-limagehlp $LIBS"
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183
12184
12185int
12186main ()
12187{
12188return main ();
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext conftest$ac_exeext
12194if { (ac_try="$ac_link"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_imagehlp_main=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_cv_lib_imagehlp_main=no
12233fi
12234
12235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241if test $ac_cv_lib_imagehlp_main = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243#define HAVE_LIBIMAGEHLP 1
12244_ACEOF
12245
12246 LIBS="-limagehlp $LIBS"
12247
12248fi
12249
12250
12251{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253if test "${ac_cv_lib_psapi_main+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255else
12256 ac_check_lib_save_LIBS=$LIBS
12257LIBS="-lpsapi $LIBS"
12258cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264
12265
12266int
12267main ()
12268{
12269return main ();
12270 ;
12271 return 0;
12272}
12273_ACEOF
12274rm -f conftest.$ac_objext conftest$ac_exeext
12275if { (ac_try="$ac_link"
12276case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_psapi_main=yes
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_cv_lib_psapi_main=no
12314fi
12315
12316rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318LIBS=$ac_check_lib_save_LIBS
12319fi
12320{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322if test $ac_cv_lib_psapi_main = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324#define HAVE_LIBPSAPI 1
12325_ACEOF
12326
12327 LIBS="-lpsapi $LIBS"
12328
12329fi
12330
12331fi
12332
12333{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335if test "${ac_cv_search_dlopen+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338 ac_func_search_save_LIBS=$LIBS
12339cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345
12346/* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12349#ifdef __cplusplus
12350extern "C"
12351#endif
12352char dlopen ();
12353int
12354main ()
12355{
12356return dlopen ();
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361for ac_lib in '' dl; do
12362 if test -z "$ac_lib"; then
12363 ac_res="none required"
12364 else
12365 ac_res=-l$ac_lib
12366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12367 fi
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369if { (ac_try="$ac_link"
12370case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_search_dlopen=$ac_res
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408fi
12409
12410rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext
12412 if test "${ac_cv_search_dlopen+set}" = set; then
12413 break
12414fi
12415done
12416if test "${ac_cv_search_dlopen+set}" = set; then
12417 :
12418else
12419 ac_cv_search_dlopen=no
12420fi
12421rm conftest.$ac_ext
12422LIBS=$ac_func_search_save_LIBS
12423fi
12424{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426ac_res=$ac_cv_search_dlopen
12427if test "$ac_res" != no; then
12428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429
12430cat >>confdefs.h <<\_ACEOF
12431#define HAVE_DLOPEN 1
12432_ACEOF
12433
12434else
12435 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12437fi
12438
12439
12440if test "$llvm_cv_enable_libffi" = "yes" ; then
12441 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443if test "${ac_cv_search_ffi_call+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 ac_func_search_save_LIBS=$LIBS
12447cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453
12454/* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12457#ifdef __cplusplus
12458extern "C"
12459#endif
12460char ffi_call ();
12461int
12462main ()
12463{
12464return ffi_call ();
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469for ac_lib in '' ffi; do
12470 if test -z "$ac_lib"; then
12471 ac_res="none required"
12472 else
12473 ac_res=-l$ac_lib
12474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12475 fi
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477if { (ac_try="$ac_link"
12478case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481esac
12482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494esac
12495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_ffi_call=$ac_res
12511else
12512 echo "$as_me: failed program was:" >&5
12513sed 's/^/| /' conftest.$ac_ext >&5
12514
12515
12516fi
12517
12518rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext
12520 if test "${ac_cv_search_ffi_call+set}" = set; then
12521 break
12522fi
12523done
12524if test "${ac_cv_search_ffi_call+set}" = set; then
12525 :
12526else
12527 ac_cv_search_ffi_call=no
12528fi
12529rm conftest.$ac_ext
12530LIBS=$ac_func_search_save_LIBS
12531fi
12532{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534ac_res=$ac_cv_search_ffi_call
12535if test "$ac_res" != no; then
12536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537
12538cat >>confdefs.h <<\_ACEOF
12539#define HAVE_FFI_CALL 1
12540_ACEOF
12541
12542else
12543 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545 { (exit 1); exit 1; }; }
12546fi
12547
12548fi
12549
12550{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552if test "${ac_cv_search_mallinfo+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 ac_func_search_save_LIBS=$LIBS
12556cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562
12563/* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12566#ifdef __cplusplus
12567extern "C"
12568#endif
12569char mallinfo ();
12570int
12571main ()
12572{
12573return mallinfo ();
12574 ;
12575 return 0;
12576}
12577_ACEOF
12578for ac_lib in '' malloc; do
12579 if test -z "$ac_lib"; then
12580 ac_res="none required"
12581 else
12582 ac_res=-l$ac_lib
12583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12584 fi
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586if { (ac_try="$ac_link"
12587case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613esac
12614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search_mallinfo=$ac_res
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624
12625fi
12626
12627rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext
12629 if test "${ac_cv_search_mallinfo+set}" = set; then
12630 break
12631fi
12632done
12633if test "${ac_cv_search_mallinfo+set}" = set; then
12634 :
12635else
12636 ac_cv_search_mallinfo=no
12637fi
12638rm conftest.$ac_ext
12639LIBS=$ac_func_search_save_LIBS
12640fi
12641{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643ac_res=$ac_cv_search_mallinfo
12644if test "$ac_res" != no; then
12645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646
12647cat >>confdefs.h <<\_ACEOF
12648#define HAVE_MALLINFO 1
12649_ACEOF
12650
12651fi
12652
12653
12654if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12655
12656{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661 ac_check_lib_save_LIBS=$LIBS
12662LIBS="-lpthread $LIBS"
12663cat >conftest.$ac_ext <<_ACEOF
12664/* confdefs.h. */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h. */
12669
12670/* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12673#ifdef __cplusplus
12674extern "C"
12675#endif
12676char pthread_mutex_init ();
12677int
12678main ()
12679{
12680return pthread_mutex_init ();
12681 ;
12682 return 0;
12683}
12684_ACEOF
12685rm -f conftest.$ac_objext conftest$ac_exeext
12686if { (ac_try="$ac_link"
12687case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12693 ac_status=$?
12694 grep -v '^ *+' conftest.er1 >conftest.err
12695 rm -f conftest.er1
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_pthread_pthread_mutex_init=yes
12720else
12721 echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 ac_cv_lib_pthread_pthread_mutex_init=no
12725fi
12726
12727rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734 cat >>confdefs.h <<_ACEOF
12735#define HAVE_LIBPTHREAD 1
12736_ACEOF
12737
12738 LIBS="-lpthread $LIBS"
12739
12740fi
12741
12742 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747 ac_func_search_save_LIBS=$LIBS
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754
12755/* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761char pthread_mutex_lock ();
12762int
12763main ()
12764{
12765return pthread_mutex_lock ();
12766 ;
12767 return 0;
12768}
12769_ACEOF
12770for ac_lib in '' pthread; do
12771 if test -z "$ac_lib"; then
12772 ac_res="none required"
12773 else
12774 ac_res=-l$ac_lib
12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12776 fi
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778if { (ac_try="$ac_link"
12779case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_search_pthread_mutex_lock=$ac_res
12812else
12813 echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
12817fi
12818
12819rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext
12821 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12822 break
12823fi
12824done
12825if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826 :
12827else
12828 ac_cv_search_pthread_mutex_lock=no
12829fi
12830rm conftest.$ac_ext
12831LIBS=$ac_func_search_save_LIBS
12832fi
12833{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835ac_res=$ac_cv_search_pthread_mutex_lock
12836if test "$ac_res" != no; then
12837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
12839cat >>confdefs.h <<\_ACEOF
12840#define HAVE_PTHREAD_MUTEX_LOCK 1
12841_ACEOF
12842
12843fi
12844
12845 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850 ac_func_search_save_LIBS=$LIBS
12851cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
12857
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char pthread_rwlock_init ();
12865int
12866main ()
12867{
12868return pthread_rwlock_init ();
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873for ac_lib in '' pthread; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
12876 else
12877 ac_res=-l$ac_lib
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12879 fi
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_search_pthread_rwlock_init=$ac_res
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920fi
12921
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext
12924 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12925 break
12926fi
12927done
12928if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929 :
12930else
12931 ac_cv_search_pthread_rwlock_init=no
12932fi
12933rm conftest.$ac_ext
12934LIBS=$ac_func_search_save_LIBS
12935fi
12936{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938ac_res=$ac_cv_search_pthread_rwlock_init
12939if test "$ac_res" != no; then
12940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942cat >>confdefs.h <<\_ACEOF
12943#define HAVE_PTHREAD_RWLOCK_INIT 1
12944_ACEOF
12945
12946fi
12947
12948 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953 ac_func_search_save_LIBS=$LIBS
12954cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960
12961/* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char pthread_getspecific ();
12968int
12969main ()
12970{
12971return pthread_getspecific ();
12972 ;
12973 return 0;
12974}
12975_ACEOF
12976for ac_lib in '' pthread; do
12977 if test -z "$ac_lib"; then
12978 ac_res="none required"
12979 else
12980 ac_res=-l$ac_lib
12981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12982 fi
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984if { (ac_try="$ac_link"
12985case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_search_pthread_getspecific=$ac_res
13018else
13019 echo "$as_me: failed program was:" >&5
13020sed 's/^/| /' conftest.$ac_ext >&5
13021
13022
13023fi
13024
13025rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext
13027 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13028 break
13029fi
13030done
13031if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032 :
13033else
13034 ac_cv_search_pthread_getspecific=no
13035fi
13036rm conftest.$ac_ext
13037LIBS=$ac_func_search_save_LIBS
13038fi
13039{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041ac_res=$ac_cv_search_pthread_getspecific
13042if test "$ac_res" != no; then
13043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13044
13045cat >>confdefs.h <<\_ACEOF
13046#define HAVE_PTHREAD_GETSPECIFIC 1
13047_ACEOF
13048
13049fi
13050
13051fi
13052
13053
13054# Check whether --with-udis86 was given.
13055if test "${with_udis86+set}" = set; then
13056 withval=$with_udis86;
13057 USE_UDIS86=1
13058
13059 case "$withval" in
13060 /usr/lib|yes) ;;
13061 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13062 esac
13063
13064{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 ac_check_lib_save_LIBS=$LIBS
13070LIBS="-ludis86 $LIBS"
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077
13078/* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084char ud_init ();
13085int
13086main ()
13087{
13088return ud_init ();
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093rm -f conftest.$ac_objext conftest$ac_exeext
13094if { (ac_try="$ac_link"
13095case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098esac
13099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_link") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121esac
13122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_udis86_ud_init=yes
13128else
13129 echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132 ac_cv_lib_udis86_ud_init=no
13133fi
13134
13135rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137LIBS=$ac_check_lib_save_LIBS
13138fi
13139{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141if test $ac_cv_lib_udis86_ud_init = yes; then
13142 cat >>confdefs.h <<_ACEOF
13143#define HAVE_LIBUDIS86 1
13144_ACEOF
13145
13146 LIBS="-ludis86 $LIBS"
13147
13148else
13149
13150 echo "Error! You need to have libudis86 around."
13151 exit -1
13152
13153fi
13154
13155
13156else
13157 USE_UDIS86=0
13158
13159fi
13160
13161
13162cat >>confdefs.h <<_ACEOF
13163#define USE_UDIS86 $USE_UDIS86
13164_ACEOF
13165
13166
13167
13168# Check whether --with-oprofile was given.
13169if test "${with_oprofile+set}" = set; then
13170 withval=$with_oprofile;
13171 USE_OPROFILE=1
13172
13173 case "$withval" in
13174 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175 no) llvm_cv_oppath=
13176 USE_OPROFILE=0
13177 ;;
13178 *) llvm_cv_oppath="${withval}/lib/oprofile"
13179 CPPFLAGS="-I${withval}/include";;
13180 esac
13181 if test -n "$llvm_cv_oppath" ; then
13182 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13183 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13184echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13185if test "${ac_cv_search_bfd_init+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 ac_func_search_save_LIBS=$LIBS
13189cat >conftest.$ac_ext <<_ACEOF
13190/* confdefs.h. */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
13194/* end confdefs.h. */
13195
13196/* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199#ifdef __cplusplus
13200extern "C"
13201#endif
13202char bfd_init ();
13203int
13204main ()
13205{
13206return bfd_init ();
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211for ac_lib in '' bfd; do
13212 if test -z "$ac_lib"; then
13213 ac_res="none required"
13214 else
13215 ac_res=-l$ac_lib
13216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13217 fi
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219if { (ac_try="$ac_link"
13220case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_link") 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13233 { (case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_try") 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest$ac_exeext'
13243 { (case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246esac
13247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 ac_cv_search_bfd_init=$ac_res
13253else
13254 echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
13257
13258fi
13259
13260rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext
13262 if test "${ac_cv_search_bfd_init+set}" = set; then
13263 break
13264fi
13265done
13266if test "${ac_cv_search_bfd_init+set}" = set; then
13267 :
13268else
13269 ac_cv_search_bfd_init=no
13270fi
13271rm conftest.$ac_ext
13272LIBS=$ac_func_search_save_LIBS
13273fi
13274{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13275echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13276ac_res=$ac_cv_search_bfd_init
13277if test "$ac_res" != no; then
13278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13279
13280fi
13281
13282 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13283echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13284if test "${ac_cv_search_op_open_agent+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286else
13287 ac_func_search_save_LIBS=$LIBS
13288cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h. */
13294
13295/* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298#ifdef __cplusplus
13299extern "C"
13300#endif
13301char op_open_agent ();
13302int
13303main ()
13304{
13305return op_open_agent ();
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310for ac_lib in '' opagent; do
13311 if test -z "$ac_lib"; then
13312 ac_res="none required"
13313 else
13314 ac_res=-l$ac_lib
13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13316 fi
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318if { (ac_try="$ac_link"
13319case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_search_op_open_agent=$ac_res
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356
13357fi
13358
13359rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext
13361 if test "${ac_cv_search_op_open_agent+set}" = set; then
13362 break
13363fi
13364done
13365if test "${ac_cv_search_op_open_agent+set}" = set; then
13366 :
13367else
13368 ac_cv_search_op_open_agent=no
13369fi
13370rm conftest.$ac_ext
13371LIBS=$ac_func_search_save_LIBS
13372fi
13373{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13374echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13375ac_res=$ac_cv_search_op_open_agent
13376if test "$ac_res" != no; then
13377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13378
13379else
13380
13381 echo "Error! You need to have libopagent around."
13382 exit -1
13383
13384fi
13385
13386 if test "${ac_cv_header_opagent_h+set}" = set; then
13387 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13388echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13389if test "${ac_cv_header_opagent_h+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391fi
13392{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13393echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13394else
13395 # Is the header compilable?
13396{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13397echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13398cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404$ac_includes_default
13405#include <opagent.h>
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (ac_try="$ac_compile"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_compile") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_header_compiler=yes
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_header_compiler=no
13447fi
13448
13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451echo "${ECHO_T}$ac_header_compiler" >&6; }
13452
13453# Is the header present?
13454{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13455echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13456cat >conftest.$ac_ext <<_ACEOF
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
13462#include <opagent.h>
13463_ACEOF
13464if { (ac_try="$ac_cpp conftest.$ac_ext"
13465case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13468esac
13469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null; then
13477 if test -s conftest.err; then
13478 ac_cpp_err=$ac_c_preproc_warn_flag
13479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13480 else
13481 ac_cpp_err=
13482 fi
13483else
13484 ac_cpp_err=yes
13485fi
13486if test -z "$ac_cpp_err"; then
13487 ac_header_preproc=yes
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 ac_header_preproc=no
13493fi
13494
13495rm -f conftest.err conftest.$ac_ext
13496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497echo "${ECHO_T}$ac_header_preproc" >&6; }
13498
13499# So? What about this header?
13500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13501 yes:no: )
13502 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13505echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13506 ac_header_preproc=yes
13507 ;;
13508 no:yes:* )
13509 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13510echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13512echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13514echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13516echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13518echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13520echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13521 ( cat <<\_ASBOX
13522## ------------------------------ ##
13523## Report this to bugs@yourdomain ##
13524## ------------------------------ ##
13525_ASBOX
13526 ) | sed "s/^/$as_me: WARNING: /" >&2
13527 ;;
13528esac
13529{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13530echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13531if test "${ac_cv_header_opagent_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534 ac_cv_header_opagent_h=$ac_header_preproc
13535fi
13536{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13537echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13538
13539fi
13540if test $ac_cv_header_opagent_h = yes; then
13541 :
13542else
13543
13544 echo "Error! You need to have opagent.h around."
13545 exit -1
13546
13547fi
13548
13549
13550 fi
13551
13552else
13553
13554 USE_OPROFILE=0
13555
13556
13557fi
13558
13559
13560cat >>confdefs.h <<_ACEOF
13561#define USE_OPROFILE $USE_OPROFILE
13562_ACEOF
13563
13564
13565
13566
13567
13568
13569
13570
13571ac_header_dirent=no
13572for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13573 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13574{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13575echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 cat >conftest.$ac_ext <<_ACEOF
13580/* confdefs.h. */
13581_ACEOF
13582cat confdefs.h >>conftest.$ac_ext
13583cat >>conftest.$ac_ext <<_ACEOF
13584/* end confdefs.h. */
13585#include <sys/types.h>
13586#include <$ac_hdr>
13587
13588int
13589main ()
13590{
13591if ((DIR *) 0)
13592return 0;
13593 ;
13594 return 0;
13595}
13596_ACEOF
13597rm -f conftest.$ac_objext
13598if { (ac_try="$ac_compile"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 eval "$as_ac_Header=yes"
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 eval "$as_ac_Header=no"
13637fi
13638
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640fi
13641ac_res=`eval echo '${'$as_ac_Header'}'`
13642 { echo "$as_me:$LINENO: result: $ac_res" >&5
13643echo "${ECHO_T}$ac_res" >&6; }
13644if test `eval echo '${'$as_ac_Header'}'` = yes; then
13645 cat >>confdefs.h <<_ACEOF
13646#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13647_ACEOF
13648
13649ac_header_dirent=$ac_hdr; break
13650fi
13651
13652done
13653# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13654if test $ac_header_dirent = dirent.h; then
13655 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13656echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13657if test "${ac_cv_search_opendir+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660 ac_func_search_save_LIBS=$LIBS
13661cat >conftest.$ac_ext <<_ACEOF
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
13666/* end confdefs.h. */
13667
13668/* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13671#ifdef __cplusplus
13672extern "C"
13673#endif
13674char opendir ();
13675int
13676main ()
13677{
13678return opendir ();
13679 ;
13680 return 0;
13681}
13682_ACEOF
13683for ac_lib in '' dir; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13686 else
13687 ac_res=-l$ac_lib
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13689 fi
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691if { (ac_try="$ac_link"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_search_opendir=$ac_res
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729
13730fi
13731
13732rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext
13734 if test "${ac_cv_search_opendir+set}" = set; then
13735 break
13736fi
13737done
13738if test "${ac_cv_search_opendir+set}" = set; then
13739 :
13740else
13741 ac_cv_search_opendir=no
13742fi
13743rm conftest.$ac_ext
13744LIBS=$ac_func_search_save_LIBS
13745fi
13746{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13747echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13748ac_res=$ac_cv_search_opendir
13749if test "$ac_res" != no; then
13750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13751
13752fi
13753
13754else
13755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757if test "${ac_cv_search_opendir+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760 ac_func_search_save_LIBS=$LIBS
13761cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
13767
13768/* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771#ifdef __cplusplus
13772extern "C"
13773#endif
13774char opendir ();
13775int
13776main ()
13777{
13778return opendir ();
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783for ac_lib in '' x; do
13784 if test -z "$ac_lib"; then
13785 ac_res="none required"
13786 else
13787 ac_res=-l$ac_lib
13788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13789 fi
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791if { (ac_try="$ac_link"
13792case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808esac
13809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_search_opendir=$ac_res
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829
13830fi
13831
13832rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext
13834 if test "${ac_cv_search_opendir+set}" = set; then
13835 break
13836fi
13837done
13838if test "${ac_cv_search_opendir+set}" = set; then
13839 :
13840else
13841 ac_cv_search_opendir=no
13842fi
13843rm conftest.$ac_ext
13844LIBS=$ac_func_search_save_LIBS
13845fi
13846{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848ac_res=$ac_cv_search_opendir
13849if test "$ac_res" != no; then
13850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851
13852fi
13853
13854fi
13855
13856{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13857echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13858if test "${ac_cv_header_mmap_anon+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860else
13861 ac_ext=c
13862ac_cpp='$CPP $CPPFLAGS'
13863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865ac_compiler_gnu=$ac_cv_c_compiler_gnu
13866
13867 cat >conftest.$ac_ext <<_ACEOF
13868/* confdefs.h. */
13869_ACEOF
13870cat confdefs.h >>conftest.$ac_ext
13871cat >>conftest.$ac_ext <<_ACEOF
13872/* end confdefs.h. */
13873#include <sys/mman.h>
13874#include <unistd.h>
13875#include <fcntl.h>
13876int
13877main ()
13878{
13879mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13880 ;
13881 return 0;
13882}
13883_ACEOF
13884rm -f conftest.$ac_objext
13885if { (ac_try="$ac_compile"
13886case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902esac
13903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_header_mmap_anon=yes
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923 ac_cv_header_mmap_anon=no
13924fi
13925
13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 ac_ext=c
13928ac_cpp='$CPP $CPPFLAGS'
13929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932
13933
13934fi
13935{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13936echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13937if test "$ac_cv_header_mmap_anon" = yes; then
13938
13939cat >>confdefs.h <<\_ACEOF
13940#define HAVE_MMAP_ANONYMOUS 1
13941_ACEOF
13942
13943fi
13944
13945{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13946echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13947if test "${ac_cv_header_stat_broken+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950 cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956#include <sys/types.h>
13957#include <sys/stat.h>
13958
13959#if defined S_ISBLK && defined S_IFDIR
13960# if S_ISBLK (S_IFDIR)
13961You lose.
13962# endif
13963#endif
13964
13965#if defined S_ISBLK && defined S_IFCHR
13966# if S_ISBLK (S_IFCHR)
13967You lose.
13968# endif
13969#endif
13970
13971#if defined S_ISLNK && defined S_IFREG
13972# if S_ISLNK (S_IFREG)
13973You lose.
13974# endif
13975#endif
13976
13977#if defined S_ISSOCK && defined S_IFREG
13978# if S_ISSOCK (S_IFREG)
13979You lose.
13980# endif
13981#endif
13982
13983_ACEOF
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "You lose" >/dev/null 2>&1; then
13986 ac_cv_header_stat_broken=yes
13987else
13988 ac_cv_header_stat_broken=no
13989fi
13990rm -f conftest*
13991
13992fi
13993{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13994echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13995if test $ac_cv_header_stat_broken = yes; then
13996
13997cat >>confdefs.h <<\_ACEOF
13998#define STAT_MACROS_BROKEN 1
13999_ACEOF
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14004echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14005if test "${ac_cv_header_sys_wait_h+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
14014#include <sys/types.h>
14015#include <sys/wait.h>
14016#ifndef WEXITSTATUS
14017# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14018#endif
14019#ifndef WIFEXITED
14020# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14021#endif
14022
14023int
14024main ()
14025{
14026 int s;
14027 wait (&s);
14028 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14029 ;
14030 return 0;
14031}
14032_ACEOF
14033rm -f conftest.$ac_objext
14034if { (ac_try="$ac_compile"
14035case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038esac
14039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061esac
14062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_header_sys_wait_h=yes
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_cv_header_sys_wait_h=no
14073fi
14074
14075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076fi
14077{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14078echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14079if test $ac_cv_header_sys_wait_h = yes; then
14080
14081cat >>confdefs.h <<\_ACEOF
14082#define HAVE_SYS_WAIT_H 1
14083_ACEOF
14084
14085fi
14086
14087{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14088echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14089if test "${ac_cv_header_time+set}" = set; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14091else
14092 cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
14098#include <sys/types.h>
14099#include <sys/time.h>
14100#include <time.h>
14101
14102int
14103main ()
14104{
14105if ((struct tm *) 0)
14106return 0;
14107 ;
14108 return 0;
14109}
14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (ac_try="$ac_compile"
14113case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_compile") 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_try") 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest.$ac_objext'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_try") 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145 ac_cv_header_time=yes
14146else
14147 echo "$as_me: failed program was:" >&5
14148sed 's/^/| /' conftest.$ac_ext >&5
14149
14150 ac_cv_header_time=no
14151fi
14152
14153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154fi
14155{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14156echo "${ECHO_T}$ac_cv_header_time" >&6; }
14157if test $ac_cv_header_time = yes; then
14158
14159cat >>confdefs.h <<\_ACEOF
14160#define TIME_WITH_SYS_TIME 1
14161_ACEOF
14162
14163fi
14164
14165
14166
14167
14168
14169
14170
14171
14172for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14173do
14174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180fi
14181ac_res=`eval echo '${'$as_ac_Header'}'`
14182 { echo "$as_me:$LINENO: result: $ac_res" >&5
14183echo "${ECHO_T}$ac_res" >&6; }
14184else
14185 # Is the header compilable?
14186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14188cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
14194$ac_includes_default
14195#include <$ac_header>
14196_ACEOF
14197rm -f conftest.$ac_objext
14198if { (ac_try="$ac_compile"
14199case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14215esac
14216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_header_compiler=yes
14232else
14233 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_header_compiler=no
14237fi
14238
14239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14241echo "${ECHO_T}$ac_header_compiler" >&6; }
14242
14243# Is the header present?
14244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14246cat >conftest.$ac_ext <<_ACEOF
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
14252#include <$ac_header>
14253_ACEOF
14254if { (ac_try="$ac_cpp conftest.$ac_ext"
14255case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258esac
14259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } >/dev/null; then
14267 if test -s conftest.err; then
14268 ac_cpp_err=$ac_c_preproc_warn_flag
14269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14270 else
14271 ac_cpp_err=
14272 fi
14273else
14274 ac_cpp_err=yes
14275fi
14276if test -z "$ac_cpp_err"; then
14277 ac_header_preproc=yes
14278else
14279 echo "$as_me: failed program was:" >&5
14280sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 ac_header_preproc=no
14283fi
14284
14285rm -f conftest.err conftest.$ac_ext
14286{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14287echo "${ECHO_T}$ac_header_preproc" >&6; }
14288
14289# So? What about this header?
14290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14291 yes:no: )
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14296 ac_header_preproc=yes
14297 ;;
14298 no:yes:* )
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14311 ( cat <<\_ASBOX
14312## ------------------------------ ##
14313## Report this to bugs@yourdomain ##
14314## ------------------------------ ##
14315_ASBOX
14316 ) | sed "s/^/$as_me: WARNING: /" >&2
14317 ;;
14318esac
14319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323else
14324 eval "$as_ac_Header=\$ac_header_preproc"
14325fi
14326ac_res=`eval echo '${'$as_ac_Header'}'`
14327 { echo "$as_me:$LINENO: result: $ac_res" >&5
14328echo "${ECHO_T}$ac_res" >&6; }
14329
14330fi
14331if test `eval echo '${'$as_ac_Header'}'` = yes; then
14332 cat >>confdefs.h <<_ACEOF
14333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14334_ACEOF
14335
14336fi
14337
14338done
14339
14340
14341
14342
14343
14344
14345
14346for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14347do
14348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354fi
14355ac_res=`eval echo '${'$as_ac_Header'}'`
14356 { echo "$as_me:$LINENO: result: $ac_res" >&5
14357echo "${ECHO_T}$ac_res" >&6; }
14358else
14359 # Is the header compilable?
14360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h. */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h. */
14368$ac_includes_default
14369#include <$ac_header>
14370_ACEOF
14371rm -f conftest.$ac_objext
14372if { (ac_try="$ac_compile"
14373case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386 { (case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14389esac
14390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_try") 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest.$ac_objext'
14396 { (case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399esac
14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_try") 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_header_compiler=yes
14406else
14407 echo "$as_me: failed program was:" >&5
14408sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 ac_header_compiler=no
14411fi
14412
14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415echo "${ECHO_T}$ac_header_compiler" >&6; }
14416
14417# Is the header present?
14418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426#include <$ac_header>
14427_ACEOF
14428if { (ac_try="$ac_cpp conftest.$ac_ext"
14429case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } >/dev/null; then
14441 if test -s conftest.err; then
14442 ac_cpp_err=$ac_c_preproc_warn_flag
14443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444 else
14445 ac_cpp_err=
14446 fi
14447else
14448 ac_cpp_err=yes
14449fi
14450if test -z "$ac_cpp_err"; then
14451 ac_header_preproc=yes
14452else
14453 echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 ac_header_preproc=no
14457fi
14458
14459rm -f conftest.err conftest.$ac_ext
14460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461echo "${ECHO_T}$ac_header_preproc" >&6; }
14462
14463# So? What about this header?
14464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465 yes:no: )
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470 ac_header_preproc=yes
14471 ;;
14472 no:yes:* )
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485 ( cat <<\_ASBOX
14486## ------------------------------ ##
14487## Report this to bugs@yourdomain ##
14488## ------------------------------ ##
14489_ASBOX
14490 ) | sed "s/^/$as_me: WARNING: /" >&2
14491 ;;
14492esac
14493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 eval "$as_ac_Header=\$ac_header_preproc"
14499fi
14500ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502echo "${ECHO_T}$ac_res" >&6; }
14503
14504fi
14505if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508_ACEOF
14509
14510fi
14511
14512done
14513
14514
14515
14516for ac_header in utime.h windows.h
14517do
14518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524fi
14525ac_res=`eval echo '${'$as_ac_Header'}'`
14526 { echo "$as_me:$LINENO: result: $ac_res" >&5
14527echo "${ECHO_T}$ac_res" >&6; }
14528else
14529 # Is the header compilable?
14530{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14532cat >conftest.$ac_ext <<_ACEOF
14533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h. */
14538$ac_includes_default
14539#include <$ac_header>
14540_ACEOF
14541rm -f conftest.$ac_objext
14542if { (ac_try="$ac_compile"
14543case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_compile") 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest.$ac_objext'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569esac
14570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_header_compiler=yes
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580 ac_header_compiler=no
14581fi
14582
14583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14585echo "${ECHO_T}$ac_header_compiler" >&6; }
14586
14587# Is the header present?
14588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14590cat >conftest.$ac_ext <<_ACEOF
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596#include <$ac_header>
14597_ACEOF
14598if { (ac_try="$ac_cpp conftest.$ac_ext"
14599case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602esac
14603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } >/dev/null; then
14611 if test -s conftest.err; then
14612 ac_cpp_err=$ac_c_preproc_warn_flag
14613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14614 else
14615 ac_cpp_err=
14616 fi
14617else
14618 ac_cpp_err=yes
14619fi
14620if test -z "$ac_cpp_err"; then
14621 ac_header_preproc=yes
14622else
14623 echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ac_header_preproc=no
14627fi
14628
14629rm -f conftest.err conftest.$ac_ext
14630{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14631echo "${ECHO_T}$ac_header_preproc" >&6; }
14632
14633# So? What about this header?
14634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14635 yes:no: )
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14640 ac_header_preproc=yes
14641 ;;
14642 no:yes:* )
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14646echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14650echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14655 ( cat <<\_ASBOX
14656## ------------------------------ ##
14657## Report this to bugs@yourdomain ##
14658## ------------------------------ ##
14659_ASBOX
14660 ) | sed "s/^/$as_me: WARNING: /" >&2
14661 ;;
14662esac
14663{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667else
14668 eval "$as_ac_Header=\$ac_header_preproc"
14669fi
14670ac_res=`eval echo '${'$as_ac_Header'}'`
14671 { echo "$as_me:$LINENO: result: $ac_res" >&5
14672echo "${ECHO_T}$ac_res" >&6; }
14673
14674fi
14675if test `eval echo '${'$as_ac_Header'}'` = yes; then
14676 cat >>confdefs.h <<_ACEOF
14677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14678_ACEOF
14679
14680fi
14681
14682done
14683
14684
14685
14686
14687
14688
14689for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14690do
14691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697fi
14698ac_res=`eval echo '${'$as_ac_Header'}'`
14699 { echo "$as_me:$LINENO: result: $ac_res" >&5
14700echo "${ECHO_T}$ac_res" >&6; }
14701else
14702 # Is the header compilable?
14703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14705cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712#include <$ac_header>
14713_ACEOF
14714rm -f conftest.$ac_objext
14715if { (ac_try="$ac_compile"
14716case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719esac
14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_compile") 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732esac
14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_try") 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_header_compiler=yes
14749else
14750 echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_header_compiler=no
14754fi
14755
14756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14758echo "${ECHO_T}$ac_header_compiler" >&6; }
14759
14760# Is the header present?
14761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14763cat >conftest.$ac_ext <<_ACEOF
14764/* confdefs.h. */
14765_ACEOF
14766cat confdefs.h >>conftest.$ac_ext
14767cat >>conftest.$ac_ext <<_ACEOF
14768/* end confdefs.h. */
14769#include <$ac_header>
14770_ACEOF
14771if { (ac_try="$ac_cpp conftest.$ac_ext"
14772case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775esac
14776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } >/dev/null; then
14784 if test -s conftest.err; then
14785 ac_cpp_err=$ac_c_preproc_warn_flag
14786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14787 else
14788 ac_cpp_err=
14789 fi
14790else
14791 ac_cpp_err=yes
14792fi
14793if test -z "$ac_cpp_err"; then
14794 ac_header_preproc=yes
14795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ac_header_preproc=no
14800fi
14801
14802rm -f conftest.err conftest.$ac_ext
14803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804echo "${ECHO_T}$ac_header_preproc" >&6; }
14805
14806# So? What about this header?
14807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14808 yes:no: )
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14813 ac_header_preproc=yes
14814 ;;
14815 no:yes:* )
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14828 ( cat <<\_ASBOX
14829## ------------------------------ ##
14830## Report this to bugs@yourdomain ##
14831## ------------------------------ ##
14832_ASBOX
14833 ) | sed "s/^/$as_me: WARNING: /" >&2
14834 ;;
14835esac
14836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840else
14841 eval "$as_ac_Header=\$ac_header_preproc"
14842fi
14843ac_res=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845echo "${ECHO_T}$ac_res" >&6; }
14846
14847fi
14848if test `eval echo '${'$as_ac_Header'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14851_ACEOF
14852
14853fi
14854
14855done
14856
14857
14858
14859
14860
14861for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14862do
14863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14869fi
14870ac_res=`eval echo '${'$as_ac_Header'}'`
14871 { echo "$as_me:$LINENO: result: $ac_res" >&5
14872echo "${ECHO_T}$ac_res" >&6; }
14873else
14874 # Is the header compilable?
14875{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14877cat >conftest.$ac_ext <<_ACEOF
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
14882/* end confdefs.h. */
14883$ac_includes_default
14884#include <$ac_header>
14885_ACEOF
14886rm -f conftest.$ac_objext
14887if { (ac_try="$ac_compile"
14888case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_compile") 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } &&
14900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14901 { (case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904esac
14905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_try") 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914esac
14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_header_compiler=yes
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 ac_header_compiler=no
14926fi
14927
14928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930echo "${ECHO_T}$ac_header_compiler" >&6; }
14931
14932# Is the header present?
14933{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14935cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941#include <$ac_header>
14942_ACEOF
14943if { (ac_try="$ac_cpp conftest.$ac_ext"
14944case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null; then
14956 if test -s conftest.err; then
14957 ac_cpp_err=$ac_c_preproc_warn_flag
14958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14959 else
14960 ac_cpp_err=
14961 fi
14962else
14963 ac_cpp_err=yes
14964fi
14965if test -z "$ac_cpp_err"; then
14966 ac_header_preproc=yes
14967else
14968 echo "$as_me: failed program was:" >&5
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_header_preproc=no
14972fi
14973
14974rm -f conftest.err conftest.$ac_ext
14975{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14976echo "${ECHO_T}$ac_header_preproc" >&6; }
14977
14978# So? What about this header?
14979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14980 yes:no: )
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14985 ac_header_preproc=yes
14986 ;;
14987 no:yes:* )
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15000 ( cat <<\_ASBOX
15001## ------------------------------ ##
15002## Report this to bugs@yourdomain ##
15003## ------------------------------ ##
15004_ASBOX
15005 ) | sed "s/^/$as_me: WARNING: /" >&2
15006 ;;
15007esac
15008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012else
15013 eval "$as_ac_Header=\$ac_header_preproc"
15014fi
15015ac_res=`eval echo '${'$as_ac_Header'}'`
15016 { echo "$as_me:$LINENO: result: $ac_res" >&5
15017echo "${ECHO_T}$ac_res" >&6; }
15018
15019fi
15020if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15023_ACEOF
15024
15025fi
15026
15027done
15028
15029
15030for ac_header in valgrind/valgrind.h
15031do
15032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038fi
15039ac_res=`eval echo '${'$as_ac_Header'}'`
15040 { echo "$as_me:$LINENO: result: $ac_res" >&5
15041echo "${ECHO_T}$ac_res" >&6; }
15042else
15043 # Is the header compilable?
15044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15046cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
15051/* end confdefs.h. */
15052$ac_includes_default
15053#include <$ac_header>
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (ac_try="$ac_compile"
15057case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_header_compiler=yes
15090else
15091 echo "$as_me: failed program was:" >&5
15092sed 's/^/| /' conftest.$ac_ext >&5
15093
15094 ac_header_compiler=no
15095fi
15096
15097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15099echo "${ECHO_T}$ac_header_compiler" >&6; }
15100
15101# Is the header present?
15102{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15104cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
15110#include <$ac_header>
15111_ACEOF
15112if { (ac_try="$ac_cpp conftest.$ac_ext"
15113case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } >/dev/null; then
15125 if test -s conftest.err; then
15126 ac_cpp_err=$ac_c_preproc_warn_flag
15127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15128 else
15129 ac_cpp_err=
15130 fi
15131else
15132 ac_cpp_err=yes
15133fi
15134if test -z "$ac_cpp_err"; then
15135 ac_header_preproc=yes
15136else
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_header_preproc=no
15141fi
15142
15143rm -f conftest.err conftest.$ac_ext
15144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15145echo "${ECHO_T}$ac_header_preproc" >&6; }
15146
15147# So? What about this header?
15148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149 yes:no: )
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15154 ac_header_preproc=yes
15155 ;;
15156 no:yes:* )
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15169 ( cat <<\_ASBOX
15170## ------------------------------ ##
15171## Report this to bugs@yourdomain ##
15172## ------------------------------ ##
15173_ASBOX
15174 ) | sed "s/^/$as_me: WARNING: /" >&2
15175 ;;
15176esac
15177{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181else
15182 eval "$as_ac_Header=\$ac_header_preproc"
15183fi
15184ac_res=`eval echo '${'$as_ac_Header'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186echo "${ECHO_T}$ac_res" >&6; }
15187
15188fi
15189if test `eval echo '${'$as_ac_Header'}'` = yes; then
15190 cat >>confdefs.h <<_ACEOF
15191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15192_ACEOF
15193
15194fi
15195
15196done
15197
15198
15199for ac_header in fenv.h
15200do
15201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207fi
15208ac_res=`eval echo '${'$as_ac_Header'}'`
15209 { echo "$as_me:$LINENO: result: $ac_res" >&5
15210echo "${ECHO_T}$ac_res" >&6; }
15211else
15212 # Is the header compilable?
15213{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15215cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
15221$ac_includes_default
15222#include <$ac_header>
15223_ACEOF
15224rm -f conftest.$ac_objext
15225if { (ac_try="$ac_compile"
15226case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15232 ac_status=$?
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242esac
15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_try") 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_header_compiler=yes
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ac_header_compiler=no
15264fi
15265
15266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15268echo "${ECHO_T}$ac_header_compiler" >&6; }
15269
15270# Is the header present?
15271{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15272echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15273cat >conftest.$ac_ext <<_ACEOF
15274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h. */
15279#include <$ac_header>
15280_ACEOF
15281if { (ac_try="$ac_cpp conftest.$ac_ext"
15282case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285esac
15286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } >/dev/null; then
15294 if test -s conftest.err; then
15295 ac_cpp_err=$ac_c_preproc_warn_flag
15296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15297 else
15298 ac_cpp_err=
15299 fi
15300else
15301 ac_cpp_err=yes
15302fi
15303if test -z "$ac_cpp_err"; then
15304 ac_header_preproc=yes
15305else
15306 echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_header_preproc=no
15310fi
15311
15312rm -f conftest.err conftest.$ac_ext
15313{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15314echo "${ECHO_T}$ac_header_preproc" >&6; }
15315
15316# So? What about this header?
15317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15318 yes:no: )
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15323 ac_header_preproc=yes
15324 ;;
15325 no:yes:* )
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15338 ( cat <<\_ASBOX
15339## ------------------------------ ##
15340## Report this to bugs@yourdomain ##
15341## ------------------------------ ##
15342_ASBOX
15343 ) | sed "s/^/$as_me: WARNING: /" >&2
15344 ;;
15345esac
15346{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 eval "$as_ac_Header=\$ac_header_preproc"
15352fi
15353ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355echo "${ECHO_T}$ac_res" >&6; }
15356
15357fi
15358if test `eval echo '${'$as_ac_Header'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15361_ACEOF
15362
15363fi
15364
15365done
15366
15367if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15368
15369for ac_header in pthread.h
15370do
15371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377fi
15378ac_res=`eval echo '${'$as_ac_Header'}'`
15379 { echo "$as_me:$LINENO: result: $ac_res" >&5
15380echo "${ECHO_T}$ac_res" >&6; }
15381else
15382 # Is the header compilable?
15383{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15385cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h. */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h. */
15391$ac_includes_default
15392#include <$ac_header>
15393_ACEOF
15394rm -f conftest.$ac_objext
15395if { (ac_try="$ac_compile"
15396case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399esac
15400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_compile") 2>conftest.er1
15402 ac_status=$?
15403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15409 { (case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412esac
15413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_try") 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest.$ac_objext'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_header_compiler=yes
15429else
15430 echo "$as_me: failed program was:" >&5
15431sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 ac_header_compiler=no
15434fi
15435
15436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438echo "${ECHO_T}$ac_header_compiler" >&6; }
15439
15440# Is the header present?
15441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15443cat >conftest.$ac_ext <<_ACEOF
15444/* confdefs.h. */
15445_ACEOF
15446cat confdefs.h >>conftest.$ac_ext
15447cat >>conftest.$ac_ext <<_ACEOF
15448/* end confdefs.h. */
15449#include <$ac_header>
15450_ACEOF
15451if { (ac_try="$ac_cpp conftest.$ac_ext"
15452case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } >/dev/null; then
15464 if test -s conftest.err; then
15465 ac_cpp_err=$ac_c_preproc_warn_flag
15466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15467 else
15468 ac_cpp_err=
15469 fi
15470else
15471 ac_cpp_err=yes
15472fi
15473if test -z "$ac_cpp_err"; then
15474 ac_header_preproc=yes
15475else
15476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_header_preproc=no
15480fi
15481
15482rm -f conftest.err conftest.$ac_ext
15483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15484echo "${ECHO_T}$ac_header_preproc" >&6; }
15485
15486# So? What about this header?
15487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15488 yes:no: )
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15493 ac_header_preproc=yes
15494 ;;
15495 no:yes:* )
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15508 ( cat <<\_ASBOX
15509## ------------------------------ ##
15510## Report this to bugs@yourdomain ##
15511## ------------------------------ ##
15512_ASBOX
15513 ) | sed "s/^/$as_me: WARNING: /" >&2
15514 ;;
15515esac
15516{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520else
15521 eval "$as_ac_Header=\$ac_header_preproc"
15522fi
15523ac_res=`eval echo '${'$as_ac_Header'}'`
15524 { echo "$as_me:$LINENO: result: $ac_res" >&5
15525echo "${ECHO_T}$ac_res" >&6; }
15526
15527fi
15528if test `eval echo '${'$as_ac_Header'}'` = yes; then
15529 cat >>confdefs.h <<_ACEOF
15530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531_ACEOF
15532 HAVE_PTHREAD=1
15533
15534else
15535 HAVE_PTHREAD=0
15536
15537fi
15538
15539done
15540
15541else
15542 HAVE_PTHREAD=0
15543
15544fi
15545
15546if test "$llvm_cv_enable_libffi" = "yes" ; then
15547
15548
15549for ac_header in ffi.h ffi/ffi.h
15550do
15551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557fi
15558ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560echo "${ECHO_T}$ac_res" >&6; }
15561else
15562 # Is the header compilable?
15563{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565cat >conftest.$ac_ext <<_ACEOF
15566/* confdefs.h. */
15567_ACEOF
15568cat confdefs.h >>conftest.$ac_ext
15569cat >>conftest.$ac_ext <<_ACEOF
15570/* end confdefs.h. */
15571$ac_includes_default
15572#include <$ac_header>
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (ac_try="$ac_compile"
15576case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592esac
15593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15609else
15610 echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_header_compiler=no
15614fi
15615
15616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618echo "${ECHO_T}$ac_header_compiler" >&6; }
15619
15620# Is the header present?
15621{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623cat >conftest.$ac_ext <<_ACEOF
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629#include <$ac_header>
15630_ACEOF
15631if { (ac_try="$ac_cpp conftest.$ac_ext"
15632case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } >/dev/null; then
15644 if test -s conftest.err; then
15645 ac_cpp_err=$ac_c_preproc_warn_flag
15646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647 else
15648 ac_cpp_err=
15649 fi
15650else
15651 ac_cpp_err=yes
15652fi
15653if test -z "$ac_cpp_err"; then
15654 ac_header_preproc=yes
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 ac_header_preproc=no
15660fi
15661
15662rm -f conftest.err conftest.$ac_ext
15663{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664echo "${ECHO_T}$ac_header_preproc" >&6; }
15665
15666# So? What about this header?
15667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668 yes:no: )
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15674 ;;
15675 no:yes:* )
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15688 ( cat <<\_ASBOX
15689## ------------------------------ ##
15690## Report this to bugs@yourdomain ##
15691## ------------------------------ ##
15692_ASBOX
15693 ) | sed "s/^/$as_me: WARNING: /" >&2
15694 ;;
15695esac
15696{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701 eval "$as_ac_Header=\$ac_header_preproc"
15702fi
15703ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705echo "${ECHO_T}$ac_res" >&6; }
15706
15707fi
15708if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15711_ACEOF
15712
15713fi
15714
15715done
15716
15717fi
15718
15719
15720for ac_header in CrashReporterClient.h
15721do
15722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728fi
15729ac_res=`eval echo '${'$as_ac_Header'}'`
15730 { echo "$as_me:$LINENO: result: $ac_res" >&5
15731echo "${ECHO_T}$ac_res" >&6; }
15732else
15733 # Is the header compilable?
15734{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15736cat >conftest.$ac_ext <<_ACEOF
15737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
15742$ac_includes_default
15743#include <$ac_header>
15744_ACEOF
15745rm -f conftest.$ac_objext
15746if { (ac_try="$ac_compile"
15747case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_compile") 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773esac
15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15780else
15781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 ac_header_compiler=no
15785fi
15786
15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789echo "${ECHO_T}$ac_header_compiler" >&6; }
15790
15791# Is the header present?
15792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15794cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800#include <$ac_header>
15801_ACEOF
15802if { (ac_try="$ac_cpp conftest.$ac_ext"
15803case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806esac
15807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } >/dev/null; then
15815 if test -s conftest.err; then
15816 ac_cpp_err=$ac_c_preproc_warn_flag
15817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15818 else
15819 ac_cpp_err=
15820 fi
15821else
15822 ac_cpp_err=yes
15823fi
15824if test -z "$ac_cpp_err"; then
15825 ac_header_preproc=yes
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 ac_header_preproc=no
15831fi
15832
15833rm -f conftest.err conftest.$ac_ext
15834{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15835echo "${ECHO_T}$ac_header_preproc" >&6; }
15836
15837# So? What about this header?
15838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15839 yes:no: )
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15844 ac_header_preproc=yes
15845 ;;
15846 no:yes:* )
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15859 ( cat <<\_ASBOX
15860## ------------------------------ ##
15861## Report this to bugs@yourdomain ##
15862## ------------------------------ ##
15863_ASBOX
15864 ) | sed "s/^/$as_me: WARNING: /" >&2
15865 ;;
15866esac
15867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871else
15872 eval "$as_ac_Header=\$ac_header_preproc"
15873fi
15874ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result: $ac_res" >&5
15876echo "${ECHO_T}$ac_res" >&6; }
15877
15878fi
15879if test `eval echo '${'$as_ac_Header'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15882_ACEOF
15883
15884fi
15885
15886done
15887
15888
15889{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15890echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15891cat >conftest.$ac_ext <<_ACEOF
15892/* confdefs.h. */
15893_ACEOF
15894cat confdefs.h >>conftest.$ac_ext
15895cat >>conftest.$ac_ext <<_ACEOF
15896/* end confdefs.h. */
15897extern const char *__crashreporter_info__;
15898 int main() {
15899 __crashreporter_info__ = "test";
15900 return 0;
15901 }
15902
15903_ACEOF
15904rm -f conftest.$ac_objext conftest$ac_exeext
15905if { (ac_try="$ac_link"
15906case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922esac
15923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest$ac_exeext'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 { echo "$as_me:$LINENO: result: yes" >&5
15939echo "${ECHO_T}yes" >&6; }
15940
15941cat >>confdefs.h <<\_ACEOF
15942#define HAVE_CRASHREPORTER_INFO 1
15943_ACEOF
15944
15945else
15946 echo "$as_me: failed program was:" >&5
15947sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 { echo "$as_me:$LINENO: result: no" >&5
15950echo "${ECHO_T}no" >&6; }
15951
15952cat >>confdefs.h <<\_ACEOF
15953#define HAVE_CRASHREPORTER_INFO 0
15954_ACEOF
15955
15956fi
15957
15958rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960
15961
15962
15963
15964 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15965echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15966if test "${ac_cv_huge_val_sanity+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968else
15969
15970 ac_ext=cpp
15971ac_cpp='$CXXCPP $CPPFLAGS'
15972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15975
15976 ac_save_CXXFLAGS=$CXXFLAGS
Benjamin Kramer00171802012-05-05 15:02:39 +000015977 CXXFLAGS="$CXXFLAGS -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000015978 if test "$cross_compiling" = yes; then
15979 ac_cv_huge_val_sanity=yes
15980else
15981 cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987#include <math.h>
15988int
15989main ()
15990{
15991double x = HUGE_VAL; return x != x;
15992 ;
15993 return 0;
15994}
15995_ACEOF
15996rm -f conftest$ac_exeext
15997if { (ac_try="$ac_link"
15998case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001esac
16002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010esac
16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_cv_huge_val_sanity=yes
16017else
16018 echo "$as_me: program exited with status $ac_status" >&5
16019echo "$as_me: failed program was:" >&5
16020sed 's/^/| /' conftest.$ac_ext >&5
16021
16022( exit $ac_status )
16023ac_cv_huge_val_sanity=no
16024fi
16025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16026fi
16027
16028
16029 CXXFLAGS=$ac_save_CXXFLAGS
16030 ac_ext=c
16031ac_cpp='$CPP $CPPFLAGS'
16032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035
16036
16037fi
16038{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16039echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16040 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16041
16042
16043{ echo "$as_me:$LINENO: checking for pid_t" >&5
16044echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16045if test "${ac_cv_type_pid_t+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047else
16048 cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054$ac_includes_default
16055typedef pid_t ac__type_new_;
16056int
16057main ()
16058{
16059if ((ac__type_new_ *) 0)
16060 return 0;
16061if (sizeof (ac__type_new_))
16062 return 0;
16063 ;
16064 return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext
16068if { (ac_try="$ac_compile"
16069case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072esac
16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085esac
16086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095esac
16096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_type_pid_t=yes
16102else
16103 echo "$as_me: failed program was:" >&5
16104sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 ac_cv_type_pid_t=no
16107fi
16108
16109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110fi
16111{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16112echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16113if test $ac_cv_type_pid_t = yes; then
16114 :
16115else
16116
16117cat >>confdefs.h <<_ACEOF
16118#define pid_t int
16119_ACEOF
16120
16121fi
16122
16123{ echo "$as_me:$LINENO: checking for size_t" >&5
16124echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16125if test "${ac_cv_type_size_t+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127else
16128 cat >conftest.$ac_ext <<_ACEOF
16129/* confdefs.h. */
16130_ACEOF
16131cat confdefs.h >>conftest.$ac_ext
16132cat >>conftest.$ac_ext <<_ACEOF
16133/* end confdefs.h. */
16134$ac_includes_default
16135typedef size_t ac__type_new_;
16136int
16137main ()
16138{
16139if ((ac__type_new_ *) 0)
16140 return 0;
16141if (sizeof (ac__type_new_))
16142 return 0;
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (ac_try="$ac_compile"
16149case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16165esac
16166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_try") 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_type_size_t=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 ac_cv_type_size_t=no
16187fi
16188
16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190fi
16191{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16192echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16193if test $ac_cv_type_size_t = yes; then
16194 :
16195else
16196
16197cat >>confdefs.h <<_ACEOF
16198#define size_t unsigned int
16199_ACEOF
16200
16201fi
16202
16203
16204cat >>confdefs.h <<_ACEOF
16205#define RETSIGTYPE void
16206_ACEOF
16207
16208{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16209echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16210if test "${ac_cv_struct_tm+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212else
16213 cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219#include <sys/types.h>
16220#include <time.h>
16221
16222int
16223main ()
16224{
16225struct tm *tp; tp->tm_sec;
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (ac_try="$ac_compile"
16232case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_compile") 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248esac
16249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_try") 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_try") 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_struct_tm=time.h
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ac_cv_struct_tm=sys/time.h
16270fi
16271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273fi
16274{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16275echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16276if test $ac_cv_struct_tm = sys/time.h; then
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define TM_IN_SYS_TIME 1
16280_ACEOF
16281
16282fi
16283
16284{ echo "$as_me:$LINENO: checking for int64_t" >&5
16285echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16286if test "${ac_cv_type_int64_t+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288else
16289 cat >conftest.$ac_ext <<_ACEOF
16290/* confdefs.h. */
16291_ACEOF
16292cat confdefs.h >>conftest.$ac_ext
16293cat >>conftest.$ac_ext <<_ACEOF
16294/* end confdefs.h. */
16295$ac_includes_default
16296typedef int64_t ac__type_new_;
16297int
16298main ()
16299{
16300if ((ac__type_new_ *) 0)
16301 return 0;
16302if (sizeof (ac__type_new_))
16303 return 0;
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308rm -f conftest.$ac_objext
16309if { (ac_try="$ac_compile"
16310case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336esac
16337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_type_int64_t=yes
16343else
16344 echo "$as_me: failed program was:" >&5
16345sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 ac_cv_type_int64_t=no
16348fi
16349
16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
16352{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16353echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16354if test $ac_cv_type_int64_t = yes; then
16355
16356cat >>confdefs.h <<_ACEOF
16357#define HAVE_INT64_T 1
16358_ACEOF
16359
16360
16361else
16362 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16363echo "$as_me: error: Type int64_t required but not found" >&2;}
16364 { (exit 1); exit 1; }; }
16365fi
16366
16367{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16368echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16369if test "${ac_cv_type_uint64_t+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371else
16372 cat >conftest.$ac_ext <<_ACEOF
16373/* confdefs.h. */
16374_ACEOF
16375cat confdefs.h >>conftest.$ac_ext
16376cat >>conftest.$ac_ext <<_ACEOF
16377/* end confdefs.h. */
16378$ac_includes_default
16379typedef uint64_t ac__type_new_;
16380int
16381main ()
16382{
16383if ((ac__type_new_ *) 0)
16384 return 0;
16385if (sizeof (ac__type_new_))
16386 return 0;
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (ac_try="$ac_compile"
16393case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_type_uint64_t=yes
16426else
16427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_cv_type_uint64_t=no
16431fi
16432
16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434fi
16435{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16436echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16437if test $ac_cv_type_uint64_t = yes; then
16438
16439cat >>confdefs.h <<_ACEOF
16440#define HAVE_UINT64_T 1
16441_ACEOF
16442
16443
16444else
16445 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16446echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16447if test "${ac_cv_type_u_int64_t+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449else
16450 cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456$ac_includes_default
16457typedef u_int64_t ac__type_new_;
16458int
16459main ()
16460{
16461if ((ac__type_new_ *) 0)
16462 return 0;
16463if (sizeof (ac__type_new_))
16464 return 0;
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (ac_try="$ac_compile"
16471case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497esac
16498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_type_u_int64_t=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_cv_type_u_int64_t=no
16509fi
16510
16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512fi
16513{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16514echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16515if test $ac_cv_type_u_int64_t = yes; then
16516
16517cat >>confdefs.h <<_ACEOF
16518#define HAVE_U_INT64_T 1
16519_ACEOF
16520
16521
16522else
16523 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16524echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16525 { (exit 1); exit 1; }; }
16526fi
16527
16528fi
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16540do
16541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547 cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16555#define $ac_func innocuous_$ac_func
16556
16557/* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below.
16559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560 <limits.h> exists even on freestanding compilers. */
16561
16562#ifdef __STDC__
16563# include <limits.h>
16564#else
16565# include <assert.h>
16566#endif
16567
16568#undef $ac_func
16569
16570/* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16573#ifdef __cplusplus
16574extern "C"
16575#endif
16576char $ac_func ();
16577/* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580#if defined __stub_$ac_func || defined __stub___$ac_func
16581choke me
16582#endif
16583
16584int
16585main ()
16586{
16587return $ac_func ();
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext conftest$ac_exeext
16593if { (ac_try="$ac_link"
16594case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 eval "$as_ac_var=yes"
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 eval "$as_ac_var=no"
16632fi
16633
16634rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636fi
16637ac_res=`eval echo '${'$as_ac_var'}'`
16638 { echo "$as_me:$LINENO: result: $ac_res" >&5
16639echo "${ECHO_T}$ac_res" >&6; }
16640if test `eval echo '${'$as_ac_var'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16643_ACEOF
16644
16645fi
16646done
16647
16648
16649
16650
16651
16652for ac_func in powf fmodf strtof round
16653do
16654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659else
16660 cat >conftest.$ac_ext <<_ACEOF
16661/* confdefs.h. */
16662_ACEOF
16663cat confdefs.h >>conftest.$ac_ext
16664cat >>conftest.$ac_ext <<_ACEOF
16665/* end confdefs.h. */
16666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16668#define $ac_func innocuous_$ac_func
16669
16670/* System header to define __stub macros and hopefully few prototypes,
16671 which can conflict with char $ac_func (); below.
16672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16673 <limits.h> exists even on freestanding compilers. */
16674
16675#ifdef __STDC__
16676# include <limits.h>
16677#else
16678# include <assert.h>
16679#endif
16680
16681#undef $ac_func
16682
16683/* Override any GCC internal prototype to avoid an error.
16684 Use char because int might match the return type of a GCC
16685 builtin and then its argument prototype would still apply. */
16686#ifdef __cplusplus
16687extern "C"
16688#endif
16689char $ac_func ();
16690/* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693#if defined __stub_$ac_func || defined __stub___$ac_func
16694choke me
16695#endif
16696
16697int
16698main ()
16699{
16700return $ac_func ();
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext conftest$ac_exeext
16706if { (ac_try="$ac_link"
16707case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_link") 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest$ac_exeext'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 eval "$as_ac_var=yes"
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 eval "$as_ac_var=no"
16745fi
16746
16747rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749fi
16750ac_res=`eval echo '${'$as_ac_var'}'`
16751 { echo "$as_me:$LINENO: result: $ac_res" >&5
16752echo "${ECHO_T}$ac_res" >&6; }
16753if test `eval echo '${'$as_ac_var'}'` = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16756_ACEOF
16757
16758fi
16759done
16760
16761
16762
16763
16764
16765
16766for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16767do
16768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773else
16774 cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782#define $ac_func innocuous_$ac_func
16783
16784/* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char $ac_func (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16788
16789#ifdef __STDC__
16790# include <limits.h>
16791#else
16792# include <assert.h>
16793#endif
16794
16795#undef $ac_func
16796
16797/* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16800#ifdef __cplusplus
16801extern "C"
16802#endif
16803char $ac_func ();
16804/* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807#if defined __stub_$ac_func || defined __stub___$ac_func
16808choke me
16809#endif
16810
16811int
16812main ()
16813{
16814return $ac_func ();
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819rm -f conftest.$ac_objext conftest$ac_exeext
16820if { (ac_try="$ac_link"
16821case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 eval "$as_ac_var=yes"
16854else
16855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858 eval "$as_ac_var=no"
16859fi
16860
16861rm -f core conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16863fi
16864ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866echo "${ECHO_T}$ac_res" >&6; }
16867if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870_ACEOF
16871
16872fi
16873done
16874
16875
16876
16877
16878for ac_func in isatty mkdtemp mkstemp
16879do
16880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894#define $ac_func innocuous_$ac_func
16895
16896/* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16900
16901#ifdef __STDC__
16902# include <limits.h>
16903#else
16904# include <assert.h>
16905#endif
16906
16907#undef $ac_func
16908
16909/* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16912#ifdef __cplusplus
16913extern "C"
16914#endif
16915char $ac_func ();
16916/* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919#if defined __stub_$ac_func || defined __stub___$ac_func
16920choke me
16921#endif
16922
16923int
16924main ()
16925{
16926return $ac_func ();
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (ac_try="$ac_link"
16933case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 eval "$as_ac_var=yes"
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 eval "$as_ac_var=no"
16971fi
16972
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975fi
16976ac_res=`eval echo '${'$as_ac_var'}'`
16977 { echo "$as_me:$LINENO: result: $ac_res" >&5
16978echo "${ECHO_T}$ac_res" >&6; }
16979if test `eval echo '${'$as_ac_var'}'` = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982_ACEOF
16983
16984fi
16985done
16986
16987
16988
16989
16990
16991
16992
16993for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16994do
16995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001 cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17009#define $ac_func innocuous_$ac_func
17010
17011/* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func (); below.
17013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17014 <limits.h> exists even on freestanding compilers. */
17015
17016#ifdef __STDC__
17017# include <limits.h>
17018#else
17019# include <assert.h>
17020#endif
17021
17022#undef $ac_func
17023
17024/* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17027#ifdef __cplusplus
17028extern "C"
17029#endif
17030char $ac_func ();
17031/* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034#if defined __stub_$ac_func || defined __stub___$ac_func
17035choke me
17036#endif
17037
17038int
17039main ()
17040{
17041return $ac_func ();
17042 ;
17043 return 0;
17044}
17045_ACEOF
17046rm -f conftest.$ac_objext conftest$ac_exeext
17047if { (ac_try="$ac_link"
17048case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_link") 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064esac
17065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 eval "$as_ac_var=yes"
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 eval "$as_ac_var=no"
17086fi
17087
17088rm -f core conftest.err conftest.$ac_objext \
17089 conftest$ac_exeext conftest.$ac_ext
17090fi
17091ac_res=`eval echo '${'$as_ac_var'}'`
17092 { echo "$as_me:$LINENO: result: $ac_res" >&5
17093echo "${ECHO_T}$ac_res" >&6; }
17094if test `eval echo '${'$as_ac_var'}'` = yes; then
17095 cat >>confdefs.h <<_ACEOF
17096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17097_ACEOF
17098
17099fi
17100done
17101
17102
17103
17104
17105for ac_func in strerror strerror_r setenv
17106do
17107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112else
17113 cat >conftest.$ac_ext <<_ACEOF
17114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
17119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121#define $ac_func innocuous_$ac_func
17122
17123/* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17127
17128#ifdef __STDC__
17129# include <limits.h>
17130#else
17131# include <assert.h>
17132#endif
17133
17134#undef $ac_func
17135
17136/* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
17139#ifdef __cplusplus
17140extern "C"
17141#endif
17142char $ac_func ();
17143/* The GNU C library defines this for functions which it implements
17144 to always fail with ENOSYS. Some functions are actually named
17145 something starting with __ and the normal name is an alias. */
17146#if defined __stub_$ac_func || defined __stub___$ac_func
17147choke me
17148#endif
17149
17150int
17151main ()
17152{
17153return $ac_func ();
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
17159if { (ac_try="$ac_link"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 eval "$as_ac_var=yes"
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 eval "$as_ac_var=no"
17198fi
17199
17200rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202fi
17203ac_res=`eval echo '${'$as_ac_var'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205echo "${ECHO_T}$ac_res" >&6; }
17206if test `eval echo '${'$as_ac_var'}'` = yes; then
17207 cat >>confdefs.h <<_ACEOF
17208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17209_ACEOF
17210
17211fi
17212done
17213
17214
17215
17216
17217
17218for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17219do
17220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234#define $ac_func innocuous_$ac_func
17235
17236/* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17240
17241#ifdef __STDC__
17242# include <limits.h>
17243#else
17244# include <assert.h>
17245#endif
17246
17247#undef $ac_func
17248
17249/* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17252#ifdef __cplusplus
17253extern "C"
17254#endif
17255char $ac_func ();
17256/* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259#if defined __stub_$ac_func || defined __stub___$ac_func
17260choke me
17261#endif
17262
17263int
17264main ()
17265{
17266return $ac_func ();
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (ac_try="$ac_link"
17273case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289esac
17290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17299esac
17300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 eval "$as_ac_var=no"
17311fi
17312
17313rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17315fi
17316ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318echo "${ECHO_T}$ac_res" >&6; }
17319if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322_ACEOF
17323
17324fi
17325done
17326
17327
17328
17329
17330
17331
17332for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17333do
17334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339else
17340 cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348#define $ac_func innocuous_$ac_func
17349
17350/* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17354
17355#ifdef __STDC__
17356# include <limits.h>
17357#else
17358# include <assert.h>
17359#endif
17360
17361#undef $ac_func
17362
17363/* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17366#ifdef __cplusplus
17367extern "C"
17368#endif
17369char $ac_func ();
17370/* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373#if defined __stub_$ac_func || defined __stub___$ac_func
17374choke me
17375#endif
17376
17377int
17378main ()
17379{
17380return $ac_func ();
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext conftest$ac_exeext
17386if { (ac_try="$ac_link"
17387case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413esac
17414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 eval "$as_ac_var=yes"
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 eval "$as_ac_var=no"
17425fi
17426
17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429fi
17430ac_res=`eval echo '${'$as_ac_var'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432echo "${ECHO_T}$ac_res" >&6; }
17433if test `eval echo '${'$as_ac_var'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436_ACEOF
17437
17438fi
17439done
17440
17441{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17442echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17443if test "${llvm_cv_c_printf_a+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 ac_ext=c
17447ac_cpp='$CPP $CPPFLAGS'
17448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450ac_compiler_gnu=$ac_cv_c_compiler_gnu
17451
17452 if test "$cross_compiling" = yes; then
17453 llvmac_cv_c_printf_a=no
17454else
17455 cat >conftest.$ac_ext <<_ACEOF
17456
17457 /* confdefs.h. */
17458_ACEOF
17459cat confdefs.h >>conftest.$ac_ext
17460cat >>conftest.$ac_ext <<_ACEOF
17461/* end confdefs.h. */
17462
17463#include <stdio.h>
17464#include <stdlib.h>
17465
17466int
17467main ()
17468{
17469
17470volatile double A, B;
17471char Buffer[100];
17472A = 1;
17473A /= 10.0;
17474sprintf(Buffer, "%a", A);
17475B = atof(Buffer);
17476if (A != B)
17477 return (1);
17478if (A != 0x1.999999999999ap-4)
17479 return (1);
17480return (0);
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest$ac_exeext
17486if { (ac_try="$ac_link"
17487case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 llvm_cv_c_printf_a=yes
17506else
17507 echo "$as_me: program exited with status $ac_status" >&5
17508echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511( exit $ac_status )
17512llvmac_cv_c_printf_a=no
17513fi
17514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17515fi
17516
17517
17518 ac_ext=c
17519ac_cpp='$CPP $CPPFLAGS'
17520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522ac_compiler_gnu=$ac_cv_c_compiler_gnu
17523
17524fi
17525{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17526echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17527 if test "$llvm_cv_c_printf_a" = "yes"; then
17528
17529cat >>confdefs.h <<\_ACEOF
17530#define HAVE_PRINTF_A 1
17531_ACEOF
17532
17533 fi
17534
17535
17536{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17537echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17538if test "${ac_cv_func_rand48+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 ac_ext=cpp
17542ac_cpp='$CXXCPP $CPPFLAGS'
17543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17546
17547 cat >conftest.$ac_ext <<_ACEOF
17548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
17553#include <stdlib.h>
17554int
17555main ()
17556{
17557srand48(0);lrand48();drand48();
17558 ;
17559 return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (ac_try="$ac_compile"
17564case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567esac
17568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_compile") 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17577 { (case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580esac
17581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_try") 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_try") 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_func_rand48=yes
17597else
17598 echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 ac_cv_func_rand48=no
17602fi
17603
17604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 ac_ext=c
17606ac_cpp='$CPP $CPPFLAGS'
17607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609ac_compiler_gnu=$ac_cv_c_compiler_gnu
17610
17611fi
17612{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17613echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17614
17615if test "$ac_cv_func_rand48" = "yes" ; then
17616
17617cat >>confdefs.h <<\_ACEOF
17618#define HAVE_RAND48 1
17619_ACEOF
17620
17621fi
17622
17623
17624{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17625echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17626if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629 cat >conftest.$ac_ext <<_ACEOF
17630/* confdefs.h. */
17631_ACEOF
17632cat confdefs.h >>conftest.$ac_ext
17633cat >>conftest.$ac_ext <<_ACEOF
17634/* end confdefs.h. */
17635$ac_includes_default
17636int
17637main ()
17638{
17639#ifndef strerror_s
17640 char *p = (char *) strerror_s;
17641 return !p;
17642#endif
17643
17644 ;
17645 return 0;
17646}
17647_ACEOF
17648rm -f conftest.$ac_objext
17649if { (ac_try="$ac_compile"
17650case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666esac
17667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_have_decl_strerror_s=yes
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 ac_cv_have_decl_strerror_s=no
17688fi
17689
17690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691fi
17692{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17693echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17694if test $ac_cv_have_decl_strerror_s = yes; then
17695
17696cat >>confdefs.h <<_ACEOF
17697#define HAVE_DECL_STRERROR_S 1
17698_ACEOF
17699
17700
17701else
17702 cat >>confdefs.h <<_ACEOF
17703#define HAVE_DECL_STRERROR_S 0
17704_ACEOF
17705
17706
17707fi
17708
17709
17710
17711if test "$llvm_cv_os_type" = "MingW" ; then
17712 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17713echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17714if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 ac_check_lib_save_LIBS=$LIBS
17718LIBS="-lgcc $LIBS"
17719cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725
17726/* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
17729#ifdef __cplusplus
17730extern "C"
17731#endif
17732char _alloca ();
17733int
17734main ()
17735{
17736return _alloca ();
17737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
17742if { (ac_try="$ac_link"
17743case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_link") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_lib_gcc__alloca=yes
17776else
17777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 ac_cv_lib_gcc__alloca=no
17781fi
17782
17783rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17788echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17789if test $ac_cv_lib_gcc__alloca = yes; then
17790
17791cat >>confdefs.h <<\_ACEOF
17792#define HAVE__ALLOCA 1
17793_ACEOF
17794
17795fi
17796
17797 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17798echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17799if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 ac_check_lib_save_LIBS=$LIBS
17803LIBS="-lgcc $LIBS"
17804cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810
17811/* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814#ifdef __cplusplus
17815extern "C"
17816#endif
17817char __alloca ();
17818int
17819main ()
17820{
17821return __alloca ();
17822 ;
17823 return 0;
17824}
17825_ACEOF
17826rm -f conftest.$ac_objext conftest$ac_exeext
17827if { (ac_try="$ac_link"
17828case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831esac
17832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_link") 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17841 { (case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17844esac
17845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_try") 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_gcc___alloca=yes
17861else
17862 echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 ac_cv_lib_gcc___alloca=no
17866fi
17867
17868rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870LIBS=$ac_check_lib_save_LIBS
17871fi
17872{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17873echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17874if test $ac_cv_lib_gcc___alloca = yes; then
17875
17876cat >>confdefs.h <<\_ACEOF
17877#define HAVE___ALLOCA 1
17878_ACEOF
17879
17880fi
17881
17882 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17883echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17884if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886else
17887 ac_check_lib_save_LIBS=$LIBS
17888LIBS="-lgcc $LIBS"
17889cat >conftest.$ac_ext <<_ACEOF
17890/* confdefs.h. */
17891_ACEOF
17892cat confdefs.h >>conftest.$ac_ext
17893cat >>conftest.$ac_ext <<_ACEOF
17894/* end confdefs.h. */
17895
17896/* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17899#ifdef __cplusplus
17900extern "C"
17901#endif
17902char __chkstk ();
17903int
17904main ()
17905{
17906return __chkstk ();
17907 ;
17908 return 0;
17909}
17910_ACEOF
17911rm -f conftest.$ac_objext conftest$ac_exeext
17912if { (ac_try="$ac_link"
17913case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_try") 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 ac_cv_lib_gcc___chkstk=yes
17946else
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 ac_cv_lib_gcc___chkstk=no
17951fi
17952
17953rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955LIBS=$ac_check_lib_save_LIBS
17956fi
17957{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17958echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17959if test $ac_cv_lib_gcc___chkstk = yes; then
17960
17961cat >>confdefs.h <<\_ACEOF
17962#define HAVE___CHKSTK 1
17963_ACEOF
17964
17965fi
17966
17967 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17968echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17969if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972 ac_check_lib_save_LIBS=$LIBS
17973LIBS="-lgcc $LIBS"
17974cat >conftest.$ac_ext <<_ACEOF
17975/* confdefs.h. */
17976_ACEOF
17977cat confdefs.h >>conftest.$ac_ext
17978cat >>conftest.$ac_ext <<_ACEOF
17979/* end confdefs.h. */
17980
17981/* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984#ifdef __cplusplus
17985extern "C"
17986#endif
17987char ___chkstk ();
17988int
17989main ()
17990{
17991return ___chkstk ();
17992 ;
17993 return 0;
17994}
17995_ACEOF
17996rm -f conftest.$ac_objext conftest$ac_exeext
17997if { (ac_try="$ac_link"
17998case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_lib_gcc____chkstk=yes
18031else
18032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 ac_cv_lib_gcc____chkstk=no
18036fi
18037
18038rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040LIBS=$ac_check_lib_save_LIBS
18041fi
18042{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18043echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18044if test $ac_cv_lib_gcc____chkstk = yes; then
18045
18046cat >>confdefs.h <<\_ACEOF
18047#define HAVE____CHKSTK 1
18048_ACEOF
18049
18050fi
18051
18052
18053 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18054echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18055if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057else
18058 ac_check_lib_save_LIBS=$LIBS
18059LIBS="-lgcc $LIBS"
18060cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066
18067/* Override any GCC internal prototype to avoid an error.
18068 Use char because int might match the return type of a GCC
18069 builtin and then its argument prototype would still apply. */
18070#ifdef __cplusplus
18071extern "C"
18072#endif
18073char __ashldi3 ();
18074int
18075main ()
18076{
18077return __ashldi3 ();
18078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest.$ac_objext conftest$ac_exeext
18083if { (ac_try="$ac_link"
18084case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_link") 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100esac
18101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_lib_gcc___ashldi3=yes
18117else
18118 echo "$as_me: failed program was:" >&5
18119sed 's/^/| /' conftest.$ac_ext >&5
18120
18121 ac_cv_lib_gcc___ashldi3=no
18122fi
18123
18124rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126LIBS=$ac_check_lib_save_LIBS
18127fi
18128{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18129echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18130if test $ac_cv_lib_gcc___ashldi3 = yes; then
18131
18132cat >>confdefs.h <<\_ACEOF
18133#define HAVE___ASHLDI3 1
18134_ACEOF
18135
18136fi
18137
18138 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18139echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18140if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142else
18143 ac_check_lib_save_LIBS=$LIBS
18144LIBS="-lgcc $LIBS"
18145cat >conftest.$ac_ext <<_ACEOF
18146/* confdefs.h. */
18147_ACEOF
18148cat confdefs.h >>conftest.$ac_ext
18149cat >>conftest.$ac_ext <<_ACEOF
18150/* end confdefs.h. */
18151
18152/* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18155#ifdef __cplusplus
18156extern "C"
18157#endif
18158char __ashrdi3 ();
18159int
18160main ()
18161{
18162return __ashrdi3 ();
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext conftest$ac_exeext
18168if { (ac_try="$ac_link"
18169case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185esac
18186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest$ac_exeext'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18201 ac_cv_lib_gcc___ashrdi3=yes
18202else
18203 echo "$as_me: failed program was:" >&5
18204sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_cv_lib_gcc___ashrdi3=no
18207fi
18208
18209rm -f core conftest.err conftest.$ac_objext \
18210 conftest$ac_exeext conftest.$ac_ext
18211LIBS=$ac_check_lib_save_LIBS
18212fi
18213{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18214echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18215if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18216
18217cat >>confdefs.h <<\_ACEOF
18218#define HAVE___ASHRDI3 1
18219_ACEOF
18220
18221fi
18222
18223 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18224echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18225if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227else
18228 ac_check_lib_save_LIBS=$LIBS
18229LIBS="-lgcc $LIBS"
18230cat >conftest.$ac_ext <<_ACEOF
18231/* confdefs.h. */
18232_ACEOF
18233cat confdefs.h >>conftest.$ac_ext
18234cat >>conftest.$ac_ext <<_ACEOF
18235/* end confdefs.h. */
18236
18237/* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18240#ifdef __cplusplus
18241extern "C"
18242#endif
18243char __divdi3 ();
18244int
18245main ()
18246{
18247return __divdi3 ();
18248 ;
18249 return 0;
18250}
18251_ACEOF
18252rm -f conftest.$ac_objext conftest$ac_exeext
18253if { (ac_try="$ac_link"
18254case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_lib_gcc___divdi3=yes
18287else
18288 echo "$as_me: failed program was:" >&5
18289sed 's/^/| /' conftest.$ac_ext >&5
18290
18291 ac_cv_lib_gcc___divdi3=no
18292fi
18293
18294rm -f core conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296LIBS=$ac_check_lib_save_LIBS
18297fi
18298{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18299echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18300if test $ac_cv_lib_gcc___divdi3 = yes; then
18301
18302cat >>confdefs.h <<\_ACEOF
18303#define HAVE___DIVDI3 1
18304_ACEOF
18305
18306fi
18307
18308 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18309echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18310if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18312else
18313 ac_check_lib_save_LIBS=$LIBS
18314LIBS="-lgcc $LIBS"
18315cat >conftest.$ac_ext <<_ACEOF
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
18321
18322/* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
18325#ifdef __cplusplus
18326extern "C"
18327#endif
18328char __fixdfdi ();
18329int
18330main ()
18331{
18332return __fixdfdi ();
18333 ;
18334 return 0;
18335}
18336_ACEOF
18337rm -f conftest.$ac_objext conftest$ac_exeext
18338if { (ac_try="$ac_link"
18339case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_link") 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355esac
18356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try='test -s conftest$ac_exeext'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_lib_gcc___fixdfdi=yes
18372else
18373 echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 ac_cv_lib_gcc___fixdfdi=no
18377fi
18378
18379rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381LIBS=$ac_check_lib_save_LIBS
18382fi
18383{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18384echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18385if test $ac_cv_lib_gcc___fixdfdi = yes; then
18386
18387cat >>confdefs.h <<\_ACEOF
18388#define HAVE___FIXDFDI 1
18389_ACEOF
18390
18391fi
18392
18393 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18394echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18395if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397else
18398 ac_check_lib_save_LIBS=$LIBS
18399LIBS="-lgcc $LIBS"
18400cat >conftest.$ac_ext <<_ACEOF
18401/* confdefs.h. */
18402_ACEOF
18403cat confdefs.h >>conftest.$ac_ext
18404cat >>conftest.$ac_ext <<_ACEOF
18405/* end confdefs.h. */
18406
18407/* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18410#ifdef __cplusplus
18411extern "C"
18412#endif
18413char __fixsfdi ();
18414int
18415main ()
18416{
18417return __fixsfdi ();
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext conftest$ac_exeext
18423if { (ac_try="$ac_link"
18424case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427esac
18428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_try") 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
18456 ac_cv_lib_gcc___fixsfdi=yes
18457else
18458 echo "$as_me: failed program was:" >&5
18459sed 's/^/| /' conftest.$ac_ext >&5
18460
18461 ac_cv_lib_gcc___fixsfdi=no
18462fi
18463
18464rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466LIBS=$ac_check_lib_save_LIBS
18467fi
18468{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18469echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18470if test $ac_cv_lib_gcc___fixsfdi = yes; then
18471
18472cat >>confdefs.h <<\_ACEOF
18473#define HAVE___FIXSFDI 1
18474_ACEOF
18475
18476fi
18477
18478 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18479echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18480if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18482else
18483 ac_check_lib_save_LIBS=$LIBS
18484LIBS="-lgcc $LIBS"
18485cat >conftest.$ac_ext <<_ACEOF
18486/* confdefs.h. */
18487_ACEOF
18488cat confdefs.h >>conftest.$ac_ext
18489cat >>conftest.$ac_ext <<_ACEOF
18490/* end confdefs.h. */
18491
18492/* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18495#ifdef __cplusplus
18496extern "C"
18497#endif
18498char __floatdidf ();
18499int
18500main ()
18501{
18502return __floatdidf ();
18503 ;
18504 return 0;
18505}
18506_ACEOF
18507rm -f conftest.$ac_objext conftest$ac_exeext
18508if { (ac_try="$ac_link"
18509case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525esac
18526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535esac
18536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_lib_gcc___floatdidf=yes
18542else
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_cv_lib_gcc___floatdidf=no
18547fi
18548
18549rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551LIBS=$ac_check_lib_save_LIBS
18552fi
18553{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18554echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18555if test $ac_cv_lib_gcc___floatdidf = yes; then
18556
18557cat >>confdefs.h <<\_ACEOF
18558#define HAVE___FLOATDIDF 1
18559_ACEOF
18560
18561fi
18562
18563 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18564echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18565if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568 ac_check_lib_save_LIBS=$LIBS
18569LIBS="-lgcc $LIBS"
18570cat >conftest.$ac_ext <<_ACEOF
18571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
18576
18577/* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18580#ifdef __cplusplus
18581extern "C"
18582#endif
18583char __lshrdi3 ();
18584int
18585main ()
18586{
18587return __lshrdi3 ();
18588 ;
18589 return 0;
18590}
18591_ACEOF
18592rm -f conftest.$ac_objext conftest$ac_exeext
18593if { (ac_try="$ac_link"
18594case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610esac
18611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest$ac_exeext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620esac
18621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_lib_gcc___lshrdi3=yes
18627else
18628 echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_cv_lib_gcc___lshrdi3=no
18632fi
18633
18634rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636LIBS=$ac_check_lib_save_LIBS
18637fi
18638{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18639echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18640if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18641
18642cat >>confdefs.h <<\_ACEOF
18643#define HAVE___LSHRDI3 1
18644_ACEOF
18645
18646fi
18647
18648 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18649echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18650if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652else
18653 ac_check_lib_save_LIBS=$LIBS
18654LIBS="-lgcc $LIBS"
18655cat >conftest.$ac_ext <<_ACEOF
18656/* confdefs.h. */
18657_ACEOF
18658cat confdefs.h >>conftest.$ac_ext
18659cat >>conftest.$ac_ext <<_ACEOF
18660/* end confdefs.h. */
18661
18662/* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18665#ifdef __cplusplus
18666extern "C"
18667#endif
18668char __moddi3 ();
18669int
18670main ()
18671{
18672return __moddi3 ();
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext conftest$ac_exeext
18678if { (ac_try="$ac_link"
18679case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_link") 2>conftest.er1
18685 ac_status=$?
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18692 { (case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695esac
18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_try") 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest$ac_exeext'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_lib_gcc___moddi3=yes
18712else
18713 echo "$as_me: failed program was:" >&5
18714sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_cv_lib_gcc___moddi3=no
18717fi
18718
18719rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721LIBS=$ac_check_lib_save_LIBS
18722fi
18723{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18724echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18725if test $ac_cv_lib_gcc___moddi3 = yes; then
18726
18727cat >>confdefs.h <<\_ACEOF
18728#define HAVE___MODDI3 1
18729_ACEOF
18730
18731fi
18732
18733 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18734echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18735if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737else
18738 ac_check_lib_save_LIBS=$LIBS
18739LIBS="-lgcc $LIBS"
18740cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746
18747/* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18750#ifdef __cplusplus
18751extern "C"
18752#endif
18753char __udivdi3 ();
18754int
18755main ()
18756{
18757return __udivdi3 ();
18758 ;
18759 return 0;
18760}
18761_ACEOF
18762rm -f conftest.$ac_objext conftest$ac_exeext
18763if { (ac_try="$ac_link"
18764case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_cv_lib_gcc___udivdi3=yes
18797else
18798 echo "$as_me: failed program was:" >&5
18799sed 's/^/| /' conftest.$ac_ext >&5
18800
18801 ac_cv_lib_gcc___udivdi3=no
18802fi
18803
18804rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806LIBS=$ac_check_lib_save_LIBS
18807fi
18808{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18809echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18810if test $ac_cv_lib_gcc___udivdi3 = yes; then
18811
18812cat >>confdefs.h <<\_ACEOF
18813#define HAVE___UDIVDI3 1
18814_ACEOF
18815
18816fi
18817
18818 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18819echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18820if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822else
18823 ac_check_lib_save_LIBS=$LIBS
18824LIBS="-lgcc $LIBS"
18825cat >conftest.$ac_ext <<_ACEOF
18826/* confdefs.h. */
18827_ACEOF
18828cat confdefs.h >>conftest.$ac_ext
18829cat >>conftest.$ac_ext <<_ACEOF
18830/* end confdefs.h. */
18831
18832/* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835#ifdef __cplusplus
18836extern "C"
18837#endif
18838char __umoddi3 ();
18839int
18840main ()
18841{
18842return __umoddi3 ();
18843 ;
18844 return 0;
18845}
18846_ACEOF
18847rm -f conftest.$ac_objext conftest$ac_exeext
18848if { (ac_try="$ac_link"
18849case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865esac
18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_lib_gcc___umoddi3=yes
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_cv_lib_gcc___umoddi3=no
18887fi
18888
18889rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18891LIBS=$ac_check_lib_save_LIBS
18892fi
18893{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18894echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18895if test $ac_cv_lib_gcc___umoddi3 = yes; then
18896
18897cat >>confdefs.h <<\_ACEOF
18898#define HAVE___UMODDI3 1
18899_ACEOF
18900
18901fi
18902
18903
18904 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18905echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18906if test "${ac_cv_lib_gcc___main+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 ac_check_lib_save_LIBS=$LIBS
18910LIBS="-lgcc $LIBS"
18911cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917
18918/* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921#ifdef __cplusplus
18922extern "C"
18923#endif
18924char __main ();
18925int
18926main ()
18927{
18928return __main ();
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext conftest$ac_exeext
18934if { (ac_try="$ac_link"
18935case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_gcc___main=yes
18968else
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 ac_cv_lib_gcc___main=no
18973fi
18974
18975rm -f core conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18977LIBS=$ac_check_lib_save_LIBS
18978fi
18979{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18980echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18981if test $ac_cv_lib_gcc___main = yes; then
18982
18983cat >>confdefs.h <<\_ACEOF
18984#define HAVE___MAIN 1
18985_ACEOF
18986
18987fi
18988
18989 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18990echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18991if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993else
18994 ac_check_lib_save_LIBS=$LIBS
18995LIBS="-lgcc $LIBS"
18996cat >conftest.$ac_ext <<_ACEOF
18997/* confdefs.h. */
18998_ACEOF
18999cat confdefs.h >>conftest.$ac_ext
19000cat >>conftest.$ac_ext <<_ACEOF
19001/* end confdefs.h. */
19002
19003/* Override any GCC internal prototype to avoid an error.
19004 Use char because int might match the return type of a GCC
19005 builtin and then its argument prototype would still apply. */
19006#ifdef __cplusplus
19007extern "C"
19008#endif
19009char __cmpdi2 ();
19010int
19011main ()
19012{
19013return __cmpdi2 ();
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext conftest$ac_exeext
19019if { (ac_try="$ac_link"
19020case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_link") 2>conftest.er1
19026 ac_status=$?
19027 grep -v '^ *+' conftest.er1 >conftest.err
19028 rm -f conftest.er1
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036esac
19037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest$ac_exeext'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_lib_gcc___cmpdi2=yes
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 ac_cv_lib_gcc___cmpdi2=no
19058fi
19059
19060rm -f core conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19062LIBS=$ac_check_lib_save_LIBS
19063fi
19064{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19065echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19066if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19067
19068cat >>confdefs.h <<\_ACEOF
19069#define HAVE___CMPDI2 1
19070_ACEOF
19071
19072fi
19073
19074fi
19075
19076if test "$llvm_cv_os_type" = "MingW" ; then
19077 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19078echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080#include <windows.h>
19081#include <imagehlp.h>
19082extern void foo(PENUMLOADED_MODULES_CALLBACK);
19083extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19084_ACEOF
19085rm -f conftest.$ac_objext
19086if { (ac_try="$ac_compile"
19087case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_compile") 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119
19120 { echo "$as_me:$LINENO: result: yes" >&5
19121echo "${ECHO_T}yes" >&6; }
19122 llvm_cv_win32_elmcb_pcstr="PCSTR"
19123
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128
19129 { echo "$as_me:$LINENO: result: no" >&5
19130echo "${ECHO_T}no" >&6; }
19131 llvm_cv_win32_elmcb_pcstr="PSTR"
19132
19133fi
19134
19135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136
19137cat >>confdefs.h <<_ACEOF
19138#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19139_ACEOF
19140
19141fi
19142
19143
19144{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19145echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19146if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148else
19149 ac_ext=cpp
19150ac_cpp='$CXXCPP $CPPFLAGS'
19151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19154
19155 cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161#include <math.h>
19162int
19163main ()
19164{
19165float f; isnan(f);
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext
19171if { (ac_try="$ac_compile"
19172case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest.$ac_objext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_func_isnan_in_math_h=yes
19205else
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 ac_cv_func_isnan_in_math_h=no
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 ac_ext=c
19214ac_cpp='$CPP $CPPFLAGS'
19215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217ac_compiler_gnu=$ac_cv_c_compiler_gnu
19218
19219fi
19220{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19221echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19222
19223
19224if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19225
19226cat >>confdefs.h <<\_ACEOF
19227#define HAVE_ISNAN_IN_MATH_H 1
19228_ACEOF
19229
19230fi
19231
19232{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19233echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19234if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237 ac_ext=cpp
19238ac_cpp='$CXXCPP $CPPFLAGS'
19239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19242
19243 cat >conftest.$ac_ext <<_ACEOF
19244/* confdefs.h. */
19245_ACEOF
19246cat confdefs.h >>conftest.$ac_ext
19247cat >>conftest.$ac_ext <<_ACEOF
19248/* end confdefs.h. */
19249#include <cmath>
19250int
19251main ()
19252{
19253float f; isnan(f);
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (ac_try="$ac_compile"
19260case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19273 { (case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276esac
19277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_try") 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286esac
19287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_cv_func_isnan_in_cmath=yes
19293else
19294 echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 ac_cv_func_isnan_in_cmath=no
19298fi
19299
19300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 ac_ext=c
19302ac_cpp='$CPP $CPPFLAGS'
19303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305ac_compiler_gnu=$ac_cv_c_compiler_gnu
19306
19307fi
19308{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19309echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19310
19311if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19312
19313cat >>confdefs.h <<\_ACEOF
19314#define HAVE_ISNAN_IN_CMATH 1
19315_ACEOF
19316
19317fi
19318
19319{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19320echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19321if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324 ac_ext=cpp
19325ac_cpp='$CXXCPP $CPPFLAGS'
19326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
19330 cat >conftest.$ac_ext <<_ACEOF
19331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h. */
19336#include <cmath>
19337int
19338main ()
19339{
19340float f; std::isnan(f);
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext
19346if { (ac_try="$ac_compile"
19347case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_func_std_isnan_in_cmath=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_func_std_isnan_in_cmath=no
19385fi
19386
19387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 ac_ext=c
19389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394fi
19395{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19396echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19397
19398if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19399
19400cat >>confdefs.h <<\_ACEOF
19401#define HAVE_STD_ISNAN_IN_CMATH 1
19402_ACEOF
19403
19404fi
19405
19406
19407{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19408echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19409if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411else
19412 ac_ext=cpp
19413ac_cpp='$CXXCPP $CPPFLAGS'
19414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19417
19418 cat >conftest.$ac_ext <<_ACEOF
19419/* confdefs.h. */
19420_ACEOF
19421cat confdefs.h >>conftest.$ac_ext
19422cat >>conftest.$ac_ext <<_ACEOF
19423/* end confdefs.h. */
19424#include <math.h>
19425int
19426main ()
19427{
19428float f; isinf(f);
19429 ;
19430 return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext
19434if { (ac_try="$ac_compile"
19435case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_compile") 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461esac
19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_func_isinf_in_math_h=yes
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 ac_cv_func_isinf_in_math_h=no
19473fi
19474
19475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19476 ac_ext=c
19477ac_cpp='$CPP $CPPFLAGS'
19478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482fi
19483{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19484echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19485
19486if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19487
19488cat >>confdefs.h <<\_ACEOF
19489#define HAVE_ISINF_IN_MATH_H 1
19490_ACEOF
19491
19492fi
19493
19494{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19495echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19496if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499 ac_ext=cpp
19500ac_cpp='$CXXCPP $CPPFLAGS'
19501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504
19505 cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511#include <cmath>
19512int
19513main ()
19514{
19515float f; isinf(f);
19516 ;
19517 return 0;
19518}
19519_ACEOF
19520rm -f conftest.$ac_objext
19521if { (ac_try="$ac_compile"
19522case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548esac
19549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_func_isinf_in_cmath=yes
19555else
19556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_cv_func_isinf_in_cmath=no
19560fi
19561
19562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 ac_ext=c
19564ac_cpp='$CPP $CPPFLAGS'
19565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
19569fi
19570{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19571echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19572
19573if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19574
19575cat >>confdefs.h <<\_ACEOF
19576#define HAVE_ISINF_IN_CMATH 1
19577_ACEOF
19578
19579fi
19580
19581{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19582echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19583if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585else
19586 ac_ext=cpp
19587ac_cpp='$CXXCPP $CPPFLAGS'
19588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19591
19592 cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598#include <cmath>
19599int
19600main ()
19601{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019602float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019603 ;
19604 return 0;
19605}
19606_ACEOF
19607rm -f conftest.$ac_objext
19608if { (ac_try="$ac_compile"
19609case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612esac
19613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625esac
19626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_func_std_isinf_in_cmath=yes
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
19646 ac_cv_func_std_isinf_in_cmath=no
19647fi
19648
19649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650 ac_ext=c
19651ac_cpp='$CPP $CPPFLAGS'
19652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655
19656fi
19657{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19658echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19659
19660if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19661
19662cat >>confdefs.h <<\_ACEOF
19663#define HAVE_STD_ISINF_IN_CMATH 1
19664_ACEOF
19665
19666fi
19667
19668{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19669echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19670if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672else
19673 ac_ext=cpp
19674ac_cpp='$CXXCPP $CPPFLAGS'
19675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19678
19679 cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
19685#include <ieeefp.h>
19686int
19687main ()
19688{
19689float f; finite(f);
19690 ;
19691 return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext
19695if { (ac_try="$ac_compile"
19696case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_func_finite_in_ieeefp_h=yes
19729else
19730 echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 ac_cv_func_finite_in_ieeefp_h=no
19734fi
19735
19736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737 ac_ext=c
19738ac_cpp='$CPP $CPPFLAGS'
19739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742
19743fi
19744{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19745echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19746
19747if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19748
19749cat >>confdefs.h <<\_ACEOF
19750#define HAVE_FINITE_IN_IEEEFP_H 1
19751_ACEOF
19752
19753fi
19754
19755
19756
19757if test "$llvm_cv_platform_type" = "Unix" ; then
19758
19759
19760for ac_header in stdlib.h unistd.h
19761do
19762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768fi
19769ac_res=`eval echo '${'$as_ac_Header'}'`
19770 { echo "$as_me:$LINENO: result: $ac_res" >&5
19771echo "${ECHO_T}$ac_res" >&6; }
19772else
19773 # Is the header compilable?
19774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19776cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
19782$ac_includes_default
19783#include <$ac_header>
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (ac_try="$ac_compile"
19787case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_header_compiler=yes
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_header_compiler=no
19825fi
19826
19827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829echo "${ECHO_T}$ac_header_compiler" >&6; }
19830
19831# Is the header present?
19832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
19840#include <$ac_header>
19841_ACEOF
19842if { (ac_try="$ac_cpp conftest.$ac_ext"
19843case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null; then
19855 if test -s conftest.err; then
19856 ac_cpp_err=$ac_c_preproc_warn_flag
19857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19858 else
19859 ac_cpp_err=
19860 fi
19861else
19862 ac_cpp_err=yes
19863fi
19864if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19866else
19867 echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_header_preproc=no
19871fi
19872
19873rm -f conftest.err conftest.$ac_ext
19874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875echo "${ECHO_T}$ac_header_preproc" >&6; }
19876
19877# So? What about this header?
19878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879 yes:no: )
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19884 ac_header_preproc=yes
19885 ;;
19886 no:yes:* )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19899 ( cat <<\_ASBOX
19900## ------------------------------ ##
19901## Report this to bugs@yourdomain ##
19902## ------------------------------ ##
19903_ASBOX
19904 ) | sed "s/^/$as_me: WARNING: /" >&2
19905 ;;
19906esac
19907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911else
19912 eval "$as_ac_Header=\$ac_header_preproc"
19913fi
19914ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916echo "${ECHO_T}$ac_res" >&6; }
19917
19918fi
19919if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19922_ACEOF
19923
19924fi
19925
19926done
19927
19928
19929for ac_func in getpagesize
19930do
19931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19932{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936else
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19945#define $ac_func innocuous_$ac_func
19946
19947/* System header to define __stub macros and hopefully few prototypes,
19948 which can conflict with char $ac_func (); below.
19949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950 <limits.h> exists even on freestanding compilers. */
19951
19952#ifdef __STDC__
19953# include <limits.h>
19954#else
19955# include <assert.h>
19956#endif
19957
19958#undef $ac_func
19959
19960/* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19963#ifdef __cplusplus
19964extern "C"
19965#endif
19966char $ac_func ();
19967/* The GNU C library defines this for functions which it implements
19968 to always fail with ENOSYS. Some functions are actually named
19969 something starting with __ and the normal name is an alias. */
19970#if defined __stub_$ac_func || defined __stub___$ac_func
19971choke me
19972#endif
19973
19974int
19975main ()
19976{
19977return $ac_func ();
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext conftest$ac_exeext
19983if { (ac_try="$ac_link"
19984case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19997 { (case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000esac
20001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_try") 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest$ac_exeext'
20007 { (case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20010esac
20011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_try") 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 eval "$as_ac_var=yes"
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 eval "$as_ac_var=no"
20022fi
20023
20024rm -f core conftest.err conftest.$ac_objext \
20025 conftest$ac_exeext conftest.$ac_ext
20026fi
20027ac_res=`eval echo '${'$as_ac_var'}'`
20028 { echo "$as_me:$LINENO: result: $ac_res" >&5
20029echo "${ECHO_T}$ac_res" >&6; }
20030if test `eval echo '${'$as_ac_var'}'` = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20033_ACEOF
20034
20035fi
20036done
20037
20038{ echo "$as_me:$LINENO: checking for working mmap" >&5
20039echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20040if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 if test "$cross_compiling" = yes; then
20044 ac_cv_func_mmap_fixed_mapped=no
20045else
20046 cat >conftest.$ac_ext <<_ACEOF
20047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052$ac_includes_default
20053/* malloc might have been renamed as rpl_malloc. */
20054#undef malloc
20055
20056/* Thanks to Mike Haertel and Jim Avera for this test.
20057 Here is a matrix of mmap possibilities:
20058 mmap private not fixed
20059 mmap private fixed at somewhere currently unmapped
20060 mmap private fixed at somewhere already mapped
20061 mmap shared not fixed
20062 mmap shared fixed at somewhere currently unmapped
20063 mmap shared fixed at somewhere already mapped
20064 For private mappings, we should verify that changes cannot be read()
20065 back from the file, nor mmap's back from the file at a different
20066 address. (There have been systems where private was not correctly
20067 implemented like the infamous i386 svr4.0, and systems where the
20068 VM page cache was not coherent with the file system buffer cache
20069 like early versions of FreeBSD and possibly contemporary NetBSD.)
20070 For shared mappings, we should conversely verify that changes get
20071 propagated back to all the places they're supposed to be.
20072
20073 Grep wants private fixed already mapped.
20074 The main things grep needs to know about mmap are:
20075 * does it exist and is it safe to write into the mmap'd area
20076 * how to use it (BSD variants) */
20077
20078#include <fcntl.h>
20079#include <sys/mman.h>
20080
20081#if !STDC_HEADERS && !HAVE_STDLIB_H
20082char *malloc ();
20083#endif
20084
20085/* This mess was copied from the GNU getpagesize.h. */
20086#if !HAVE_GETPAGESIZE
20087/* Assume that all systems that can run configure have sys/param.h. */
20088# if !HAVE_SYS_PARAM_H
20089# define HAVE_SYS_PARAM_H 1
20090# endif
20091
20092# ifdef _SC_PAGESIZE
20093# define getpagesize() sysconf(_SC_PAGESIZE)
20094# else /* no _SC_PAGESIZE */
20095# if HAVE_SYS_PARAM_H
20096# include <sys/param.h>
20097# ifdef EXEC_PAGESIZE
20098# define getpagesize() EXEC_PAGESIZE
20099# else /* no EXEC_PAGESIZE */
20100# ifdef NBPG
20101# define getpagesize() NBPG * CLSIZE
20102# ifndef CLSIZE
20103# define CLSIZE 1
20104# endif /* no CLSIZE */
20105# else /* no NBPG */
20106# ifdef NBPC
20107# define getpagesize() NBPC
20108# else /* no NBPC */
20109# ifdef PAGESIZE
20110# define getpagesize() PAGESIZE
20111# endif /* PAGESIZE */
20112# endif /* no NBPC */
20113# endif /* no NBPG */
20114# endif /* no EXEC_PAGESIZE */
20115# else /* no HAVE_SYS_PARAM_H */
20116# define getpagesize() 8192 /* punt totally */
20117# endif /* no HAVE_SYS_PARAM_H */
20118# endif /* no _SC_PAGESIZE */
20119
20120#endif /* no HAVE_GETPAGESIZE */
20121
20122int
20123main ()
20124{
20125 char *data, *data2, *data3;
20126 int i, pagesize;
20127 int fd;
20128
20129 pagesize = getpagesize ();
20130
20131 /* First, make a file with some known garbage in it. */
20132 data = (char *) malloc (pagesize);
20133 if (!data)
20134 return 1;
20135 for (i = 0; i < pagesize; ++i)
20136 *(data + i) = rand ();
20137 umask (0);
20138 fd = creat ("conftest.mmap", 0600);
20139 if (fd < 0)
20140 return 1;
20141 if (write (fd, data, pagesize) != pagesize)
20142 return 1;
20143 close (fd);
20144
20145 /* Next, try to mmap the file at a fixed address which already has
20146 something else allocated at it. If we can, also make sure that
20147 we see the same garbage. */
20148 fd = open ("conftest.mmap", O_RDWR);
20149 if (fd < 0)
20150 return 1;
20151 data2 = (char *) malloc (2 * pagesize);
20152 if (!data2)
20153 return 1;
20154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20157 return 1;
20158 for (i = 0; i < pagesize; ++i)
20159 if (*(data + i) != *(data2 + i))
20160 return 1;
20161
20162 /* Finally, make sure that changes to the mapped area do not
20163 percolate back to the file as seen by read(). (This is a bug on
20164 some variants of i386 svr4.0.) */
20165 for (i = 0; i < pagesize; ++i)
20166 *(data2 + i) = *(data2 + i) + 1;
20167 data3 = (char *) malloc (pagesize);
20168 if (!data3)
20169 return 1;
20170 if (read (fd, data3, pagesize) != pagesize)
20171 return 1;
20172 for (i = 0; i < pagesize; ++i)
20173 if (*(data + i) != *(data3 + i))
20174 return 1;
20175 close (fd);
20176 return 0;
20177}
20178_ACEOF
20179rm -f conftest$ac_exeext
20180if { (ac_try="$ac_link"
20181case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184esac
20185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_func_mmap_fixed_mapped=yes
20200else
20201 echo "$as_me: program exited with status $ac_status" >&5
20202echo "$as_me: failed program was:" >&5
20203sed 's/^/| /' conftest.$ac_ext >&5
20204
20205( exit $ac_status )
20206ac_cv_func_mmap_fixed_mapped=no
20207fi
20208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209fi
20210
20211
20212fi
20213{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20214echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20215if test $ac_cv_func_mmap_fixed_mapped = yes; then
20216
20217cat >>confdefs.h <<\_ACEOF
20218#define HAVE_MMAP 1
20219_ACEOF
20220
20221fi
20222rm -f conftest.mmap
20223
20224 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20225echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20226if test "${ac_cv_func_mmap_file+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
20229 ac_ext=c
20230ac_cpp='$CPP $CPPFLAGS'
20231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234
20235 if test "$cross_compiling" = yes; then
20236 ac_cv_func_mmap_file=no
20237else
20238 cat >conftest.$ac_ext <<_ACEOF
20239
20240 /* confdefs.h. */
20241_ACEOF
20242cat confdefs.h >>conftest.$ac_ext
20243cat >>conftest.$ac_ext <<_ACEOF
20244/* end confdefs.h. */
20245
20246#include <sys/types.h>
20247#include <sys/mman.h>
20248#include <fcntl.h>
20249
20250int
20251main ()
20252{
20253
20254 int fd;
20255 fd = creat ("foo",0777);
20256 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20257 unlink ("foo");
20258 return (fd != (int) MAP_FAILED);
20259 ;
20260 return 0;
20261}
20262_ACEOF
20263rm -f conftest$ac_exeext
20264if { (ac_try="$ac_link"
20265case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20268esac
20269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277esac
20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_func_mmap_file=yes
20284else
20285 echo "$as_me: program exited with status $ac_status" >&5
20286echo "$as_me: failed program was:" >&5
20287sed 's/^/| /' conftest.$ac_ext >&5
20288
20289( exit $ac_status )
20290ac_cv_func_mmap_file=no
20291fi
20292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20293fi
20294
20295
20296 ac_ext=c
20297ac_cpp='$CPP $CPPFLAGS'
20298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301
20302
20303fi
20304{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20305echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20306if test "$ac_cv_func_mmap_file" = yes; then
20307
20308cat >>confdefs.h <<\_ACEOF
20309#define HAVE_MMAP_FILE
20310_ACEOF
20311
20312 MMAP_FILE=yes
20313
20314fi
20315
20316 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20317echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20318if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
20321 if test "$llvm_cv_os_type" = "Interix" ; then
20322 ac_cv_need_dev_zero_for_mmap=yes
20323 else
20324 ac_cv_need_dev_zero_for_mmap=no
20325 fi
20326
20327fi
20328{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20329echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20330if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20331
20332cat >>confdefs.h <<\_ACEOF
20333#define NEED_DEV_ZERO_FOR_MMAP 1
20334_ACEOF
20335
20336fi
20337
20338 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20339 then
20340 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20341echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20342 fi
20343 if test "$ac_cv_func_mmap_file" = "no"
20344 then
20345 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20346echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20347 fi
20348fi
20349
20350{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20351echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20352ac_ext=cpp
20353ac_cpp='$CXXCPP $CPPFLAGS'
20354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20357
20358cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364int main() {
20365 volatile unsigned long val = 1;
20366 __sync_synchronize();
20367 __sync_val_compare_and_swap(&val, 1, 0);
20368 __sync_add_and_fetch(&val, 1);
20369 __sync_sub_and_fetch(&val, 1);
20370 return 0;
20371 }
20372
20373_ACEOF
20374rm -f conftest.$ac_objext conftest$ac_exeext
20375if { (ac_try="$ac_link"
20376case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392esac
20393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_try") 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_try") 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_ext=c
20409ac_cpp='$CPP $CPPFLAGS'
20410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413
20414 { echo "$as_me:$LINENO: result: yes" >&5
20415echo "${ECHO_T}yes" >&6; }
20416
20417cat >>confdefs.h <<\_ACEOF
20418#define LLVM_HAS_ATOMICS 1
20419_ACEOF
20420
20421else
20422 echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 { echo "$as_me:$LINENO: result: no" >&5
20426echo "${ECHO_T}no" >&6; }
20427
20428cat >>confdefs.h <<\_ACEOF
20429#define LLVM_HAS_ATOMICS 0
20430_ACEOF
20431
20432 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20433echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20434fi
20435
20436rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20438
20439
20440if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20441 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20442echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20443if test "${llvm_cv_linux_mixed+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446 ac_ext=c
20447ac_cpp='$CPP $CPPFLAGS'
20448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450ac_compiler_gnu=$ac_cv_c_compiler_gnu
20451
20452 cat >conftest.$ac_ext <<_ACEOF
20453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
20458#ifndef __x86_64__
20459 error: Not x86-64 even if uname says so!
20460 #endif
20461
20462int
20463main ()
20464{
20465
20466 ;
20467 return 0;
20468}
20469_ACEOF
20470rm -f conftest.$ac_objext
20471if { (ac_try="$ac_compile"
20472case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488esac
20489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
20495 { (case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498esac
20499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_try") 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 llvm_cv_linux_mixed=no
20505else
20506 echo "$as_me: failed program was:" >&5
20507sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 llvm_cv_linux_mixed=yes
20510fi
20511
20512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 ac_ext=c
20514ac_cpp='$CPP $CPPFLAGS'
20515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518
20519
20520fi
20521{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20522echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20523
20524 if test "$llvm_cv_linux_mixed" = "yes"; then
20525 llvm_cv_target_arch="x86"
20526 ARCH="x86"
20527 fi
20528fi
20529
20530
20531for ac_func in __dso_handle
20532do
20533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538else
20539 cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h. */
20545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20547#define $ac_func innocuous_$ac_func
20548
20549/* System header to define __stub macros and hopefully few prototypes,
20550 which can conflict with char $ac_func (); below.
20551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20552 <limits.h> exists even on freestanding compilers. */
20553
20554#ifdef __STDC__
20555# include <limits.h>
20556#else
20557# include <assert.h>
20558#endif
20559
20560#undef $ac_func
20561
20562/* Override any GCC internal prototype to avoid an error.
20563 Use char because int might match the return type of a GCC
20564 builtin and then its argument prototype would still apply. */
20565#ifdef __cplusplus
20566extern "C"
20567#endif
20568char $ac_func ();
20569/* The GNU C library defines this for functions which it implements
20570 to always fail with ENOSYS. Some functions are actually named
20571 something starting with __ and the normal name is an alias. */
20572#if defined __stub_$ac_func || defined __stub___$ac_func
20573choke me
20574#endif
20575
20576int
20577main ()
20578{
20579return $ac_func ();
20580 ;
20581 return 0;
20582}
20583_ACEOF
20584rm -f conftest.$ac_objext conftest$ac_exeext
20585if { (ac_try="$ac_link"
20586case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589esac
20590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_link") 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599 { (case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602esac
20603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_try") 2>&5
20605 ac_status=$?
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; } &&
20608 { ac_try='test -s conftest$ac_exeext'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 eval "$as_ac_var=yes"
20619else
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 eval "$as_ac_var=no"
20624fi
20625
20626rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20628fi
20629ac_res=`eval echo '${'$as_ac_var'}'`
20630 { echo "$as_me:$LINENO: result: $ac_res" >&5
20631echo "${ECHO_T}$ac_res" >&6; }
20632if test `eval echo '${'$as_ac_var'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20635_ACEOF
20636
20637fi
20638done
20639
20640
20641SHLIBEXT=$libltdl_cv_shlibext
20642
20643
20644SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20645
20646
20647# Translate the various configuration directories and other basic
20648# information into substitutions that will end up in Makefile.config.in
20649# that these configured values can be used by the makefiles
20650if test "${prefix}" = "NONE" ; then
20651 prefix="/usr/local"
20652fi
20653eval LLVM_PREFIX="${prefix}";
20654eval LLVM_BINDIR="${prefix}/bin";
20655eval LLVM_LIBDIR="${prefix}/lib";
20656eval LLVM_DATADIR="${prefix}/share/llvm";
20657eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20658eval LLVM_ETCDIR="${prefix}/etc/llvm";
20659eval LLVM_INCLUDEDIR="${prefix}/include";
20660eval LLVM_INFODIR="${prefix}/info";
20661eval LLVM_MANDIR="${prefix}/man";
20662LLVM_CONFIGTIME=`date`
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674# Place the various directores into the config.h file as #defines so that we
20675# can know about the installation paths within LLVM.
20676
20677cat >>confdefs.h <<_ACEOF
20678#define LLVM_PREFIX "$LLVM_PREFIX"
20679_ACEOF
20680
20681
20682cat >>confdefs.h <<_ACEOF
20683#define LLVM_BINDIR "$LLVM_BINDIR"
20684_ACEOF
20685
20686
20687cat >>confdefs.h <<_ACEOF
20688#define LLVM_LIBDIR "$LLVM_LIBDIR"
20689_ACEOF
20690
20691
20692cat >>confdefs.h <<_ACEOF
20693#define LLVM_DATADIR "$LLVM_DATADIR"
20694_ACEOF
20695
20696
20697cat >>confdefs.h <<_ACEOF
20698#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20699_ACEOF
20700
20701
20702cat >>confdefs.h <<_ACEOF
20703#define LLVM_ETCDIR "$LLVM_ETCDIR"
20704_ACEOF
20705
20706
20707cat >>confdefs.h <<_ACEOF
20708#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20709_ACEOF
20710
20711
20712cat >>confdefs.h <<_ACEOF
20713#define LLVM_INFODIR "$LLVM_INFODIR"
20714_ACEOF
20715
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_MANDIR "$LLVM_MANDIR"
20719_ACEOF
20720
20721
20722cat >>confdefs.h <<_ACEOF
20723#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20724_ACEOF
20725
20726
20727cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020728#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020729_ACEOF
20730
20731
20732# Determine which bindings to build.
20733if test "$BINDINGS_TO_BUILD" = auto ; then
20734 BINDINGS_TO_BUILD=""
20735 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20736 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20737 fi
20738fi
20739BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20740
20741
20742# This isn't really configurey, but it avoids having to repeat the list in
20743# other files.
20744ALL_BINDINGS=ocaml
20745
20746
20747# Do any work necessary to ensure that bindings have what they need.
20748binding_prereqs_failed=0
20749for a_binding in $BINDINGS_TO_BUILD ; do
20750 case "$a_binding" in
20751 ocaml)
20752 if test "x$OCAMLC" = x ; then
20753 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20754echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20755 binding_prereqs_failed=1
20756 fi
20757 if test "x$OCAMLDEP" = x ; then
20758 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20759echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20760 binding_prereqs_failed=1
20761 fi
20762 if test "x$OCAMLOPT" = x ; then
20763 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20764echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20765 fi
20766 if test "x$with_ocaml_libdir" != xauto ; then
20767 OCAML_LIBDIR=$with_ocaml_libdir
20768
20769 else
20770 ocaml_stdlib="`"$OCAMLC" -where`"
20771 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20772 then
20773 # ocaml stdlib is beneath our prefix; use stdlib
20774 OCAML_LIBDIR=$ocaml_stdlib
20775
20776 else
20777 # ocaml stdlib is outside our prefix; use libdir/ocaml
20778 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20779
20780 fi
20781 fi
20782 ;;
20783 esac
20784done
20785if test "$binding_prereqs_failed" = 1 ; then
20786 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20787echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20788 { (exit 1); exit 1; }; }
20789fi
20790
20791{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20792echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20793if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795else
20796 ac_ext=cpp
20797ac_cpp='$CXXCPP $CPPFLAGS'
20798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20801
20802 oldcxxflags="$CXXFLAGS"
Benjamin Kramer00171802012-05-05 15:02:39 +000020803 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020804 cat >conftest.$ac_ext <<_ACEOF
20805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
20809/* end confdefs.h. */
Benjamin Kramer00171802012-05-05 15:02:39 +000020810template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020811int
20812main ()
20813{
Benjamin Kramer00171802012-05-05 15:02:39 +000020814X<int>().f();
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020815 ;
20816 return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext
20820if { (ac_try="$ac_compile"
20821case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824esac
20825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20827 ac_status=$?
20828 grep -v '^ *+' conftest.er1 >conftest.err
20829 rm -f conftest.er1
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } &&
20833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837esac
20838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
20844 { (case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847esac
20848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_try") 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 llvm_cv_cxx_visibility_inlines_hidden=yes
20854else
20855 echo "$as_me: failed program was:" >&5
20856sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 llvm_cv_cxx_visibility_inlines_hidden=no
20859fi
20860
20861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 CXXFLAGS="$oldcxxflags"
20863 ac_ext=c
20864ac_cpp='$CPP $CPPFLAGS'
20865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868
20869
20870fi
20871{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20872echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20873if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20874 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20875
20876else
20877 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20878
20879fi
20880
20881
20882if test "$llvm_cv_link_use_r" = "yes" ; then
20883 RPATH="-Wl,-R"
20884else
20885 RPATH="-Wl,-rpath"
20886fi
20887
20888
20889if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20890 RDYNAMIC="-Wl,-export-dynamic"
20891else
20892 RDYNAMIC=""
20893fi
20894
20895
20896
Reid Spencer421ec052005-02-24 18:53:47 +000020897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020898ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020899
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020900ac_config_files="$ac_config_files Makefile.llvm.config"
20901
John Criswell451f67f2003-10-16 01:45:35 +000020902
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020903ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020904
20905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020906ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020907
20908
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020909ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020910
20911
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020912ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020913
20914
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020915ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020916
20917
20918
John Criswell451f67f2003-10-16 01:45:35 +000020919cat >confcache <<\_ACEOF
20920# This file is a shell script that caches the results of configure
20921# tests run on this system so they can be shared between configure
20922# scripts and configure runs, see configure's option --config-cache.
20923# It is not useful on other systems. If it contains results you don't
20924# want to keep, you may remove or edit it.
20925#
20926# config.status only pays attention to the cache file if you give it
20927# the --recheck option to rerun configure.
20928#
20929# `ac_cv_env_foo' variables (set or unset) will be overridden when
20930# loading this file, other *unset* `ac_cv_foo' will be assigned the
20931# following values.
20932
20933_ACEOF
20934
20935# The following way of writing the cache mishandles newlines in values,
20936# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020937# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020938# Ultrix sh set writes to stderr and can't be redirected directly,
20939# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020940(
20941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20942 eval ac_val=\$$ac_var
20943 case $ac_val in #(
20944 *${as_nl}*)
20945 case $ac_var in #(
20946 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20947echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20948 esac
20949 case $ac_var in #(
20950 _ | IFS | as_nl) ;; #(
20951 *) $as_unset $ac_var ;;
20952 esac ;;
20953 esac
20954 done
20955
John Criswell451f67f2003-10-16 01:45:35 +000020956 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20958 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020959 # `set' does not quote correctly, so add quotes (double-quote
20960 # substitution turns \\\\ into \\, and sed turns \\ into \).
20961 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020962 "s/'/'\\\\''/g;
20963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020964 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020965 *)
20966 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020968 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020969 esac |
20970 sort
20971) |
John Criswell451f67f2003-10-16 01:45:35 +000020972 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020973 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020974 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020975 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20977 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20979 :end' >>confcache
20980if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20981 if test -w "$cache_file"; then
20982 test "x$cache_file" != "x/dev/null" &&
20983 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20984echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020985 cat confcache >$cache_file
20986 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020987 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20988echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020989 fi
20990fi
20991rm -f confcache
20992
20993test "x$prefix" = xNONE && prefix=$ac_default_prefix
20994# Let make expand exec_prefix.
20995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20996
John Criswell451f67f2003-10-16 01:45:35 +000020997# Transform confdefs.h into DEFS.
20998# Protect against shell expansion while executing Makefile rules.
20999# Protect against Makefile macro expansion.
21000#
21001# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021002# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021003# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021004ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021005t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021006:clear
21007s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021008t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021009s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021010t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021011b any
21012:quote
21013s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21014s/\[/\\&/g
21015s/\]/\\&/g
21016s/\$/$$/g
21017H
21018:any
21019${
21020 g
21021 s/^\n//
21022 s/\n/ /g
21023 p
21024}
21025'
21026DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021027
21028
21029ac_libobjs=
21030ac_ltlibobjs=
21031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21032 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21034 ac_i=`echo "$ac_i" | sed "$ac_script"`
21035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21036 # will be set to the directory where LIBOBJS objects are built.
21037 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21038 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021039done
21040LIBOBJS=$ac_libobjs
21041
21042LTLIBOBJS=$ac_ltlibobjs
21043
21044
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021045if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21046 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21047Usually this means the macro was only invoked conditionally." >&5
21048echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21049Usually this means the macro was only invoked conditionally." >&2;}
21050 { (exit 1); exit 1; }; }
21051fi
21052if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21053 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21054Usually this means the macro was only invoked conditionally." >&5
21055echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21056Usually this means the macro was only invoked conditionally." >&2;}
21057 { (exit 1); exit 1; }; }
21058fi
John Criswell451f67f2003-10-16 01:45:35 +000021059
21060: ${CONFIG_STATUS=./config.status}
21061ac_clean_files_save=$ac_clean_files
21062ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21063{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21064echo "$as_me: creating $CONFIG_STATUS" >&6;}
21065cat >$CONFIG_STATUS <<_ACEOF
21066#! $SHELL
21067# Generated by $as_me.
21068# Run this file to recreate the current configuration.
21069# Compiler output produced by configure, useful for debugging
21070# configure, is in config.log if it exists.
21071
21072debug=false
21073ac_cs_recheck=false
21074ac_cs_silent=false
21075SHELL=\${CONFIG_SHELL-$SHELL}
21076_ACEOF
21077
21078cat >>$CONFIG_STATUS <<\_ACEOF
21079## --------------------- ##
21080## M4sh Initialization. ##
21081## --------------------- ##
21082
Dan Gohman324f6082009-03-25 00:52:11 +000021083# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21085 emulate sh
21086 NULLCMD=:
21087 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21088 # is contrary to our usage. Disable this feature.
21089 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021090 setopt NO_GLOB_SUBST
21091else
21092 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021093fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021094BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021095DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021096
John Criswell451f67f2003-10-16 01:45:35 +000021097
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021098# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021099# Avoid depending upon Character Ranges.
21100as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21101as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21102as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21103as_cr_digits='0123456789'
21104as_cr_alnum=$as_cr_Letters$as_cr_digits
21105
21106# The user is always right.
21107if test "${PATH_SEPARATOR+set}" != set; then
21108 echo "#! /bin/sh" >conf$$.sh
21109 echo "exit 0" >>conf$$.sh
21110 chmod +x conf$$.sh
21111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21112 PATH_SEPARATOR=';'
21113 else
21114 PATH_SEPARATOR=:
21115 fi
21116 rm -f conf$$.sh
21117fi
21118
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021119# Support unset when possible.
21120if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21121 as_unset=unset
21122else
21123 as_unset=false
21124fi
John Criswell451f67f2003-10-16 01:45:35 +000021125
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021126
21127# IFS
21128# We need space, tab and new line, in precisely that order. Quoting is
21129# there to prevent editors from complaining about space-tab.
21130# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21131# splitting by setting IFS to empty value.)
21132as_nl='
21133'
21134IFS=" "" $as_nl"
21135
21136# Find who we are. Look in the path if we contain no directory separator.
21137case $0 in
21138 *[\\/]* ) as_myself=$0 ;;
21139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021140for as_dir in $PATH
21141do
21142 IFS=$as_save_IFS
21143 test -z "$as_dir" && as_dir=.
21144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21145done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021146IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021147
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021148 ;;
21149esac
21150# We did not find ourselves, most probably we were run as `sh COMMAND'
21151# in which case we are not to be found in the path.
21152if test "x$as_myself" = x; then
21153 as_myself=$0
21154fi
21155if test ! -f "$as_myself"; then
21156 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21157 { (exit 1); exit 1; }
21158fi
21159
21160# Work around bugs in pre-3.0 UWIN ksh.
21161for as_var in ENV MAIL MAILPATH
21162do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21163done
21164PS1='$ '
21165PS2='> '
21166PS4='+ '
21167
21168# NLS nuisances.
21169for as_var in \
21170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21172 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021173do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21175 eval $as_var=C; export $as_var
21176 else
21177 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21178 fi
21179done
21180
21181# Required to use basename.
21182if expr a : '\(a\)' >/dev/null 2>&1 &&
21183 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21184 as_expr=expr
21185else
21186 as_expr=false
21187fi
21188
21189if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21190 as_basename=basename
21191else
21192 as_basename=false
21193fi
21194
21195
21196# Name of the executable.
21197as_me=`$as_basename -- "$0" ||
21198$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21199 X"$0" : 'X\(//\)$' \| \
21200 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21201echo X/"$0" |
21202 sed '/^.*\/\([^/][^/]*\)\/*$/{
21203 s//\1/
21204 q
21205 }
21206 /^X\/\(\/\/\)$/{
21207 s//\1/
21208 q
21209 }
21210 /^X\/\(\/\).*/{
21211 s//\1/
21212 q
21213 }
21214 s/.*/./; q'`
21215
21216# CDPATH.
21217$as_unset CDPATH
21218
21219
21220
John Criswell451f67f2003-10-16 01:45:35 +000021221 as_lineno_1=$LINENO
21222 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021223 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021224 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021225
21226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21227 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021228 # line-number line after each line using $LINENO; the second 'sed'
21229 # does the real work. The second script uses 'N' to pair each
21230 # line-number line with the line containing $LINENO, and appends
21231 # trailing '-' during substitution so that $LINENO is not a special
21232 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021234 # scripts with optimization help from Paolo Bonzini. Blame Lee
21235 # E. McMahon (1931-1989) for sed's syntax. :-)
21236 sed -n '
21237 p
21238 /[$]LINENO/=
21239 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021240 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021241 s/[$]LINENO.*/&-/
21242 t lineno
21243 b
21244 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021245 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021246 :loop
21247 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021248 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021249 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021250 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021251 chmod +x "$as_me.lineno" ||
21252 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021253 { (exit 1); exit 1; }; }
21254
21255 # Don't try to exec as it changes $[0], causing all sort of problems
21256 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021257 # original and so on. Autoconf is especially sensitive to this).
21258 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021259 # Exit status is that of the last command.
21260 exit
21261}
21262
21263
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021264if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21265 as_dirname=dirname
21266else
21267 as_dirname=false
21268fi
21269
21270ECHO_C= ECHO_N= ECHO_T=
21271case `echo -n x` in
21272-n*)
21273 case `echo 'x\c'` in
21274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21275 *) ECHO_C='\c';;
21276 esac;;
21277*)
21278 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021279esac
21280
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021281if expr a : '\(a\)' >/dev/null 2>&1 &&
21282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021283 as_expr=expr
21284else
21285 as_expr=false
21286fi
21287
21288rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021289if test -d conf$$.dir; then
21290 rm -f conf$$.dir/conf$$.file
21291else
21292 rm -f conf$$.dir
21293 mkdir conf$$.dir
21294fi
John Criswell451f67f2003-10-16 01:45:35 +000021295echo >conf$$.file
21296if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021297 as_ln_s='ln -s'
21298 # ... but there are two gotchas:
21299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21301 # In both cases, we have to default to `cp -p'.
21302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021303 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021304elif ln conf$$.file conf$$ 2>/dev/null; then
21305 as_ln_s=ln
21306else
21307 as_ln_s='cp -p'
21308fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021309rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21310rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021311
21312if mkdir -p . 2>/dev/null; then
21313 as_mkdir_p=:
21314else
Reid Spencer9964cd82005-01-01 09:26:55 +000021315 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021316 as_mkdir_p=false
21317fi
21318
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021319# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21320# systems may use methods other than mode bits to determine executability.
21321cat >conf$$.file <<_ASEOF
21322#! /bin/sh
21323exit 0
21324_ASEOF
21325chmod +x conf$$.file
21326if test -x conf$$.file >/dev/null 2>&1; then
21327 as_executable_p="test -x"
21328else
21329 as_executable_p=:
21330fi
21331rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021332
21333# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021334as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021335
21336# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021337as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021338
21339
John Criswell451f67f2003-10-16 01:45:35 +000021340exec 6>&1
21341
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021342# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021343# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021344# values after options handling.
21345ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021346This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021347generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021348
21349 CONFIG_FILES = $CONFIG_FILES
21350 CONFIG_HEADERS = $CONFIG_HEADERS
21351 CONFIG_LINKS = $CONFIG_LINKS
21352 CONFIG_COMMANDS = $CONFIG_COMMANDS
21353 $ $0 $@
21354
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021355on `(hostname || uname -n) 2>/dev/null | sed 1q`
21356"
21357
John Criswell451f67f2003-10-16 01:45:35 +000021358_ACEOF
21359
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021360cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021361# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021362config_files="$ac_config_files"
21363config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021364
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021365_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021366
21367cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021368ac_cs_usage="\
21369\`$as_me' instantiates files from templates according to the
21370current configuration.
21371
21372Usage: $0 [OPTIONS] [FILE]...
21373
21374 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021375 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021376 -q, --quiet do not print progress messages
21377 -d, --debug don't remove temporary files
21378 --recheck update $as_me by reconfiguring in the same conditions
21379 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021380 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021381
21382Configuration files:
21383$config_files
21384
21385Configuration commands:
21386$config_commands
21387
21388Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021389
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021390_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021391cat >>$CONFIG_STATUS <<_ACEOF
21392ac_cs_version="\\
21393[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021394configured by $0, generated by GNU Autoconf 2.60,
21395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021396
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021398This config.status script is free software; the Free Software Foundation
21399gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021400
21401ac_pwd='$ac_pwd'
21402srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021403INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021404_ACEOF
21405
21406cat >>$CONFIG_STATUS <<\_ACEOF
21407# If no file are specified by the user, then we need to provide default
21408# value. By we need to know if files were specified by the user.
21409ac_need_defaults=:
21410while test $# != 0
21411do
21412 case $1 in
21413 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021416 ac_shift=:
21417 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021418 *)
John Criswell451f67f2003-10-16 01:45:35 +000021419 ac_option=$1
21420 ac_optarg=$2
21421 ac_shift=shift
21422 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021423 esac
21424
21425 case $ac_option in
21426 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21428 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21430 echo "$ac_cs_version"; exit ;;
21431 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021432 debug=: ;;
21433 --file | --fil | --fi | --f )
21434 $ac_shift
21435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21436 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021437 --he | --h | --help | --hel | -h )
21438 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21441 ac_cs_silent=: ;;
21442
21443 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021444 -*) { echo "$as_me: error: unrecognized option: $1
21445Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021446 { (exit 1); exit 1; }; } ;;
21447
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021448 *) ac_config_targets="$ac_config_targets $1"
21449 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021450
21451 esac
21452 shift
21453done
21454
21455ac_configure_extra_args=
21456
21457if $ac_cs_silent; then
21458 exec 6>/dev/null
21459 ac_configure_extra_args="$ac_configure_extra_args --silent"
21460fi
21461
21462_ACEOF
21463cat >>$CONFIG_STATUS <<_ACEOF
21464if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021465 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21466 CONFIG_SHELL=$SHELL
21467 export CONFIG_SHELL
21468 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021469fi
21470
21471_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021472cat >>$CONFIG_STATUS <<\_ACEOF
21473exec 5>>config.log
21474{
21475 echo
21476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21477## Running $as_me. ##
21478_ASBOX
21479 echo "$ac_log"
21480} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021481
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021482_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021483cat >>$CONFIG_STATUS <<_ACEOF
21484#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021485# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021486#
Reid Spencer421ec052005-02-24 18:53:47 +000021487llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021488
21489_ACEOF
21490
Dan Gohman324f6082009-03-25 00:52:11 +000021491cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021492
21493# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021494for ac_config_target in $ac_config_targets
21495do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021496 case $ac_config_target in
21497 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21498 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021499 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021500 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21501 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21502 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21503 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21504 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21505
John Criswell451f67f2003-10-16 01:45:35 +000021506 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21507echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21508 { (exit 1); exit 1; }; };;
21509 esac
21510done
21511
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021512
John Criswell451f67f2003-10-16 01:45:35 +000021513# If the user did not use the arguments to specify the items to instantiate,
21514# then the envvar interface is used. Set only those that are not.
21515# We use the long form for the default assignment because of an extremely
21516# bizarre bug on SunOS 4.1.3.
21517if $ac_need_defaults; then
21518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21520fi
21521
21522# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021523# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021524# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021525# Hook for its removal unless debugging.
21526# Note that there is a small window in which the directory will not be cleaned:
21527# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021528$debug ||
21529{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021530 tmp=
21531 trap 'exit_status=$?
21532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21533' 0
John Criswell451f67f2003-10-16 01:45:35 +000021534 trap '{ (exit 1); exit 1; }' 1 2 13 15
21535}
John Criswell451f67f2003-10-16 01:45:35 +000021536# Create a (secure) tmp directory for tmp files.
21537
21538{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021540 test -n "$tmp" && test -d "$tmp"
21541} ||
21542{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021543 tmp=./conf$$-$RANDOM
21544 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021545} ||
21546{
21547 echo "$me: cannot create a temporary directory in ." >&2
21548 { (exit 1); exit 1; }
21549}
21550
John Criswell451f67f2003-10-16 01:45:35 +000021551#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021552# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021553#
21554
21555# No need to generate the scripts if there are no CONFIG_FILES.
21556# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021557if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021558
21559_ACEOF
21560
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021561
21562
21563ac_delim='%!_!# '
21564for ac_last_try in false false false false false :; do
21565 cat >conf$$subs.sed <<_ACEOF
21566SHELL!$SHELL$ac_delim
21567PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21568PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21569PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21570PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21571PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21572PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21573exec_prefix!$exec_prefix$ac_delim
21574prefix!$prefix$ac_delim
21575program_transform_name!$program_transform_name$ac_delim
21576bindir!$bindir$ac_delim
21577sbindir!$sbindir$ac_delim
21578libexecdir!$libexecdir$ac_delim
21579datarootdir!$datarootdir$ac_delim
21580datadir!$datadir$ac_delim
21581sysconfdir!$sysconfdir$ac_delim
21582sharedstatedir!$sharedstatedir$ac_delim
21583localstatedir!$localstatedir$ac_delim
21584includedir!$includedir$ac_delim
21585oldincludedir!$oldincludedir$ac_delim
21586docdir!$docdir$ac_delim
21587infodir!$infodir$ac_delim
21588htmldir!$htmldir$ac_delim
21589dvidir!$dvidir$ac_delim
21590pdfdir!$pdfdir$ac_delim
21591psdir!$psdir$ac_delim
21592libdir!$libdir$ac_delim
21593localedir!$localedir$ac_delim
21594mandir!$mandir$ac_delim
21595DEFS!$DEFS$ac_delim
21596ECHO_C!$ECHO_C$ac_delim
21597ECHO_N!$ECHO_N$ac_delim
21598ECHO_T!$ECHO_T$ac_delim
21599LIBS!$LIBS$ac_delim
21600build_alias!$build_alias$ac_delim
21601host_alias!$host_alias$ac_delim
21602target_alias!$target_alias$ac_delim
21603LLVM_SRC!$LLVM_SRC$ac_delim
21604LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021605LLVM_VERSION!$LLVM_VERSION$ac_delim
21606CC!$CC$ac_delim
21607CFLAGS!$CFLAGS$ac_delim
21608LDFLAGS!$LDFLAGS$ac_delim
21609CPPFLAGS!$CPPFLAGS$ac_delim
21610ac_ct_CC!$ac_ct_CC$ac_delim
21611EXEEXT!$EXEEXT$ac_delim
21612OBJEXT!$OBJEXT$ac_delim
21613CXX!$CXX$ac_delim
21614CXXFLAGS!$CXXFLAGS$ac_delim
21615ac_ct_CXX!$ac_ct_CXX$ac_delim
21616CPP!$CPP$ac_delim
21617ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21618LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21619subdirs!$subdirs$ac_delim
21620build!$build$ac_delim
21621build_cpu!$build_cpu$ac_delim
21622build_vendor!$build_vendor$ac_delim
21623build_os!$build_os$ac_delim
21624host!$host$ac_delim
21625host_cpu!$host_cpu$ac_delim
21626host_vendor!$host_vendor$ac_delim
21627host_os!$host_os$ac_delim
21628target!$target$ac_delim
21629target_cpu!$target_cpu$ac_delim
21630target_vendor!$target_vendor$ac_delim
21631target_os!$target_os$ac_delim
21632OS!$OS$ac_delim
21633HOST_OS!$HOST_OS$ac_delim
21634TARGET_OS!$TARGET_OS$ac_delim
21635LINKALL!$LINKALL$ac_delim
21636NOLINKALL!$NOLINKALL$ac_delim
21637LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639ARCH!$ARCH$ac_delim
21640ENDIAN!$ENDIAN$ac_delim
21641GREP!$GREP$ac_delim
21642EGREP!$EGREP$ac_delim
21643LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21644BUILD_CC!$BUILD_CC$ac_delim
21645BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21646BUILD_CXX!$BUILD_CXX$ac_delim
21647CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021648ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021649ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21650ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21651DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21652ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21653EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21654DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21655DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21656JIT!$JIT$ac_delim
21657TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21658ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21659ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21660ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21661ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21662ENABLE_PIC!$ENABLE_PIC$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021663_ACEOF
21664
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021665 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021666 break
21667 elif $ac_last_try; then
21668 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21669echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21670 { (exit 1); exit 1; }; }
21671 else
21672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021673 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021674done
21675
21676ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21677if test -n "$ac_eof"; then
21678 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21679 ac_eof=`expr $ac_eof + 1`
21680fi
21681
21682cat >>$CONFIG_STATUS <<_ACEOF
21683cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021684/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21685_ACEOF
21686sed '
21687s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21688s/^/s,@/; s/!/@,|#_!!_#|/
21689:n
21690t n
21691s/'"$ac_delim"'$/,g/; t
21692s/$/\\/; p
21693N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21694' >>$CONFIG_STATUS <conf$$subs.sed
21695rm -f conf$$subs.sed
21696cat >>$CONFIG_STATUS <<_ACEOF
21697CEOF$ac_eof
21698_ACEOF
21699
21700
21701ac_delim='%!_!# '
21702for ac_last_try in false false false false false :; do
21703 cat >conf$$subs.sed <<_ACEOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021704ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021705ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21706ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21707TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21708LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21709LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21710LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21711LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021712OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21713EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21714EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21715BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21716NM!$NM$ac_delim
21717ifGNUmake!$ifGNUmake$ac_delim
21718LN_S!$LN_S$ac_delim
21719CMP!$CMP$ac_delim
21720CP!$CP$ac_delim
21721DATE!$DATE$ac_delim
21722FIND!$FIND$ac_delim
21723MKDIR!$MKDIR$ac_delim
21724MV!$MV$ac_delim
21725RANLIB!$RANLIB$ac_delim
21726AR!$AR$ac_delim
21727RM!$RM$ac_delim
21728SED!$SED$ac_delim
21729TAR!$TAR$ac_delim
21730BINPWD!$BINPWD$ac_delim
21731GRAPHVIZ!$GRAPHVIZ$ac_delim
21732DOT!$DOT$ac_delim
21733FDP!$FDP$ac_delim
21734NEATO!$NEATO$ac_delim
21735TWOPI!$TWOPI$ac_delim
21736CIRCO!$CIRCO$ac_delim
21737GV!$GV$ac_delim
21738DOTTY!$DOTTY$ac_delim
21739XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021740INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21741INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21742INSTALL_DATA!$INSTALL_DATA$ac_delim
21743BZIP2!$BZIP2$ac_delim
21744CAT!$CAT$ac_delim
21745DOXYGEN!$DOXYGEN$ac_delim
21746GROFF!$GROFF$ac_delim
21747GZIPBIN!$GZIPBIN$ac_delim
21748POD2HTML!$POD2HTML$ac_delim
21749POD2MAN!$POD2MAN$ac_delim
21750PDFROFF!$PDFROFF$ac_delim
21751RUNTEST!$RUNTEST$ac_delim
21752TCLSH!$TCLSH$ac_delim
21753ZIP!$ZIP$ac_delim
21754OCAMLC!$OCAMLC$ac_delim
21755OCAMLOPT!$OCAMLOPT$ac_delim
21756OCAMLDEP!$OCAMLDEP$ac_delim
21757OCAMLDOC!$OCAMLDOC$ac_delim
21758GAS!$GAS$ac_delim
21759HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21760INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21761INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21762CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21763CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21764LIBADD_DL!$LIBADD_DL$ac_delim
21765NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21766NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021767COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021768USE_UDIS86!$USE_UDIS86$ac_delim
21769USE_OPROFILE!$USE_OPROFILE$ac_delim
21770HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21771HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21772MMAP_FILE!$MMAP_FILE$ac_delim
21773SHLIBEXT!$SHLIBEXT$ac_delim
21774SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21775LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21776LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21777LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21778LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21779LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21780LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21781LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21782LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21783LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21784LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21785BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21786ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21787OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21788ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21789RPATH!$RPATH$ac_delim
21790RDYNAMIC!$RDYNAMIC$ac_delim
21791LIBOBJS!$LIBOBJS$ac_delim
21792LTLIBOBJS!$LTLIBOBJS$ac_delim
21793_ACEOF
21794
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021795 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021796 break
21797 elif $ac_last_try; then
21798 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21799echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21800 { (exit 1); exit 1; }; }
21801 else
21802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21803 fi
21804done
21805
21806ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21807if test -n "$ac_eof"; then
21808 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21809 ac_eof=`expr $ac_eof + 1`
21810fi
21811
21812cat >>$CONFIG_STATUS <<_ACEOF
21813cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21815_ACEOF
21816sed '
21817s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21818s/^/s,@/; s/!/@,|#_!!_#|/
21819:n
21820t n
21821s/'"$ac_delim"'$/,g/; t
21822s/$/\\/; p
21823N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21824' >>$CONFIG_STATUS <conf$$subs.sed
21825rm -f conf$$subs.sed
21826cat >>$CONFIG_STATUS <<_ACEOF
21827:end
21828s/|#_!!_#|//g
21829CEOF$ac_eof
21830_ACEOF
21831
21832
21833# VPATH may cause trouble with some makes, so we remove $(srcdir),
21834# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21835# trailing colons and then remove the whole line if VPATH becomes empty
21836# (actually we leave an empty line to preserve line numbers).
21837if test "x$srcdir" = x.; then
21838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21839s/:*\$(srcdir):*/:/
21840s/:*\${srcdir}:*/:/
21841s/:*@srcdir@:*/:/
21842s/^\([^=]*=[ ]*\):*/\1/
21843s/:*$//
21844s/^[^=]*=[ ]*$//
21845}'
21846fi
21847
21848cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021849fi # test -n "$CONFIG_FILES"
21850
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021851
21852for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21853do
21854 case $ac_tag in
21855 :[FHLC]) ac_mode=$ac_tag; continue;;
21856 esac
21857 case $ac_mode$ac_tag in
21858 :[FHL]*:*);;
21859 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21860echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21861 { (exit 1); exit 1; }; };;
21862 :[FH]-) ac_tag=-:-;;
21863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21864 esac
21865 ac_save_IFS=$IFS
21866 IFS=:
21867 set x $ac_tag
21868 IFS=$ac_save_IFS
21869 shift
21870 ac_file=$1
21871 shift
21872
21873 case $ac_mode in
21874 :L) ac_source=$1;;
21875 :[FH])
21876 ac_file_inputs=
21877 for ac_f
21878 do
21879 case $ac_f in
21880 -) ac_f="$tmp/stdin";;
21881 *) # Look for the file first in the build tree, then in the source tree
21882 # (if the path is not absolute). The absolute path cannot be DOS-style,
21883 # because $ac_f cannot contain `:'.
21884 test -f "$ac_f" ||
21885 case $ac_f in
21886 [\\/$]*) false;;
21887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21888 esac ||
21889 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21890echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21891 { (exit 1); exit 1; }; };;
21892 esac
21893 ac_file_inputs="$ac_file_inputs $ac_f"
21894 done
21895
21896 # Let's still pretend it is `configure' which instantiates (i.e., don't
21897 # use $as_me), people would be surprised to read:
21898 # /* config.h. Generated by config.status. */
21899 configure_input="Generated from "`IFS=:
21900 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21901 if test x"$ac_file" != x-; then
21902 configure_input="$ac_file. $configure_input"
21903 { echo "$as_me:$LINENO: creating $ac_file" >&5
21904echo "$as_me: creating $ac_file" >&6;}
21905 fi
21906
21907 case $ac_tag in
21908 *:-:* | *:-) cat >"$tmp/stdin";;
21909 esac
21910 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021911 esac
21912
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021913 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021914$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021915 X"$ac_file" : 'X\(//\)[^/]' \| \
21916 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021917 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021918echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21920 s//\1/
21921 q
21922 }
21923 /^X\(\/\/\)[^/].*/{
21924 s//\1/
21925 q
21926 }
21927 /^X\(\/\/\)$/{
21928 s//\1/
21929 q
21930 }
21931 /^X\(\/\).*/{
21932 s//\1/
21933 q
21934 }
21935 s/.*/./; q'`
21936 { as_dir="$ac_dir"
21937 case $as_dir in #(
21938 -*) as_dir=./$as_dir;;
21939 esac
21940 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021941 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021942 while :; do
21943 case $as_dir in #(
21944 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21945 *) as_qdir=$as_dir;;
21946 esac
21947 as_dirs="'$as_qdir' $as_dirs"
21948 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021949$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021950 X"$as_dir" : 'X\(//\)[^/]' \| \
21951 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021953echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21955 s//\1/
21956 q
21957 }
21958 /^X\(\/\/\)[^/].*/{
21959 s//\1/
21960 q
21961 }
21962 /^X\(\/\/\)$/{
21963 s//\1/
21964 q
21965 }
21966 /^X\(\/\).*/{
21967 s//\1/
21968 q
21969 }
21970 s/.*/./; q'`
21971 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021972 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021973 test -z "$as_dirs" || eval "mkdir $as_dirs"
21974 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21975echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021976 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021977 ac_builddir=.
21978
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021979case "$ac_dir" in
21980.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21981*)
John Criswell451f67f2003-10-16 01:45:35 +000021982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021983 # A ".." for each directory in $ac_dir_suffix.
21984 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21985 case $ac_top_builddir_sub in
21986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21988 esac ;;
21989esac
21990ac_abs_top_builddir=$ac_pwd
21991ac_abs_builddir=$ac_pwd$ac_dir_suffix
21992# for backward compatibility:
21993ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021994
21995case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021996 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021997 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021998 ac_top_srcdir=$ac_top_builddir_sub
21999 ac_abs_top_srcdir=$ac_pwd ;;
22000 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022001 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022002 ac_top_srcdir=$srcdir
22003 ac_abs_top_srcdir=$srcdir ;;
22004 *) # Relative name.
22005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22006 ac_top_srcdir=$ac_top_build_prefix$srcdir
22007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022008esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022009ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022010
Dan Gohman324f6082009-03-25 00:52:11 +000022011
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022012 case $ac_mode in
22013 :F)
22014 #
22015 # CONFIG_FILE
22016 #
Dan Gohman324f6082009-03-25 00:52:11 +000022017
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022018 case $INSTALL in
22019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22021 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022022_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022023
22024cat >>$CONFIG_STATUS <<\_ACEOF
22025# If the template does not know about datarootdir, expand it.
22026# FIXME: This hack should be removed a few years after 2.60.
22027ac_datarootdir_hack=; ac_datarootdir_seen=
22028
22029case `sed -n '/datarootdir/ {
22030 p
22031 q
22032}
22033/@datadir@/p
22034/@docdir@/p
22035/@infodir@/p
22036/@localedir@/p
22037/@mandir@/p
22038' $ac_file_inputs` in
22039*datarootdir*) ac_datarootdir_seen=yes;;
22040*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22041 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22042echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22043_ACEOF
22044cat >>$CONFIG_STATUS <<_ACEOF
22045 ac_datarootdir_hack='
22046 s&@datadir@&$datadir&g
22047 s&@docdir@&$docdir&g
22048 s&@infodir@&$infodir&g
22049 s&@localedir@&$localedir&g
22050 s&@mandir@&$mandir&g
22051 s&\\\${datarootdir}&$datarootdir&g' ;;
22052esac
22053_ACEOF
22054
22055# Neutralize VPATH when `$srcdir' = `.'.
22056# Shell code in configure.ac might set extrasub.
22057# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022058cat >>$CONFIG_STATUS <<_ACEOF
22059 sed "$ac_vpsub
22060$extrasub
22061_ACEOF
22062cat >>$CONFIG_STATUS <<\_ACEOF
22063:t
22064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022065s&@configure_input@&$configure_input&;t t
22066s&@top_builddir@&$ac_top_builddir_sub&;t t
22067s&@srcdir@&$ac_srcdir&;t t
22068s&@abs_srcdir@&$ac_abs_srcdir&;t t
22069s&@top_srcdir@&$ac_top_srcdir&;t t
22070s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22071s&@builddir@&$ac_builddir&;t t
22072s&@abs_builddir@&$ac_abs_builddir&;t t
22073s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022074s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022075$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022076" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022077
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022078test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22081 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22082which seems to be undefined. Please make sure it is defined." >&5
22083echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22084which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022085
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022086 rm -f "$tmp/stdin"
22087 case $ac_file in
22088 -) cat "$tmp/out"; rm -f "$tmp/out";;
22089 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022090 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022091 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022092
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022093
22094 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22095echo "$as_me: executing $ac_file commands" >&6;}
22096 ;;
22097 esac
22098
22099
22100 case $ac_file$ac_mode in
Benjamin Kramer00171802012-05-05 15:02:39 +000022101 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22103 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22104 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22105 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22106 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22107 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22108 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22109 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22110 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022111
22112 esac
22113done # for ac_tag
22114
John Criswell451f67f2003-10-16 01:45:35 +000022115
22116{ (exit 0); exit 0; }
22117_ACEOF
22118chmod +x $CONFIG_STATUS
22119ac_clean_files=$ac_clean_files_save
22120
22121
22122# configure is writing to config.log, and then calls config.status.
22123# config.status does its own redirection, appending to config.log.
22124# Unfortunately, on DOS this fails, as config.log is still kept open
22125# by configure, so config.status won't be able to write to it; its
22126# output is simply discarded. So we exec the FD to /dev/null,
22127# effectively closing config.log, so it can be properly (re)opened and
22128# appended to by config.status. When coming back to configure, we
22129# need to make the FD available again.
22130if test "$no_create" != yes; then
22131 ac_cs_success=:
22132 ac_config_status_args=
22133 test "$silent" = yes &&
22134 ac_config_status_args="$ac_config_status_args --quiet"
22135 exec 5>/dev/null
22136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22137 exec 5>>config.log
22138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22139 # would make configure fail if this is the last instruction.
22140 $ac_cs_success || { (exit 1); exit 1; }
22141fi
22142
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022143#
22144# CONFIG_SUBDIRS section.
22145#
22146if test "$no_recursion" != yes; then
22147
22148 # Remove --cache-file and --srcdir arguments so they do not pile up.
22149 ac_sub_configure_args=
22150 ac_prev=
22151 eval "set x $ac_configure_args"
22152 shift
22153 for ac_arg
22154 do
22155 if test -n "$ac_prev"; then
22156 ac_prev=
22157 continue
22158 fi
22159 case $ac_arg in
22160 -cache-file | --cache-file | --cache-fil | --cache-fi \
22161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22162 ac_prev=cache_file ;;
22163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22165 | --c=*)
22166 ;;
22167 --config-cache | -C)
22168 ;;
22169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22170 ac_prev=srcdir ;;
22171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22172 ;;
22173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22174 ac_prev=prefix ;;
22175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22176 ;;
22177 *)
22178 case $ac_arg in
22179 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22180 esac
22181 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22182 esac
22183 done
22184
22185 # Always prepend --prefix to ensure using the same prefix
22186 # in subdir configurations.
22187 ac_arg="--prefix=$prefix"
22188 case $ac_arg in
22189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22190 esac
22191 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22192
22193 ac_popdir=`pwd`
22194 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22195
22196 # Do not complain, so a configure script can configure whichever
22197 # parts of a large source tree are present.
22198 test -d "$srcdir/$ac_dir" || continue
22199
22200 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22201 echo "$as_me:$LINENO: $ac_msg" >&5
22202 echo "$ac_msg" >&6
22203 { as_dir="$ac_dir"
22204 case $as_dir in #(
22205 -*) as_dir=./$as_dir;;
22206 esac
22207 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22208 as_dirs=
22209 while :; do
22210 case $as_dir in #(
22211 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22212 *) as_qdir=$as_dir;;
22213 esac
22214 as_dirs="'$as_qdir' $as_dirs"
22215 as_dir=`$as_dirname -- "$as_dir" ||
22216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217 X"$as_dir" : 'X\(//\)[^/]' \| \
22218 X"$as_dir" : 'X\(//\)$' \| \
22219 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22220echo X"$as_dir" |
22221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22222 s//\1/
22223 q
22224 }
22225 /^X\(\/\/\)[^/].*/{
22226 s//\1/
22227 q
22228 }
22229 /^X\(\/\/\)$/{
22230 s//\1/
22231 q
22232 }
22233 /^X\(\/\).*/{
22234 s//\1/
22235 q
22236 }
22237 s/.*/./; q'`
22238 test -d "$as_dir" && break
22239 done
22240 test -z "$as_dirs" || eval "mkdir $as_dirs"
22241 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22242echo "$as_me: error: cannot create directory $as_dir" >&2;}
22243 { (exit 1); exit 1; }; }; }
22244 ac_builddir=.
22245
22246case "$ac_dir" in
22247.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22248*)
22249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22250 # A ".." for each directory in $ac_dir_suffix.
22251 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22252 case $ac_top_builddir_sub in
22253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22255 esac ;;
22256esac
22257ac_abs_top_builddir=$ac_pwd
22258ac_abs_builddir=$ac_pwd$ac_dir_suffix
22259# for backward compatibility:
22260ac_top_builddir=$ac_top_build_prefix
22261
22262case $srcdir in
22263 .) # We are building in place.
22264 ac_srcdir=.
22265 ac_top_srcdir=$ac_top_builddir_sub
22266 ac_abs_top_srcdir=$ac_pwd ;;
22267 [\\/]* | ?:[\\/]* ) # Absolute name.
22268 ac_srcdir=$srcdir$ac_dir_suffix;
22269 ac_top_srcdir=$srcdir
22270 ac_abs_top_srcdir=$srcdir ;;
22271 *) # Relative name.
22272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22273 ac_top_srcdir=$ac_top_build_prefix$srcdir
22274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22275esac
22276ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22277
22278
22279 cd "$ac_dir"
22280
22281 # Check for guested configure; otherwise get Cygnus style configure.
22282 if test -f "$ac_srcdir/configure.gnu"; then
22283 ac_sub_configure=$ac_srcdir/configure.gnu
22284 elif test -f "$ac_srcdir/configure"; then
22285 ac_sub_configure=$ac_srcdir/configure
22286 elif test -f "$ac_srcdir/configure.in"; then
22287 # This should be Cygnus configure.
22288 ac_sub_configure=$ac_aux_dir/configure
22289 else
22290 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22291echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22292 ac_sub_configure=
22293 fi
22294
22295 # The recursion is here.
22296 if test -n "$ac_sub_configure"; then
22297 # Make the cache file name correct relative to the subdirectory.
22298 case $cache_file in
22299 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22300 *) # Relative name.
22301 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22302 esac
22303
22304 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22305echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22306 # The eval makes quoting arguments work.
22307 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22308 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22309 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22310echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22311 { (exit 1); exit 1; }; }
22312 fi
22313
22314 cd "$ac_popdir"
22315 done
22316fi
22317