blob: 41dc4759643d58d2ed945f4723d813fa53886e75 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Tanya Lattner916a91122009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
31
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000058fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000066as_nl='
67'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000071case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000080IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000092fi
93
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Edwin Törökc27310c2010-01-26 08:50:50 +0000107do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000113done
Edwin Törökc27310c2010-01-26 08:50:50 +0000114
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000115# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000130# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000135echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000152
153
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000471case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000472-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000494fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000513 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000528else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000531rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000542
543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000560
561# Identity of this package.
562PACKAGE_NAME='llvm'
563PACKAGE_TARNAME='-llvm-'
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568ac_unique_file="lib/VMCore/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000578#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000596# include <inttypes.h>
597#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000599# include <stdint.h>
600#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Edwin Törökc27310c2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
692TARGETS_TO_BUILD
693LLVM_ENUM_TARGETS
694LLVM_ENUM_ASM_PRINTERS
695LLVM_ENUM_ASM_PARSERS
696LLVM_ENUM_DISASSEMBLERS
697ENABLE_CBE_PRINTF_A
698OPTIMIZE_OPTION
699EXTRA_OPTIONS
700BINUTILS_INCDIR
701ENABLE_LLVMC_DYNAMIC
702ENABLE_LLVMC_DYNAMIC_PLUGINS
703CXX
704CXXFLAGS
705ac_ct_CXX
706NM
707ifGNUmake
708LN_S
709CMP
710CP
711DATE
712FIND
713MKDIR
714MV
715RANLIB
716AR
717RM
718SED
719TAR
720BINPWD
721GRAPHVIZ
722DOT
723FDP
724NEATO
725TWOPI
726CIRCO
727GV
728DOTTY
729PERL
730HAVE_PERL
731INSTALL_PROGRAM
732INSTALL_SCRIPT
733INSTALL_DATA
734BZIP2
735DOXYGEN
736GROFF
737GZIP
738POD2HTML
739POD2MAN
740RUNTEST
741TCLSH
742ZIP
743OCAMLC
744OCAMLOPT
745OCAMLDEP
746OCAMLDOC
747GAS
748INSTALL_LTDL_TRUE
749INSTALL_LTDL_FALSE
750CONVENIENCE_LTDL_TRUE
751CONVENIENCE_LTDL_FALSE
752LIBADD_DL
753LLVMGCCCOMMAND
754LLVMGXXCOMMAND
755LLVMGCC
756LLVMGXX
757NO_VARIADIC_MACROS
758NO_MISSING_FIELD_INITIALIZERS
759USE_UDIS86
760USE_OPROFILE
761HAVE_PTHREAD
762HUGE_VAL_SANITY
763MMAP_FILE
764LLVMCC1
765LLVMCC1PLUS
766LLVMGCCDIR
767LLVMGCCLIBEXEC
768LLVMGCC_VERSION
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000769LLVMGCC_LANGS
770SHLIBEXT
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
787LIBOBJS
788LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000789ac_subst_files=''
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CPP
798CXX
799CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000800CCC'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000801ac_subdirs_all='projects/sample
802projects/privbracket
803projects/llvm-stacker
804projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000805projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000806projects/llvm-reopt
807projects/llvm-gcc
808projects/llvm-java
809projects/llvm-tv
810projects/llvm-poolalloc
811projects/poolalloc
812projects/llvm-kernel'
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000915 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000916 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000917 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
921 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000934 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000935 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001131 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001132 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package| sed 's/-/_/g'`
1137 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001138
1139 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package | sed 's/-/_/g'`
1146 eval with_$ac_package=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001166 -*) { echo "$as_me: error: unrecognized option: $ac_option
1167Try \`$0 --help' for more information." >&2
1168 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001174 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1176 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001182 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001184 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001193 { echo "$as_me: error: missing argument to $ac_option" >&2
1194 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001195fi
1196
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001197# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202do
1203 eval ac_val=\$$ac_var
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001208 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001210done
1211
1212# There might be people who depend on the old broken behavior: `$host'
1213# used to hold the argument of --host etc.
1214# FIXME: To remove some day.
1215build=$build_alias
1216host=$host_alias
1217target=$target_alias
1218
1219# FIXME: To remove some day.
1220if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001223 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001239 { echo "$as_me: error: Working directory cannot be determined" >&2
1240 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001242 { echo "$as_me: error: pwd does not report name of working directory" >&2
1243 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001250 ac_confdir=`$as_dirname -- "$0" ||
1251$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$0" : 'X\(//\)[^/]' \| \
1253 X"$0" : 'X\(//\)$' \| \
1254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1255echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277else
1278 ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001282 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001287 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1288 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001289 pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293fi
1294# Remove unnecessary trailing slashes from srcdir.
1295# Double slashes in file names in object file debugging info
1296# mess up M-x gdb in Emacs.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305done
1306
1307#
1308# Report the --help message.
1309#
1310if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001314\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001336 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001338 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001367_ACEOF
1368
1369 cat <<\_ACEOF
1370
1371System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 --target=TARGET configure for building compilers for TARGET [HOST]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001380 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001381 esac
1382 cat <<\_ACEOF
1383
1384Optional Features:
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001387 --enable-optimized Compile with optimizations enabled (default is NO)
1388 --enable-profiling Compile with profiling enabled (default is NO)
1389 --enable-assertions Compile with assertion checks enabled (default is
1390 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001391 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001392 Compile with expensive debug checks enabled (default
1393 is NO)
1394 --enable-debug-runtime Build runtime libs with debug symbols (default is
1395 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001396 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1397 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001398 --enable-jit Enable Just In Time Compiling (default is YES)
1399 --enable-doxygen Build doxygen documentation (default is NO)
1400 --enable-threads Use threads if available (default is YES)
1401 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001402 is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001403 --enable-targets Build specific host targets: all or
1404 target1,target2,... Valid targets are: host, x86,
1405 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1406 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1407 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001408 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001412 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001413 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1414 Win32)
1415 --enable-llvmc-dynamic-plugins
1416 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001417 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001418
1419Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1423 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001424 --with-llvmgcc Specify location of llvm-gcc driver (default
1425 searches PATH)
1426 --with-llvmgxx Specify location of llvm-g++ driver (default
1427 searches PATH)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001428 --with-optimize-option Select the compiler options to use for optimized
1429 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001430 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001431 --with-ocaml-libdir Specify install location for ocaml bindings (default
1432 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001433 --with-c-include-dirs Colon separated list of directories clang will
1434 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001435 --with-cxx-include-root Directory with the libstdc++ headers.
1436 --with-cxx-include-arch Architecture of the libstdc++ headers.
1437 --with-cxx-include-32bit-dir
1438 32 bit multilib dir.
1439 --with-cxx-include-64bit-dir
1440 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001441 --with-binutils-include Specify path to binutils/include/ containing
1442 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001443 --with-tclinclude directory where tcl headers are
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001444 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001445 --with-oprofile=<prefix>
1446 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001447
1448Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001458
1459Use these variables to override the choices made by `configure' or to help
1460it to find libraries and programs with nonstandard names/locations.
1461
1462Report bugs to <llvmbugs@cs.uiuc.edu>.
1463_ACEOF
1464ac_status=$?
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001470 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001471 ac_builddir=.
1472
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001477 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
1488
1489case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502esac
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001514 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518fi
1519
1520test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then
1522 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001523llvm configure 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001524generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001525
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001526Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15272002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001528This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it.
1530
Tanya Lattner916a91122009-08-22 21:01:26 +00001531Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001532_ACEOF
1533 exit
1534fi
1535cat >config.log <<_ACEOF
1536This file contains any messages produced by compilers while
1537running configure, to aid debugging if configure makes a mistake.
1538
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001539It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001540generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001541
1542 $ $0 $@
1543
1544_ACEOF
1545exec 5>>config.log
1546{
1547cat <<_ASUNAME
1548## --------- ##
1549## Platform. ##
1550## --------- ##
1551
1552hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1553uname -m = `(uname -m) 2>/dev/null || echo unknown`
1554uname -r = `(uname -r) 2>/dev/null || echo unknown`
1555uname -s = `(uname -s) 2>/dev/null || echo unknown`
1556uname -v = `(uname -v) 2>/dev/null || echo unknown`
1557
1558/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1559/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1560
1561/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1562/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1563/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1564/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1565/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1566/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1567/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1568
1569_ASUNAME
1570
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001576 echo "PATH: $as_dir"
1577done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001578IFS=$as_save_IFS
1579
1580} >&5
1581
1582cat >&5 <<_ACEOF
1583
1584
1585## ----------- ##
1586## Core tests. ##
1587## ----------- ##
1588
1589_ACEOF
1590
1591
1592# Keep a trace of the command line.
1593# Strip out --no-create and --no-recursion so they do not pile up.
1594# Strip out --silent because we don't want to record it for future runs.
1595# Also quote any args containing shell meta-characters.
1596# Make two passes to allow for proper duplicate-argument suppression.
1597ac_configure_args=
1598ac_configure_args0=
1599ac_configure_args1=
1600ac_must_keep_next=false
1601for ac_pass in 1 2
1602do
1603 for ac_arg
1604 do
1605 case $ac_arg in
1606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1609 continue ;;
1610 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001612 esac
1613 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001614 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001615 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001616 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001617 if test $ac_must_keep_next = true; then
1618 ac_must_keep_next=false # Got value, back to normal.
1619 else
1620 case $ac_arg in
1621 *=* | --config-cache | -C | -disable-* | --disable-* \
1622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1624 | -with-* | --with-* | -without-* | --without-* | --x)
1625 case "$ac_configure_args0 " in
1626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1627 esac
1628 ;;
1629 -* ) ac_must_keep_next=true ;;
1630 esac
1631 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001632 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001633 ;;
1634 esac
1635 done
1636done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001637$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1638$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001639
1640# When interrupted or exit'd, cleanup temporary files, and complete
1641# config.log. We remove comments because anyway the quotes in there
1642# would cause problems or look ugly.
1643# WARNING: Use '\'' to represent an apostrophe within the trap.
1644# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1645trap 'exit_status=$?
1646 # Save into config.log some information that might help in debugging.
1647 {
1648 echo
1649
1650 cat <<\_ASBOX
1651## ---------------- ##
1652## Cache variables. ##
1653## ---------------- ##
1654_ASBOX
1655 echo
1656 # The following way of writing the cache mishandles newlines in values,
1657(
1658 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1659 eval ac_val=\$$ac_var
1660 case $ac_val in #(
1661 *${as_nl}*)
1662 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1664echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001665 esac
1666 case $ac_var in #(
1667 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001668 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001669 esac ;;
1670 esac
1671 done
1672 (set) 2>&1 |
1673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1674 *${as_nl}ac_space=\ *)
1675 sed -n \
1676 "s/'\''/'\''\\\\'\'''\''/g;
1677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1678 ;; #(
1679 *)
1680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1681 ;;
1682 esac |
1683 sort
1684)
1685 echo
1686
1687 cat <<\_ASBOX
1688## ----------------- ##
1689## Output variables. ##
1690## ----------------- ##
1691_ASBOX
1692 echo
1693 for ac_var in $ac_subst_vars
1694 do
1695 eval ac_val=\$$ac_var
1696 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001697 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001698 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001699 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001700 done | sort
1701 echo
1702
1703 if test -n "$ac_subst_files"; then
1704 cat <<\_ASBOX
1705## ------------------- ##
1706## File substitutions. ##
1707## ------------------- ##
1708_ASBOX
1709 echo
1710 for ac_var in $ac_subst_files
1711 do
1712 eval ac_val=\$$ac_var
1713 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001715 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001716 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001717 done | sort
1718 echo
1719 fi
1720
1721 if test -s confdefs.h; then
1722 cat <<\_ASBOX
1723## ----------- ##
1724## confdefs.h. ##
1725## ----------- ##
1726_ASBOX
1727 echo
1728 cat confdefs.h
1729 echo
1730 fi
1731 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001732 echo "$as_me: caught signal $ac_signal"
1733 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001734 } >&5
1735 rm -f core *.core core.conftest.* &&
1736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1737 exit $exit_status
1738' 0
1739for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001740 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001741done
1742ac_signal=0
1743
1744# confdefs.h avoids OS command line length limits that DEFS can exceed.
1745rm -f -r conftest* confdefs.h
1746
1747# Predefined preprocessor variables.
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_NAME "$PACKAGE_NAME"
1751_ACEOF
1752
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001753
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1756_ACEOF
1757
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001758
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_VERSION "$PACKAGE_VERSION"
1761_ACEOF
1762
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001763
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_STRING "$PACKAGE_STRING"
1766_ACEOF
1767
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001768
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1771_ACEOF
1772
1773
1774# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001775# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001776if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001777 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001778elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001779 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001780else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001781 set x "$ac_default_prefix/share/config.site" \
1782 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001783fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001784shift
1785for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001786do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001787 if test -r "$ac_site_file"; then
1788 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1789echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001790 sed 's/^/| /' "$ac_site_file" >&5
1791 . "$ac_site_file"
1792 fi
1793done
1794
1795if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001796 # Some versions of bash will fail to source /dev/null (special
1797 # files actually), so we avoid doing that.
1798 if test -f "$cache_file"; then
1799 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1800echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001801 case $cache_file in
1802 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1803 *) . "./$cache_file";;
1804 esac
1805 fi
1806else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001807 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1808echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001809 >$cache_file
1810fi
1811
1812# Check that the precious variables saved in the cache have kept the same
1813# value.
1814ac_cache_corrupted=false
1815for ac_var in $ac_precious_vars; do
1816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1817 eval ac_new_set=\$ac_env_${ac_var}_set
1818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1819 eval ac_new_val=\$ac_env_${ac_var}_value
1820 case $ac_old_set,$ac_new_set in
1821 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001822 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1823echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001824 ac_cache_corrupted=: ;;
1825 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1827echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001828 ac_cache_corrupted=: ;;
1829 ,);;
1830 *)
1831 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1833echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1834 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1835echo "$as_me: former value: $ac_old_val" >&2;}
1836 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1837echo "$as_me: current value: $ac_new_val" >&2;}
1838 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001839 fi;;
1840 esac
1841 # Pass precious variables to config.status.
1842 if test "$ac_new_set" = set; then
1843 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001844 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001845 *) ac_arg=$ac_var=$ac_new_val ;;
1846 esac
1847 case " $ac_configure_args " in
1848 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001849 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001850 esac
1851 fi
1852done
1853if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001854 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1855echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1856 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1857echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1858 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001859fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001884
1885ac_ext=c
1886ac_cpp='$CPP $CPPFLAGS'
1887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890
1891
1892
Tanya Lattner916a91122009-08-22 21:01:26 +00001893LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001894
1895
1896
1897
1898
1899
1900
1901ac_aux_dir=
1902for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001903 if test -f "$ac_dir/install-sh"; then
1904 ac_aux_dir=$ac_dir
1905 ac_install_sh="$ac_aux_dir/install-sh -c"
1906 break
1907 elif test -f "$ac_dir/install.sh"; then
1908 ac_aux_dir=$ac_dir
1909 ac_install_sh="$ac_aux_dir/install.sh -c"
1910 break
1911 elif test -f "$ac_dir/shtool"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/shtool install -c"
1914 break
1915 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001916done
1917if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001918 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1919echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1920 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001921fi
1922
1923# These three variables are undocumented and unsupported,
1924# and are intended to be withdrawn in a future Autoconf release.
1925# They can cause serious problems if a builder's source tree is in a directory
1926# whose full name contains unusual characters.
1927ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1928ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1929ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1930
1931
1932
1933if test ${srcdir} != "." ; then
1934 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001935 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1936echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1937 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001938 fi
1939fi
1940
1941for i in `ls ${srcdir}/projects`
1942do
1943 if test -d ${srcdir}/projects/${i} ; then
1944 case ${i} in
1945 CVS) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001946 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001947 ;;
1948 privbracket) subdirs="$subdirs projects/privbracket"
1949 ;;
1950 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1951 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00001952 # llvm-test is the old name of the test-suite, kept here for backwards
1953 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001954 llvm-test) subdirs="$subdirs projects/llvm-test"
1955 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00001956 test-suite) subdirs="$subdirs projects/test-suite"
1957 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001958 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1959;;
1960 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1961 ;;
1962 llvm-java) subdirs="$subdirs projects/llvm-java"
1963 ;;
1964 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1965 ;;
1966 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1967 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00001968 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001969 ;;
1970 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1971 ;;
1972 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001973 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1974echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001975 ;;
1976 esac
1977 fi
1978done
1979
1980
1981# Make sure we can run config.sub.
1982$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001983 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1984echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1985 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001986
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001987{ echo "$as_me:$LINENO: checking build system type" >&5
1988echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1989if test "${ac_cv_build+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001991else
1992 ac_build_alias=$build_alias
1993test "x$ac_build_alias" = x &&
1994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1995test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1997echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1998 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001999ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002000 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2001echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2002 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002003
2004fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002005{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2006echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002007case $ac_cv_build in
2008*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002009*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2010echo "$as_me: error: invalid value of canonical build" >&2;}
2011 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002012esac
2013build=$ac_cv_build
2014ac_save_IFS=$IFS; IFS='-'
2015set x $ac_cv_build
2016shift
2017build_cpu=$1
2018build_vendor=$2
2019shift; shift
2020# Remember, the first character of IFS is used to create $*,
2021# except with old shells:
2022build_os=$*
2023IFS=$ac_save_IFS
2024case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025
2026
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002027{ echo "$as_me:$LINENO: checking host system type" >&5
2028echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2029if test "${ac_cv_host+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002031else
2032 if test "x$host_alias" = x; then
2033 ac_cv_host=$ac_cv_build
2034else
2035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2037echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002039fi
2040
2041fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002042{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2043echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002044case $ac_cv_host in
2045*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002046*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2047echo "$as_me: error: invalid value of canonical host" >&2;}
2048 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002049esac
2050host=$ac_cv_host
2051ac_save_IFS=$IFS; IFS='-'
2052set x $ac_cv_host
2053shift
2054host_cpu=$1
2055host_vendor=$2
2056shift; shift
2057# Remember, the first character of IFS is used to create $*,
2058# except with old shells:
2059host_os=$*
2060IFS=$ac_save_IFS
2061case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2062
2063
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002064{ echo "$as_me:$LINENO: checking target system type" >&5
2065echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2066if test "${ac_cv_target+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002068else
2069 if test "x$target_alias" = x; then
2070 ac_cv_target=$ac_cv_host
2071else
2072 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002073 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2074echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2075 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002076fi
2077
2078fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002079{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2080echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002081case $ac_cv_target in
2082*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002083*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2084echo "$as_me: error: invalid value of canonical target" >&2;}
2085 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002086esac
2087target=$ac_cv_target
2088ac_save_IFS=$IFS; IFS='-'
2089set x $ac_cv_target
2090shift
2091target_cpu=$1
2092target_vendor=$2
2093shift; shift
2094# Remember, the first character of IFS is used to create $*,
2095# except with old shells:
2096target_os=$*
2097IFS=$ac_save_IFS
2098case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2099
2100
2101# The aliases save the names the user supplied, while $host etc.
2102# will get canonicalized.
2103test -n "$target_alias" &&
2104 test "$program_prefix$program_suffix$program_transform_name" = \
2105 NONENONEs,x,x, &&
2106 program_prefix=${target_alias}-
2107
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002108{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2109echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2110if test "${llvm_cv_os_type+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002112else
2113 case $host in
2114 *-*-aix*)
2115 llvm_cv_link_all_option="-Wl,--whole-archive"
2116 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2117 llvm_cv_os_type="AIX"
2118 llvm_cv_platform_type="Unix" ;;
2119 *-*-irix*)
2120 llvm_cv_link_all_option="-Wl,--whole-archive"
2121 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2122 llvm_cv_os_type="IRIX"
2123 llvm_cv_platform_type="Unix" ;;
2124 *-*-cygwin*)
2125 llvm_cv_link_all_option="-Wl,--whole-archive"
2126 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2127 llvm_cv_os_type="Cygwin"
2128 llvm_cv_platform_type="Unix" ;;
2129 *-*-darwin*)
2130 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002131 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002132 llvm_cv_os_type="Darwin"
2133 llvm_cv_platform_type="Unix" ;;
2134 *-*-freebsd*)
2135 llvm_cv_link_all_option="-Wl,--whole-archive"
2136 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137 llvm_cv_os_type="FreeBSD"
2138 llvm_cv_platform_type="Unix" ;;
2139 *-*-openbsd*)
2140 llvm_cv_link_all_option="-Wl,--whole-archive"
2141 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2142 llvm_cv_os_type="OpenBSD"
2143 llvm_cv_platform_type="Unix" ;;
2144 *-*-netbsd*)
2145 llvm_cv_link_all_option="-Wl,--whole-archive"
2146 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2147 llvm_cv_os_type="NetBSD"
2148 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002149 *-*-dragonfly*)
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="DragonFly"
2153 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002154 *-*-hpux*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="HP-UX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-interix*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Interix"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-linux*)
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="Linux"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-solaris*)
2170 llvm_cv_link_all_option="-Wl,-z,allextract"
2171 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2172 llvm_cv_os_type="SunOS"
2173 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002174 *-*-auroraux*)
2175 llvm_cv_link_all_option="-Wl,-z,allextract"
2176 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2177 llvm_cv_os_type="AuroraUX"
2178 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002179 *-*-win32*)
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="Win32"
2183 llvm_cv_platform_type="Win32" ;;
2184 *-*-mingw*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="MingW"
2188 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002189 *-*-haiku*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="Haiku"
2193 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002194 *-unknown-eabi*)
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="Freestanding"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-unknown-elf*)
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Freestanding"
2203 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002204 *)
2205 llvm_cv_link_all_option=""
2206 llvm_cv_no_link_all_option=""
2207 llvm_cv_os_type="Unknown"
2208 llvm_cv_platform_type="Unknown" ;;
2209esac
2210fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002211{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2212echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002213
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002214{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2215echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2216if test "${llvm_cv_target_os_type+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002218else
2219 case $target in
2220 *-*-aix*)
2221 llvm_cv_target_os_type="AIX" ;;
2222 *-*-irix*)
2223 llvm_cv_target_os_type="IRIX" ;;
2224 *-*-cygwin*)
2225 llvm_cv_target_os_type="Cygwin" ;;
2226 *-*-darwin*)
2227 llvm_cv_target_os_type="Darwin" ;;
2228 *-*-freebsd*)
2229 llvm_cv_target_os_type="FreeBSD" ;;
2230 *-*-openbsd*)
2231 llvm_cv_target_os_type="OpenBSD" ;;
2232 *-*-netbsd*)
2233 llvm_cv_target_os_type="NetBSD" ;;
2234 *-*-dragonfly*)
2235 llvm_cv_target_os_type="DragonFly" ;;
2236 *-*-hpux*)
2237 llvm_cv_target_os_type="HP-UX" ;;
2238 *-*-interix*)
2239 llvm_cv_target_os_type="Interix" ;;
2240 *-*-linux*)
2241 llvm_cv_target_os_type="Linux" ;;
2242 *-*-solaris*)
2243 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002244 *-*-auroraux*)
2245 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002246 *-*-win32*)
2247 llvm_cv_target_os_type="Win32" ;;
2248 *-*-mingw*)
2249 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002250 *-*-haiku*)
2251 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002252 *-unknown-eabi*)
2253 llvm_cv_target_os_type="Freestanding" ;;
2254 *)
2255 llvm_cv_target_os_type="Unknown" ;;
2256esac
2257fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002258{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2259echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002260
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002261if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002262 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2263echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2264 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002265fi
2266
2267OS=$llvm_cv_os_type
2268
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002269HOST_OS=$llvm_cv_os_type
2270
2271TARGET_OS=$llvm_cv_target_os_type
2272
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002273
2274LINKALL=$llvm_cv_link_all_option
2275
2276NOLINKALL=$llvm_cv_no_link_all_option
2277
2278
2279case $llvm_cv_platform_type in
2280 Unix)
2281
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002282cat >>confdefs.h <<\_ACEOF
2283#define LLVM_ON_UNIX 1
2284_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002285
2286 LLVM_ON_UNIX=1
2287
2288 LLVM_ON_WIN32=0
2289
2290 ;;
2291 Win32)
2292
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002293cat >>confdefs.h <<\_ACEOF
2294#define LLVM_ON_WIN32 1
2295_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002296
2297 LLVM_ON_UNIX=0
2298
2299 LLVM_ON_WIN32=1
2300
2301 ;;
2302esac
2303
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002304{ echo "$as_me:$LINENO: checking target architecture" >&5
2305echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2306if test "${llvm_cv_target_arch+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002308else
2309 case $target in
2310 i?86-*) llvm_cv_target_arch="x86" ;;
2311 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2312 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2313 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2314 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002315 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002316 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002317 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002318 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002319 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002320 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002321 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002322 *) llvm_cv_target_arch="Unknown" ;;
2323esac
2324fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002325{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2326echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002327
2328if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002329 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2330echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002331fi
2332
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002333# Determine the LLVM native architecture for the target
2334case "$llvm_cv_target_arch" in
2335 x86) LLVM_NATIVE_ARCH="X86" ;;
2336 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2337 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2338esac
2339
2340ARCH=$llvm_cv_target_arch
2341
2342
2343ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002344ac_cpp='$CPP $CPPFLAGS'
2345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2350set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002355else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002368 break 2
2369 fi
2370done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002371done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002372IFS=$as_save_IFS
2373
2374fi
2375fi
2376CC=$ac_cv_prog_CC
2377if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002378 { echo "$as_me:$LINENO: result: $CC" >&5
2379echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002380else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002381 { echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002383fi
2384
2385
2386fi
2387if test -z "$ac_cv_prog_CC"; then
2388 ac_ct_CC=$CC
2389 # Extract the first word of "gcc", so it can be a program name with args.
2390set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002395else
2396 if test -n "$ac_ct_CC"; then
2397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002406 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002408 break 2
2409 fi
2410done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002411done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002412IFS=$as_save_IFS
2413
2414fi
2415fi
2416ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002418 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002420else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002421 { echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002423fi
2424
2425 if test "x$ac_ct_CC" = x; then
2426 CC=""
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002430{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431whose name does not start with the host triplet. If you think this
2432configuration is useful to you, please write to autoconf@gnu.org." >&5
2433echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434whose name does not start with the host triplet. If you think this
2435configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002436ac_tool_warned=yes ;;
2437esac
2438 CC=$ac_ct_CC
2439 fi
2440else
2441 CC="$ac_cv_prog_CC"
2442fi
2443
2444if test -z "$CC"; then
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2447set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002452else
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002463 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002465 break 2
2466 fi
2467done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002468done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002469IFS=$as_save_IFS
2470
2471fi
2472fi
2473CC=$ac_cv_prog_CC
2474if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002475 { echo "$as_me:$LINENO: result: $CC" >&5
2476echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002477else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002478 { echo "$as_me:$LINENO: result: no" >&5
2479echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002480fi
2481
2482
2483 fi
2484fi
2485if test -z "$CC"; then
2486 # Extract the first word of "cc", so it can be a program name with args.
2487set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002492else
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496 ac_prog_rejected=no
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002504 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2505 ac_prog_rejected=yes
2506 continue
2507 fi
2508 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002510 break 2
2511 fi
2512done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002513done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002514IFS=$as_save_IFS
2515
2516if test $ac_prog_rejected = yes; then
2517 # We found a bogon in the path, so make sure we never use it.
2518 set dummy $ac_cv_prog_CC
2519 shift
2520 if test $# != 0; then
2521 # We chose a different compiler from the bogus one.
2522 # However, it has the same basename, so the bogon will be chosen
2523 # first if we set CC to just the basename; use the full file name.
2524 shift
2525 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2526 fi
2527fi
2528fi
2529fi
2530CC=$ac_cv_prog_CC
2531if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002532 { echo "$as_me:$LINENO: result: $CC" >&5
2533echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002534else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002535 { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002537fi
2538
2539
2540fi
2541if test -z "$CC"; then
2542 if test -n "$ac_tool_prefix"; then
2543 for ac_prog in cl.exe
2544 do
2545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2549if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002551else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002562 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002564 break 2
2565 fi
2566done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002567done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002568IFS=$as_save_IFS
2569
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002576else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002579fi
2580
2581
2582 test -n "$CC" && break
2583 done
2584fi
2585if test -z "$CC"; then
2586 ac_ct_CC=$CC
2587 for ac_prog in cl.exe
2588do
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002595else
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002606 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002608 break 2
2609 fi
2610done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002611done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002612IFS=$as_save_IFS
2613
2614fi
2615fi
2616ac_ct_CC=$ac_cv_prog_ac_ct_CC
2617if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002618 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2619echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002620else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002623fi
2624
2625
2626 test -n "$ac_ct_CC" && break
2627done
2628
2629 if test "x$ac_ct_CC" = x; then
2630 CC=""
2631 else
2632 case $cross_compiling:$ac_tool_warned in
2633yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635whose name does not start with the host triplet. If you think this
2636configuration is useful to you, please write to autoconf@gnu.org." >&5
2637echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638whose name does not start with the host triplet. If you think this
2639configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002640ac_tool_warned=yes ;;
2641esac
2642 CC=$ac_ct_CC
2643 fi
2644fi
2645
2646fi
2647
2648
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002649test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2650See \`config.log' for more details." >&5
2651echo "$as_me: error: no acceptable C compiler found in \$PATH
2652See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002654
2655# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002656echo "$as_me:$LINENO: checking for C compiler version" >&5
2657ac_compiler=`set X $ac_compile; echo $2`
2658{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002659case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002665 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668{ (ac_try="$ac_compiler -v >&5"
2669case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -v >&5") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678{ (ac_try="$ac_compiler -V >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -V >&5") 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002688
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002689cat >conftest.$ac_ext <<_ACEOF
2690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002694/* end confdefs.h. */
2695
2696int
2697main ()
2698{
2699
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002705ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002706# Try to create an executable without -o first, disregard a.out.
2707# It will help us diagnose broken compilers, and finding out an intuition
2708# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002709{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2710echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2711ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2712#
2713# List of possible output files, starting from the most likely.
2714# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2715# only as a last resort. b.out is created by i960 compilers.
2716ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2717#
2718# The IRIX 6 linker writes into existing files which may not be
2719# executable, retaining their permissions. Remove them first so a
2720# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002721ac_rmfiles=
2722for ac_file in $ac_files
2723do
2724 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2727 esac
2728done
2729rm -f $ac_rmfiles
2730
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002731if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002737 (eval "$ac_link_default") 2>&5
2738 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2742# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2743# in a Makefile. We should not override ac_cv_exeext if it was cached,
2744# so that the user can short-circuit this test for compilers unknown to
2745# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002746for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002747do
2748 test -f "$ac_file" || continue
2749 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002751 ;;
2752 [ab].out )
2753 # We found the default executable, but exeext='' is most
2754 # certainly right.
2755 break;;
2756 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002758 then :; else
2759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 fi
2761 # We set ac_cv_exeext here because the later test for it is not
2762 # safe: cross compilers may not add the suffix if given an `-o'
2763 # argument, so we may need to know it at that point already.
2764 # Even if this section looks crufty: it has the advantage of
2765 # actually working.
2766 break;;
2767 * )
2768 break;;
2769 esac
2770done
2771test "$ac_cv_exeext" = no && ac_cv_exeext=
2772
2773else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002774 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002775sed 's/^/| /' conftest.$ac_ext >&5
2776
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002777{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2778See \`config.log' for more details." >&5
2779echo "$as_me: error: C compiler cannot create executables
2780See \`config.log' for more details." >&2;}
2781 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002782fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002783
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002784ac_exeext=$ac_cv_exeext
2785{ echo "$as_me:$LINENO: result: $ac_file" >&5
2786echo "${ECHO_T}$ac_file" >&6; }
2787
2788# Check that the compiler produces executables we can run. If not, either
2789# the compiler is broken, or we cross compile.
2790{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2792# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793# If not cross compiling, check that we can run a simple program.
2794if test "$cross_compiling" != yes; then
2795 if { ac_try='./$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799esac
2800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_try") 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 cross_compiling=no
2806 else
2807 if test "$cross_compiling" = maybe; then
2808 cross_compiling=yes
2809 else
2810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811If you meant to cross compile, use \`--host'.
2812See \`config.log' for more details." >&5
2813echo "$as_me: error: cannot run C compiled programs.
2814If you meant to cross compile, use \`--host'.
2815See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818 fi
2819fi
2820{ echo "$as_me:$LINENO: result: yes" >&5
2821echo "${ECHO_T}yes" >&6; }
2822
2823rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002824ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002825# Check that the compiler produces executables we can run. If not, either
2826# the compiler is broken, or we cross compile.
2827{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2828echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2829{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2830echo "${ECHO_T}$cross_compiling" >&6; }
2831
2832{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2833echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2834if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002835case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002840 (eval "$ac_link") 2>&5
2841 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2845# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2846# work properly (i.e., refer to `conftest.exe'), while it won't with
2847# `rm'.
2848for ac_file in conftest.exe conftest conftest.*; do
2849 test -f "$ac_file" || continue
2850 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 break;;
2854 * ) break;;
2855 esac
2856done
2857else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2859See \`config.log' for more details." >&5
2860echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2861See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002863fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002864
2865rm -f conftest$ac_cv_exeext
2866{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2867echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002868
2869rm -f conftest.$ac_ext
2870EXEEXT=$ac_cv_exeext
2871ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002872{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2873echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2874if test "${ac_cv_objext+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002876else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002877 cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h. */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002882/* end confdefs.h. */
2883
2884int
2885main ()
2886{
2887
2888 ;
2889 return 0;
2890}
2891_ACEOF
2892rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002893if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002899 (eval "$ac_compile") 2>&5
2900 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2905 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2908 break;;
2909 esac
2910done
2911else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002912 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002913sed 's/^/| /' conftest.$ac_ext >&5
2914
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002915{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2916See \`config.log' for more details." >&5
2917echo "$as_me: error: cannot compute suffix of object files: cannot compile
2918See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002920fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002921
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002922rm -f conftest.$ac_cv_objext conftest.$ac_ext
2923fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002924{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2925echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002926OBJEXT=$ac_cv_objext
2927ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002928{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2930if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002932else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002933 cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002938/* end confdefs.h. */
2939
2940int
2941main ()
2942{
2943#ifndef __GNUC__
2944 choke me
2945#endif
2946
2947 ;
2948 return 0;
2949}
2950_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002951rm -f conftest.$ac_objext
2952if { (ac_try="$ac_compile"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002985 ac_compiler_gnu=yes
2986else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002987 echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002991fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002992
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995
2996fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002997{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2998echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2999GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003000ac_test_CFLAGS=${CFLAGS+set}
3001ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003002{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3003echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3004if test "${ac_cv_prog_cc_g+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003006else
3007 ac_save_c_werror_flag=$ac_c_werror_flag
3008 ac_c_werror_flag=yes
3009 ac_cv_prog_cc_g=no
3010 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021
3022 ;
3023 return 0;
3024}
3025_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003026rm -f conftest.$ac_objext
3027if { (ac_try="$ac_compile"
3028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003060 ac_cv_prog_cc_g=yes
3061else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003062 echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 CFLAGS=""
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003116else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003121 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003127/* end confdefs.h. */
3128
3129int
3130main ()
3131{
3132
3133 ;
3134 return 0;
3135}
3136_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003137rm -f conftest.$ac_objext
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003171 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003172else
3173 echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003177fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003178
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003181
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003184
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3187fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003188{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3189echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003190if test "$ac_test_CFLAGS" = set; then
3191 CFLAGS=$ac_save_CFLAGS
3192elif test $ac_cv_prog_cc_g = yes; then
3193 if test "$GCC" = yes; then
3194 CFLAGS="-g -O2"
3195 else
3196 CFLAGS="-g"
3197 fi
3198else
3199 if test "$GCC" = yes; then
3200 CFLAGS="-O2"
3201 else
3202 CFLAGS=
3203 fi
3204fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003205{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3206echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3207if test "${ac_cv_prog_cc_c89+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003209else
3210 ac_cv_prog_cc_c89=no
3211ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003212cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h. */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003217/* end confdefs.h. */
3218#include <stdarg.h>
3219#include <stdio.h>
3220#include <sys/types.h>
3221#include <sys/stat.h>
3222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3223struct buf { int x; };
3224FILE * (*rcsopen) (struct buf *, struct stat *, int);
3225static char *e (p, i)
3226 char **p;
3227 int i;
3228{
3229 return p[i];
3230}
3231static char *f (char * (*g) (char **, int), char **p, ...)
3232{
3233 char *s;
3234 va_list v;
3235 va_start (v,p);
3236 s = g (p, va_arg (v,int));
3237 va_end (v);
3238 return s;
3239}
3240
3241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3242 function prototypes and stuff, but not '\xHH' hex character constants.
3243 These don't provoke an error unfortunately, instead are silently treated
3244 as 'x'. The following induces an error, until -std is added to get
3245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3246 array size at least. It's necessary to write '\x00'==0 to get something
3247 that's true only with -std. */
3248int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3249
3250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3251 inside strings and character constants. */
3252#define FOO(x) 'x'
3253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3254
3255int test (int i, double x);
3256struct s1 {int (*f) (int a);};
3257struct s2 {int (*f) (double a);};
3258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3259int argc;
3260char **argv;
3261int
3262main ()
3263{
3264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3271do
3272 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003273 rm -f conftest.$ac_objext
3274if { (ac_try="$ac_compile"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288 { (case "(($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_try") 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
3302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003307 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003308else
3309 echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003313fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003314
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003315rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317done
3318rm -f conftest.$ac_ext
3319CC=$ac_save_CC
3320
3321fi
3322# AC_CACHE_VAL
3323case "x$ac_cv_prog_cc_c89" in
3324 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003325 { echo "$as_me:$LINENO: result: none needed" >&5
3326echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003327 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003330 *)
3331 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003334esac
3335
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
3343
3344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003349{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003351# On Suns, sometimes $CPP names a directory.
3352if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354fi
3355if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003358else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363for ac_c_preproc_warn_flag in '' yes
3364do
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003371 cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003376/* end confdefs.h. */
3377#ifdef __STDC__
3378# include <limits.h>
3379#else
3380# include <assert.h>
3381#endif
3382 Syntax error
3383_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003384if { (ac_try="$ac_cpp conftest.$ac_ext"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null; then
3397 if test -s conftest.err; then
3398 ac_cpp_err=$ac_c_preproc_warn_flag
3399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3400 else
3401 ac_cpp_err=
3402 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003403else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003404 ac_cpp_err=yes
3405fi
3406if test -z "$ac_cpp_err"; then
3407 :
3408else
3409 echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003412 # Broken: fails on valid input.
3413continue
3414fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003415
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003416rm -f conftest.err conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003425/* end confdefs.h. */
3426#include <ac_nonexistent.h>
3427_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
3447else
3448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003451 # Broken: success on invalid input.
3452continue
3453else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003454 echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003457 # Passes both tests.
3458ac_preproc_ok=:
3459break
3460fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003461
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003462rm -f conftest.err conftest.$ac_ext
3463
3464done
3465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003467if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003468 break
3469fi
3470
3471 done
3472 ac_cv_prog_CPP=$CPP
3473
3474fi
3475 CPP=$ac_cv_prog_CPP
3476else
3477 ac_cv_prog_CPP=$CPP
3478fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003479{ echo "$as_me:$LINENO: result: $CPP" >&5
3480echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003481ac_preproc_ok=false
3482for ac_c_preproc_warn_flag in '' yes
3483do
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003490 cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h. */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003495/* end confdefs.h. */
3496#ifdef __STDC__
3497# include <limits.h>
3498#else
3499# include <assert.h>
3500#endif
3501 Syntax error
3502_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003503if { (ac_try="$ac_cpp conftest.$ac_ext"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null; then
3516 if test -s conftest.err; then
3517 ac_cpp_err=$ac_c_preproc_warn_flag
3518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519 else
3520 ac_cpp_err=
3521 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003522else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003523 ac_cpp_err=yes
3524fi
3525if test -z "$ac_cpp_err"; then
3526 :
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003531 # Broken: fails on valid input.
3532continue
3533fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003534
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003535rm -f conftest.err conftest.$ac_ext
3536
3537 # OK, works on sane cases. Now check whether nonexistent headers
3538 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003544/* end confdefs.h. */
3545#include <ac_nonexistent.h>
3546_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
3566else
3567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003570 # Broken: success on invalid input.
3571continue
3572else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003576 # Passes both tests.
3577ac_preproc_ok=:
3578break
3579fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003580
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003581rm -f conftest.err conftest.$ac_ext
3582
3583done
3584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3585rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003586if $ac_preproc_ok; then
3587 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003588else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003589 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3590See \`config.log' for more details." >&5
3591echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3592See \`config.log' for more details." >&2;}
3593 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003594fi
3595
3596ac_ext=c
3597ac_cpp='$CPP $CPPFLAGS'
3598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601
3602
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003603{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3604echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3605if test "${ac_cv_path_GREP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003607else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003608 # Extract the first word of "grep ggrep" to use in msg output
3609if test -z "$GREP"; then
3610set dummy grep ggrep; ac_prog_name=$2
3611if test "${ac_cv_path_GREP+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003614 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003615# Loop through the user's path and test for each of PROGNAME-LIST
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003621 for ac_prog in grep ggrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3625 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003626 # Check for GNU $ac_path_GREP
3627case `"$ac_path_GREP" --version 2>&1` in
3628*GNU*)
3629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3630*)
3631 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003632 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003633 while :
3634 do
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003638 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003641 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_GREP="$ac_path_GREP"
3645 ac_path_GREP_max=$ac_count
3646 fi
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651esac
3652
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003653
3654 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003655 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003656done
3657
3658done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003659IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003660
3661
3662fi
3663
3664GREP="$ac_cv_path_GREP"
3665if test -z "$GREP"; then
3666 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3667echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3668 { (exit 1); exit 1; }; }
3669fi
3670
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003671else
3672 ac_cv_path_GREP=$GREP
3673fi
3674
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003675
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003676fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003677{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3678echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003679 GREP="$ac_cv_path_GREP"
3680
3681
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003682{ echo "$as_me:$LINENO: checking for egrep" >&5
3683echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3684if test "${ac_cv_path_EGREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003686else
3687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3688 then ac_cv_path_EGREP="$GREP -E"
3689 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003690 # Extract the first word of "egrep" to use in msg output
3691if test -z "$EGREP"; then
3692set dummy egrep; ac_prog_name=$2
3693if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003696 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003697# Loop through the user's path and test for each of PROGNAME-LIST
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003703 for ac_prog in egrep; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3707 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003708 # Check for GNU $ac_path_EGREP
3709case `"$ac_path_EGREP" --version 2>&1` in
3710*GNU*)
3711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3712*)
3713 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003715 while :
3716 do
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003720 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003723 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_EGREP="$ac_path_EGREP"
3727 ac_path_EGREP_max=$ac_count
3728 fi
3729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3731 done
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733esac
3734
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003735
3736 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003737 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003738done
3739
3740done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003741IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003742
3743
3744fi
3745
3746EGREP="$ac_cv_path_EGREP"
3747if test -z "$EGREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3751fi
3752
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003753else
3754 ac_cv_path_EGREP=$EGREP
3755fi
3756
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003757
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003758 fi
3759fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003760{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3761echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003762 EGREP="$ac_cv_path_EGREP"
3763
3764
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003765{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3766echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3767if test "${ac_cv_header_stdc+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003769else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003770 cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003775/* end confdefs.h. */
3776#include <stdlib.h>
3777#include <stdarg.h>
3778#include <string.h>
3779#include <float.h>
3780
3781int
3782main ()
3783{
3784
3785 ;
3786 return 0;
3787}
3788_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003789rm -f conftest.$ac_objext
3790if { (ac_try="$ac_compile"
3791case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3804 { (case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_try") 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817esac
3818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003823 ac_cv_header_stdc=yes
3824else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003829fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003830
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832
3833if test $ac_cv_header_stdc = yes; then
3834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003835 cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003840/* end confdefs.h. */
3841#include <string.h>
3842
3843_ACEOF
3844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003845 $EGREP "memchr" >/dev/null 2>&1; then
3846 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003847else
3848 ac_cv_header_stdc=no
3849fi
3850rm -f conftest*
3851
3852fi
3853
3854if test $ac_cv_header_stdc = yes; then
3855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003856 cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h. */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003861/* end confdefs.h. */
3862#include <stdlib.h>
3863
3864_ACEOF
3865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003866 $EGREP "free" >/dev/null 2>&1; then
3867 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003868else
3869 ac_cv_header_stdc=no
3870fi
3871rm -f conftest*
3872
3873fi
3874
3875if test $ac_cv_header_stdc = yes; then
3876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003877 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003878 :
3879else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003880 cat >conftest.$ac_ext <<_ACEOF
3881/* confdefs.h. */
3882_ACEOF
3883cat confdefs.h >>conftest.$ac_ext
3884cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003885/* end confdefs.h. */
3886#include <ctype.h>
3887#include <stdlib.h>
3888#if ((' ' & 0x0FF) == 0x020)
3889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3891#else
3892# define ISLOWER(c) \
3893 (('a' <= (c) && (c) <= 'i') \
3894 || ('j' <= (c) && (c) <= 'r') \
3895 || ('s' <= (c) && (c) <= 'z'))
3896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3897#endif
3898
3899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3900int
3901main ()
3902{
3903 int i;
3904 for (i = 0; i < 256; i++)
3905 if (XOR (islower (i), ISLOWER (i))
3906 || toupper (i) != TOUPPER (i))
3907 return 2;
3908 return 0;
3909}
3910_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003911rm -f conftest$ac_exeext
3912if { (ac_try="$ac_link"
3913case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916esac
3917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_link") 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3922 { (case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_try") 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003932else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003933 echo "$as_me: program exited with status $ac_status" >&5
3934echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937( exit $ac_status )
3938ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003939fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003941fi
3942
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003943
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003944fi
3945fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003946{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3947echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003948if test $ac_cv_header_stdc = yes; then
3949
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003950cat >>confdefs.h <<\_ACEOF
3951#define STDC_HEADERS 1
3952_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003953
3954fi
3955
3956# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003957
3958
3959
3960
3961
3962
3963
3964
3965
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003966for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003968do
3969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981$ac_includes_default
3982
3983#include <$ac_header>
3984_ACEOF
3985rm -f conftest.$ac_objext
3986if { (ac_try="$ac_compile"
3987case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990esac
3991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4000 { (case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_try") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 eval "$as_ac_Header=yes"
4020else
4021 echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 eval "$as_ac_Header=no"
4025fi
4026
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028fi
4029ac_res=`eval echo '${'$as_ac_Header'}'`
4030 { echo "$as_me:$LINENO: result: $ac_res" >&5
4031echo "${ECHO_T}$ac_res" >&6; }
4032if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004033 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004035_ACEOF
4036
4037fi
4038
4039done
4040
4041
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004042{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4043echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4044if test "${ac_cv_c_bigendian+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004046else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004047 # See if sys/param.h defines the BYTE_ORDER macro.
4048cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004050_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004053/* end confdefs.h. */
4054#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004055#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004056
4057int
4058main ()
4059{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004060#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4061 bogus endian macros
4062#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004063
4064 ;
4065 return 0;
4066}
4067_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004068rm -f conftest.$ac_objext
4069if { (ac_try="$ac_compile"
4070case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004102 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004108/* end confdefs.h. */
4109#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004110#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004111
4112int
4113main ()
4114{
4115#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004116 not big endian
4117#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004118
4119 ;
4120 return 0;
4121}
4122_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004157 ac_cv_c_bigendian=yes
4158else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004159 echo "$as_me: failed program was:" >&5
4160sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004162 ac_cv_c_bigendian=no
4163fi
4164
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 # It does not; compile a test program.
4171if test "$cross_compiling" = yes; then
4172 # try to guess the endianness by grepping values into an object file
4173 ac_cv_c_bigendian=unknown
4174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4181short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4182void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4183short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4184short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4185void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004186int
4187main ()
4188{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004189 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004190 ;
4191 return 0;
4192}
4193_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004194rm -f conftest.$ac_objext
4195if { (ac_try="$ac_compile"
4196case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_compile") 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4209 { (case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_try") 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004229 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004230fi
4231if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4232 if test "$ac_cv_c_bigendian" = unknown; then
4233 ac_cv_c_bigendian=no
4234 else
4235 # finding both strings is unlikely to happen, but who knows?
4236 ac_cv_c_bigendian=unknown
4237 fi
4238fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004239else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004242
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004243
Edwin Törökc27310c2010-01-26 08:50:50 +00004244fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004245
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004248 cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004253/* end confdefs.h. */
4254$ac_includes_default
4255int
4256main ()
4257{
4258
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004259 /* Are we little or big endian? From Harbison&Steele. */
4260 union
4261 {
4262 long int l;
4263 char c[sizeof (long int)];
4264 } u;
4265 u.l = 1;
4266 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004267
4268 ;
4269 return 0;
4270}
4271_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004272rm -f conftest$ac_exeext
4273if { (ac_try="$ac_link"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004292 ac_cv_c_bigendian=no
4293else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004294 echo "$as_me: program exited with status $ac_status" >&5
4295echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298( exit $ac_status )
4299ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004300fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004302fi
4303
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004304
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004305fi
4306
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308fi
4309{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4310echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4311case $ac_cv_c_bigendian in
4312 yes)
4313 ENDIAN=big
4314 ;;
4315 no)
4316 ENDIAN=little
4317 ;;
4318 *)
4319 { { echo "$as_me:$LINENO: error: unknown endianness
4320presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4321echo "$as_me: error: unknown endianness
4322presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4323 { (exit 1); exit 1; }; } ;;
4324esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004325
4326
4327if test "$cross_compiling" = yes; then
4328 LLVM_CROSS_COMPILING=1
4329
4330
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004331{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4332echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4333if test "${ac_cv_build_exeext+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004335else
4336 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4337 ac_cv_build_exeext=.exe
4338else
4339 ac_build_prefix=${build_alias}-
4340
4341 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4342set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4345if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004347else
4348 if test -n "$BUILD_CC"; then
4349 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004358 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004360 break 2
4361 fi
4362done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004363done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004364IFS=$as_save_IFS
4365
4366fi
4367fi
4368BUILD_CC=$ac_cv_prog_BUILD_CC
4369if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004370 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4371echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004372else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004373 { echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004375fi
4376
4377
4378 if test -z "$BUILD_CC"; then
4379 # Extract the first word of "gcc", so it can be a program name with args.
4380set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004385else
4386 if test -n "$BUILD_CC"; then
4387 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004396 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004398 break 2
4399 fi
4400done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004401done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004402IFS=$as_save_IFS
4403
4404fi
4405fi
4406BUILD_CC=$ac_cv_prog_BUILD_CC
4407if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004408 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4409echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004410else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004411 { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004413fi
4414
4415
4416 if test -z "$BUILD_CC"; then
4417 # Extract the first word of "cc", so it can be a program name with args.
4418set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004423else
4424 if test -n "$BUILD_CC"; then
4425 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426else
4427 ac_prog_rejected=no
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4436 ac_prog_rejected=yes
4437 continue
4438 fi
4439 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004441 break 2
4442 fi
4443done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004444done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004445IFS=$as_save_IFS
4446
4447if test $ac_prog_rejected = yes; then
4448 # We found a bogon in the path, so make sure we never use it.
4449 set dummy $ac_cv_prog_BUILD_CC
4450 shift
4451 if test $# != 0; then
4452 # We chose a different compiler from the bogus one.
4453 # However, it has the same basename, so the bogon will be chosen
4454 # first if we set BUILD_CC to just the basename; use the full file name.
4455 shift
4456 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4457 fi
4458fi
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004465else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004468fi
4469
4470
4471 fi
4472 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004473 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4474echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4475 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004476 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4477 rm -f conftest*
4478 echo 'int main () { return 0; }' > conftest.$ac_ext
4479 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004480 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004481 (eval $ac_build_link) 2>&5
4482 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004485 for file in conftest.*; do
4486 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004487 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004488 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4489 esac
4490 done
4491 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004492 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4493echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4494 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004495 fi
4496 rm -f conftest*
4497 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4498fi
4499fi
4500
4501BUILD_EXEEXT=""
4502test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004503{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4504echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004505ac_build_exeext=$BUILD_EXEEXT
4506
Jim Grosbache4c032e2008-10-02 22:56:44 +00004507 ac_build_prefix=${build_alias}-
4508 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4509set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004514else
4515 if test -n "$BUILD_CXX"; then
4516 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004525 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004527 break 2
4528 fi
4529done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004530done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004531IFS=$as_save_IFS
4532
4533fi
4534fi
4535BUILD_CXX=$ac_cv_prog_BUILD_CXX
4536if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004537 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4538echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004539else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004542fi
4543
4544
4545 if test -z "$BUILD_CXX"; then
4546 # Extract the first word of "g++", so it can be a program name with args.
4547set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004552else
4553 if test -n "$BUILD_CXX"; then
4554 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004563 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004565 break 2
4566 fi
4567done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004568done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004569IFS=$as_save_IFS
4570
4571fi
4572fi
4573BUILD_CXX=$ac_cv_prog_BUILD_CXX
4574if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004575 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4576echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004577else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004578 { echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004580fi
4581
4582
4583 if test -z "$BUILD_CXX"; then
4584 # Extract the first word of "c++", so it can be a program name with args.
4585set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004590else
4591 if test -n "$BUILD_CXX"; then
4592 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4593else
4594 ac_prog_rejected=no
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4603 ac_prog_rejected=yes
4604 continue
4605 fi
4606 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004608 break 2
4609 fi
4610done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004611done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004612IFS=$as_save_IFS
4613
4614if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_BUILD_CXX
4617 shift
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set BUILD_CXX to just the basename; use the full file name.
4622 shift
4623 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4624 fi
4625fi
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004632else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004635fi
4636
4637
4638 fi
4639 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004640else
4641 LLVM_CROSS_COMPILING=0
4642
4643fi
4644
Nick Lewycky45f0f822009-04-10 05:18:27 +00004645if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004646 cvsbuild="yes"
4647 optimize="no"
4648 CVSBUILD=CVSBUILD=1
4649
4650else
4651 cvsbuild="no"
4652 optimize="yes"
4653fi
4654
4655
4656# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004657if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004658 enableval=$enable_optimized;
4659else
4660 enableval=$optimize
4661fi
4662
4663if test ${enableval} = "no" ; then
4664 ENABLE_OPTIMIZED=
4665
4666else
4667 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4668
4669fi
4670
David Greene19b1cbd2009-04-17 14:50:39 +00004671# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004672if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004673 enableval=$enable_profiling;
4674else
4675 enableval="no"
4676fi
4677
4678if test ${enableval} = "no" ; then
4679 ENABLE_PROFILING=
4680
4681else
4682 ENABLE_PROFILING=ENABLE_PROFILING=1
4683
4684fi
4685
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004686# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004687if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004688 enableval=$enable_assertions;
4689else
4690 enableval="yes"
4691fi
4692
4693if test ${enableval} = "yes" ; then
4694 DISABLE_ASSERTIONS=
4695
4696else
4697 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4698
4699fi
4700
4701# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004702if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004703 enableval=$enable_expensive_checks;
4704else
4705 enableval="no"
4706fi
4707
4708if test ${enableval} = "yes" ; then
4709 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4710
4711 EXPENSIVE_CHECKS=yes
4712
4713else
4714 ENABLE_EXPENSIVE_CHECKS=
4715
4716 EXPENSIVE_CHECKS=no
4717
4718fi
4719
4720# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004721if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004722 enableval=$enable_debug_runtime;
4723else
4724 enableval=no
4725fi
4726
4727if test ${enableval} = "no" ; then
4728 DEBUG_RUNTIME=
4729
4730else
4731 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4732
4733fi
4734
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004735# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004736if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004737 enableval=$enable_debug_symbols;
4738else
4739 enableval=no
4740fi
4741
4742if test ${enableval} = "no" ; then
4743 DEBUG_SYMBOLS=
4744
4745else
4746 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4747
4748fi
4749
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004750# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004751if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004752 enableval=$enable_jit;
4753else
4754 enableval=default
4755fi
4756
4757if test ${enableval} = "no"
4758then
4759 JIT=
4760
4761else
4762 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004763 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004764 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004765 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004766 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004767 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004768 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004769 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004770 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004771 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004772 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004773 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004774 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004775 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004776 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004777 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004778 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004779 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004780 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004781 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004782 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004783 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004784 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004785 Blackfin) TARGET_HAS_JIT=0
4786 ;;
4787 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004788 ;;
4789 esac
4790fi
4791
4792# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004793if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004794 enableval=$enable_doxygen;
4795else
4796 enableval=default
4797fi
4798
4799case "$enableval" in
4800 yes) ENABLE_DOXYGEN=1
4801 ;;
4802 no) ENABLE_DOXYGEN=0
4803 ;;
4804 default) ENABLE_DOXYGEN=0
4805 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004806 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4807echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004809esac
4810
4811# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004812if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004813 enableval=$enable_threads;
4814else
4815 enableval=default
4816fi
4817
4818case "$enableval" in
4819 yes) ENABLE_THREADS=1
4820 ;;
4821 no) ENABLE_THREADS=0
4822 ;;
4823 default) ENABLE_THREADS=1
4824 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004825 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4826echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4827 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004828esac
4829
Owen Anderson96237ec2009-05-19 22:18:56 +00004830cat >>confdefs.h <<_ACEOF
4831#define ENABLE_THREADS $ENABLE_THREADS
4832_ACEOF
4833
4834
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004835# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004836if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004837 enableval=$enable_pic;
4838else
4839 enableval=default
4840fi
4841
4842case "$enableval" in
4843 yes) ENABLE_PIC=1
4844 ;;
4845 no) ENABLE_PIC=0
4846 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004847 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004848 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004852esac
4853
4854cat >>confdefs.h <<_ACEOF
4855#define ENABLE_PIC $ENABLE_PIC
4856_ACEOF
4857
4858
4859TARGETS_TO_BUILD=""
4860# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004861if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004862 enableval=$enable_targets;
4863else
4864 enableval=all
4865fi
4866
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004867if test "$enableval" = host-only ; then
4868 enableval=host
4869fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004870case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00004871 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004872 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4873 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004874 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4875 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4876 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4877 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4878 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4879 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4880 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4881 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4882 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4883 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4884 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4885 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4886 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4887 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4888 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4889 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004890 host) case "$llvm_cv_target_arch" in
4891 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4892 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4893 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4894 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4895 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4896 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4897 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4898 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4899 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4900 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4901 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004902 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004903 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004904 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4905echo "$as_me: error: Can not set target to build" >&2;}
4906 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004907 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004908 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4909echo "$as_me: error: Unrecognized target $a_target" >&2;}
4910 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004911 esac
4912 done
4913 ;;
4914esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004915TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4916
4917
Douglas Gregor13e13882009-06-17 00:43:20 +00004918# Determine whether we are building LLVM support for the native architecture.
4919# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4920for a_target in $TARGETS_TO_BUILD; do
4921 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004922 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004923
4924cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004925#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004926_ACEOF
4927
4928 fi
4929done
4930
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004931# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4932# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004933LLVM_ENUM_TARGETS=""
4934LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004935LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004936LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004937for target_to_build in $TARGETS_TO_BUILD; do
4938 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4939 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4940 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4941 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004942 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4943 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4944 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004945 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4946 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4947 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004948done
4949
4950
4951
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004952
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004953
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004954# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004955if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004956 enableval=$enable_cbe_printf_a;
4957else
4958 enableval=default
4959fi
4960
4961case "$enableval" in
4962 yes) ENABLE_CBE_PRINTF_A=1
4963 ;;
4964 no) ENABLE_CBE_PRINTF_A=0
4965 ;;
4966 default) ENABLE_CBE_PRINTF_A=1
4967 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004968 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4969echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4970 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004971esac
4972
4973cat >>confdefs.h <<_ACEOF
4974#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4975_ACEOF
4976
4977
4978
4979# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004980if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004981 withval=$with_llvmgccdir;
4982else
4983 withval=default
4984fi
4985
4986case "$withval" in
4987 default) WITH_LLVMGCCDIR=default ;;
4988 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004989 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4990echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4991 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004992esac
4993
4994
Devang Pateld84ba7b2007-12-04 22:54:47 +00004995# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004996if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00004997 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4998 WITH_LLVMGCCDIR=""
4999fi
5000
5001
5002
5003# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005004if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005005 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5006 WITH_LLVMGCCDIR=""
5007fi
5008
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005009
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005010if test -n "$LLVMGCC"; then
5011 LLVMGCCCOMMAND="$LLVMGCC"
5012fi
5013
5014if test -n "$LLVMGXX"; then
5015 LLVMGXXCOMMAND="$LLVMGXX"
5016fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005017
5018if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005019 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5020echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5021 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005022fi
5023
5024if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005025 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5026echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5027 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005028fi
5029
5030
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005031# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005032if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005033 withval=$with_optimize_option;
5034else
5035 withval=default
5036fi
5037
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005038{ echo "$as_me:$LINENO: checking optimization flags" >&5
5039echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005040case "$withval" in
5041 default)
5042 case "$llvm_cv_os_type" in
5043 MingW) optimize_option=-O3 ;;
5044 *) optimize_option=-O2 ;;
5045 esac ;;
5046 *) optimize_option="$withval" ;;
5047esac
5048OPTIMIZE_OPTION=$optimize_option
5049
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005050{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5051echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005052
5053
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005054# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005055if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005056 withval=$with_extra_options;
5057else
5058 withval=default
5059fi
5060
5061case "$withval" in
5062 default) EXTRA_OPTIONS= ;;
5063 *) EXTRA_OPTIONS=$withval ;;
5064esac
5065EXTRA_OPTIONS=$EXTRA_OPTIONS
5066
5067
Gordon Henriksen016ec472007-10-02 09:50:32 +00005068# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005069if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005070 enableval=$enable_bindings;
5071else
5072 enableval=default
5073fi
5074
5075BINDINGS_TO_BUILD=""
5076case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005077 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005078 all ) BINDINGS_TO_BUILD="ocaml" ;;
5079 none | no) BINDINGS_TO_BUILD="" ;;
5080 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5081 case "$a_binding" in
5082 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005083 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5084echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5085 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005086 esac
5087 done
5088 ;;
5089esac
5090
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005091
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005092# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005093if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005094 withval=$with_ocaml_libdir;
5095else
5096 withval=auto
5097fi
5098
5099case "$withval" in
5100 auto) with_ocaml_libdir="$withval" ;;
5101 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5103echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005105esac
5106
5107
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005108# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005109if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005110 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005111else
5112 withval=""
5113fi
5114
5115
5116cat >>confdefs.h <<_ACEOF
5117#define C_INCLUDE_DIRS "$withval"
5118_ACEOF
5119
5120
5121
Rafael Espindola3890bf02009-11-16 19:46:55 +00005122# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005123if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005124 withval=$with_cxx_include_root;
5125else
5126 withval=""
5127fi
5128
5129
5130cat >>confdefs.h <<_ACEOF
5131#define CXX_INCLUDE_ROOT "$withval"
5132_ACEOF
5133
5134
5135
5136# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005137if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005138 withval=$with_cxx_include_arch;
5139else
5140 withval=""
5141fi
5142
5143
5144cat >>confdefs.h <<_ACEOF
5145#define CXX_INCLUDE_ARCH "$withval"
5146_ACEOF
5147
5148
5149
5150# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005151if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005152 withval=$with_cxx_include_32bit_dir;
5153else
5154 withval=""
5155fi
5156
5157
5158cat >>confdefs.h <<_ACEOF
5159#define CXX_INCLUDE_32BIT_DIR "$withval"
5160_ACEOF
5161
5162
5163
5164# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005165if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005166 withval=$with_cxx_include_64bit_dir;
5167else
5168 withval=""
5169fi
5170
5171
5172cat >>confdefs.h <<_ACEOF
5173#define CXX_INCLUDE_64BIT_DIR "$withval"
5174_ACEOF
5175
5176
5177
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005178# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005179if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005180 withval=$with_binutils_include;
5181else
5182 withval=default
5183fi
5184
5185case "$withval" in
5186 default) WITH_BINUTILS_INCDIR=default ;;
5187 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005188 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5189echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5190 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005191esac
5192if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5193 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5194
5195 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5196 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005197 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5198echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5199 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005200 fi
5201fi
5202
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005203# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005204if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005205 enableval=$enable_libffi; case "$enableval" in
5206 yes) llvm_cv_enable_libffi="yes" ;;
5207 no) llvm_cv_enable_libffi="no" ;;
5208 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005209echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5210 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005211 esac
5212else
5213 llvm_cv_enable_libffi=no
5214fi
5215
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005216
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005217if test "$llvm_cv_os_type" = "Win32" ; then
5218 llvmc_dynamic="yes"
5219else
5220 llvmc_dynamic="no"
5221fi
5222
5223# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005224if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005225 enableval=$enable_llvmc_dynamic;
5226else
5227 enableval=$llvmc_dynamic
5228fi
5229
5230if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5231 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5232
5233else
5234 ENABLE_LLVMC_DYNAMIC=
5235
5236fi
5237
5238# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005239if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005240 enableval=$enable_llvmc_dynamic_plugins;
5241else
5242 enableval=yes
5243fi
5244
5245if test ${enableval} = "yes" ; then
5246 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5247
5248else
5249 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5250
5251fi
5252
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005253
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005254ac_ext=c
5255ac_cpp='$CPP $CPPFLAGS'
5256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005259{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5260echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005261# On Suns, sometimes $CPP names a directory.
5262if test -n "$CPP" && test -d "$CPP"; then
5263 CPP=
5264fi
5265if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005266 if test "${ac_cv_prog_CPP+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005268else
5269 # Double quotes because CPP needs to be expanded
5270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5271 do
5272 ac_preproc_ok=false
5273for ac_c_preproc_warn_flag in '' yes
5274do
5275 # Use a header file that comes with gcc, so configuring glibc
5276 # with a fresh cross-compiler works.
5277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5278 # <limits.h> exists even on freestanding compilers.
5279 # On the NeXT, cc -E runs the code through the compiler's parser,
5280 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005286/* end confdefs.h. */
5287#ifdef __STDC__
5288# include <limits.h>
5289#else
5290# include <assert.h>
5291#endif
5292 Syntax error
5293_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005294if { (ac_try="$ac_cpp conftest.$ac_ext"
5295case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298esac
5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_c_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5310 else
5311 ac_cpp_err=
5312 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005313else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005314 ac_cpp_err=yes
5315fi
5316if test -z "$ac_cpp_err"; then
5317 :
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005322 # Broken: fails on valid input.
5323continue
5324fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005325
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005326rm -f conftest.err conftest.$ac_ext
5327
5328 # OK, works on sane cases. Now check whether nonexistent headers
5329 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005335/* end confdefs.h. */
5336#include <ac_nonexistent.h>
5337_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005338if { (ac_try="$ac_cpp conftest.$ac_ext"
5339case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_c_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 else
5355 ac_cpp_err=
5356 fi
5357else
5358 ac_cpp_err=yes
5359fi
5360if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005361 # Broken: success on invalid input.
5362continue
5363else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005367 # Passes both tests.
5368ac_preproc_ok=:
5369break
5370fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005371
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005372rm -f conftest.err conftest.$ac_ext
5373
5374done
5375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005377if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005378 break
5379fi
5380
5381 done
5382 ac_cv_prog_CPP=$CPP
5383
5384fi
5385 CPP=$ac_cv_prog_CPP
5386else
5387 ac_cv_prog_CPP=$CPP
5388fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005389{ echo "$as_me:$LINENO: result: $CPP" >&5
5390echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005391ac_preproc_ok=false
5392for ac_c_preproc_warn_flag in '' yes
5393do
5394 # Use a header file that comes with gcc, so configuring glibc
5395 # with a fresh cross-compiler works.
5396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5397 # <limits.h> exists even on freestanding compilers.
5398 # On the NeXT, cc -E runs the code through the compiler's parser,
5399 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005400 cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005405/* end confdefs.h. */
5406#ifdef __STDC__
5407# include <limits.h>
5408#else
5409# include <assert.h>
5410#endif
5411 Syntax error
5412_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005413if { (ac_try="$ac_cpp conftest.$ac_ext"
5414case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } >/dev/null; then
5426 if test -s conftest.err; then
5427 ac_cpp_err=$ac_c_preproc_warn_flag
5428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5429 else
5430 ac_cpp_err=
5431 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005432else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005433 ac_cpp_err=yes
5434fi
5435if test -z "$ac_cpp_err"; then
5436 :
5437else
5438 echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005441 # Broken: fails on valid input.
5442continue
5443fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005444
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005445rm -f conftest.err conftest.$ac_ext
5446
5447 # OK, works on sane cases. Now check whether nonexistent headers
5448 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005449 cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005457if { (ac_try="$ac_cpp conftest.$ac_ext"
5458case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461esac
5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev/null; then
5470 if test -s conftest.err; then
5471 ac_cpp_err=$ac_c_preproc_warn_flag
5472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5473 else
5474 ac_cpp_err=
5475 fi
5476else
5477 ac_cpp_err=yes
5478fi
5479if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005480 # Broken: success on invalid input.
5481continue
5482else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005483 echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005486 # Passes both tests.
5487ac_preproc_ok=:
5488break
5489fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005490
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005491rm -f conftest.err conftest.$ac_ext
5492
5493done
5494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005496if $ac_preproc_ok; then
5497 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005498else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005499 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5500See \`config.log' for more details." >&5
5501echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5502See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005504fi
5505
5506ac_ext=c
5507ac_cpp='$CPP $CPPFLAGS'
5508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512ac_ext=c
5513ac_cpp='$CPP $CPPFLAGS'
5514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517if test -n "$ac_tool_prefix"; then
5518 for ac_prog in gcc
5519 do
5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5524if test "${ac_cv_prog_CC+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005526else
5527 if test -n "$CC"; then
5528 ac_cv_prog_CC="$CC" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005539 break 2
5540 fi
5541done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005542done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005543IFS=$as_save_IFS
5544
5545fi
5546fi
5547CC=$ac_cv_prog_CC
5548if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005549 { echo "$as_me:$LINENO: result: $CC" >&5
5550echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005551else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005552 { echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005554fi
5555
5556
5557 test -n "$CC" && break
5558 done
5559fi
5560if test -z "$CC"; then
5561 ac_ct_CC=$CC
5562 for ac_prog in gcc
5563do
5564 # Extract the first word of "$ac_prog", so it can be a program name with args.
5565set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005570else
5571 if test -n "$ac_ct_CC"; then
5572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005581 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005583 break 2
5584 fi
5585done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005586done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005587IFS=$as_save_IFS
5588
5589fi
5590fi
5591ac_ct_CC=$ac_cv_prog_ac_ct_CC
5592if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005593 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5594echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005595else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005596 { echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005598fi
5599
5600
5601 test -n "$ac_ct_CC" && break
5602done
5603
5604 if test "x$ac_ct_CC" = x; then
5605 CC=""
5606 else
5607 case $cross_compiling:$ac_tool_warned in
5608yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5610whose name does not start with the host triplet. If you think this
5611configuration is useful to you, please write to autoconf@gnu.org." >&5
5612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5613whose name does not start with the host triplet. If you think this
5614configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005615ac_tool_warned=yes ;;
5616esac
5617 CC=$ac_ct_CC
5618 fi
5619fi
5620
5621
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005622test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5623See \`config.log' for more details." >&5
5624echo "$as_me: error: no acceptable C compiler found in \$PATH
5625See \`config.log' for more details." >&2;}
5626 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005627
5628# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005629echo "$as_me:$LINENO: checking for C compiler version" >&5
5630ac_compiler=`set X $ac_compile; echo $2`
5631{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005638 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }
5641{ (ac_try="$ac_compiler -v >&5"
5642case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compiler -v >&5") 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }
5651{ (ac_try="$ac_compiler -V >&5"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compiler -V >&5") 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005661
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005662{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5663echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5664if test "${ac_cv_c_compiler_gnu+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005666else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005667 cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005672/* end confdefs.h. */
5673
5674int
5675main ()
5676{
5677#ifndef __GNUC__
5678 choke me
5679#endif
5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005685rm -f conftest.$ac_objext
5686if { (ac_try="$ac_compile"
5687case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005719 ac_compiler_gnu=yes
5720else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005721 echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005725fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005726
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728ac_cv_c_compiler_gnu=$ac_compiler_gnu
5729
5730fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005731{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5732echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5733GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005734ac_test_CFLAGS=${CFLAGS+set}
5735ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005736{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5737echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5738if test "${ac_cv_prog_cc_g+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005740else
5741 ac_save_c_werror_flag=$ac_c_werror_flag
5742 ac_c_werror_flag=yes
5743 ac_cv_prog_cc_g=no
5744 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005745 cat >conftest.$ac_ext <<_ACEOF
5746/* confdefs.h. */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005750/* end confdefs.h. */
5751
5752int
5753main ()
5754{
5755
5756 ;
5757 return 0;
5758}
5759_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005760rm -f conftest.$ac_objext
5761if { (ac_try="$ac_compile"
5762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compile") 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778esac
5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_try") 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005794 ac_cv_prog_cc_g=yes
5795else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005796 echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 CFLAGS=""
5800 cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005805/* end confdefs.h. */
5806
5807int
5808main ()
5809{
5810
5811 ;
5812 return 0;
5813}
5814_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 :
Edwin Törökc27310c2010-01-26 08:50:50 +00005850else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005851 echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005855 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005905 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005911fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005912
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005915
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005918
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 ac_c_werror_flag=$ac_save_c_werror_flag
5921fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005922{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5923echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005924if test "$ac_test_CFLAGS" = set; then
5925 CFLAGS=$ac_save_CFLAGS
5926elif test $ac_cv_prog_cc_g = yes; then
5927 if test "$GCC" = yes; then
5928 CFLAGS="-g -O2"
5929 else
5930 CFLAGS="-g"
5931 fi
5932else
5933 if test "$GCC" = yes; then
5934 CFLAGS="-O2"
5935 else
5936 CFLAGS=
5937 fi
5938fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005939{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5940echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5941if test "${ac_cv_prog_cc_c89+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005943else
5944 ac_cv_prog_cc_c89=no
5945ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005946cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005951/* end confdefs.h. */
5952#include <stdarg.h>
5953#include <stdio.h>
5954#include <sys/types.h>
5955#include <sys/stat.h>
5956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5957struct buf { int x; };
5958FILE * (*rcsopen) (struct buf *, struct stat *, int);
5959static char *e (p, i)
5960 char **p;
5961 int i;
5962{
5963 return p[i];
5964}
5965static char *f (char * (*g) (char **, int), char **p, ...)
5966{
5967 char *s;
5968 va_list v;
5969 va_start (v,p);
5970 s = g (p, va_arg (v,int));
5971 va_end (v);
5972 return s;
5973}
5974
5975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5976 function prototypes and stuff, but not '\xHH' hex character constants.
5977 These don't provoke an error unfortunately, instead are silently treated
5978 as 'x'. The following induces an error, until -std is added to get
5979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5980 array size at least. It's necessary to write '\x00'==0 to get something
5981 that's true only with -std. */
5982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5983
5984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5985 inside strings and character constants. */
5986#define FOO(x) 'x'
5987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5988
5989int test (int i, double x);
5990struct s1 {int (*f) (int a);};
5991struct s2 {int (*f) (double a);};
5992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5993int argc;
5994char **argv;
5995int
5996main ()
5997{
5998return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6005do
6006 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006007 rm -f conftest.$ac_objext
6008if { (ac_try="$ac_compile"
6009case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012esac
6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_try") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_try") 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006041 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006042else
6043 echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006047fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006048
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006049rm -f core conftest.err conftest.$ac_objext
6050 test "x$ac_cv_prog_cc_c89" != "xno" && break
6051done
6052rm -f conftest.$ac_ext
6053CC=$ac_save_CC
6054
6055fi
6056# AC_CACHE_VAL
6057case "x$ac_cv_prog_cc_c89" in
6058 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: none needed" >&5
6060echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006061 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006062 { echo "$as_me:$LINENO: result: unsupported" >&5
6063echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006064 *)
6065 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6067echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006068esac
6069
6070
6071ac_ext=c
6072ac_cpp='$CPP $CPPFLAGS'
6073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
6077ac_ext=cpp
6078ac_cpp='$CXXCPP $CPPFLAGS'
6079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082if test -z "$CXX"; then
6083 if test -n "$CCC"; then
6084 CXX=$CCC
6085 else
6086 if test -n "$ac_tool_prefix"; then
6087 for ac_prog in g++
6088 do
6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_CXX+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006095else
6096 if test -n "$CXX"; then
6097 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006108 break 2
6109 fi
6110done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006111done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006112IFS=$as_save_IFS
6113
6114fi
6115fi
6116CXX=$ac_cv_prog_CXX
6117if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: $CXX" >&5
6119echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006120else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006123fi
6124
6125
6126 test -n "$CXX" && break
6127 done
6128fi
6129if test -z "$CXX"; then
6130 ac_ct_CXX=$CXX
6131 for ac_prog in g++
6132do
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006139else
6140 if test -n "$ac_ct_CXX"; then
6141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006150 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006152 break 2
6153 fi
6154done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006155done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006156IFS=$as_save_IFS
6157
6158fi
6159fi
6160ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6161if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006162 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6163echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006164else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006165 { echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006167fi
6168
6169
6170 test -n "$ac_ct_CXX" && break
6171done
6172
6173 if test "x$ac_ct_CXX" = x; then
6174 CXX="g++"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006178{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6179whose name does not start with the host triplet. If you think this
6180configuration is useful to you, please write to autoconf@gnu.org." >&5
6181echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182whose name does not start with the host triplet. If you think this
6183configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006184ac_tool_warned=yes ;;
6185esac
6186 CXX=$ac_ct_CXX
6187 fi
6188fi
6189
6190 fi
6191fi
6192# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006193echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6194ac_compiler=`set X $ac_compile; echo $2`
6195{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006196case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006202 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }
6205{ (ac_try="$ac_compiler -v >&5"
6206case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
6210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compiler -v >&5") 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215{ (ac_try="$ac_compiler -V >&5"
6216case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219esac
6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compiler -V >&5") 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006225
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006226{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6227echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6228if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006230else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006236/* end confdefs.h. */
6237
6238int
6239main ()
6240{
6241#ifndef __GNUC__
6242 choke me
6243#endif
6244
6245 ;
6246 return 0;
6247}
6248_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006249rm -f conftest.$ac_objext
6250if { (ac_try="$ac_compile"
6251case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254esac
6255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_compile") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006283 ac_compiler_gnu=yes
6284else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006285 echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006289fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006290
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6293
6294fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006295{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6296echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6297GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006298ac_test_CXXFLAGS=${CXXFLAGS+set}
6299ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6301echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6302if test "${ac_cv_prog_cxx_g+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006304else
6305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6306 ac_cxx_werror_flag=yes
6307 ac_cv_prog_cxx_g=no
6308 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006309 cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006314/* end confdefs.h. */
6315
6316int
6317main ()
6318{
6319
6320 ;
6321 return 0;
6322}
6323_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006324rm -f conftest.$ac_objext
6325if { (ac_try="$ac_compile"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006358 ac_cv_prog_cxx_g=yes
6359else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 CXXFLAGS=""
6364 cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006379rm -f conftest.$ac_objext
6380if { (ac_try="$ac_compile"
6381case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394 { (case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_try") 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_try") 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006414else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006415 echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006419 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006420 cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006425/* end confdefs.h. */
6426
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006435rm -f conftest.$ac_objext
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006469 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006475fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006476
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006479
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006482
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6485fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006486{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6487echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006488if test "$ac_test_CXXFLAGS" = set; then
6489 CXXFLAGS=$ac_save_CXXFLAGS
6490elif test $ac_cv_prog_cxx_g = yes; then
6491 if test "$GXX" = yes; then
6492 CXXFLAGS="-g -O2"
6493 else
6494 CXXFLAGS="-g"
6495 fi
6496else
6497 if test "$GXX" = yes; then
6498 CXXFLAGS="-O2"
6499 else
6500 CXXFLAGS=
6501 fi
6502fi
6503ac_ext=c
6504ac_cpp='$CPP $CPPFLAGS'
6505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507ac_compiler_gnu=$ac_cv_c_compiler_gnu
6508
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006509
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006510{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6511echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6512if test "${lt_cv_path_NM+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006514else
6515 if test -n "$NM"; then
6516 # Let the user override the test.
6517 lt_cv_path_NM="$NM"
6518else
6519 lt_nm_to_check="${ac_tool_prefix}nm"
6520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6521 lt_nm_to_check="$lt_nm_to_check nm"
6522 fi
6523 for lt_tmp_nm in $lt_nm_to_check; do
6524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 tmp_nm="$ac_dir/$lt_tmp_nm"
6529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6530 # Check to see if the nm accepts a BSD-compat flag.
6531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6532 # nm: unknown option "B" ignored
6533 # Tru64's nm complains that /dev/null is an invalid object file
6534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6535 */dev/null* | *'Invalid file or object type'*)
6536 lt_cv_path_NM="$tmp_nm -B"
6537 break
6538 ;;
6539 *)
6540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6541 */dev/null*)
6542 lt_cv_path_NM="$tmp_nm -p"
6543 break
6544 ;;
6545 *)
6546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6547 continue # so that we can try to find one that supports BSD flags
6548 ;;
6549 esac
6550 ;;
6551 esac
6552 fi
6553 done
6554 IFS="$lt_save_ifs"
6555 done
6556 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6557fi
6558fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006559{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6560echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006561NM="$lt_cv_path_NM"
6562
6563
6564
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006565{ echo "$as_me:$LINENO: checking for GNU make" >&5
6566echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6567if test "${llvm_cv_gnu_make_command+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006569else
6570 llvm_cv_gnu_make_command=''
6571 for a in "$MAKE" make gmake gnumake ; do
6572 if test -z "$a" ; then continue ; fi ;
6573 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6574 then
6575 llvm_cv_gnu_make_command=$a ;
6576 break;
6577 fi
6578 done
6579fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006580{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6581echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006582 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6583 ifGNUmake='' ;
6584 else
6585 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006586 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6587echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006588 fi
6589
6590
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006591{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6592echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006593LN_S=$as_ln_s
6594if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006595 { echo "$as_me:$LINENO: result: yes" >&5
6596echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006597else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006598 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6599echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006600fi
6601
6602# Extract the first word of "cmp", so it can be a program name with args.
6603set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606if test "${ac_cv_path_CMP+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006608else
6609 case $CMP in
6610 [\\/]* | ?:[\\/]*)
6611 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6612 ;;
6613 *)
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006621 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006623 break 2
6624 fi
6625done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006626done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006627IFS=$as_save_IFS
6628
6629 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6630 ;;
6631esac
6632fi
6633CMP=$ac_cv_path_CMP
6634if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006635 { echo "$as_me:$LINENO: result: $CMP" >&5
6636echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006637else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006638 { echo "$as_me:$LINENO: result: no" >&5
6639echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006640fi
6641
6642
6643# Extract the first word of "cp", so it can be a program name with args.
6644set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647if test "${ac_cv_path_CP+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006649else
6650 case $CP in
6651 [\\/]* | ?:[\\/]*)
6652 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6653 ;;
6654 *)
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006662 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006664 break 2
6665 fi
6666done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006667done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006668IFS=$as_save_IFS
6669
6670 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6671 ;;
6672esac
6673fi
6674CP=$ac_cv_path_CP
6675if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006676 { echo "$as_me:$LINENO: result: $CP" >&5
6677echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006678else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006679 { echo "$as_me:$LINENO: result: no" >&5
6680echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006681fi
6682
6683
6684# Extract the first word of "date", so it can be a program name with args.
6685set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688if test "${ac_cv_path_DATE+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006690else
6691 case $DATE in
6692 [\\/]* | ?:[\\/]*)
6693 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6694 ;;
6695 *)
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006703 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006705 break 2
6706 fi
6707done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006708done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006709IFS=$as_save_IFS
6710
6711 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6712 ;;
6713esac
6714fi
6715DATE=$ac_cv_path_DATE
6716if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: $DATE" >&5
6718echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006719else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: no" >&5
6721echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006722fi
6723
6724
6725# Extract the first word of "find", so it can be a program name with args.
6726set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729if test "${ac_cv_path_FIND+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006731else
6732 case $FIND in
6733 [\\/]* | ?:[\\/]*)
6734 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6735 ;;
6736 *)
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006744 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006746 break 2
6747 fi
6748done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006749done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006750IFS=$as_save_IFS
6751
6752 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6753 ;;
6754esac
6755fi
6756FIND=$ac_cv_path_FIND
6757if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006758 { echo "$as_me:$LINENO: result: $FIND" >&5
6759echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006760else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006761 { echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006763fi
6764
6765
6766# Extract the first word of "grep", so it can be a program name with args.
6767set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770if test "${ac_cv_path_GREP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006772else
6773 case $GREP in
6774 [\\/]* | ?:[\\/]*)
6775 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6776 ;;
6777 *)
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006785 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006787 break 2
6788 fi
6789done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006790done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006791IFS=$as_save_IFS
6792
6793 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6794 ;;
6795esac
6796fi
6797GREP=$ac_cv_path_GREP
6798if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006799 { echo "$as_me:$LINENO: result: $GREP" >&5
6800echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006801else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006802 { echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006804fi
6805
6806
6807# Extract the first word of "mkdir", so it can be a program name with args.
6808set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_MKDIR+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006813else
6814 case $MKDIR in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006826 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006828 break 2
6829 fi
6830done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006831done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6835 ;;
6836esac
6837fi
6838MKDIR=$ac_cv_path_MKDIR
6839if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6841echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006842else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006845fi
6846
6847
6848# Extract the first word of "mv", so it can be a program name with args.
6849set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_MV+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006854else
6855 case $MV in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6858 ;;
6859 *)
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006867 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006869 break 2
6870 fi
6871done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006872done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006873IFS=$as_save_IFS
6874
6875 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6876 ;;
6877esac
6878fi
6879MV=$ac_cv_path_MV
6880if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006881 { echo "$as_me:$LINENO: result: $MV" >&5
6882echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006883else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006886fi
6887
6888
6889if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6891set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6894if test "${ac_cv_prog_RANLIB+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006896else
6897 if test -n "$RANLIB"; then
6898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899else
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006909 break 2
6910 fi
6911done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006912done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006913IFS=$as_save_IFS
6914
6915fi
6916fi
6917RANLIB=$ac_cv_prog_RANLIB
6918if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006919 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6920echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006921else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006922 { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006924fi
6925
6926
6927fi
6928if test -z "$ac_cv_prog_RANLIB"; then
6929 ac_ct_RANLIB=$RANLIB
6930 # Extract the first word of "ranlib", so it can be a program name with args.
6931set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006936else
6937 if test -n "$ac_ct_RANLIB"; then
6938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006947 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006949 break 2
6950 fi
6951done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006952done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006953IFS=$as_save_IFS
6954
6955fi
6956fi
6957ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6958if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006959 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6960echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006961else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006964fi
6965
6966 if test "x$ac_ct_RANLIB" = x; then
6967 RANLIB=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006971{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6972whose name does not start with the host triplet. If you think this
6973configuration is useful to you, please write to autoconf@gnu.org." >&5
6974echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6975whose name does not start with the host triplet. If you think this
6976configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006977ac_tool_warned=yes ;;
6978esac
6979 RANLIB=$ac_ct_RANLIB
6980 fi
6981else
6982 RANLIB="$ac_cv_prog_RANLIB"
6983fi
6984
Edwin Törökc27310c2010-01-26 08:50:50 +00006985if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_prog_AR+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00006992else
6993 if test -n "$AR"; then
6994 ac_cv_prog_AR="$AR" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Törökc27310c2010-01-26 08:50:50 +00007003 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007005 break 2
7006 fi
7007done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007008done
Edwin Törökc27310c2010-01-26 08:50:50 +00007009IFS=$as_save_IFS
7010
7011fi
7012fi
7013AR=$ac_cv_prog_AR
7014if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007015 { echo "$as_me:$LINENO: result: $AR" >&5
7016echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007017else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_AR"; then
7025 ac_ct_AR=$AR
7026 # Extract the first word of "ar", so it can be a program name with args.
7027set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007032else
7033 if test -n "$ac_ct_AR"; then
7034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Törökc27310c2010-01-26 08:50:50 +00007043 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007045 break 2
7046 fi
7047done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007048done
Edwin Törökc27310c2010-01-26 08:50:50 +00007049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007055 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7056echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007057else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007058 { echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007060fi
7061
7062 if test "x$ac_ct_AR" = x; then
7063 AR="false"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7068whose name does not start with the host triplet. If you think this
7069configuration is useful to you, please write to autoconf@gnu.org." >&5
7070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7071whose name does not start with the host triplet. If you think this
7072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007073ac_tool_warned=yes ;;
7074esac
7075 AR=$ac_ct_AR
7076 fi
7077else
7078 AR="$ac_cv_prog_AR"
7079fi
7080
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007081# Extract the first word of "rm", so it can be a program name with args.
7082set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085if test "${ac_cv_path_RM+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007087else
7088 case $RM in
7089 [\\/]* | ?:[\\/]*)
7090 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7091 ;;
7092 *)
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007100 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007102 break 2
7103 fi
7104done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007105done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007106IFS=$as_save_IFS
7107
7108 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7109 ;;
7110esac
7111fi
7112RM=$ac_cv_path_RM
7113if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007114 { echo "$as_me:$LINENO: result: $RM" >&5
7115echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007116else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007119fi
7120
7121
7122# Extract the first word of "sed", so it can be a program name with args.
7123set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_SED+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007128else
7129 case $SED in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007141 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007146done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007147IFS=$as_save_IFS
7148
7149 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7150 ;;
7151esac
7152fi
7153SED=$ac_cv_path_SED
7154if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007155 { echo "$as_me:$LINENO: result: $SED" >&5
7156echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007157else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007158 { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007160fi
7161
7162
7163# Extract the first word of "tar", so it can be a program name with args.
7164set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167if test "${ac_cv_path_TAR+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007169else
7170 case $TAR in
7171 [\\/]* | ?:[\\/]*)
7172 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7173 ;;
7174 *)
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007182 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007184 break 2
7185 fi
7186done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007187done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007188IFS=$as_save_IFS
7189
7190 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7191 ;;
7192esac
7193fi
7194TAR=$ac_cv_path_TAR
7195if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007196 { echo "$as_me:$LINENO: result: $TAR" >&5
7197echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007198else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007199 { echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007201fi
7202
7203
7204# Extract the first word of "pwd", so it can be a program name with args.
7205set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208if test "${ac_cv_path_BINPWD+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007210else
7211 case $BINPWD in
7212 [\\/]* | ?:[\\/]*)
7213 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7214 ;;
7215 *)
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007223 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007225 break 2
7226 fi
7227done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007228done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007229IFS=$as_save_IFS
7230
7231 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7232 ;;
7233esac
7234fi
7235BINPWD=$ac_cv_path_BINPWD
7236if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7238echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007239else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007242fi
7243
7244
7245
7246# Extract the first word of "Graphviz", so it can be a program name with args.
7247set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007252else
7253 case $GRAPHVIZ in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7256 ;;
7257 *)
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007265 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007267 break 2
7268 fi
7269done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007270done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007271IFS=$as_save_IFS
7272
7273 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7274 ;;
7275esac
7276fi
7277GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7278if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007279 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7280echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007281else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007282 { echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007284fi
7285
7286
7287if test "$GRAPHVIZ" != "echo Graphviz" ; then
7288
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007289cat >>confdefs.h <<\_ACEOF
7290#define HAVE_GRAPHVIZ 1
7291_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007292
7293 if test "$llvm_cv_os_type" = "MingW" ; then
7294 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7295 fi
7296
7297cat >>confdefs.h <<_ACEOF
7298#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7299_ACEOF
7300
7301fi
7302# Extract the first word of "dot", so it can be a program name with args.
7303set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_DOT+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007308else
7309 case $DOT in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007321 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007326done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007327IFS=$as_save_IFS
7328
7329 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7330 ;;
7331esac
7332fi
7333DOT=$ac_cv_path_DOT
7334if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007335 { echo "$as_me:$LINENO: result: $DOT" >&5
7336echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007337else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007338 { echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007340fi
7341
7342
7343if test "$DOT" != "echo dot" ; then
7344
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007345cat >>confdefs.h <<\_ACEOF
7346#define HAVE_DOT 1
7347_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007348
7349 if test "$llvm_cv_os_type" = "MingW" ; then
7350 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7351 fi
7352
7353cat >>confdefs.h <<_ACEOF
7354#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7355_ACEOF
7356
7357fi
David Greenedb740ef2009-07-09 17:16:26 +00007358# Extract the first word of "fdp", so it can be a program name with args.
7359set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362if test "${ac_cv_path_FDP+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007364else
7365 case $FDP in
7366 [\\/]* | ?:[\\/]*)
7367 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7368 ;;
7369 *)
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007377 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007379 break 2
7380 fi
7381done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007382done
David Greenedb740ef2009-07-09 17:16:26 +00007383IFS=$as_save_IFS
7384
7385 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7386 ;;
7387esac
7388fi
7389FDP=$ac_cv_path_FDP
7390if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007391 { echo "$as_me:$LINENO: result: $FDP" >&5
7392echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007393else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007394 { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007396fi
7397
7398
7399if test "$FDP" != "echo fdp" ; then
7400
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007401cat >>confdefs.h <<\_ACEOF
7402#define HAVE_FDP 1
7403_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007404
7405 if test "$llvm_cv_os_type" = "MingW" ; then
7406 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7407 fi
7408
7409cat >>confdefs.h <<_ACEOF
7410#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7411_ACEOF
7412
7413fi
7414# Extract the first word of "neato", so it can be a program name with args.
7415set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418if test "${ac_cv_path_NEATO+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007420else
7421 case $NEATO in
7422 [\\/]* | ?:[\\/]*)
7423 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7424 ;;
7425 *)
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007433 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007435 break 2
7436 fi
7437done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007438done
David Greenedb740ef2009-07-09 17:16:26 +00007439IFS=$as_save_IFS
7440
7441 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7442 ;;
7443esac
7444fi
7445NEATO=$ac_cv_path_NEATO
7446if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: $NEATO" >&5
7448echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007449else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007450 { echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007452fi
7453
7454
7455if test "$NEATO" != "echo neato" ; then
7456
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007457cat >>confdefs.h <<\_ACEOF
7458#define HAVE_NEATO 1
7459_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007460
7461 if test "$llvm_cv_os_type" = "MingW" ; then
7462 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7463 fi
7464
7465cat >>confdefs.h <<_ACEOF
7466#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7467_ACEOF
7468
7469fi
7470# Extract the first word of "twopi", so it can be a program name with args.
7471set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474if test "${ac_cv_path_TWOPI+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007476else
7477 case $TWOPI in
7478 [\\/]* | ?:[\\/]*)
7479 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7480 ;;
7481 *)
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007489 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007491 break 2
7492 fi
7493done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007494done
David Greenedb740ef2009-07-09 17:16:26 +00007495IFS=$as_save_IFS
7496
7497 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7498 ;;
7499esac
7500fi
7501TWOPI=$ac_cv_path_TWOPI
7502if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007503 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7504echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007505else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007506 { echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007508fi
7509
7510
7511if test "$TWOPI" != "echo twopi" ; then
7512
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007513cat >>confdefs.h <<\_ACEOF
7514#define HAVE_TWOPI 1
7515_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007516
7517 if test "$llvm_cv_os_type" = "MingW" ; then
7518 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7519 fi
7520
7521cat >>confdefs.h <<_ACEOF
7522#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7523_ACEOF
7524
7525fi
7526# Extract the first word of "circo", so it can be a program name with args.
7527set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530if test "${ac_cv_path_CIRCO+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007532else
7533 case $CIRCO in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007545 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007547 break 2
7548 fi
7549done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007550done
David Greenedb740ef2009-07-09 17:16:26 +00007551IFS=$as_save_IFS
7552
7553 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7554 ;;
7555esac
7556fi
7557CIRCO=$ac_cv_path_CIRCO
7558if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007559 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7560echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007561else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007562 { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007564fi
7565
7566
7567if test "$CIRCO" != "echo circo" ; then
7568
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007569cat >>confdefs.h <<\_ACEOF
7570#define HAVE_CIRCO 1
7571_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007572
7573 if test "$llvm_cv_os_type" = "MingW" ; then
7574 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7575 fi
7576
7577cat >>confdefs.h <<_ACEOF
7578#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7579_ACEOF
7580
7581fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007582for ac_prog in gv gsview32
7583do
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588if test "${ac_cv_path_GV+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007590else
7591 case $GV in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007603 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007605 break 2
7606 fi
7607done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007608done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007609IFS=$as_save_IFS
7610
7611 ;;
7612esac
7613fi
7614GV=$ac_cv_path_GV
7615if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007616 { echo "$as_me:$LINENO: result: $GV" >&5
7617echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007618else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007619 { echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007621fi
7622
7623
7624 test -n "$GV" && break
7625done
7626test -n "$GV" || GV="echo gv"
7627
7628if test "$GV" != "echo gv" ; then
7629
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007630cat >>confdefs.h <<\_ACEOF
7631#define HAVE_GV 1
7632_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007633
7634 if test "$llvm_cv_os_type" = "MingW" ; then
7635 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7636 fi
7637
7638cat >>confdefs.h <<_ACEOF
7639#define LLVM_PATH_GV "$GV${EXEEXT}"
7640_ACEOF
7641
7642fi
7643# Extract the first word of "dotty", so it can be a program name with args.
7644set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647if test "${ac_cv_path_DOTTY+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007649else
7650 case $DOTTY in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007662 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007664 break 2
7665 fi
7666done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007667done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007668IFS=$as_save_IFS
7669
7670 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7671 ;;
7672esac
7673fi
7674DOTTY=$ac_cv_path_DOTTY
7675if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007676 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7677echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007678else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007679 { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007681fi
7682
7683
7684if test "$DOTTY" != "echo dotty" ; then
7685
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007686cat >>confdefs.h <<\_ACEOF
7687#define HAVE_DOTTY 1
7688_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007689
7690 if test "$llvm_cv_os_type" = "MingW" ; then
7691 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7692 fi
7693
7694cat >>confdefs.h <<_ACEOF
7695#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7696_ACEOF
7697
7698fi
7699
7700
7701# Extract the first word of "perl", so it can be a program name with args.
7702set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705if test "${ac_cv_path_PERL+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007707else
7708 case $PERL in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7711 ;;
7712 *)
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007720 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007722 break 2
7723 fi
7724done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007725done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007726IFS=$as_save_IFS
7727
7728 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7729 ;;
7730esac
7731fi
7732PERL=$ac_cv_path_PERL
7733if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007734 { echo "$as_me:$LINENO: result: $PERL" >&5
7735echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007736else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007737 { echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007739fi
7740
7741
7742if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007743 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7744echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007745 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007746 { echo "$as_me:$LINENO: result: yes" >&5
7747echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007748 else
7749 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007750 { echo "$as_me:$LINENO: result: not found" >&5
7751echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007752 fi
7753fi
7754
7755
7756if test x"$PERL" = xnone; then
7757 HAVE_PERL=0
7758
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007759 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7760echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7761 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007762else
7763 HAVE_PERL=1
7764
7765fi
7766
7767# Find a good install program. We prefer a C program (faster),
7768# so one script is as good as another. But avoid the broken or
7769# incompatible versions:
7770# SysV /etc/install, /usr/sbin/install
7771# SunOS /usr/etc/install
7772# IRIX /sbin/install
7773# AIX /bin/install
7774# AmigaOS /C/install, which installs bootblocks on floppy discs
7775# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7776# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7777# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7778# OS/2's system install, which has a completely different semantic
7779# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007780{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7781echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007782if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007783if test "${ac_cv_path_install+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007785else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007791 # Account for people who put trailing slashes in PATH elements.
7792case $as_dir/ in
7793 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007795 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007796 /usr/ucb/* ) ;;
7797 *)
7798 # OSF1 and SCO ODT 3.0 have their own names for install.
7799 # Don't use installbsd from OSF since it installs stuff as root
7800 # by default.
7801 for ac_prog in ginstall scoinst install; do
7802 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007803 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007804 if test $ac_prog = install &&
7805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7806 # AIX install. It has an incompatible calling convention.
7807 :
7808 elif test $ac_prog = install &&
7809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7810 # program-specific install script used by HP pwplus--don't use.
7811 :
7812 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7814 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007815 fi
7816 fi
7817 done
7818 done
7819 ;;
7820esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007821done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007822IFS=$as_save_IFS
7823
7824
7825fi
7826 if test "${ac_cv_path_install+set}" = set; then
7827 INSTALL=$ac_cv_path_install
7828 else
7829 # As a last resort, use the slow shell script. Don't cache a
7830 # value for INSTALL within a source directory, because that will
7831 # break other packages using the cache if that directory is
7832 # removed, or if the value is a relative name.
7833 INSTALL=$ac_install_sh
7834 fi
7835fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007836{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7837echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007838
7839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7840# It thinks the first close brace ends the variable substitution.
7841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7842
7843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7844
7845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7846
7847
7848# Extract the first word of "bzip2", so it can be a program name with args.
7849set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_BZIP2+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007854else
7855 case $BZIP2 in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007867 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007869 break 2
7870 fi
7871done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007872done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007873IFS=$as_save_IFS
7874
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007875 ;;
7876esac
7877fi
7878BZIP2=$ac_cv_path_BZIP2
7879if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007880 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7881echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007882else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007883 { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007885fi
7886
7887
7888# Extract the first word of "doxygen", so it can be a program name with args.
7889set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_DOXYGEN+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007894else
7895 case $DOXYGEN in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007907 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007909 break 2
7910 fi
7911done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007912done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007913IFS=$as_save_IFS
7914
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007915 ;;
7916esac
7917fi
7918DOXYGEN=$ac_cv_path_DOXYGEN
7919if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007920 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7921echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007922else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007925fi
7926
7927
7928# Extract the first word of "groff", so it can be a program name with args.
7929set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_GROFF+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007934else
7935 case $GROFF in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007947 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007949 break 2
7950 fi
7951done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007952done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007953IFS=$as_save_IFS
7954
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007955 ;;
7956esac
7957fi
7958GROFF=$ac_cv_path_GROFF
7959if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007960 { echo "$as_me:$LINENO: result: $GROFF" >&5
7961echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007962else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007965fi
7966
7967
7968# Extract the first word of "gzip", so it can be a program name with args.
7969set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_GZIP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007974else
7975 case $GZIP in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007987 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007989 break 2
7990 fi
7991done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007992done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007993IFS=$as_save_IFS
7994
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007995 ;;
7996esac
7997fi
7998GZIP=$ac_cv_path_GZIP
7999if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008000 { echo "$as_me:$LINENO: result: $GZIP" >&5
8001echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008002else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008005fi
8006
8007
8008# Extract the first word of "pod2html", so it can be a program name with args.
8009set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_POD2HTML+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008014else
8015 case $POD2HTML in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008027 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008029 break 2
8030 fi
8031done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008032done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008033IFS=$as_save_IFS
8034
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008035 ;;
8036esac
8037fi
8038POD2HTML=$ac_cv_path_POD2HTML
8039if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008040 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8041echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008042else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008045fi
8046
8047
8048# Extract the first word of "pod2man", so it can be a program name with args.
8049set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_POD2MAN+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008054else
8055 case $POD2MAN in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008067 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008069 break 2
8070 fi
8071done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008072done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008073IFS=$as_save_IFS
8074
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008075 ;;
8076esac
8077fi
8078POD2MAN=$ac_cv_path_POD2MAN
8079if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008080 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8081echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008082else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008085fi
8086
8087
8088# Extract the first word of "runtest", so it can be a program name with args.
8089set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092if test "${ac_cv_path_RUNTEST+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008094else
8095 case $RUNTEST in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8098 ;;
8099 *)
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008107 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008109 break 2
8110 fi
8111done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008112done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008113IFS=$as_save_IFS
8114
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008115 ;;
8116esac
8117fi
8118RUNTEST=$ac_cv_path_RUNTEST
8119if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008120 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8121echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008122else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008123 { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008125fi
8126
8127
8128
8129no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008130{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8131echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008132
8133# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008134if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008135 withval=$with_tclinclude; with_tclinclude=${withval}
8136else
8137 with_tclinclude=''
8138fi
8139
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008140if test "${ac_cv_path_tclsh+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008142else
8143
8144if test x"${with_tclinclude}" != x ; then
8145 if test -f ${with_tclinclude}/tclsh ; then
8146 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8147 elif test -f ${with_tclinclude}/src/tclsh ; then
8148 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8149 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008150 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8151echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8152 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008153 fi
8154fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008155fi
8156
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008157
8158if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008159 { echo "$as_me:$LINENO: result: none" >&5
8160echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008161 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
8162do
8163 # Extract the first word of "$ac_prog", so it can be a program name with args.
8164set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167if test "${ac_cv_path_TCLSH+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008169else
8170 case $TCLSH in
8171 [\\/]* | ?:[\\/]*)
8172 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8173 ;;
8174 *)
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008182 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008184 break 2
8185 fi
8186done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008187done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008188IFS=$as_save_IFS
8189
8190 ;;
8191esac
8192fi
8193TCLSH=$ac_cv_path_TCLSH
8194if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008195 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8196echo "${ECHO_T}$TCLSH" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008197else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008198 { echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008200fi
8201
8202
8203 test -n "$TCLSH" && break
8204done
8205
8206 if test x"${TCLSH}" = x ; then
8207 ac_cv_path_tclsh='';
8208 else
8209 ac_cv_path_tclsh="${TCLSH}";
8210 fi
8211else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008212 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8213echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008214 TCLSH="${ac_cv_path_tclsh}"
8215
8216fi
8217
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008218# Extract the first word of "zip", so it can be a program name with args.
8219set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222if test "${ac_cv_path_ZIP+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008224else
8225 case $ZIP in
8226 [\\/]* | ?:[\\/]*)
8227 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8228 ;;
8229 *)
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008237 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008239 break 2
8240 fi
8241done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008242done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008243IFS=$as_save_IFS
8244
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008245 ;;
8246esac
8247fi
8248ZIP=$ac_cv_path_ZIP
8249if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008250 { echo "$as_me:$LINENO: result: $ZIP" >&5
8251echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008252else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008253 { echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008255fi
8256
8257
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008258for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008259do
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264if test "${ac_cv_path_OCAMLC+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008266else
8267 case $OCAMLC in
8268 [\\/]* | ?:[\\/]*)
8269 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8270 ;;
8271 *)
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008279 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008281 break 2
8282 fi
8283done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008284done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008285IFS=$as_save_IFS
8286
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008287 ;;
8288esac
8289fi
8290OCAMLC=$ac_cv_path_OCAMLC
8291if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008292 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8293echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008294else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008295 { echo "$as_me:$LINENO: result: no" >&5
8296echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008297fi
8298
8299
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008300 test -n "$OCAMLC" && break
8301done
8302
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008303for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008304do
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008311else
8312 case $OCAMLOPT in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8315 ;;
8316 *)
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008324 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008326 break 2
8327 fi
8328done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008329done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008330IFS=$as_save_IFS
8331
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008332 ;;
8333esac
8334fi
8335OCAMLOPT=$ac_cv_path_OCAMLOPT
8336if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008337 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8338echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008339else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008340 { echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008342fi
8343
8344
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008345 test -n "$OCAMLOPT" && break
8346done
8347
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008348for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008349do
8350 # Extract the first word of "$ac_prog", so it can be a program name with args.
8351set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008356else
8357 case $OCAMLDEP in
8358 [\\/]* | ?:[\\/]*)
8359 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8360 ;;
8361 *)
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008369 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008371 break 2
8372 fi
8373done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008374done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008375IFS=$as_save_IFS
8376
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008377 ;;
8378esac
8379fi
8380OCAMLDEP=$ac_cv_path_OCAMLDEP
8381if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008382 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8383echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008384else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008385 { echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008387fi
8388
8389
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008390 test -n "$OCAMLDEP" && break
8391done
8392
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008393for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008394do
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008401else
8402 case $OCAMLDOC in
8403 [\\/]* | ?:[\\/]*)
8404 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8405 ;;
8406 *)
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008414 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008416 break 2
8417 fi
8418done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008419done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008420IFS=$as_save_IFS
8421
8422 ;;
8423esac
8424fi
8425OCAMLDOC=$ac_cv_path_OCAMLDOC
8426if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008427 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8428echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008429else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008430 { echo "$as_me:$LINENO: result: no" >&5
8431echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008432fi
8433
8434
8435 test -n "$OCAMLDOC" && break
8436done
8437
Edwin Török20176752008-10-22 09:56:27 +00008438for ac_prog in gas as
8439do
8440 # Extract the first word of "$ac_prog", so it can be a program name with args.
8441set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444if test "${ac_cv_path_GAS+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008446else
8447 case $GAS in
8448 [\\/]* | ?:[\\/]*)
8449 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8450 ;;
8451 *)
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Török20176752008-10-22 09:56:27 +00008459 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008461 break 2
8462 fi
8463done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008464done
Edwin Török20176752008-10-22 09:56:27 +00008465IFS=$as_save_IFS
8466
8467 ;;
8468esac
8469fi
8470GAS=$ac_cv_path_GAS
8471if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008472 { echo "$as_me:$LINENO: result: $GAS" >&5
8473echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008474else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008475 { echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008477fi
8478
8479
8480 test -n "$GAS" && break
8481done
8482
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008483
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008484{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8485echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8486if test "${llvm_cv_link_use_r+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008488else
8489 ac_ext=c
8490ac_cpp='$CPP $CPPFLAGS'
8491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495 oldcflags="$CFLAGS"
8496 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008497 cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008502/* end confdefs.h. */
8503
8504int
8505main ()
8506{
8507int main() { return 0; }
8508 ;
8509 return 0;
8510}
8511_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (ac_try="$ac_link"
8514case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008546 llvm_cv_link_use_r=yes
8547else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008552fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008553
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008554rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008555 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008556 CFLAGS="$oldcflags"
8557 ac_ext=c
8558ac_cpp='$CPP $CPPFLAGS'
8559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563
8564fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008565{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8566echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008567if test "$llvm_cv_link_use_r" = yes ; then
8568
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008569cat >>confdefs.h <<\_ACEOF
8570#define HAVE_LINK_R 1
8571_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008572
8573 fi
8574
8575
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008576{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8577echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8578if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008580else
8581 ac_ext=c
8582ac_cpp='$CPP $CPPFLAGS'
8583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585ac_compiler_gnu=$ac_cv_c_compiler_gnu
8586
8587 oldcflags="$CFLAGS"
8588 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008589 cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008594/* end confdefs.h. */
8595
8596int
8597main ()
8598{
8599int main() { return 0; }
8600 ;
8601 return 0;
8602}
8603_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008604rm -f conftest.$ac_objext conftest$ac_exeext
8605if { (ac_try="$ac_link"
8606case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609esac
8610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_link") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008638 llvm_cv_link_use_export_dynamic=yes
8639else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008640 echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008644fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008645
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008646rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008647 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008648 CFLAGS="$oldcflags"
8649 ac_ext=c
8650ac_cpp='$CPP $CPPFLAGS'
8651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8653ac_compiler_gnu=$ac_cv_c_compiler_gnu
8654
8655
8656fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008657{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8658echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008659if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8660
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008661cat >>confdefs.h <<\_ACEOF
8662#define HAVE_LINK_EXPORT_DYNAMIC 1
8663_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008664
8665 fi
8666
8667
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008668
8669
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008670{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8671echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8672if test "${ac_cv_c_const+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008674else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008675 cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h. */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008680/* end confdefs.h. */
8681
8682int
8683main ()
8684{
8685/* FIXME: Include the comments suggested by Paul. */
8686#ifndef __cplusplus
8687 /* Ultrix mips cc rejects this. */
8688 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008689 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008690 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008691 char const *const *ccp;
8692 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008693 /* NEC SVR4.0.2 mips cc rejects this. */
8694 struct point {int x, y;};
8695 static struct point const zero = {0,0};
8696 /* AIX XL C 1.02.0.0 rejects this.
8697 It does not let you subtract one const X* pointer from another in
8698 an arm of an if-expression whose if-part is not a constant
8699 expression */
8700 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008701 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008702 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008703 ++ccp;
8704 p = (char**) ccp;
8705 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008706 { /* SCO 3.2v4 cc rejects this. */
8707 char *t;
8708 char const *s = 0 ? (char *) 0 : (char const *) 0;
8709
8710 *t++ = 0;
8711 if (s) return 0;
8712 }
8713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8714 int x[] = {25, 17};
8715 const int *foo = &x[0];
8716 ++foo;
8717 }
8718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8719 typedef const int *iptr;
8720 iptr p = 0;
8721 ++p;
8722 }
8723 { /* AIX XL C 1.02.0.0 rejects this saying
8724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8725 struct s { int j; const int *ap[3]; };
8726 struct s *b; b->j = 5;
8727 }
8728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8729 const int foo = 10;
8730 if (!foo) return 0;
8731 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008732 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008733#endif
8734
8735 ;
8736 return 0;
8737}
8738_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008739rm -f conftest.$ac_objext
8740if { (ac_try="$ac_compile"
8741case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744esac
8745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754 { (case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757esac
8758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_try") 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_try") 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008773 ac_cv_c_const=yes
8774else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008775 echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008779fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008780
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008783{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8784echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008785if test $ac_cv_c_const = no; then
8786
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008787cat >>confdefs.h <<\_ACEOF
8788#define const
8789_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008790
8791fi
8792
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008793
8794
8795
8796
8797
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008798ac_header_dirent=no
8799for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008800 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8801{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8802echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008805else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008806 cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008811/* end confdefs.h. */
8812#include <sys/types.h>
8813#include <$ac_hdr>
8814
8815int
8816main ()
8817{
8818if ((DIR *) 0)
8819return 0;
8820 ;
8821 return 0;
8822}
8823_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008824rm -f conftest.$ac_objext
8825if { (ac_try="$ac_compile"
8826case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839 { (case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
8843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_try") 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008858 eval "$as_ac_Header=yes"
8859else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008860 echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008864fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008865
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008868ac_res=`eval echo '${'$as_ac_Header'}'`
8869 { echo "$as_me:$LINENO: result: $ac_res" >&5
8870echo "${ECHO_T}$ac_res" >&6; }
8871if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008872 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008873#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008874_ACEOF
8875
8876ac_header_dirent=$ac_hdr; break
8877fi
8878
8879done
8880# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8881if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008882 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8883echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8884if test "${ac_cv_search_opendir+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008886else
8887 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008888cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h. */
8890_ACEOF
8891cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008893/* end confdefs.h. */
8894
8895/* Override any GCC internal prototype to avoid an error.
8896 Use char because int might match the return type of a GCC
8897 builtin and then its argument prototype would still apply. */
8898#ifdef __cplusplus
8899extern "C"
8900#endif
8901char opendir ();
8902int
8903main ()
8904{
8905return opendir ();
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910for ac_lib in '' dir; do
8911 if test -z "$ac_lib"; then
8912 ac_res="none required"
8913 else
8914 ac_res=-l$ac_lib
8915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8916 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008917 rm -f conftest.$ac_objext conftest$ac_exeext
8918if { (ac_try="$ac_link"
8919case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_link") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
8946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_try") 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008951 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008952else
8953 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008957fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008958
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008959rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008960 conftest$ac_exeext
8961 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008962 break
8963fi
8964done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008965if test "${ac_cv_search_opendir+set}" = set; then
8966 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008967else
8968 ac_cv_search_opendir=no
8969fi
8970rm conftest.$ac_ext
8971LIBS=$ac_func_search_save_LIBS
8972fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008973{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8974echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008975ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008976if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978
8979fi
8980
8981else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008982 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8983echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8984if test "${ac_cv_search_opendir+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008986else
8987 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008988cat >conftest.$ac_ext <<_ACEOF
8989/* confdefs.h. */
8990_ACEOF
8991cat confdefs.h >>conftest.$ac_ext
8992cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008993/* end confdefs.h. */
8994
8995/* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
8998#ifdef __cplusplus
8999extern "C"
9000#endif
9001char opendir ();
9002int
9003main ()
9004{
9005return opendir ();
9006 ;
9007 return 0;
9008}
9009_ACEOF
9010for ac_lib in '' x; do
9011 if test -z "$ac_lib"; then
9012 ac_res="none required"
9013 else
9014 ac_res=-l$ac_lib
9015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9016 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009017 rm -f conftest.$ac_objext conftest$ac_exeext
9018if { (ac_try="$ac_link"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_link") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9032 { (case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045esac
9046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009051 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009057fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009058
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009059rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009060 conftest$ac_exeext
9061 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009062 break
9063fi
9064done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009065if test "${ac_cv_search_opendir+set}" = set; then
9066 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009067else
9068 ac_cv_search_opendir=no
9069fi
9070rm conftest.$ac_ext
9071LIBS=$ac_func_search_save_LIBS
9072fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009073{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9074echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009075ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009076if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9078
9079fi
9080
9081fi
9082
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009083
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009084for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009085do
9086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092fi
9093ac_res=`eval echo '${'$as_ac_Header'}'`
9094 { echo "$as_me:$LINENO: result: $ac_res" >&5
9095echo "${ECHO_T}$ac_res" >&6; }
9096else
9097 # Is the header compilable?
9098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9100cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h. */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */
9106$ac_includes_default
9107#include <$ac_header>
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (ac_try="$ac_compile"
9111case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114esac
9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_compile") 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127esac
9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest.$ac_objext'
9134 { (case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_try") 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9144else
9145 echo "$as_me: failed program was:" >&5
9146sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_header_compiler=no
9149fi
9150
9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9153echo "${ECHO_T}$ac_header_compiler" >&6; }
9154
9155# Is the header present?
9156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9158cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
9164#include <$ac_header>
9165_ACEOF
9166if { (ac_try="$ac_cpp conftest.$ac_ext"
9167case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9170esac
9171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } >/dev/null; then
9179 if test -s conftest.err; then
9180 ac_cpp_err=$ac_c_preproc_warn_flag
9181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9182 else
9183 ac_cpp_err=
9184 fi
9185else
9186 ac_cpp_err=yes
9187fi
9188if test -z "$ac_cpp_err"; then
9189 ac_header_preproc=yes
9190else
9191 echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_header_preproc=no
9195fi
9196
9197rm -f conftest.err conftest.$ac_ext
9198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9199echo "${ECHO_T}$ac_header_preproc" >&6; }
9200
9201# So? What about this header?
9202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9203 yes:no: )
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9208 ac_header_preproc=yes
9209 ;;
9210 no:yes:* )
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9223 ( cat <<\_ASBOX
9224## ----------------------------------- ##
9225## Report this to llvmbugs@cs.uiuc.edu ##
9226## ----------------------------------- ##
9227_ASBOX
9228 ) | sed "s/^/$as_me: WARNING: /" >&2
9229 ;;
9230esac
9231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236 eval "$as_ac_Header=\$ac_header_preproc"
9237fi
9238ac_res=`eval echo '${'$as_ac_Header'}'`
9239 { echo "$as_me:$LINENO: result: $ac_res" >&5
9240echo "${ECHO_T}$ac_res" >&6; }
9241
9242fi
9243if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009246_ACEOF
9247
9248fi
9249
9250done
9251
9252# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009253if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009254 enableval=$enable_ltdl_install;
9255fi
9256
9257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009258
9259
9260if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009261 INSTALL_LTDL_TRUE=
9262 INSTALL_LTDL_FALSE='#'
9263else
9264 INSTALL_LTDL_TRUE='#'
9265 INSTALL_LTDL_FALSE=
9266fi
9267
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009268
9269
9270if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009271 CONVENIENCE_LTDL_TRUE=
9272 CONVENIENCE_LTDL_FALSE='#'
9273else
9274 CONVENIENCE_LTDL_TRUE='#'
9275 CONVENIENCE_LTDL_FALSE=
9276fi
9277
9278
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009279{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9280echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009281library_names_spec=
9282libname_spec='lib$name'
9283soname_spec=
9284shrext_cmds=".so"
9285postinstall_cmds=
9286postuninstall_cmds=
9287finish_cmds=
9288finish_eval=
9289shlibpath_var=
9290shlibpath_overrides_runpath=unknown
9291version_type=none
9292dynamic_linker="$host_os ld.so"
9293sys_lib_dlsearch_path_spec="/lib /usr/lib"
9294if test "$GCC" = yes; then
9295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9296 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9297 # if the path contains ";" then we assume it to be the separator
9298 # otherwise default to the standard path separator (i.e. ":") - it is
9299 # assumed that no part of a normal pathname contains ";" but that should
9300 # okay in the real world where ";" in dirpaths is itself problematic.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9302 else
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9304 fi
9305else
9306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9307fi
9308need_lib_prefix=unknown
9309hardcode_into_libs=no
9310
9311# when you set need_version to no, make sure it does not cause -set_version
9312# flags to be left without arguments
9313need_version=unknown
9314
9315case $host_os in
9316aix3*)
9317 version_type=linux
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9319 shlibpath_var=LIBPATH
9320
9321 # AIX 3 has no versioning support, so we append a major version to the name.
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 ;;
9324
9325aix4* | aix5*)
9326 version_type=linux
9327 need_lib_prefix=no
9328 need_version=no
9329 hardcode_into_libs=yes
9330 if test "$host_cpu" = ia64; then
9331 # AIX 5 supports IA64
9332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 else
9335 # With GCC up to 2.95.x, collect2 would create an import file
9336 # for dependence libraries. The import file would start with
9337 # the line `#! .'. This would cause the generated library to
9338 # depend on `.', always an invalid library. This was fixed in
9339 # development snapshots of GCC prior to 3.0.
9340 case $host_os in
9341 aix4 | aix4.[01] | aix4.[01].*)
9342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9343 echo ' yes '
9344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9345 :
9346 else
9347 can_build_shared=no
9348 fi
9349 ;;
9350 esac
9351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9352 # soname into executable. Probably we can add versioning support to
9353 # collect2, so additional links can be useful in future.
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9356 # instead of lib<name>.a to let people know that these are not
9357 # typical AIX shared libraries.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 else
9360 # We preserve .a as extension for shared libraries through AIX4.2
9361 # and later when we are not doing run time linking.
9362 library_names_spec='${libname}${release}.a $libname.a'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 fi
9365 shlibpath_var=LIBPATH
9366 fi
9367 ;;
9368
9369amigaos*)
9370 library_names_spec='$libname.ixlibrary $libname.a'
9371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9372 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'
9373 ;;
9374
9375beos*)
9376 library_names_spec='${libname}${shared_ext}'
9377 dynamic_linker="$host_os ld.so"
9378 shlibpath_var=LIBRARY_PATH
9379 ;;
9380
9381bsdi[45]*)
9382 version_type=linux
9383 need_version=no
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9390 # the default ld.so.conf also contains /usr/contrib/lib and
9391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9392 # libtool to hard-code these into programs
9393 ;;
9394
9395cygwin* | mingw* | pw32*)
9396 version_type=windows
9397 shrext_cmds=".dll"
9398 need_version=no
9399 need_lib_prefix=no
9400
9401 case $GCC,$host_os in
9402 yes,cygwin* | yes,mingw* | yes,pw32*)
9403 library_names_spec='$libname.dll.a'
9404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9405 postinstall_cmds='base_file=`basename \${file}`~
9406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9407 dldir=$destdir/`dirname \$dlpath`~
9408 test -d \$dldir || mkdir -p \$dldir~
9409 $install_prog $dir/$dlname \$dldir/$dlname~
9410 chmod a+x \$dldir/$dlname'
9411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9412 dlpath=$dir/\$dldll~
9413 $rm \$dlpath'
9414 shlibpath_overrides_runpath=yes
9415
9416 case $host_os in
9417 cygwin*)
9418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9421 ;;
9422 mingw*)
9423 # MinGW DLLs use traditional 'lib' prefix
9424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9427 # It is most probably a Windows format PATH printed by
9428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9429 # path with ; separators, and with drive letters. We can handle the
9430 # drive letters (cygwin fileutils understands them), so leave them,
9431 # especially as we might pass files found there to a mingw objdump,
9432 # which wouldn't understand a cygwinified path. Ahh.
9433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9434 else
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9436 fi
9437 ;;
9438 pw32*)
9439 # pw32 DLLs use 'pw' prefix rather than 'lib'
9440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9441 ;;
9442 esac
9443 ;;
9444
9445 *)
9446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9447 ;;
9448 esac
9449 dynamic_linker='Win32 ld.exe'
9450 # FIXME: first we should search . and the directory the executable is in
9451 shlibpath_var=PATH
9452 ;;
9453
9454darwin* | rhapsody*)
9455 dynamic_linker="$host_os dyld"
9456 version_type=darwin
9457 need_lib_prefix=no
9458 need_version=no
9459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9460 soname_spec='${libname}${release}${major}$shared_ext'
9461 shlibpath_overrides_runpath=yes
9462 shlibpath_var=DYLD_LIBRARY_PATH
9463 shrext_cmds='.dylib'
9464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9465 if test "$GCC" = yes; then
9466 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"`
9467 else
9468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9469 fi
9470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9471 ;;
9472
9473dgux*)
9474 version_type=linux
9475 need_lib_prefix=no
9476 need_version=no
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 ;;
9481
9482freebsd1*)
9483 dynamic_linker=no
9484 ;;
9485
9486kfreebsd*-gnu)
9487 version_type=linux
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='GNU ld.so'
9496 ;;
9497
9498freebsd* | dragonfly*)
9499 # DragonFly does not have aout. When/if they implement a new
9500 # versioning mechanism, adjust this.
9501 if test -x /usr/bin/objformat; then
9502 objformat=`/usr/bin/objformat`
9503 else
9504 case $host_os in
9505 freebsd[123]*) objformat=aout ;;
9506 *) objformat=elf ;;
9507 esac
9508 fi
9509 version_type=freebsd-$objformat
9510 case $version_type in
9511 freebsd-elf*)
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9513 need_version=no
9514 need_lib_prefix=no
9515 ;;
9516 freebsd-*)
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9518 need_version=yes
9519 ;;
9520 esac
9521 shlibpath_var=LD_LIBRARY_PATH
9522 case $host_os in
9523 freebsd2*)
9524 shlibpath_overrides_runpath=yes
9525 ;;
9526 freebsd3.[01]* | freebsdelf3.[01]*)
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9529 ;;
9530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9532 shlibpath_overrides_runpath=no
9533 hardcode_into_libs=yes
9534 ;;
9535 freebsd*) # from 4.6 on
9536 shlibpath_overrides_runpath=yes
9537 hardcode_into_libs=yes
9538 ;;
9539 esac
9540 ;;
9541
9542gnu*)
9543 version_type=linux
9544 need_lib_prefix=no
9545 need_version=no
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 hardcode_into_libs=yes
9550 ;;
9551
9552hpux9* | hpux10* | hpux11*)
9553 # Give a soname corresponding to the major version so that dld.sl refuses to
9554 # link against other versions.
9555 version_type=sunos
9556 need_lib_prefix=no
9557 need_version=no
9558 case $host_cpu in
9559 ia64*)
9560 shrext_cmds='.so'
9561 hardcode_into_libs=yes
9562 dynamic_linker="$host_os dld.so"
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 if test "X$HPUX_IA64_MODE" = X32; then
9568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9569 else
9570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9571 fi
9572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9573 ;;
9574 hppa*64*)
9575 shrext_cmds='.sl'
9576 hardcode_into_libs=yes
9577 dynamic_linker="$host_os dld.sl"
9578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9584 ;;
9585 *)
9586 shrext_cmds='.sl'
9587 dynamic_linker="$host_os dld.sl"
9588 shlibpath_var=SHLIB_PATH
9589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 ;;
9593 esac
9594 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9595 postinstall_cmds='chmod 555 $lib'
9596 ;;
9597
9598interix3*)
9599 version_type=linux
9600 need_lib_prefix=no
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 shlibpath_overrides_runpath=no
9607 hardcode_into_libs=yes
9608 ;;
9609
9610irix5* | irix6* | nonstopux*)
9611 case $host_os in
9612 nonstopux*) version_type=nonstopux ;;
9613 *)
9614 if test "$lt_cv_prog_gnu_ld" = yes; then
9615 version_type=linux
9616 else
9617 version_type=irix
9618 fi ;;
9619 esac
9620 need_lib_prefix=no
9621 need_version=no
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9624 case $host_os in
9625 irix5* | nonstopux*)
9626 libsuff= shlibsuff=
9627 ;;
9628 *)
9629 case $LD in # libtool.m4 will add one of these switches to LD
9630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9631 libsuff= shlibsuff= libmagic=32-bit;;
9632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9633 libsuff=32 shlibsuff=N32 libmagic=N32;;
9634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9636 *) libsuff= shlibsuff= libmagic=never-match;;
9637 esac
9638 ;;
9639 esac
9640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9641 shlibpath_overrides_runpath=no
9642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9644 hardcode_into_libs=yes
9645 ;;
9646
9647# No shared lib support for Linux oldld, aout, or coff.
9648linux*oldld* | linux*aout* | linux*coff*)
9649 dynamic_linker=no
9650 ;;
9651
9652# This must be Linux ELF.
9653linux*)
9654 version_type=linux
9655 need_lib_prefix=no
9656 need_version=no
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=no
9662 # This implies no fast_install, which is unacceptable.
9663 # Some rework will be needed to allow for fast_install
9664 # before this can be enabled.
9665 hardcode_into_libs=yes
9666
9667 # Append ld.so.conf contents to the search path
9668 if test -f /etc/ld.so.conf; then
9669 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' ' '`
9670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9671 fi
9672
9673 # We used to test for /lib/ld.so.1 and disable shared libraries on
9674 # powerpc, because MkLinux only supported shared libraries with the
9675 # GNU dynamic linker. Since this was broken with cross compilers,
9676 # most powerpc-linux boxes support dynamic linking these days and
9677 # people can always --disable-shared, the test was removed, and we
9678 # assume the GNU/Linux dynamic linker is in use.
9679 dynamic_linker='GNU/Linux ld.so'
9680 ;;
9681
9682knetbsd*-gnu)
9683 version_type=linux
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='GNU ld.so'
9692 ;;
9693
9694netbsd*)
9695 version_type=sunos
9696 need_lib_prefix=no
9697 need_version=no
9698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701 dynamic_linker='NetBSD (a.out) ld.so'
9702 else
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 dynamic_linker='NetBSD ld.elf_so'
9706 fi
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9709 hardcode_into_libs=yes
9710 ;;
9711
9712newsos6)
9713 version_type=linux
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9717 ;;
9718
9719nto-qnx*)
9720 version_type=linux
9721 need_lib_prefix=no
9722 need_version=no
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9727 ;;
9728
9729openbsd*)
9730 version_type=sunos
9731 sys_lib_dlsearch_path_spec="/usr/lib"
9732 need_lib_prefix=no
9733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9734 case $host_os in
9735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9736 *) need_version=no ;;
9737 esac
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9742 case $host_os in
9743 openbsd2.[89] | openbsd2.[89].*)
9744 shlibpath_overrides_runpath=no
9745 ;;
9746 *)
9747 shlibpath_overrides_runpath=yes
9748 ;;
9749 esac
9750 else
9751 shlibpath_overrides_runpath=yes
9752 fi
9753 ;;
9754
9755os2*)
9756 libname_spec='$name'
9757 shrext_cmds=".dll"
9758 need_lib_prefix=no
9759 library_names_spec='$libname${shared_ext} $libname.a'
9760 dynamic_linker='OS/2 ld.exe'
9761 shlibpath_var=LIBPATH
9762 ;;
9763
9764osf3* | osf4* | osf5*)
9765 version_type=osf
9766 need_lib_prefix=no
9767 need_version=no
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9773 ;;
9774
9775solaris*)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 shlibpath_overrides_runpath=yes
9783 hardcode_into_libs=yes
9784 # ldd complains unless libraries are executable
9785 postinstall_cmds='chmod +x $lib'
9786 ;;
9787
9788sunos4*)
9789 version_type=sunos
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 shlibpath_overrides_runpath=yes
9794 if test "$with_gnu_ld" = yes; then
9795 need_lib_prefix=no
9796 fi
9797 need_version=yes
9798 ;;
9799
9800sysv4 | sysv4.3*)
9801 version_type=linux
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 case $host_vendor in
9806 sni)
9807 shlibpath_overrides_runpath=no
9808 need_lib_prefix=no
9809 export_dynamic_flag_spec='${wl}-Blargedynsym'
9810 runpath_var=LD_RUN_PATH
9811 ;;
9812 siemens)
9813 need_lib_prefix=no
9814 ;;
9815 motorola)
9816 need_lib_prefix=no
9817 need_version=no
9818 shlibpath_overrides_runpath=no
9819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9820 ;;
9821 esac
9822 ;;
9823
9824sysv4*MP*)
9825 if test -d /usr/nec ;then
9826 version_type=linux
9827 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9828 soname_spec='$libname${shared_ext}.$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 fi
9831 ;;
9832
9833sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9834 version_type=freebsd-elf
9835 need_lib_prefix=no
9836 need_version=no
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 hardcode_into_libs=yes
9841 if test "$with_gnu_ld" = yes; then
9842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9843 shlibpath_overrides_runpath=no
9844 else
9845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9846 shlibpath_overrides_runpath=yes
9847 case $host_os in
9848 sco3.2v5*)
9849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9850 ;;
9851 esac
9852 fi
9853 sys_lib_dlsearch_path_spec='/usr/lib'
9854 ;;
9855
9856uts4*)
9857 version_type=linux
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 ;;
9862
9863*)
9864 dynamic_linker=no
9865 ;;
9866esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009867{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9868echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009869test "$dynamic_linker" = no && can_build_shared=no
9870
9871variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9872if test "$GCC" = yes; then
9873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9874fi
9875
9876
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009877{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9878echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9879if test "${libltdl_cv_shlibext+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009881else
9882
9883module=yes
9884eval libltdl_cv_shlibext=$shrext_cmds
9885
9886fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009887{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9888echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009889if test -n "$libltdl_cv_shlibext"; then
9890
9891cat >>confdefs.h <<_ACEOF
9892#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9893_ACEOF
9894
9895fi
9896
9897
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009898{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9899echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9900if test "${libltdl_cv_shlibpath_var+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009902else
9903 libltdl_cv_shlibpath_var="$shlibpath_var"
9904fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009905{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9906echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009907if test -n "$libltdl_cv_shlibpath_var"; then
9908
9909cat >>confdefs.h <<_ACEOF
9910#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9911_ACEOF
9912
9913fi
9914
9915
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009916{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9917echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9918if test "${libltdl_cv_sys_search_path+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009920else
9921 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9922fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009923{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9924echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009925if test -n "$libltdl_cv_sys_search_path"; then
9926 sys_search_path=
9927 for dir in $libltdl_cv_sys_search_path; do
9928 if test -z "$sys_search_path"; then
9929 sys_search_path="$dir"
9930 else
9931 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9932 fi
9933 done
9934
9935cat >>confdefs.h <<_ACEOF
9936#define LTDL_SYSSEARCHPATH "$sys_search_path"
9937_ACEOF
9938
9939fi
9940
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009941{ echo "$as_me:$LINENO: checking for objdir" >&5
9942echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9943if test "${libltdl_cv_objdir+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009945else
9946 libltdl_cv_objdir="$objdir"
9947 if test -n "$objdir"; then
9948 :
9949 else
9950 rm -f .libs 2>/dev/null
9951 mkdir .libs 2>/dev/null
9952 if test -d .libs; then
9953 libltdl_cv_objdir=.libs
9954 else
9955 # MS-DOS does not allow filenames that begin with a dot.
9956 libltdl_cv_objdir=_libs
9957 fi
9958 rmdir .libs 2>/dev/null
9959 fi
9960
9961fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009962{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9963echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009964
9965cat >>confdefs.h <<_ACEOF
9966#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9967_ACEOF
9968
9969
9970
9971
9972
9973
9974# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009975{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9976echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9977if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009979else
9980
9981# These are sane defaults that work on at least a few old systems.
9982# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9983
9984# Character class describing NM global symbol codes.
9985symcode='[BCDEGRST]'
9986
9987# Regexp to match symbols that can be accessed directly from C.
9988sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9989
9990# Transform an extracted symbol line into a proper C declaration
9991lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9992
9993# Transform an extracted symbol line into symbol name and symbol address
9994lt_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'"
9995
9996# Define system-specific variables.
9997case $host_os in
9998aix*)
9999 symcode='[BCDT]'
10000 ;;
10001cygwin* | mingw* | pw32*)
10002 symcode='[ABCDGISTW]'
10003 ;;
10004hpux*) # Its linker distinguishes data from code symbols
10005 if test "$host_cpu" = ia64; then
10006 symcode='[ABCDEGRST]'
10007 fi
10008 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10009 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'"
10010 ;;
10011linux*)
10012 if test "$host_cpu" = ia64; then
10013 symcode='[ABCDGIRSTW]'
10014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10015 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'"
10016 fi
10017 ;;
10018irix* | nonstopux*)
10019 symcode='[BCDEGRST]'
10020 ;;
10021osf*)
10022 symcode='[BCDEGQRST]'
10023 ;;
10024solaris*)
10025 symcode='[BDRT]'
10026 ;;
10027sco3.2v5*)
10028 symcode='[DT]'
10029 ;;
10030sysv4.2uw2*)
10031 symcode='[DT]'
10032 ;;
10033sysv5* | sco5v6* | unixware* | OpenUNIX*)
10034 symcode='[ABDT]'
10035 ;;
10036sysv4)
10037 symcode='[DFNSTU]'
10038 ;;
10039esac
10040
10041# Handle CRLF in mingw tool chain
10042opt_cr=
10043case $build_os in
10044mingw*)
10045 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10046 ;;
10047esac
10048
10049# If we're using GNU nm, then use its standard symbol codes.
10050case `$NM -V 2>&1` in
10051*GNU* | *'with BFD'*)
10052 symcode='[ABCDGIRSTW]' ;;
10053esac
10054
10055# Try without a prefix undercore, then with it.
10056for ac_symprfx in "" "_"; do
10057
10058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10059 symxfrm="\\1 $ac_symprfx\\2 \\2"
10060
10061 # Write the raw and C identifiers.
10062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10063
10064 # Check to see that the pipe works correctly.
10065 pipe_works=no
10066
10067 rm -f conftest*
10068 cat > conftest.$ac_ext <<EOF
10069#ifdef __cplusplus
10070extern "C" {
10071#endif
10072char nm_test_var;
10073void nm_test_func(){}
10074#ifdef __cplusplus
10075}
10076#endif
10077int main(){nm_test_var='a';nm_test_func();return(0);}
10078EOF
10079
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010081 (eval $ac_compile) 2>&5
10082 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010085 # Now try to grab the symbols.
10086 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010087 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010088 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10089 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010092 # Try sorting and uniquifying the output.
10093 if sort "$nlist" | uniq > "$nlist"T; then
10094 mv -f "$nlist"T "$nlist"
10095 else
10096 rm -f "$nlist"T
10097 fi
10098
10099 # Make sure that we snagged all the symbols we need.
10100 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10101 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10102 cat <<EOF > conftest.$ac_ext
10103#ifdef __cplusplus
10104extern "C" {
10105#endif
10106
10107EOF
10108 # Now generate the symbol file.
10109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10110
10111 cat <<EOF >> conftest.$ac_ext
10112#if defined (__STDC__) && __STDC__
10113# define lt_ptr_t void *
10114#else
10115# define lt_ptr_t char *
10116# define const
10117#endif
10118
10119/* The mapping between symbol names and symbols. */
10120const struct {
10121 const char *name;
10122 lt_ptr_t address;
10123}
10124lt_preloaded_symbols[] =
10125{
10126EOF
10127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10128 cat <<\EOF >> conftest.$ac_ext
10129 {0, (lt_ptr_t) 0}
10130};
10131
10132#ifdef __cplusplus
10133}
10134#endif
10135EOF
10136 # Now try linking the two files.
10137 mv conftest.$ac_objext conftstm.$ac_objext
10138 lt_save_LIBS="$LIBS"
10139 lt_save_CFLAGS="$CFLAGS"
10140 LIBS="conftstm.$ac_objext"
10141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010143 (eval $ac_link) 2>&5
10144 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010147 pipe_works=yes
10148 fi
10149 LIBS="$lt_save_LIBS"
10150 CFLAGS="$lt_save_CFLAGS"
10151 else
10152 echo "cannot find nm_test_func in $nlist" >&5
10153 fi
10154 else
10155 echo "cannot find nm_test_var in $nlist" >&5
10156 fi
10157 else
10158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10159 fi
10160 else
10161 echo "$progname: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 fi
10164 rm -f conftest* conftst*
10165
10166 # Do not use the global_symbol_pipe unless it works.
10167 if test "$pipe_works" = yes; then
10168 break
10169 else
10170 lt_cv_sys_global_symbol_pipe=
10171 fi
10172done
10173
10174fi
10175
10176if test -z "$lt_cv_sys_global_symbol_pipe"; then
10177 lt_cv_sys_global_symbol_to_cdecl=
10178fi
10179if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010180 { echo "$as_me:$LINENO: result: failed" >&5
10181echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010182else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010183 { echo "$as_me:$LINENO: result: ok" >&5
10184echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010185fi
10186
10187
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010188{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10189echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10190if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010192else
10193 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10194 libltdl_cv_preloaded_symbols=yes
10195 else
10196 libltdl_cv_preloaded_symbols=no
10197 fi
10198
10199fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010200{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10201echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010202if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10203
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010204cat >>confdefs.h <<\_ACEOF
10205#define HAVE_PRELOADED_SYMBOLS 1
10206_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010207
10208fi
10209
10210LIBADD_DL=
10211
10212ac_ext=c
10213ac_cpp='$CPP $CPPFLAGS'
10214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10216ac_compiler_gnu=$ac_cv_c_compiler_gnu
10217
10218
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010219{ echo "$as_me:$LINENO: checking for shl_load" >&5
10220echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10221if test "${ac_cv_func_shl_load+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h. */
10230/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010233
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010234/* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char shl_load (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10238
10239#ifdef __STDC__
10240# include <limits.h>
10241#else
10242# include <assert.h>
10243#endif
10244
10245#undef shl_load
10246
10247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char shl_load ();
10254/* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257#if defined __stub_shl_load || defined __stub___shl_load
10258choke me
10259#endif
10260
10261int
10262main ()
10263{
10264return shl_load ();
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_func_shl_load=yes
10304else
10305 echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_func_shl_load=no
10309fi
10310
10311rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313fi
10314{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10315echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10316if test $ac_cv_func_shl_load = yes; then
10317
10318cat >>confdefs.h <<\_ACEOF
10319#define HAVE_SHL_LOAD 1
10320_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010321
10322else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010323 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10324echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10325if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010327else
10328 ac_check_lib_save_LIBS=$LIBS
10329LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010330cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h. */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010335/* end confdefs.h. */
10336
10337/* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10340#ifdef __cplusplus
10341extern "C"
10342#endif
10343char shl_load ();
10344int
10345main ()
10346{
10347return shl_load ();
10348 ;
10349 return 0;
10350}
10351_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010352rm -f conftest.$ac_objext conftest$ac_exeext
10353if { (ac_try="$ac_link"
10354case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_link") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 { (case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370esac
10371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_try") 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest$ac_exeext'
10377 { (case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_try") 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010386 ac_cv_lib_dld_shl_load=yes
10387else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010388 echo "$as_me: failed program was:" >&5
10389sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010392fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010393
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010394rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010395 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010396LIBS=$ac_check_lib_save_LIBS
10397fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010398{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10399echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10400if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010401
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010402cat >>confdefs.h <<\_ACEOF
10403#define HAVE_SHL_LOAD 1
10404_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010405
10406 LIBADD_DL="$LIBADD_DL -ldld"
10407else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010408 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10409echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10410if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010412else
10413 ac_check_lib_save_LIBS=$LIBS
10414LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010415cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h. */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010420/* end confdefs.h. */
10421
10422/* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10425#ifdef __cplusplus
10426extern "C"
10427#endif
10428char dlopen ();
10429int
10430main ()
10431{
10432return dlopen ();
10433 ;
10434 return 0;
10435}
10436_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010437rm -f conftest.$ac_objext conftest$ac_exeext
10438if { (ac_try="$ac_link"
10439case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442esac
10443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10452 { (case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_try") 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465esac
10466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_try") 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010471 ac_cv_lib_dl_dlopen=yes
10472else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010473 echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010477fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010478
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010479rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010480 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010481LIBS=$ac_check_lib_save_LIBS
10482fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010483{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10484echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10485if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010486
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010487cat >>confdefs.h <<\_ACEOF
10488#define HAVE_LIBDL 1
10489_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010490
10491 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10492else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010493 cat >conftest.$ac_ext <<_ACEOF
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010498/* end confdefs.h. */
10499#if HAVE_DLFCN_H
10500# include <dlfcn.h>
10501#endif
10502
10503int
10504main ()
10505{
10506dlopen(0, 0);
10507 ;
10508 return 0;
10509}
10510_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010511rm -f conftest.$ac_objext conftest$ac_exeext
10512if { (ac_try="$ac_link"
10513case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526 { (case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529esac
10530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_try") 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010545
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010546cat >>confdefs.h <<\_ACEOF
10547#define HAVE_LIBDL 1
10548_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010549 libltdl_cv_func_dlopen="yes"
10550else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010551 echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10555echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10556if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010558else
10559 ac_check_lib_save_LIBS=$LIBS
10560LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010561cat >conftest.$ac_ext <<_ACEOF
10562/* confdefs.h. */
10563_ACEOF
10564cat confdefs.h >>conftest.$ac_ext
10565cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010566/* end confdefs.h. */
10567
10568/* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571#ifdef __cplusplus
10572extern "C"
10573#endif
10574char dlopen ();
10575int
10576main ()
10577{
10578return dlopen ();
10579 ;
10580 return 0;
10581}
10582_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010583rm -f conftest.$ac_objext conftest$ac_exeext
10584if { (ac_try="$ac_link"
10585case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598 { (case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601esac
10602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_try") 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010617 ac_cv_lib_svld_dlopen=yes
10618else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010619 echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010623fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010624
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010625rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010626 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010627LIBS=$ac_check_lib_save_LIBS
10628fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010629{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10630echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10631if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010632
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010633cat >>confdefs.h <<\_ACEOF
10634#define HAVE_LIBDL 1
10635_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010636
10637 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10638else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010639 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10640echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10641if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010643else
10644 ac_check_lib_save_LIBS=$LIBS
10645LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010646cat >conftest.$ac_ext <<_ACEOF
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010651/* end confdefs.h. */
10652
10653/* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656#ifdef __cplusplus
10657extern "C"
10658#endif
10659char dld_link ();
10660int
10661main ()
10662{
10663return dld_link ();
10664 ;
10665 return 0;
10666}
10667_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010668rm -f conftest.$ac_objext conftest$ac_exeext
10669if { (ac_try="$ac_link"
10670case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_link") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696esac
10697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010702 ac_cv_lib_dld_dld_link=yes
10703else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010708fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010709
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010710rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010711 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010712LIBS=$ac_check_lib_save_LIBS
10713fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010714{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10715echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10716if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010717
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010718cat >>confdefs.h <<\_ACEOF
10719#define HAVE_DLD 1
10720_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010721
10722 LIBADD_DL="$LIBADD_DL -ldld"
10723else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010724 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10725echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10726if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728else
10729 cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
10735/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10737#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010738
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010739/* System header to define __stub macros and hopefully few prototypes,
10740 which can conflict with char _dyld_func_lookup (); below.
10741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010743
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010744#ifdef __STDC__
10745# include <limits.h>
10746#else
10747# include <assert.h>
10748#endif
10749
10750#undef _dyld_func_lookup
10751
10752/* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755#ifdef __cplusplus
10756extern "C"
10757#endif
10758char _dyld_func_lookup ();
10759/* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10763choke me
10764#endif
10765
10766int
10767main ()
10768{
10769return _dyld_func_lookup ();
10770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.$ac_objext conftest$ac_exeext
10775if { (ac_try="$ac_link"
10776case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_func__dyld_func_lookup=yes
10809else
10810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010814fi
10815
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010816rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010817 conftest$ac_exeext conftest.$ac_ext
10818fi
10819{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10820echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10821if test $ac_cv_func__dyld_func_lookup = yes; then
10822
10823cat >>confdefs.h <<\_ACEOF
10824#define HAVE_DYLD 1
10825_ACEOF
10826
10827fi
10828
10829
10830fi
10831
10832
10833fi
10834
10835
10836fi
10837
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010840
10841fi
10842
10843
10844fi
10845
10846
10847fi
10848
10849
10850if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10851then
10852 lt_save_LIBS="$LIBS"
10853 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010854
10855for ac_func in dlerror
10856do
10857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h. */
10865_ACEOF
10866cat confdefs.h >>conftest.$ac_ext
10867cat >>conftest.$ac_ext <<_ACEOF
10868/* end confdefs.h. */
10869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10871#define $ac_func innocuous_$ac_func
10872
10873/* System header to define __stub macros and hopefully few prototypes,
10874 which can conflict with char $ac_func (); below.
10875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10876 <limits.h> exists even on freestanding compilers. */
10877
10878#ifdef __STDC__
10879# include <limits.h>
10880#else
10881# include <assert.h>
10882#endif
10883
10884#undef $ac_func
10885
10886/* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10889#ifdef __cplusplus
10890extern "C"
10891#endif
10892char $ac_func ();
10893/* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896#if defined __stub_$ac_func || defined __stub___$ac_func
10897choke me
10898#endif
10899
10900int
10901main ()
10902{
10903return $ac_func ();
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (ac_try="$ac_link"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_var=yes"
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 eval "$as_ac_var=no"
10948fi
10949
10950rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952fi
10953ac_res=`eval echo '${'$as_ac_var'}'`
10954 { echo "$as_me:$LINENO: result: $ac_res" >&5
10955echo "${ECHO_T}$ac_res" >&6; }
10956if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010957 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010959_ACEOF
10960
10961fi
10962done
10963
10964 LIBS="$lt_save_LIBS"
10965fi
10966ac_ext=c
10967ac_cpp='$CPP $CPPFLAGS'
10968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971
10972
10973
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010974{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10975echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10976if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010978else
10979 ac_cv_sys_symbol_underscore=no
10980 cat > conftest.$ac_ext <<EOF
10981void nm_test_func(){}
10982int main(){nm_test_func;return 0;}
10983EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010985 (eval $ac_compile) 2>&5
10986 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010989 # Now try to grab the symbols.
10990 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010991 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010992 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10993 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010996 # See whether the symbols have a leading underscore.
10997 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10998 ac_cv_sys_symbol_underscore=yes
10999 else
11000 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11001 :
11002 else
11003 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11004 fi
11005 fi
11006 else
11007 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11008 fi
11009 else
11010 echo "configure: failed program was:" >&5
11011 cat conftest.c >&5
11012 fi
11013 rm -rf conftest*
11014
11015fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011016{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11017echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011018
11019
11020if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11021 if test x"$libltdl_cv_func_dlopen" = xyes ||
11022 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011023 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11024echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11025if test "${libltdl_cv_need_uscore+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011027else
11028 libltdl_cv_need_uscore=unknown
11029 save_LIBS="$LIBS"
11030 LIBS="$LIBS $LIBADD_DL"
11031 if test "$cross_compiling" = yes; then :
11032 libltdl_cv_need_uscore=cross
11033else
11034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11035 lt_status=$lt_dlunknown
11036 cat > conftest.$ac_ext <<EOF
Daniel Dunbar62970842010-02-23 07:56:22 +000011037#line 11037 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011038#include "confdefs.h"
11039
11040#if HAVE_DLFCN_H
11041#include <dlfcn.h>
11042#endif
11043
11044#include <stdio.h>
11045
11046#ifdef RTLD_GLOBAL
11047# define LT_DLGLOBAL RTLD_GLOBAL
11048#else
11049# ifdef DL_GLOBAL
11050# define LT_DLGLOBAL DL_GLOBAL
11051# else
11052# define LT_DLGLOBAL 0
11053# endif
11054#endif
11055
11056/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11057 find out it does not work in some platform. */
11058#ifndef LT_DLLAZY_OR_NOW
11059# ifdef RTLD_LAZY
11060# define LT_DLLAZY_OR_NOW RTLD_LAZY
11061# else
11062# ifdef DL_LAZY
11063# define LT_DLLAZY_OR_NOW DL_LAZY
11064# else
11065# ifdef RTLD_NOW
11066# define LT_DLLAZY_OR_NOW RTLD_NOW
11067# else
11068# ifdef DL_NOW
11069# define LT_DLLAZY_OR_NOW DL_NOW
11070# else
11071# define LT_DLLAZY_OR_NOW 0
11072# endif
11073# endif
11074# endif
11075# endif
11076#endif
11077
11078#ifdef __cplusplus
11079extern "C" void exit (int);
11080#endif
11081
11082void fnord() { int i=42;}
11083int main ()
11084{
11085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11086 int status = $lt_dlunknown;
11087
11088 if (self)
11089 {
11090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11091 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11092 /* dlclose (self); */
11093 }
11094 else
11095 puts (dlerror ());
11096
11097 exit (status);
11098}
11099EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011101 (eval $ac_link) 2>&5
11102 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011105 (./conftest; exit; ) >&5 2>/dev/null
11106 lt_status=$?
11107 case x$lt_status in
11108 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11109 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11110 x$lt_dlunknown|x*) ;;
11111 esac
11112 else :
11113 # compilation failed
11114
11115 fi
11116fi
11117rm -fr conftest*
11118
11119 LIBS="$save_LIBS"
11120
11121fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011122{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11123echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011124 fi
11125fi
11126
11127if test x"$libltdl_cv_need_uscore" = xyes; then
11128
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011129cat >>confdefs.h <<\_ACEOF
11130#define NEED_USCORE 1
11131_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011132
11133fi
11134
11135
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011136{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11137echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11138if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011140else
11141 # PORTME does your system automatically load deplibs for dlopen?
11142 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11143 # For now, we just catch OSes we know something about -- in the
11144 # future, we'll try test this programmatically.
11145 libltdl_cv_sys_dlopen_deplibs=unknown
11146 case "$host_os" in
11147 aix3*|aix4.1.*|aix4.2.*)
11148 # Unknown whether this is true for these versions of AIX, but
11149 # we want this `case' here to explicitly catch those versions.
11150 libltdl_cv_sys_dlopen_deplibs=unknown
11151 ;;
11152 aix[45]*)
11153 libltdl_cv_sys_dlopen_deplibs=yes
11154 ;;
11155 darwin*)
11156 # Assuming the user has installed a libdl from somewhere, this is true
11157 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11158 libltdl_cv_sys_dlopen_deplibs=yes
11159 ;;
11160 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11161 # GNU and its variants, using gnu ld.so (Glibc)
11162 libltdl_cv_sys_dlopen_deplibs=yes
11163 ;;
11164 hpux10*|hpux11*)
11165 libltdl_cv_sys_dlopen_deplibs=yes
11166 ;;
11167 interix*)
11168 libltdl_cv_sys_dlopen_deplibs=yes
11169 ;;
11170 irix[12345]*|irix6.[01]*)
11171 # Catch all versions of IRIX before 6.2, and indicate that we don't
11172 # know how it worked for any of those versions.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11174 ;;
11175 irix*)
11176 # The case above catches anything before 6.2, and it's known that
11177 # at 6.2 and later dlopen does load deplibs.
11178 libltdl_cv_sys_dlopen_deplibs=yes
11179 ;;
11180 netbsd*)
11181 libltdl_cv_sys_dlopen_deplibs=yes
11182 ;;
11183 openbsd*)
11184 libltdl_cv_sys_dlopen_deplibs=yes
11185 ;;
11186 osf[1234]*)
11187 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11188 # it did *not* use an RPATH in a shared library to find objects the
11189 # library depends on, so we explictly say `no'.
11190 libltdl_cv_sys_dlopen_deplibs=no
11191 ;;
11192 osf5.0|osf5.0a|osf5.1)
11193 # dlopen *does* load deplibs and with the right loader patch applied
11194 # it even uses RPATH in a shared library to search for shared objects
11195 # that the library depends on, but there's no easy way to know if that
11196 # patch is installed. Since this is the case, all we can really
11197 # say is unknown -- it depends on the patch being installed. If
11198 # it is, this changes to `yes'. Without it, it would be `no'.
11199 libltdl_cv_sys_dlopen_deplibs=unknown
11200 ;;
11201 osf*)
11202 # the two cases above should catch all versions of osf <= 5.1. Read
11203 # the comments above for what we know about them.
11204 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11205 # is used to find them so we can finally say `yes'.
11206 libltdl_cv_sys_dlopen_deplibs=yes
11207 ;;
11208 solaris*)
11209 libltdl_cv_sys_dlopen_deplibs=yes
11210 ;;
11211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11212 libltdl_cv_sys_dlopen_deplibs=yes
11213 ;;
11214 esac
11215
11216fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011217{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11218echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011219if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11220
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011221cat >>confdefs.h <<\_ACEOF
11222#define LTDL_DLOPEN_DEPLIBS 1
11223_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011224
11225fi
11226
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011227
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011228for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011229do
11230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236fi
11237ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239echo "${ECHO_T}$ac_res" >&6; }
11240else
11241 # Is the header compilable?
11242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250$ac_includes_default
11251#include <$ac_header>
11252_ACEOF
11253rm -f conftest.$ac_objext
11254if { (ac_try="$ac_compile"
11255case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271esac
11272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_try") 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_header_compiler=yes
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_header_compiler=no
11293fi
11294
11295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11297echo "${ECHO_T}$ac_header_compiler" >&6; }
11298
11299# Is the header present?
11300{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11302cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308#include <$ac_header>
11309_ACEOF
11310if { (ac_try="$ac_cpp conftest.$ac_ext"
11311case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314esac
11315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11326 else
11327 ac_cpp_err=
11328 fi
11329else
11330 ac_cpp_err=yes
11331fi
11332if test -z "$ac_cpp_err"; then
11333 ac_header_preproc=yes
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_header_preproc=no
11339fi
11340
11341rm -f conftest.err conftest.$ac_ext
11342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343echo "${ECHO_T}$ac_header_preproc" >&6; }
11344
11345# So? What about this header?
11346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 yes:no: )
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352 ac_header_preproc=yes
11353 ;;
11354 no:yes:* )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ( cat <<\_ASBOX
11368## ----------------------------------- ##
11369## Report this to llvmbugs@cs.uiuc.edu ##
11370## ----------------------------------- ##
11371_ASBOX
11372 ) | sed "s/^/$as_me: WARNING: /" >&2
11373 ;;
11374esac
11375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 eval "$as_ac_Header=\$ac_header_preproc"
11381fi
11382ac_res=`eval echo '${'$as_ac_Header'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384echo "${ECHO_T}$ac_res" >&6; }
11385
11386fi
11387if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011390_ACEOF
11391
11392fi
11393
11394done
11395
11396
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011397{ echo "$as_me:$LINENO: checking for error_t" >&5
11398echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11399if test "${ac_cv_type_error_t+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011409# include <argz.h>
11410#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011411
11412typedef error_t ac__type_new_;
11413int
11414main ()
11415{
11416if ((ac__type_new_ *) 0)
11417 return 0;
11418if (sizeof (ac__type_new_))
11419 return 0;
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext
11425if { (ac_try="$ac_compile"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_type_error_t=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_cv_type_error_t=no
11464fi
11465
11466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467fi
11468{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11469echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11470if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011471
11472cat >>confdefs.h <<_ACEOF
11473#define HAVE_ERROR_T 1
11474_ACEOF
11475
11476
11477else
11478
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011479cat >>confdefs.h <<\_ACEOF
11480#define error_t int
11481_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011482
11483fi
11484
11485
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011486
11487
11488
11489
11490
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011491for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011492do
11493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498else
11499 cat >conftest.$ac_ext <<_ACEOF
11500/* confdefs.h. */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h. */
11505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11507#define $ac_func innocuous_$ac_func
11508
11509/* System header to define __stub macros and hopefully few prototypes,
11510 which can conflict with char $ac_func (); below.
11511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 <limits.h> exists even on freestanding compilers. */
11513
11514#ifdef __STDC__
11515# include <limits.h>
11516#else
11517# include <assert.h>
11518#endif
11519
11520#undef $ac_func
11521
11522/* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525#ifdef __cplusplus
11526extern "C"
11527#endif
11528char $ac_func ();
11529/* The GNU C library defines this for functions which it implements
11530 to always fail with ENOSYS. Some functions are actually named
11531 something starting with __ and the normal name is an alias. */
11532#if defined __stub_$ac_func || defined __stub___$ac_func
11533choke me
11534#endif
11535
11536int
11537main ()
11538{
11539return $ac_func ();
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544rm -f conftest.$ac_objext conftest$ac_exeext
11545if { (ac_try="$ac_link"
11546case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562esac
11563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572esac
11573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_try") 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "$as_ac_var=yes"
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 eval "$as_ac_var=no"
11584fi
11585
11586rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588fi
11589ac_res=`eval echo '${'$as_ac_var'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591echo "${ECHO_T}$ac_res" >&6; }
11592if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011593 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011595_ACEOF
11596
11597fi
11598done
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011619
11620
11621
11622
11623
11624
11625
11626
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011627for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11628 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011629do
11630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636fi
11637ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639echo "${ECHO_T}$ac_res" >&6; }
11640else
11641 # Is the header compilable?
11642{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650$ac_includes_default
11651#include <$ac_header>
11652_ACEOF
11653rm -f conftest.$ac_objext
11654if { (ac_try="$ac_compile"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_header_compiler=yes
11688else
11689 echo "$as_me: failed program was:" >&5
11690sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_header_compiler=no
11693fi
11694
11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697echo "${ECHO_T}$ac_header_compiler" >&6; }
11698
11699# Is the header present?
11700{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708#include <$ac_header>
11709_ACEOF
11710if { (ac_try="$ac_cpp conftest.$ac_ext"
11711case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null; then
11723 if test -s conftest.err; then
11724 ac_cpp_err=$ac_c_preproc_warn_flag
11725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11726 else
11727 ac_cpp_err=
11728 fi
11729else
11730 ac_cpp_err=yes
11731fi
11732if test -z "$ac_cpp_err"; then
11733 ac_header_preproc=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 ac_header_preproc=no
11739fi
11740
11741rm -f conftest.err conftest.$ac_ext
11742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743echo "${ECHO_T}$ac_header_preproc" >&6; }
11744
11745# So? What about this header?
11746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 yes:no: )
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11753 ;;
11754 no:yes:* )
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767 ( cat <<\_ASBOX
11768## ----------------------------------- ##
11769## Report this to llvmbugs@cs.uiuc.edu ##
11770## ----------------------------------- ##
11771_ASBOX
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11773 ;;
11774esac
11775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 eval "$as_ac_Header=\$ac_header_preproc"
11781fi
11782ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
11785
11786fi
11787if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011788 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011790_ACEOF
11791
11792fi
11793
11794done
11795
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011796
11797
11798
11799
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011800for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011801do
11802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808fi
11809ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811echo "${ECHO_T}$ac_res" >&6; }
11812else
11813 # Is the header compilable?
11814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11816cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822$ac_includes_default
11823#include <$ac_header>
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (ac_try="$ac_compile"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_compile") 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_header_compiler=yes
11860else
11861 echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_header_compiler=no
11865fi
11866
11867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11869echo "${ECHO_T}$ac_header_compiler" >&6; }
11870
11871# Is the header present?
11872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11874cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880#include <$ac_header>
11881_ACEOF
11882if { (ac_try="$ac_cpp conftest.$ac_ext"
11883case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } >/dev/null; then
11895 if test -s conftest.err; then
11896 ac_cpp_err=$ac_c_preproc_warn_flag
11897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11898 else
11899 ac_cpp_err=
11900 fi
11901else
11902 ac_cpp_err=yes
11903fi
11904if test -z "$ac_cpp_err"; then
11905 ac_header_preproc=yes
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_header_preproc=no
11911fi
11912
11913rm -f conftest.err conftest.$ac_ext
11914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11915echo "${ECHO_T}$ac_header_preproc" >&6; }
11916
11917# So? What about this header?
11918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11919 yes:no: )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11924 ac_header_preproc=yes
11925 ;;
11926 no:yes:* )
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11939 ( cat <<\_ASBOX
11940## ----------------------------------- ##
11941## Report this to llvmbugs@cs.uiuc.edu ##
11942## ----------------------------------- ##
11943_ASBOX
11944 ) | sed "s/^/$as_me: WARNING: /" >&2
11945 ;;
11946esac
11947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
11952 eval "$as_ac_Header=\$ac_header_preproc"
11953fi
11954ac_res=`eval echo '${'$as_ac_Header'}'`
11955 { echo "$as_me:$LINENO: result: $ac_res" >&5
11956echo "${ECHO_T}$ac_res" >&6; }
11957
11958fi
11959if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011960 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011962_ACEOF
11963
11964fi
11965
11966done
11967
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011968
11969
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011970for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011971do
11972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978fi
11979ac_res=`eval echo '${'$as_ac_Header'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981echo "${ECHO_T}$ac_res" >&6; }
11982else
11983 # Is the header compilable?
11984{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11986cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992$ac_includes_default
11993#include <$ac_header>
11994_ACEOF
11995rm -f conftest.$ac_objext
11996if { (ac_try="$ac_compile"
11997case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_compile") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_header_compiler=yes
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_header_compiler=no
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12039echo "${ECHO_T}$ac_header_compiler" >&6; }
12040
12041# Is the header present?
12042{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12044cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050#include <$ac_header>
12051_ACEOF
12052if { (ac_try="$ac_cpp conftest.$ac_ext"
12053case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056esac
12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
12067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12068 else
12069 ac_cpp_err=
12070 fi
12071else
12072 ac_cpp_err=yes
12073fi
12074if test -z "$ac_cpp_err"; then
12075 ac_header_preproc=yes
12076else
12077 echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_header_preproc=no
12081fi
12082
12083rm -f conftest.err conftest.$ac_ext
12084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12085echo "${ECHO_T}$ac_header_preproc" >&6; }
12086
12087# So? What about this header?
12088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12089 yes:no: )
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12094 ac_header_preproc=yes
12095 ;;
12096 no:yes:* )
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12109 ( cat <<\_ASBOX
12110## ----------------------------------- ##
12111## Report this to llvmbugs@cs.uiuc.edu ##
12112## ----------------------------------- ##
12113_ASBOX
12114 ) | sed "s/^/$as_me: WARNING: /" >&2
12115 ;;
12116esac
12117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 eval "$as_ac_Header=\$ac_header_preproc"
12123fi
12124ac_res=`eval echo '${'$as_ac_Header'}'`
12125 { echo "$as_me:$LINENO: result: $ac_res" >&5
12126echo "${ECHO_T}$ac_res" >&6; }
12127
12128fi
12129if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012130 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012132_ACEOF
12133 break
12134fi
12135
12136done
12137
12138
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012139
12140
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012141for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012142do
12143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12144{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12146if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149 cat >conftest.$ac_ext <<_ACEOF
12150/* confdefs.h. */
12151_ACEOF
12152cat confdefs.h >>conftest.$ac_ext
12153cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */
12155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12157#define $ac_func innocuous_$ac_func
12158
12159/* System header to define __stub macros and hopefully few prototypes,
12160 which can conflict with char $ac_func (); below.
12161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12162 <limits.h> exists even on freestanding compilers. */
12163
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
12169
12170#undef $ac_func
12171
12172/* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175#ifdef __cplusplus
12176extern "C"
12177#endif
12178char $ac_func ();
12179/* The GNU C library defines this for functions which it implements
12180 to always fail with ENOSYS. Some functions are actually named
12181 something starting with __ and the normal name is an alias. */
12182#if defined __stub_$ac_func || defined __stub___$ac_func
12183choke me
12184#endif
12185
12186int
12187main ()
12188{
12189return $ac_func ();
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext conftest$ac_exeext
12195if { (ac_try="$ac_link"
12196case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_link") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 eval "$as_ac_var=yes"
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 eval "$as_ac_var=no"
12234fi
12235
12236rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238fi
12239ac_res=`eval echo '${'$as_ac_var'}'`
12240 { echo "$as_me:$LINENO: result: $ac_res" >&5
12241echo "${ECHO_T}$ac_res" >&6; }
12242if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012243 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012245_ACEOF
12246 break
12247fi
12248done
12249
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012250
12251
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012252for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012253do
12254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12257if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259else
12260 cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12268#define $ac_func innocuous_$ac_func
12269
12270/* System header to define __stub macros and hopefully few prototypes,
12271 which can conflict with char $ac_func (); below.
12272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273 <limits.h> exists even on freestanding compilers. */
12274
12275#ifdef __STDC__
12276# include <limits.h>
12277#else
12278# include <assert.h>
12279#endif
12280
12281#undef $ac_func
12282
12283/* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286#ifdef __cplusplus
12287extern "C"
12288#endif
12289char $ac_func ();
12290/* The GNU C library defines this for functions which it implements
12291 to always fail with ENOSYS. Some functions are actually named
12292 something starting with __ and the normal name is an alias. */
12293#if defined __stub_$ac_func || defined __stub___$ac_func
12294choke me
12295#endif
12296
12297int
12298main ()
12299{
12300return $ac_func ();
12301 ;
12302 return 0;
12303}
12304_ACEOF
12305rm -f conftest.$ac_objext conftest$ac_exeext
12306if { (ac_try="$ac_link"
12307case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_try") 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333esac
12334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_try") 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 eval "$as_ac_var=yes"
12340else
12341 echo "$as_me: failed program was:" >&5
12342sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 eval "$as_ac_var=no"
12345fi
12346
12347rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349fi
12350ac_res=`eval echo '${'$as_ac_var'}'`
12351 { echo "$as_me:$LINENO: result: $ac_res" >&5
12352echo "${ECHO_T}$ac_res" >&6; }
12353if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012354 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012356_ACEOF
12357 break
12358fi
12359done
12360
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012361
12362
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012363for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012364do
12365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370else
12371 cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h. */
12377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12379#define $ac_func innocuous_$ac_func
12380
12381/* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char $ac_func (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12385
12386#ifdef __STDC__
12387# include <limits.h>
12388#else
12389# include <assert.h>
12390#endif
12391
12392#undef $ac_func
12393
12394/* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397#ifdef __cplusplus
12398extern "C"
12399#endif
12400char $ac_func ();
12401/* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404#if defined __stub_$ac_func || defined __stub___$ac_func
12405choke me
12406#endif
12407
12408int
12409main ()
12410{
12411return $ac_func ();
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext conftest$ac_exeext
12417if { (ac_try="$ac_link"
12418case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12431 { (case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_try") 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444esac
12445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_try") 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 eval "$as_ac_var=yes"
12451else
12452 echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 eval "$as_ac_var=no"
12456fi
12457
12458rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460fi
12461ac_res=`eval echo '${'$as_ac_var'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463echo "${ECHO_T}$ac_res" >&6; }
12464if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012465 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012467_ACEOF
12468 break
12469fi
12470done
12471
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012472
12473
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012474for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012475do
12476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
12488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12490#define $ac_func innocuous_$ac_func
12491
12492/* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func (); below.
12494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 <limits.h> exists even on freestanding compilers. */
12496
12497#ifdef __STDC__
12498# include <limits.h>
12499#else
12500# include <assert.h>
12501#endif
12502
12503#undef $ac_func
12504
12505/* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508#ifdef __cplusplus
12509extern "C"
12510#endif
12511char $ac_func ();
12512/* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515#if defined __stub_$ac_func || defined __stub___$ac_func
12516choke me
12517#endif
12518
12519int
12520main ()
12521{
12522return $ac_func ();
12523 ;
12524 return 0;
12525}
12526_ACEOF
12527rm -f conftest.$ac_objext conftest$ac_exeext
12528if { (ac_try="$ac_link"
12529case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
12546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 eval "$as_ac_var=yes"
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 eval "$as_ac_var=no"
12567fi
12568
12569rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571fi
12572ac_res=`eval echo '${'$as_ac_var'}'`
12573 { echo "$as_me:$LINENO: result: $ac_res" >&5
12574echo "${ECHO_T}$ac_res" >&6; }
12575if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012576 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012578_ACEOF
12579
12580fi
12581done
12582
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012583
12584
12585
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012586for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012587do
12588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12589{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594 cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12602#define $ac_func innocuous_$ac_func
12603
12604/* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12608
12609#ifdef __STDC__
12610# include <limits.h>
12611#else
12612# include <assert.h>
12613#endif
12614
12615#undef $ac_func
12616
12617/* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12620#ifdef __cplusplus
12621extern "C"
12622#endif
12623char $ac_func ();
12624/* The GNU C library defines this for functions which it implements
12625 to always fail with ENOSYS. Some functions are actually named
12626 something starting with __ and the normal name is an alias. */
12627#if defined __stub_$ac_func || defined __stub___$ac_func
12628choke me
12629#endif
12630
12631int
12632main ()
12633{
12634return $ac_func ();
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639rm -f conftest.$ac_objext conftest$ac_exeext
12640if { (ac_try="$ac_link"
12641case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644esac
12645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_link") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12654 { (case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_try") 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest$ac_exeext'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 eval "$as_ac_var=yes"
12674else
12675 echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 eval "$as_ac_var=no"
12679fi
12680
12681rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12683fi
12684ac_res=`eval echo '${'$as_ac_var'}'`
12685 { echo "$as_me:$LINENO: result: $ac_res" >&5
12686echo "${ECHO_T}$ac_res" >&6; }
12687if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012688 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012690_ACEOF
12691
12692fi
12693done
12694
12695
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000012696
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012697if test "$WITH_LLVMGCCDIR" = "default" ; then
12698 LLVMGCC="llvm-gcc${EXEEXT}"
12699 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012700 LLVMGCCCOMMAND="$LLVMGCC"
12701 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012702 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12703
12704 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12705
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012706 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12707set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12710if test "${ac_cv_path_LLVMGCC+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012712else
12713 case $LLVMGCC in
12714 [\\/]* | ?:[\\/]*)
12715 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12716 ;;
12717 *)
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719for as_dir in $PATH
12720do
12721 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012725 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012727 break 2
12728 fi
12729done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012730done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012731IFS=$as_save_IFS
12732
12733 ;;
12734esac
12735fi
12736LLVMGCC=$ac_cv_path_LLVMGCC
12737if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012738 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12739echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012740else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012741 { echo "$as_me:$LINENO: result: no" >&5
12742echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012743fi
12744
12745
12746 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12747set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12750if test "${ac_cv_path_LLVMGXX+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012752else
12753 case $LLVMGXX in
12754 [\\/]* | ?:[\\/]*)
12755 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12756 ;;
12757 *)
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012765 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012767 break 2
12768 fi
12769done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012770done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012771IFS=$as_save_IFS
12772
12773 ;;
12774esac
12775fi
12776LLVMGXX=$ac_cv_path_LLVMGXX
12777if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012778 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12779echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012780else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012781 { echo "$as_me:$LINENO: result: no" >&5
12782echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012783fi
12784
12785
12786else
Devang Pateld84ba7b2007-12-04 22:54:47 +000012787 if test -z "$LLVMGCC"; then
12788 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012789 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012790 fi
12791 if test -z "$LLVMGXX"; then
12792 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012793 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012794 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012795
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012796 LLVMGCC=$LLVMGCC
12797
12798 LLVMGXX=$LLVMGXX
12799
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012800 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12801
12802 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12803
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012804fi
12805
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012806
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012807{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12808echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012809
12810ICC=no
12811IXX=no
12812case $CC in
12813 icc*|icpc*)
12814 ICC=yes
12815 IXX=yes
12816 ;;
12817 *)
12818 ;;
12819esac
12820
12821if test "$GCC" != "yes" && test "$ICC" != "yes"
12822then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012823 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12824echo "$as_me: error: gcc|icc required but not found" >&2;}
12825 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012826fi
12827
12828if test "$GXX" != "yes" && test "$IXX" != "yes"
12829then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012830 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12831echo "$as_me: error: g++|icc required but not found" >&2;}
12832 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012833fi
12834
12835if test "$GCC" = "yes"
12836then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012837 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012838#if !defined(__GNUC__) || __GNUC__ < 3
12839#error Unsupported GCC version
12840#endif
12841
12842_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012843rm -f conftest.$ac_objext
12844if { (ac_try="$ac_compile"
12845case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_compile") 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012878else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12883echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12884 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012885fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012886
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012888fi
12889
12890if test -z "$llvm_cv_gnu_make_command"
12891then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012892 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12893echo "$as_me: error: GNU Make required but not found" >&2;}
12894 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012895fi
12896
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012897{ echo "$as_me:$LINENO: result: ok" >&5
12898echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012899
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012900{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12901echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000012902NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12903
12904NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12905
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012906{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12907echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000012908
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000012909
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012910
12911{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12912echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12913if test "${ac_cv_lib_m_sin+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012915else
12916 ac_check_lib_save_LIBS=$LIBS
12917LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012918cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012923/* end confdefs.h. */
12924
12925/* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12928#ifdef __cplusplus
12929extern "C"
12930#endif
12931char sin ();
12932int
12933main ()
12934{
12935return sin ();
12936 ;
12937 return 0;
12938}
12939_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012940rm -f conftest.$ac_objext conftest$ac_exeext
12941if { (ac_try="$ac_link"
12942case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945esac
12946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_link") 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_try") 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012974 ac_cv_lib_m_sin=yes
12975else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012976 echo "$as_me: failed program was:" >&5
12977sed 's/^/| /' conftest.$ac_ext >&5
12978
12979 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012980fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012981
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012982rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012983 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012984LIBS=$ac_check_lib_save_LIBS
12985fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012986{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12987echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12988if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012989 cat >>confdefs.h <<_ACEOF
12990#define HAVE_LIBM 1
12991_ACEOF
12992
12993 LIBS="-lm $LIBS"
12994
12995fi
12996
12997if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012998
12999{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13000echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13001if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013003else
13004 ac_check_lib_save_LIBS=$LIBS
13005LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013006cat >conftest.$ac_ext <<_ACEOF
13007/* confdefs.h. */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013011/* end confdefs.h. */
13012
13013
13014int
13015main ()
13016{
13017return main ();
13018 ;
13019 return 0;
13020}
13021_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013022rm -f conftest.$ac_objext conftest$ac_exeext
13023if { (ac_try="$ac_link"
13024case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027esac
13028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_link") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013056 ac_cv_lib_imagehlp_main=yes
13057else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013058 echo "$as_me: failed program was:" >&5
13059sed 's/^/| /' conftest.$ac_ext >&5
13060
13061 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013062fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013063
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013064rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013065 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013066LIBS=$ac_check_lib_save_LIBS
13067fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013068{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13069echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13070if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013071 cat >>confdefs.h <<_ACEOF
13072#define HAVE_LIBIMAGEHLP 1
13073_ACEOF
13074
13075 LIBS="-limagehlp $LIBS"
13076
13077fi
13078
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013079
13080{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13081echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13082if test "${ac_cv_lib_psapi_main+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013084else
13085 ac_check_lib_save_LIBS=$LIBS
13086LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013087cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013092/* end confdefs.h. */
13093
13094
13095int
13096main ()
13097{
13098return main ();
13099 ;
13100 return 0;
13101}
13102_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013103rm -f conftest.$ac_objext conftest$ac_exeext
13104if { (ac_try="$ac_link"
13105case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013137 ac_cv_lib_psapi_main=yes
13138else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013143fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013144
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013145rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013146 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013147LIBS=$ac_check_lib_save_LIBS
13148fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013149{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13150echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13151if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013152 cat >>confdefs.h <<_ACEOF
13153#define HAVE_LIBPSAPI 1
13154_ACEOF
13155
13156 LIBS="-lpsapi $LIBS"
13157
13158fi
13159
13160fi
13161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013162{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13163echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13164if test "${ac_cv_search_dlopen+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013166else
13167 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013168cat >conftest.$ac_ext <<_ACEOF
13169/* confdefs.h. */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013173/* end confdefs.h. */
13174
13175/* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13178#ifdef __cplusplus
13179extern "C"
13180#endif
13181char dlopen ();
13182int
13183main ()
13184{
13185return dlopen ();
13186 ;
13187 return 0;
13188}
13189_ACEOF
13190for ac_lib in '' dl; do
13191 if test -z "$ac_lib"; then
13192 ac_res="none required"
13193 else
13194 ac_res=-l$ac_lib
13195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13196 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013197 rm -f conftest.$ac_objext conftest$ac_exeext
13198if { (ac_try="$ac_link"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest$ac_exeext'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013231 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013237fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013238
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013240 conftest$ac_exeext
13241 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013242 break
13243fi
13244done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013245if test "${ac_cv_search_dlopen+set}" = set; then
13246 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013247else
13248 ac_cv_search_dlopen=no
13249fi
13250rm conftest.$ac_ext
13251LIBS=$ac_func_search_save_LIBS
13252fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013253{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13254echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013255ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013256if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013259cat >>confdefs.h <<\_ACEOF
13260#define HAVE_DLOPEN 1
13261_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013262
13263else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013264 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13265echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013266fi
13267
13268
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013269if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013270 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13271echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13272if test "${ac_cv_search_ffi_call+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013274else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013275 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013281/* end confdefs.h. */
13282
13283/* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13286#ifdef __cplusplus
13287extern "C"
13288#endif
13289char ffi_call ();
13290int
13291main ()
13292{
13293return ffi_call ();
13294 ;
13295 return 0;
13296}
13297_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013298for ac_lib in '' ffi; do
13299 if test -z "$ac_lib"; then
13300 ac_res="none required"
13301 else
13302 ac_res=-l$ac_lib
13303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13304 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013305 rm -f conftest.$ac_objext conftest$ac_exeext
13306if { (ac_try="$ac_link"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013339 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013340else
13341 echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
13344
Nick Lewycky0235b622009-02-04 06:27:44 +000013345fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013346
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013347rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013348 conftest$ac_exeext
13349 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013350 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013351fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013352done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013353if test "${ac_cv_search_ffi_call+set}" = set; then
13354 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013355else
13356 ac_cv_search_ffi_call=no
13357fi
13358rm conftest.$ac_ext
13359LIBS=$ac_func_search_save_LIBS
13360fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013361{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13362echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013363ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013364if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13366
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013367cat >>confdefs.h <<\_ACEOF
13368#define HAVE_FFI_CALL 1
13369_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013370
Nick Lewycky0235b622009-02-04 06:27:44 +000013371else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013372 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13373echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13374 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013375fi
13376
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013377fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013378
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013379{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13380echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13381if test "${ac_cv_search_mallinfo+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013383else
13384 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013385cat >conftest.$ac_ext <<_ACEOF
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013390/* end confdefs.h. */
13391
13392/* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13395#ifdef __cplusplus
13396extern "C"
13397#endif
13398char mallinfo ();
13399int
13400main ()
13401{
13402return mallinfo ();
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407for ac_lib in '' malloc; do
13408 if test -z "$ac_lib"; then
13409 ac_res="none required"
13410 else
13411 ac_res=-l$ac_lib
13412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13413 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013414 rm -f conftest.$ac_objext conftest$ac_exeext
13415if { (ac_try="$ac_link"
13416case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_try") 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013448 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013449else
13450 echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013454fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013455
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013456rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013457 conftest$ac_exeext
13458 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013459 break
13460fi
13461done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013462if test "${ac_cv_search_mallinfo+set}" = set; then
13463 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013464else
13465 ac_cv_search_mallinfo=no
13466fi
13467rm conftest.$ac_ext
13468LIBS=$ac_func_search_save_LIBS
13469fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013470{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13471echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013472ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013473if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013476cat >>confdefs.h <<\_ACEOF
13477#define HAVE_MALLINFO 1
13478_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013479
13480fi
13481
13482
13483if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013484
13485{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13486echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13487if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013489else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013490 ac_check_lib_save_LIBS=$LIBS
13491LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013492cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013497/* end confdefs.h. */
13498
13499/* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502#ifdef __cplusplus
13503extern "C"
13504#endif
13505char pthread_mutex_init ();
13506int
13507main ()
13508{
13509return pthread_mutex_init ();
13510 ;
13511 return 0;
13512}
13513_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013514rm -f conftest.$ac_objext conftest$ac_exeext
13515if { (ac_try="$ac_link"
13516case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013548 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013549else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013550 echo "$as_me: failed program was:" >&5
13551sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013554fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013555
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013556rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013557 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013558LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013559fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013560{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13561echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13562if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013563 cat >>confdefs.h <<_ACEOF
13564#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013565_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013566
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013567 LIBS="-lpthread $LIBS"
13568
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013569fi
13570
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013571 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13572echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13573if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013575else
13576 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013577cat >conftest.$ac_ext <<_ACEOF
13578/* confdefs.h. */
13579_ACEOF
13580cat confdefs.h >>conftest.$ac_ext
13581cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013582/* end confdefs.h. */
13583
13584/* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587#ifdef __cplusplus
13588extern "C"
13589#endif
13590char pthread_mutex_lock ();
13591int
13592main ()
13593{
13594return pthread_mutex_lock ();
13595 ;
13596 return 0;
13597}
13598_ACEOF
13599for ac_lib in '' pthread; do
13600 if test -z "$ac_lib"; then
13601 ac_res="none required"
13602 else
13603 ac_res=-l$ac_lib
13604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13605 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013606 rm -f conftest.$ac_objext conftest$ac_exeext
13607if { (ac_try="$ac_link"
13608case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611esac
13612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624esac
13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_try") 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634esac
13635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013640 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013646fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013647
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013648rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013649 conftest$ac_exeext
13650 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013651 break
13652fi
13653done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013654if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13655 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013656else
13657 ac_cv_search_pthread_mutex_lock=no
13658fi
13659rm conftest.$ac_ext
13660LIBS=$ac_func_search_save_LIBS
13661fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013662{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13663echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013664ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013665if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13667
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013668cat >>confdefs.h <<\_ACEOF
13669#define HAVE_PTHREAD_MUTEX_LOCK 1
13670_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013671
13672fi
13673
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013674 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13675echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13676if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000013678else
13679 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013680cat >conftest.$ac_ext <<_ACEOF
13681/* confdefs.h. */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013685/* end confdefs.h. */
13686
13687/* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13690#ifdef __cplusplus
13691extern "C"
13692#endif
13693char pthread_rwlock_init ();
13694int
13695main ()
13696{
13697return pthread_rwlock_init ();
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702for ac_lib in '' pthread; do
13703 if test -z "$ac_lib"; then
13704 ac_res="none required"
13705 else
13706 ac_res=-l$ac_lib
13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13708 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013709 rm -f conftest.$ac_objext conftest$ac_exeext
13710if { (ac_try="$ac_link"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_link") 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
Owen Anderson23c36602009-06-16 18:20:20 +000013743 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748
Owen Anderson23c36602009-06-16 18:20:20 +000013749fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013750
Owen Anderson23c36602009-06-16 18:20:20 +000013751rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013752 conftest$ac_exeext
13753 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000013754 break
13755fi
13756done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013757if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13758 :
Owen Anderson23c36602009-06-16 18:20:20 +000013759else
13760 ac_cv_search_pthread_rwlock_init=no
13761fi
13762rm conftest.$ac_ext
13763LIBS=$ac_func_search_save_LIBS
13764fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013765{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13766echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000013767ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013768if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000013769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13770
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013771cat >>confdefs.h <<\_ACEOF
13772#define HAVE_PTHREAD_RWLOCK_INIT 1
13773_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013774
13775fi
13776
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013777 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13778echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13779if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000013781else
13782 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013783cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013788/* end confdefs.h. */
13789
13790/* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13793#ifdef __cplusplus
13794extern "C"
13795#endif
13796char pthread_getspecific ();
13797int
13798main ()
13799{
13800return pthread_getspecific ();
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805for ac_lib in '' pthread; do
13806 if test -z "$ac_lib"; then
13807 ac_res="none required"
13808 else
13809 ac_res=-l$ac_lib
13810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13811 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013812 rm -f conftest.$ac_objext conftest$ac_exeext
13813if { (ac_try="$ac_link"
13814case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_link") 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013846 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013847else
13848 echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
13850
13851
Owen Andersoncc135af2009-06-25 23:10:26 +000013852fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013853
Owen Andersoncc135af2009-06-25 23:10:26 +000013854rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013855 conftest$ac_exeext
13856 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013857 break
13858fi
13859done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013860if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13861 :
Owen Andersoncc135af2009-06-25 23:10:26 +000013862else
13863 ac_cv_search_pthread_getspecific=no
13864fi
13865rm conftest.$ac_ext
13866LIBS=$ac_func_search_save_LIBS
13867fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013868{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13869echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000013870ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013871if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13873
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013874cat >>confdefs.h <<\_ACEOF
13875#define HAVE_PTHREAD_GETSPECIFIC 1
13876_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013877
13878fi
13879
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013880fi
13881
13882
13883# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013884if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013885 withval=$with_udis86;
13886 USE_UDIS86=1
13887
13888 case "$withval" in
13889 /usr/lib|yes) ;;
13890 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13891 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013892
13893{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13894echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13895if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013897else
13898 ac_check_lib_save_LIBS=$LIBS
13899LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013905/* end confdefs.h. */
13906
13907/* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910#ifdef __cplusplus
13911extern "C"
13912#endif
13913char ud_init ();
13914int
13915main ()
13916{
13917return ud_init ();
13918 ;
13919 return 0;
13920}
13921_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013922rm -f conftest.$ac_objext conftest$ac_exeext
13923if { (ac_try="$ac_link"
13924case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927esac
13928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940esac
13941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013956 ac_cv_lib_udis86_ud_init=yes
13957else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013958 echo "$as_me: failed program was:" >&5
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013962fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013963
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013964rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013965 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013966LIBS=$ac_check_lib_save_LIBS
13967fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013968{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13969echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13970if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013971 cat >>confdefs.h <<_ACEOF
13972#define HAVE_LIBUDIS86 1
13973_ACEOF
13974
13975 LIBS="-ludis86 $LIBS"
13976
13977else
13978
13979 echo "Error! You need to have libudis86 around."
13980 exit -1
13981
13982fi
13983
13984
13985else
13986 USE_UDIS86=0
13987
13988fi
13989
13990
13991cat >>confdefs.h <<_ACEOF
13992#define USE_UDIS86 $USE_UDIS86
13993_ACEOF
13994
13995
13996
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000013997# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013998if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000013999 withval=$with_oprofile;
14000 USE_OPROFILE=1
14001
14002 case "$withval" in
14003 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014004 no) llvm_cv_oppath=
14005 USE_OPROFILE=0
14006 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014007 *) llvm_cv_oppath="${withval}/lib/oprofile"
14008 CPPFLAGS="-I${withval}/include";;
14009 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014010 if test -n "$llvm_cv_oppath" ; then
14011 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014012 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14013echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14014if test "${ac_cv_search_bfd_init+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014016else
14017 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014018cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h. */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014023/* end confdefs.h. */
14024
14025/* Override any GCC internal prototype to avoid an error.
14026 Use char because int might match the return type of a GCC
14027 builtin and then its argument prototype would still apply. */
14028#ifdef __cplusplus
14029extern "C"
14030#endif
14031char bfd_init ();
14032int
14033main ()
14034{
14035return bfd_init ();
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040for ac_lib in '' bfd; do
14041 if test -z "$ac_lib"; then
14042 ac_res="none required"
14043 else
14044 ac_res=-l$ac_lib
14045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14046 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014047 rm -f conftest.$ac_objext conftest$ac_exeext
14048if { (ac_try="$ac_link"
14049case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052esac
14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_link") 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065esac
14066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075esac
14076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_try") 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014081 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014082else
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014087fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014088
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014089rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014090 conftest$ac_exeext
14091 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014092 break
14093fi
14094done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014095if test "${ac_cv_search_bfd_init+set}" = set; then
14096 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014097else
14098 ac_cv_search_bfd_init=no
14099fi
14100rm conftest.$ac_ext
14101LIBS=$ac_func_search_save_LIBS
14102fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014103{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14104echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014105ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014106if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14108
14109fi
14110
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014111 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14112echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14113if test "${ac_cv_search_op_open_agent+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014115else
14116 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014117cat >conftest.$ac_ext <<_ACEOF
14118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014122/* end confdefs.h. */
14123
14124/* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14127#ifdef __cplusplus
14128extern "C"
14129#endif
14130char op_open_agent ();
14131int
14132main ()
14133{
14134return op_open_agent ();
14135 ;
14136 return 0;
14137}
14138_ACEOF
14139for ac_lib in '' opagent; do
14140 if test -z "$ac_lib"; then
14141 ac_res="none required"
14142 else
14143 ac_res=-l$ac_lib
14144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14145 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014146 rm -f conftest.$ac_objext conftest$ac_exeext
14147if { (ac_try="$ac_link"
14148case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151esac
14152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_link") 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014180 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014186fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014187
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014188rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014189 conftest$ac_exeext
14190 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014191 break
14192fi
14193done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014194if test "${ac_cv_search_op_open_agent+set}" = set; then
14195 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014196else
14197 ac_cv_search_op_open_agent=no
14198fi
14199rm conftest.$ac_ext
14200LIBS=$ac_func_search_save_LIBS
14201fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014202{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14203echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014204ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014205if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14207
14208else
14209
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014210 echo "Error! You need to have libopagent around."
14211 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014212
14213fi
14214
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014215 if test "${ac_cv_header_opagent_h+set}" = set; then
14216 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14217echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14218if test "${ac_cv_header_opagent_h+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220fi
14221{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14222echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14223else
14224 # Is the header compilable?
14225{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14226echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14227cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
14233$ac_includes_default
14234#include <opagent.h>
14235_ACEOF
14236rm -f conftest.$ac_objext
14237if { (ac_try="$ac_compile"
14238case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241esac
14242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_compile") 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14251 { (case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254esac
14255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_try") 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_header_compiler=yes
14271else
14272 echo "$as_me: failed program was:" >&5
14273sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014274
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014275 ac_header_compiler=no
14276fi
14277
14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14280echo "${ECHO_T}$ac_header_compiler" >&6; }
14281
14282# Is the header present?
14283{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14284echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14285cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
14290/* end confdefs.h. */
14291#include <opagent.h>
14292_ACEOF
14293if { (ac_try="$ac_cpp conftest.$ac_ext"
14294case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } >/dev/null; then
14306 if test -s conftest.err; then
14307 ac_cpp_err=$ac_c_preproc_warn_flag
14308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14309 else
14310 ac_cpp_err=
14311 fi
14312else
14313 ac_cpp_err=yes
14314fi
14315if test -z "$ac_cpp_err"; then
14316 ac_header_preproc=yes
14317else
14318 echo "$as_me: failed program was:" >&5
14319sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 ac_header_preproc=no
14322fi
14323
14324rm -f conftest.err conftest.$ac_ext
14325{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326echo "${ECHO_T}$ac_header_preproc" >&6; }
14327
14328# So? What about this header?
14329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14330 yes:no: )
14331 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14332echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14334echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14335 ac_header_preproc=yes
14336 ;;
14337 no:yes:* )
14338 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14339echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14341echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14343echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14345echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14347echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14349echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14350 ( cat <<\_ASBOX
14351## ----------------------------------- ##
14352## Report this to llvmbugs@cs.uiuc.edu ##
14353## ----------------------------------- ##
14354_ASBOX
14355 ) | sed "s/^/$as_me: WARNING: /" >&2
14356 ;;
14357esac
14358{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14359echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14360if test "${ac_cv_header_opagent_h+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362else
14363 ac_cv_header_opagent_h=$ac_header_preproc
14364fi
14365{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14366echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14367
14368fi
14369if test $ac_cv_header_opagent_h = yes; then
14370 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014371else
14372
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014373 echo "Error! You need to have opagent.h around."
14374 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014375
14376fi
14377
14378
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014379 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014380
14381else
14382
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014383 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014384
14385
14386fi
14387
14388
14389cat >>confdefs.h <<_ACEOF
14390#define USE_OPROFILE $USE_OPROFILE
14391_ACEOF
14392
14393
14394
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014395
14396
14397
14398
14399
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014400ac_header_dirent=no
14401for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014402 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14403{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14404echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014407else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014408 cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014413/* end confdefs.h. */
14414#include <sys/types.h>
14415#include <$ac_hdr>
14416
14417int
14418main ()
14419{
14420if ((DIR *) 0)
14421return 0;
14422 ;
14423 return 0;
14424}
14425_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014426rm -f conftest.$ac_objext
14427if { (ac_try="$ac_compile"
14428case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431esac
14432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14434 ac_status=$?
14435 grep -v '^ *+' conftest.er1 >conftest.err
14436 rm -f conftest.er1
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014460 eval "$as_ac_Header=yes"
14461else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014466fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014467
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014470ac_res=`eval echo '${'$as_ac_Header'}'`
14471 { echo "$as_me:$LINENO: result: $ac_res" >&5
14472echo "${ECHO_T}$ac_res" >&6; }
14473if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014474 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014475#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014476_ACEOF
14477
14478ac_header_dirent=$ac_hdr; break
14479fi
14480
14481done
14482# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14483if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14485echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14486if test "${ac_cv_search_opendir+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014488else
14489 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014495/* end confdefs.h. */
14496
14497/* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14500#ifdef __cplusplus
14501extern "C"
14502#endif
14503char opendir ();
14504int
14505main ()
14506{
14507return opendir ();
14508 ;
14509 return 0;
14510}
14511_ACEOF
14512for ac_lib in '' dir; do
14513 if test -z "$ac_lib"; then
14514 ac_res="none required"
14515 else
14516 ac_res=-l$ac_lib
14517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14518 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014519 rm -f conftest.$ac_objext conftest$ac_exeext
14520if { (ac_try="$ac_link"
14521case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_link") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014553 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014559fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014560
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014561rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014562 conftest$ac_exeext
14563 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014564 break
14565fi
14566done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014567if test "${ac_cv_search_opendir+set}" = set; then
14568 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014569else
14570 ac_cv_search_opendir=no
14571fi
14572rm conftest.$ac_ext
14573LIBS=$ac_func_search_save_LIBS
14574fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014575{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14576echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014577ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014578if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14580
14581fi
14582
14583else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14585echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14586if test "${ac_cv_search_opendir+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014588else
14589 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014590cat >conftest.$ac_ext <<_ACEOF
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014595/* end confdefs.h. */
14596
14597/* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14600#ifdef __cplusplus
14601extern "C"
14602#endif
14603char opendir ();
14604int
14605main ()
14606{
14607return opendir ();
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612for ac_lib in '' x; do
14613 if test -z "$ac_lib"; then
14614 ac_res="none required"
14615 else
14616 ac_res=-l$ac_lib
14617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14618 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014619 rm -f conftest.$ac_objext conftest$ac_exeext
14620if { (ac_try="$ac_link"
14621case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_link") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014653 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014654else
14655 echo "$as_me: failed program was:" >&5
14656sed 's/^/| /' conftest.$ac_ext >&5
14657
14658
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014659fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014660
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014661rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014662 conftest$ac_exeext
14663 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014664 break
14665fi
14666done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014667if test "${ac_cv_search_opendir+set}" = set; then
14668 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014669else
14670 ac_cv_search_opendir=no
14671fi
14672rm conftest.$ac_ext
14673LIBS=$ac_func_search_save_LIBS
14674fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014675{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14676echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014677ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014678if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14680
14681fi
14682
14683fi
14684
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014685{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14686echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14687if test "${ac_cv_header_mmap_anon+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014689else
14690 ac_ext=c
14691ac_cpp='$CPP $CPPFLAGS'
14692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14694ac_compiler_gnu=$ac_cv_c_compiler_gnu
14695
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014701/* end confdefs.h. */
14702#include <sys/mman.h>
14703#include <unistd.h>
14704#include <fcntl.h>
14705int
14706main ()
14707{
14708mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14709 ;
14710 return 0;
14711}
14712_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014713rm -f conftest.$ac_objext
14714if { (ac_try="$ac_compile"
14715case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718esac
14719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014747 ac_cv_header_mmap_anon=yes
14748else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014749 echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014753fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014754
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 ac_ext=c
14757ac_cpp='$CPP $CPPFLAGS'
14758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760ac_compiler_gnu=$ac_cv_c_compiler_gnu
14761
14762
14763fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014764{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14765echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014766if test "$ac_cv_header_mmap_anon" = yes; then
14767
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014768cat >>confdefs.h <<\_ACEOF
14769#define HAVE_MMAP_ANONYMOUS 1
14770_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014771
14772fi
14773
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014774{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14775echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14776if test "${ac_cv_header_stat_broken+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014778else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014779 cat >conftest.$ac_ext <<_ACEOF
14780/* confdefs.h. */
14781_ACEOF
14782cat confdefs.h >>conftest.$ac_ext
14783cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014784/* end confdefs.h. */
14785#include <sys/types.h>
14786#include <sys/stat.h>
14787
14788#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014789# if S_ISBLK (S_IFDIR)
14790You lose.
14791# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014792#endif
14793
14794#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014795# if S_ISBLK (S_IFCHR)
14796You lose.
14797# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014798#endif
14799
14800#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014801# if S_ISLNK (S_IFREG)
14802You lose.
14803# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014804#endif
14805
14806#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014807# if S_ISSOCK (S_IFREG)
14808You lose.
14809# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014810#endif
14811
14812_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14814 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000014815 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014816else
14817 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014818fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014819rm -f conftest*
14820
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014821fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014822{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14823echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014824if test $ac_cv_header_stat_broken = yes; then
14825
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014826cat >>confdefs.h <<\_ACEOF
14827#define STAT_MACROS_BROKEN 1
14828_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014829
14830fi
14831
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014832{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14834if test "${ac_cv_header_stdc+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014836else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014842/* end confdefs.h. */
14843#include <stdlib.h>
14844#include <stdarg.h>
14845#include <string.h>
14846#include <float.h>
14847
14848int
14849main ()
14850{
14851
14852 ;
14853 return 0;
14854}
14855_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014856rm -f conftest.$ac_objext
14857if { (ac_try="$ac_compile"
14858case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861esac
14862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_compile") 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874esac
14875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884esac
14885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_try") 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014890 ac_cv_header_stdc=yes
14891else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014892 echo "$as_me: failed program was:" >&5
14893sed 's/^/| /' conftest.$ac_ext >&5
14894
14895 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014896fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014897
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899
14900if test $ac_cv_header_stdc = yes; then
14901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014902 cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014907/* end confdefs.h. */
14908#include <string.h>
14909
14910_ACEOF
14911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014912 $EGREP "memchr" >/dev/null 2>&1; then
14913 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014914else
14915 ac_cv_header_stdc=no
14916fi
14917rm -f conftest*
14918
14919fi
14920
14921if test $ac_cv_header_stdc = yes; then
14922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014923 cat >conftest.$ac_ext <<_ACEOF
14924/* confdefs.h. */
14925_ACEOF
14926cat confdefs.h >>conftest.$ac_ext
14927cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014928/* end confdefs.h. */
14929#include <stdlib.h>
14930
14931_ACEOF
14932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014933 $EGREP "free" >/dev/null 2>&1; then
14934 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014935else
14936 ac_cv_header_stdc=no
14937fi
14938rm -f conftest*
14939
14940fi
14941
14942if test $ac_cv_header_stdc = yes; then
14943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014944 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014945 :
14946else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014947 cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014952/* end confdefs.h. */
14953#include <ctype.h>
14954#include <stdlib.h>
14955#if ((' ' & 0x0FF) == 0x020)
14956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14958#else
14959# define ISLOWER(c) \
14960 (('a' <= (c) && (c) <= 'i') \
14961 || ('j' <= (c) && (c) <= 'r') \
14962 || ('s' <= (c) && (c) <= 'z'))
14963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14964#endif
14965
14966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14967int
14968main ()
14969{
14970 int i;
14971 for (i = 0; i < 256; i++)
14972 if (XOR (islower (i), ISLOWER (i))
14973 || toupper (i) != TOUPPER (i))
14974 return 2;
14975 return 0;
14976}
14977_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014978rm -f conftest$ac_exeext
14979if { (ac_try="$ac_link"
14980case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983esac
14984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992esac
14993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014999else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015000 echo "$as_me: program exited with status $ac_status" >&5
15001echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004( exit $ac_status )
15005ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015006fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015008fi
15009
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015010
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015011fi
15012fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015013{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15014echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015015if test $ac_cv_header_stdc = yes; then
15016
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015017cat >>confdefs.h <<\_ACEOF
15018#define STDC_HEADERS 1
15019_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015020
15021fi
15022
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015023{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15024echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15025if test "${ac_cv_header_sys_wait_h+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015027else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015028 cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015033/* end confdefs.h. */
15034#include <sys/types.h>
15035#include <sys/wait.h>
15036#ifndef WEXITSTATUS
15037# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15038#endif
15039#ifndef WIFEXITED
15040# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15041#endif
15042
15043int
15044main ()
15045{
15046 int s;
15047 wait (&s);
15048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15049 ;
15050 return 0;
15051}
15052_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015053rm -f conftest.$ac_objext
15054if { (ac_try="$ac_compile"
15055case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_compile") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015087 ac_cv_header_sys_wait_h=yes
15088else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015089 echo "$as_me: failed program was:" >&5
15090sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015093fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015094
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015097{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15098echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015099if test $ac_cv_header_sys_wait_h = yes; then
15100
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015101cat >>confdefs.h <<\_ACEOF
15102#define HAVE_SYS_WAIT_H 1
15103_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015104
15105fi
15106
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015107{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15108echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15109if test "${ac_cv_header_time+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015111else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015112 cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015117/* end confdefs.h. */
15118#include <sys/types.h>
15119#include <sys/time.h>
15120#include <time.h>
15121
15122int
15123main ()
15124{
15125if ((struct tm *) 0)
15126return 0;
15127 ;
15128 return 0;
15129}
15130_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015131rm -f conftest.$ac_objext
15132if { (ac_try="$ac_compile"
15133case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015165 ac_cv_header_time=yes
15166else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015167 echo "$as_me: failed program was:" >&5
15168sed 's/^/| /' conftest.$ac_ext >&5
15169
15170 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015171fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015172
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015175{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15176echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015177if test $ac_cv_header_time = yes; then
15178
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015179cat >>confdefs.h <<\_ACEOF
15180#define TIME_WITH_SYS_TIME 1
15181_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015182
15183fi
15184
15185
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015186
15187
15188
15189
15190
15191
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015192for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015193do
15194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200fi
15201ac_res=`eval echo '${'$as_ac_Header'}'`
15202 { echo "$as_me:$LINENO: result: $ac_res" >&5
15203echo "${ECHO_T}$ac_res" >&6; }
15204else
15205 # Is the header compilable?
15206{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15208cat >conftest.$ac_ext <<_ACEOF
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214$ac_includes_default
15215#include <$ac_header>
15216_ACEOF
15217rm -f conftest.$ac_objext
15218if { (ac_try="$ac_compile"
15219case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_header_compiler=yes
15252else
15253 echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 ac_header_compiler=no
15257fi
15258
15259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15261echo "${ECHO_T}$ac_header_compiler" >&6; }
15262
15263# Is the header present?
15264{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15266cat >conftest.$ac_ext <<_ACEOF
15267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
15272#include <$ac_header>
15273_ACEOF
15274if { (ac_try="$ac_cpp conftest.$ac_ext"
15275case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } >/dev/null; then
15287 if test -s conftest.err; then
15288 ac_cpp_err=$ac_c_preproc_warn_flag
15289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15290 else
15291 ac_cpp_err=
15292 fi
15293else
15294 ac_cpp_err=yes
15295fi
15296if test -z "$ac_cpp_err"; then
15297 ac_header_preproc=yes
15298else
15299 echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 ac_header_preproc=no
15303fi
15304
15305rm -f conftest.err conftest.$ac_ext
15306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15307echo "${ECHO_T}$ac_header_preproc" >&6; }
15308
15309# So? What about this header?
15310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15311 yes:no: )
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15316 ac_header_preproc=yes
15317 ;;
15318 no:yes:* )
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15331 ( cat <<\_ASBOX
15332## ----------------------------------- ##
15333## Report this to llvmbugs@cs.uiuc.edu ##
15334## ----------------------------------- ##
15335_ASBOX
15336 ) | sed "s/^/$as_me: WARNING: /" >&2
15337 ;;
15338esac
15339{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344 eval "$as_ac_Header=\$ac_header_preproc"
15345fi
15346ac_res=`eval echo '${'$as_ac_Header'}'`
15347 { echo "$as_me:$LINENO: result: $ac_res" >&5
15348echo "${ECHO_T}$ac_res" >&6; }
15349
15350fi
15351if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015352 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015354_ACEOF
15355
15356fi
15357
15358done
15359
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015360
15361
15362
15363
15364
15365
Douglas Gregor6230bee2009-05-18 17:21:34 +000015366for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015367do
15368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374fi
15375ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377echo "${ECHO_T}$ac_res" >&6; }
15378else
15379 # Is the header compilable?
15380{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15382cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388$ac_includes_default
15389#include <$ac_header>
15390_ACEOF
15391rm -f conftest.$ac_objext
15392if { (ac_try="$ac_compile"
15393case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler=yes
15426else
15427 echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_header_compiler=no
15431fi
15432
15433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435echo "${ECHO_T}$ac_header_compiler" >&6; }
15436
15437# Is the header present?
15438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15440cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446#include <$ac_header>
15447_ACEOF
15448if { (ac_try="$ac_cpp conftest.$ac_ext"
15449case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464 else
15465 ac_cpp_err=
15466 fi
15467else
15468 ac_cpp_err=yes
15469fi
15470if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 ac_header_preproc=no
15477fi
15478
15479rm -f conftest.err conftest.$ac_ext
15480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481echo "${ECHO_T}$ac_header_preproc" >&6; }
15482
15483# So? What about this header?
15484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485 yes:no: )
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490 ac_header_preproc=yes
15491 ;;
15492 no:yes:* )
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15505 ( cat <<\_ASBOX
15506## ----------------------------------- ##
15507## Report this to llvmbugs@cs.uiuc.edu ##
15508## ----------------------------------- ##
15509_ASBOX
15510 ) | sed "s/^/$as_me: WARNING: /" >&2
15511 ;;
15512esac
15513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517else
15518 eval "$as_ac_Header=\$ac_header_preproc"
15519fi
15520ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522echo "${ECHO_T}$ac_res" >&6; }
15523
15524fi
15525if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015528_ACEOF
15529
15530fi
15531
15532done
15533
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015534
15535
Douglas Gregor6230bee2009-05-18 17:21:34 +000015536for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015537do
15538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544fi
15545ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547echo "${ECHO_T}$ac_res" >&6; }
15548else
15549 # Is the header compilable?
15550{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558$ac_includes_default
15559#include <$ac_header>
15560_ACEOF
15561rm -f conftest.$ac_objext
15562if { (ac_try="$ac_compile"
15563case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15596else
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_header_compiler=no
15601fi
15602
15603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605echo "${ECHO_T}$ac_header_compiler" >&6; }
15606
15607# Is the header present?
15608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616#include <$ac_header>
15617_ACEOF
15618if { (ac_try="$ac_cpp conftest.$ac_ext"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637else
15638 ac_cpp_err=yes
15639fi
15640if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_preproc=no
15647fi
15648
15649rm -f conftest.err conftest.$ac_ext
15650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651echo "${ECHO_T}$ac_header_preproc" >&6; }
15652
15653# So? What about this header?
15654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655 yes:no: )
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15661 ;;
15662 no:yes:* )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 ( cat <<\_ASBOX
15676## ----------------------------------- ##
15677## Report this to llvmbugs@cs.uiuc.edu ##
15678## ----------------------------------- ##
15679_ASBOX
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15681 ;;
15682esac
15683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687else
15688 eval "$as_ac_Header=\$ac_header_preproc"
15689fi
15690ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692echo "${ECHO_T}$ac_res" >&6; }
15693
15694fi
15695if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000015696 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000015698_ACEOF
15699
15700fi
15701
15702done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015703
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015704
15705
15706
15707
Reid Spencer096a8142007-08-17 05:45:26 +000015708for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015709do
15710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716fi
15717ac_res=`eval echo '${'$as_ac_Header'}'`
15718 { echo "$as_me:$LINENO: result: $ac_res" >&5
15719echo "${ECHO_T}$ac_res" >&6; }
15720else
15721 # Is the header compilable?
15722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15724cat >conftest.$ac_ext <<_ACEOF
15725/* confdefs.h. */
15726_ACEOF
15727cat confdefs.h >>conftest.$ac_ext
15728cat >>conftest.$ac_ext <<_ACEOF
15729/* end confdefs.h. */
15730$ac_includes_default
15731#include <$ac_header>
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (ac_try="$ac_compile"
15735case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738esac
15739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_try") 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_header_compiler=yes
15768else
15769 echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 ac_header_compiler=no
15773fi
15774
15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777echo "${ECHO_T}$ac_header_compiler" >&6; }
15778
15779# Is the header present?
15780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15782cat >conftest.$ac_ext <<_ACEOF
15783/* confdefs.h. */
15784_ACEOF
15785cat confdefs.h >>conftest.$ac_ext
15786cat >>conftest.$ac_ext <<_ACEOF
15787/* end confdefs.h. */
15788#include <$ac_header>
15789_ACEOF
15790if { (ac_try="$ac_cpp conftest.$ac_ext"
15791case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev/null; then
15803 if test -s conftest.err; then
15804 ac_cpp_err=$ac_c_preproc_warn_flag
15805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15806 else
15807 ac_cpp_err=
15808 fi
15809else
15810 ac_cpp_err=yes
15811fi
15812if test -z "$ac_cpp_err"; then
15813 ac_header_preproc=yes
15814else
15815 echo "$as_me: failed program was:" >&5
15816sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 ac_header_preproc=no
15819fi
15820
15821rm -f conftest.err conftest.$ac_ext
15822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823echo "${ECHO_T}$ac_header_preproc" >&6; }
15824
15825# So? What about this header?
15826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15827 yes:no: )
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15832 ac_header_preproc=yes
15833 ;;
15834 no:yes:* )
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15847 ( cat <<\_ASBOX
15848## ----------------------------------- ##
15849## Report this to llvmbugs@cs.uiuc.edu ##
15850## ----------------------------------- ##
15851_ASBOX
15852 ) | sed "s/^/$as_me: WARNING: /" >&2
15853 ;;
15854esac
15855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859else
15860 eval "$as_ac_Header=\$ac_header_preproc"
15861fi
15862ac_res=`eval echo '${'$as_ac_Header'}'`
15863 { echo "$as_me:$LINENO: result: $ac_res" >&5
15864echo "${ECHO_T}$ac_res" >&6; }
15865
15866fi
15867if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015868 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015870_ACEOF
15871
15872fi
15873
15874done
15875
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015876
15877
15878
15879
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000015880for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015881do
15882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888fi
15889ac_res=`eval echo '${'$as_ac_Header'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891echo "${ECHO_T}$ac_res" >&6; }
15892else
15893 # Is the header compilable?
15894{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15896cat >conftest.$ac_ext <<_ACEOF
15897/* confdefs.h. */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */
15902$ac_includes_default
15903#include <$ac_header>
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (ac_try="$ac_compile"
15907case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910esac
15911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_compile") 2>conftest.er1
15913 ac_status=$?
15914 grep -v '^ *+' conftest.er1 >conftest.err
15915 rm -f conftest.er1
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15920 { (case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
15924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_try") 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933esac
15934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_try") 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 ac_header_compiler=no
15945fi
15946
15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949echo "${ECHO_T}$ac_header_compiler" >&6; }
15950
15951# Is the header present?
15952{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15954cat >conftest.$ac_ext <<_ACEOF
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960#include <$ac_header>
15961_ACEOF
15962if { (ac_try="$ac_cpp conftest.$ac_ext"
15963case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } >/dev/null; then
15975 if test -s conftest.err; then
15976 ac_cpp_err=$ac_c_preproc_warn_flag
15977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15978 else
15979 ac_cpp_err=
15980 fi
15981else
15982 ac_cpp_err=yes
15983fi
15984if test -z "$ac_cpp_err"; then
15985 ac_header_preproc=yes
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_header_preproc=no
15991fi
15992
15993rm -f conftest.err conftest.$ac_ext
15994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15995echo "${ECHO_T}$ac_header_preproc" >&6; }
15996
15997# So? What about this header?
15998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15999 yes:no: )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16004 ac_header_preproc=yes
16005 ;;
16006 no:yes:* )
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16019 ( cat <<\_ASBOX
16020## ----------------------------------- ##
16021## Report this to llvmbugs@cs.uiuc.edu ##
16022## ----------------------------------- ##
16023_ASBOX
16024 ) | sed "s/^/$as_me: WARNING: /" >&2
16025 ;;
16026esac
16027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031else
16032 eval "$as_ac_Header=\$ac_header_preproc"
16033fi
16034ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036echo "${ECHO_T}$ac_res" >&6; }
16037
16038fi
16039if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016042_ACEOF
16043
16044fi
16045
16046done
16047
16048if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016049
16050for ac_header in pthread.h
16051do
16052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058fi
16059ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061echo "${ECHO_T}$ac_res" >&6; }
16062else
16063 # Is the header compilable?
16064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16066cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072$ac_includes_default
16073#include <$ac_header>
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (ac_try="$ac_compile"
16077case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093esac
16094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103esac
16104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_try") 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 ac_header_compiler=no
16115fi
16116
16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16119echo "${ECHO_T}$ac_header_compiler" >&6; }
16120
16121# Is the header present?
16122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16124cat >conftest.$ac_ext <<_ACEOF
16125/* confdefs.h. */
16126_ACEOF
16127cat confdefs.h >>conftest.$ac_ext
16128cat >>conftest.$ac_ext <<_ACEOF
16129/* end confdefs.h. */
16130#include <$ac_header>
16131_ACEOF
16132if { (ac_try="$ac_cpp conftest.$ac_ext"
16133case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } >/dev/null; then
16145 if test -s conftest.err; then
16146 ac_cpp_err=$ac_c_preproc_warn_flag
16147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16148 else
16149 ac_cpp_err=
16150 fi
16151else
16152 ac_cpp_err=yes
16153fi
16154if test -z "$ac_cpp_err"; then
16155 ac_header_preproc=yes
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_preproc=no
16161fi
16162
16163rm -f conftest.err conftest.$ac_ext
16164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16165echo "${ECHO_T}$ac_header_preproc" >&6; }
16166
16167# So? What about this header?
16168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16169 yes:no: )
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16174 ac_header_preproc=yes
16175 ;;
16176 no:yes:* )
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16189 ( cat <<\_ASBOX
16190## ----------------------------------- ##
16191## Report this to llvmbugs@cs.uiuc.edu ##
16192## ----------------------------------- ##
16193_ASBOX
16194 ) | sed "s/^/$as_me: WARNING: /" >&2
16195 ;;
16196esac
16197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201else
16202 eval "$as_ac_Header=\$ac_header_preproc"
16203fi
16204ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206echo "${ECHO_T}$ac_res" >&6; }
16207
16208fi
16209if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016210 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016212_ACEOF
16213 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016214
16215else
16216 HAVE_PTHREAD=0
16217
16218fi
16219
Reid Spencer096a8142007-08-17 05:45:26 +000016220done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016221
16222else
16223 HAVE_PTHREAD=0
16224
16225fi
16226
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016227if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016228
16229
16230for ac_header in ffi.h ffi/ffi.h
16231do
16232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238fi
16239ac_res=`eval echo '${'$as_ac_Header'}'`
16240 { echo "$as_me:$LINENO: result: $ac_res" >&5
16241echo "${ECHO_T}$ac_res" >&6; }
16242else
16243 # Is the header compilable?
16244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16246cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h. */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h. */
16252$ac_includes_default
16253#include <$ac_header>
16254_ACEOF
16255rm -f conftest.$ac_objext
16256if { (ac_try="$ac_compile"
16257case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260esac
16261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16263 ac_status=$?
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16270 { (case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273esac
16274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_try") 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283esac
16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_header_compiler=yes
16290else
16291 echo "$as_me: failed program was:" >&5
16292sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 ac_header_compiler=no
16295fi
16296
16297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16299echo "${ECHO_T}$ac_header_compiler" >&6; }
16300
16301# Is the header present?
16302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16304cat >conftest.$ac_ext <<_ACEOF
16305/* confdefs.h. */
16306_ACEOF
16307cat confdefs.h >>conftest.$ac_ext
16308cat >>conftest.$ac_ext <<_ACEOF
16309/* end confdefs.h. */
16310#include <$ac_header>
16311_ACEOF
16312if { (ac_try="$ac_cpp conftest.$ac_ext"
16313case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } >/dev/null; then
16325 if test -s conftest.err; then
16326 ac_cpp_err=$ac_c_preproc_warn_flag
16327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16328 else
16329 ac_cpp_err=
16330 fi
16331else
16332 ac_cpp_err=yes
16333fi
16334if test -z "$ac_cpp_err"; then
16335 ac_header_preproc=yes
16336else
16337 echo "$as_me: failed program was:" >&5
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_preproc=no
16341fi
16342
16343rm -f conftest.err conftest.$ac_ext
16344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16345echo "${ECHO_T}$ac_header_preproc" >&6; }
16346
16347# So? What about this header?
16348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16349 yes:no: )
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16354 ac_header_preproc=yes
16355 ;;
16356 no:yes:* )
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16369 ( cat <<\_ASBOX
16370## ----------------------------------- ##
16371## Report this to llvmbugs@cs.uiuc.edu ##
16372## ----------------------------------- ##
16373_ASBOX
16374 ) | sed "s/^/$as_me: WARNING: /" >&2
16375 ;;
16376esac
16377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381else
16382 eval "$as_ac_Header=\$ac_header_preproc"
16383fi
16384ac_res=`eval echo '${'$as_ac_Header'}'`
16385 { echo "$as_me:$LINENO: result: $ac_res" >&5
16386echo "${ECHO_T}$ac_res" >&6; }
16387
16388fi
16389if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016392_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016393
16394fi
16395
16396done
16397
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016398fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016399
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016400
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016401
Edwin Törökc27310c2010-01-26 08:50:50 +000016402
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016403 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16404echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16405if test "${ac_cv_huge_val_sanity+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016407else
16408
16409 ac_ext=cpp
16410ac_cpp='$CXXCPP $CPPFLAGS'
16411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16414
16415 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016416 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016417 ac_cv_huge_val_sanity=yes
16418else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016419 cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016424/* end confdefs.h. */
16425#include <math.h>
16426int
16427main ()
16428{
16429double x = HUGE_VAL; return x != x;
16430 ;
16431 return 0;
16432}
16433_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016434rm -f conftest$ac_exeext
16435if { (ac_try="$ac_link"
16436case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439esac
16440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_link") 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448esac
16449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016454 ac_cv_huge_val_sanity=yes
16455else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016456 echo "$as_me: program exited with status $ac_status" >&5
16457echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460( exit $ac_status )
16461ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016462fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016464fi
16465
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016466
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016467 ac_ext=c
16468ac_cpp='$CPP $CPPFLAGS'
16469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16471ac_compiler_gnu=$ac_cv_c_compiler_gnu
16472
16473
16474fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016475{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16476echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016477 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16478
16479
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016480{ echo "$as_me:$LINENO: checking for pid_t" >&5
16481echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16482if test "${ac_cv_type_pid_t+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484else
16485 cat >conftest.$ac_ext <<_ACEOF
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
16491$ac_includes_default
16492typedef pid_t ac__type_new_;
16493int
16494main ()
16495{
16496if ((ac__type_new_ *) 0)
16497 return 0;
16498if (sizeof (ac__type_new_))
16499 return 0;
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504rm -f conftest.$ac_objext
16505if { (ac_try="$ac_compile"
16506case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522esac
16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_cv_type_pid_t=yes
16539else
16540 echo "$as_me: failed program was:" >&5
16541sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016542
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016543 ac_cv_type_pid_t=no
16544fi
16545
16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547fi
16548{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16549echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16550if test $ac_cv_type_pid_t = yes; then
16551 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016552else
16553
16554cat >>confdefs.h <<_ACEOF
16555#define pid_t int
16556_ACEOF
16557
16558fi
16559
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016560{ echo "$as_me:$LINENO: checking for size_t" >&5
16561echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16562if test "${ac_cv_type_size_t+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16564else
16565 cat >conftest.$ac_ext <<_ACEOF
16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571$ac_includes_default
16572typedef size_t ac__type_new_;
16573int
16574main ()
16575{
16576if ((ac__type_new_ *) 0)
16577 return 0;
16578if (sizeof (ac__type_new_))
16579 return 0;
16580 ;
16581 return 0;
16582}
16583_ACEOF
16584rm -f conftest.$ac_objext
16585if { (ac_try="$ac_compile"
16586case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_compile") 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_type_size_t=yes
16619else
16620 echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016622
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016623 ac_cv_type_size_t=no
16624fi
16625
16626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627fi
16628{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16629echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16630if test $ac_cv_type_size_t = yes; then
16631 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016632else
16633
16634cat >>confdefs.h <<_ACEOF
16635#define size_t unsigned int
16636_ACEOF
16637
16638fi
16639
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016640
16641cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000016642#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016643_ACEOF
16644
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016645{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16646echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16647if test "${ac_cv_struct_tm+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016649else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016650 cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016655/* end confdefs.h. */
16656#include <sys/types.h>
16657#include <time.h>
16658
16659int
16660main ()
16661{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016662struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016663 ;
16664 return 0;
16665}
16666_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016667rm -f conftest.$ac_objext
16668if { (ac_try="$ac_compile"
16669case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672esac
16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685esac
16686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016701 ac_cv_struct_tm=time.h
16702else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016707fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016708
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016711{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16712echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016713if test $ac_cv_struct_tm = sys/time.h; then
16714
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016715cat >>confdefs.h <<\_ACEOF
16716#define TM_IN_SYS_TIME 1
16717_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016718
16719fi
16720
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016721{ echo "$as_me:$LINENO: checking for int64_t" >&5
16722echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16723if test "${ac_cv_type_int64_t+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725else
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733typedef int64_t ac__type_new_;
16734int
16735main ()
16736{
16737if ((ac__type_new_ *) 0)
16738 return 0;
16739if (sizeof (ac__type_new_))
16740 return 0;
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext
16746if { (ac_try="$ac_compile"
16747case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_compile") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest.$ac_objext'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_type_int64_t=yes
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_cv_type_int64_t=no
16785fi
16786
16787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788fi
16789{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16790echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16791if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016792
16793cat >>confdefs.h <<_ACEOF
16794#define HAVE_INT64_T 1
16795_ACEOF
16796
16797
16798else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016799 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16800echo "$as_me: error: Type int64_t required but not found" >&2;}
16801 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016802fi
16803
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016804{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16805echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16806if test "${ac_cv_type_uint64_t+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815$ac_includes_default
16816typedef uint64_t ac__type_new_;
16817int
16818main ()
16819{
16820if ((ac__type_new_ *) 0)
16821 return 0;
16822if (sizeof (ac__type_new_))
16823 return 0;
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (ac_try="$ac_compile"
16830case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_compile") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_type_uint64_t=yes
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 ac_cv_type_uint64_t=no
16868fi
16869
16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871fi
16872{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16873echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16874if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016875
16876cat >>confdefs.h <<_ACEOF
16877#define HAVE_UINT64_T 1
16878_ACEOF
16879
16880
16881else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016882 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16883echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16884if test "${ac_cv_type_u_int64_t+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886else
16887 cat >conftest.$ac_ext <<_ACEOF
16888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
16893$ac_includes_default
16894typedef u_int64_t ac__type_new_;
16895int
16896main ()
16897{
16898if ((ac__type_new_ *) 0)
16899 return 0;
16900if (sizeof (ac__type_new_))
16901 return 0;
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (ac_try="$ac_compile"
16908case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911esac
16912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest.$ac_objext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_type_u_int64_t=yes
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 ac_cv_type_u_int64_t=no
16946fi
16947
16948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949fi
16950{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16951echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16952if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016953
16954cat >>confdefs.h <<_ACEOF
16955#define HAVE_U_INT64_T 1
16956_ACEOF
16957
16958
16959else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016960 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16961echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16962 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016963fi
16964
16965fi
16966
16967
16968
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016969
16970
16971
16972
16973
16974
16975
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016976for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016977do
16978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 cat >conftest.$ac_ext <<_ACEOF
16985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
16990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16992#define $ac_func innocuous_$ac_func
16993
16994/* System header to define __stub macros and hopefully few prototypes,
16995 which can conflict with char $ac_func (); below.
16996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16997 <limits.h> exists even on freestanding compilers. */
16998
16999#ifdef __STDC__
17000# include <limits.h>
17001#else
17002# include <assert.h>
17003#endif
17004
17005#undef $ac_func
17006
17007/* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17010#ifdef __cplusplus
17011extern "C"
17012#endif
17013char $ac_func ();
17014/* The GNU C library defines this for functions which it implements
17015 to always fail with ENOSYS. Some functions are actually named
17016 something starting with __ and the normal name is an alias. */
17017#if defined __stub_$ac_func || defined __stub___$ac_func
17018choke me
17019#endif
17020
17021int
17022main ()
17023{
17024return $ac_func ();
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext conftest$ac_exeext
17030if { (ac_try="$ac_link"
17031case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_link") 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_try") 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest$ac_exeext'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 eval "$as_ac_var=yes"
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 eval "$as_ac_var=no"
17069fi
17070
17071rm -f core conftest.err conftest.$ac_objext \
17072 conftest$ac_exeext conftest.$ac_ext
17073fi
17074ac_res=`eval echo '${'$as_ac_var'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076echo "${ECHO_T}$ac_res" >&6; }
17077if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017078 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017080_ACEOF
17081
17082fi
17083done
17084
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017085
17086
17087
17088
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017089for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017090do
17091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17094if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105#define $ac_func innocuous_$ac_func
17106
17107/* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17111
17112#ifdef __STDC__
17113# include <limits.h>
17114#else
17115# include <assert.h>
17116#endif
17117
17118#undef $ac_func
17119
17120/* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17123#ifdef __cplusplus
17124extern "C"
17125#endif
17126char $ac_func ();
17127/* The GNU C library defines this for functions which it implements
17128 to always fail with ENOSYS. Some functions are actually named
17129 something starting with __ and the normal name is an alias. */
17130#if defined __stub_$ac_func || defined __stub___$ac_func
17131choke me
17132#endif
17133
17134int
17135main ()
17136{
17137return $ac_func ();
17138 ;
17139 return 0;
17140}
17141_ACEOF
17142rm -f conftest.$ac_objext conftest$ac_exeext
17143if { (ac_try="$ac_link"
17144case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147esac
17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160esac
17161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 eval "$as_ac_var=yes"
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 eval "$as_ac_var=no"
17182fi
17183
17184rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186fi
17187ac_res=`eval echo '${'$as_ac_var'}'`
17188 { echo "$as_me:$LINENO: result: $ac_res" >&5
17189echo "${ECHO_T}$ac_res" >&6; }
17190if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017191 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017193_ACEOF
17194
17195fi
17196done
17197
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017198
17199
17200
17201
17202
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017203for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017204do
17205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211 cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17219#define $ac_func innocuous_$ac_func
17220
17221/* System header to define __stub macros and hopefully few prototypes,
17222 which can conflict with char $ac_func (); below.
17223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224 <limits.h> exists even on freestanding compilers. */
17225
17226#ifdef __STDC__
17227# include <limits.h>
17228#else
17229# include <assert.h>
17230#endif
17231
17232#undef $ac_func
17233
17234/* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237#ifdef __cplusplus
17238extern "C"
17239#endif
17240char $ac_func ();
17241/* The GNU C library defines this for functions which it implements
17242 to always fail with ENOSYS. Some functions are actually named
17243 something starting with __ and the normal name is an alias. */
17244#if defined __stub_$ac_func || defined __stub___$ac_func
17245choke me
17246#endif
17247
17248int
17249main ()
17250{
17251return $ac_func ();
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext conftest$ac_exeext
17257if { (ac_try="$ac_link"
17258case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_link") 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17271 { (case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274esac
17275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_try") 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest$ac_exeext'
17281 { (case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284esac
17285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_try") 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 eval "$as_ac_var=yes"
17291else
17292 echo "$as_me: failed program was:" >&5
17293sed 's/^/| /' conftest.$ac_ext >&5
17294
17295 eval "$as_ac_var=no"
17296fi
17297
17298rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
17300fi
17301ac_res=`eval echo '${'$as_ac_var'}'`
17302 { echo "$as_me:$LINENO: result: $ac_res" >&5
17303echo "${ECHO_T}$ac_res" >&6; }
17304if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017305 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017307_ACEOF
17308
17309fi
17310done
17311
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017312
17313
17314
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017315for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017316do
17317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322else
17323 cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17331#define $ac_func innocuous_$ac_func
17332
17333/* System header to define __stub macros and hopefully few prototypes,
17334 which can conflict with char $ac_func (); below.
17335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17336 <limits.h> exists even on freestanding compilers. */
17337
17338#ifdef __STDC__
17339# include <limits.h>
17340#else
17341# include <assert.h>
17342#endif
17343
17344#undef $ac_func
17345
17346/* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349#ifdef __cplusplus
17350extern "C"
17351#endif
17352char $ac_func ();
17353/* The GNU C library defines this for functions which it implements
17354 to always fail with ENOSYS. Some functions are actually named
17355 something starting with __ and the normal name is an alias. */
17356#if defined __stub_$ac_func || defined __stub___$ac_func
17357choke me
17358#endif
17359
17360int
17361main ()
17362{
17363return $ac_func ();
17364 ;
17365 return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext conftest$ac_exeext
17369if { (ac_try="$ac_link"
17370case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373esac
17374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17376 ac_status=$?
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 eval "$as_ac_var=yes"
17403else
17404 echo "$as_me: failed program was:" >&5
17405sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 eval "$as_ac_var=no"
17408fi
17409
17410rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412fi
17413ac_res=`eval echo '${'$as_ac_var'}'`
17414 { echo "$as_me:$LINENO: result: $ac_res" >&5
17415echo "${ECHO_T}$ac_res" >&6; }
17416if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017417 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017419_ACEOF
17420
17421fi
17422done
17423
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017424
17425
17426
17427
17428
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017429for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017430do
17431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437 cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17445#define $ac_func innocuous_$ac_func
17446
17447/* System header to define __stub macros and hopefully few prototypes,
17448 which can conflict with char $ac_func (); below.
17449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 <limits.h> exists even on freestanding compilers. */
17451
17452#ifdef __STDC__
17453# include <limits.h>
17454#else
17455# include <assert.h>
17456#endif
17457
17458#undef $ac_func
17459
17460/* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17463#ifdef __cplusplus
17464extern "C"
17465#endif
17466char $ac_func ();
17467/* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470#if defined __stub_$ac_func || defined __stub___$ac_func
17471choke me
17472#endif
17473
17474int
17475main ()
17476{
17477return $ac_func ();
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (ac_try="$ac_link"
17484case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500esac
17501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest$ac_exeext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 eval "$as_ac_var=yes"
17517else
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521 eval "$as_ac_var=no"
17522fi
17523
17524rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17526fi
17527ac_res=`eval echo '${'$as_ac_var'}'`
17528 { echo "$as_me:$LINENO: result: $ac_res" >&5
17529echo "${ECHO_T}$ac_res" >&6; }
17530if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017531 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017533_ACEOF
17534
17535fi
17536done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017537
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017538
17539
17540
17541
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000017542for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017543do
17544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549else
17550 cat >conftest.$ac_ext <<_ACEOF
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17558#define $ac_func innocuous_$ac_func
17559
17560/* System header to define __stub macros and hopefully few prototypes,
17561 which can conflict with char $ac_func (); below.
17562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563 <limits.h> exists even on freestanding compilers. */
17564
17565#ifdef __STDC__
17566# include <limits.h>
17567#else
17568# include <assert.h>
17569#endif
17570
17571#undef $ac_func
17572
17573/* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17576#ifdef __cplusplus
17577extern "C"
17578#endif
17579char $ac_func ();
17580/* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583#if defined __stub_$ac_func || defined __stub___$ac_func
17584choke me
17585#endif
17586
17587int
17588main ()
17589{
17590return $ac_func ();
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext conftest$ac_exeext
17596if { (ac_try="$ac_link"
17597case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17600esac
17601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_link") 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623esac
17624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_try") 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 eval "$as_ac_var=yes"
17630else
17631 echo "$as_me: failed program was:" >&5
17632sed 's/^/| /' conftest.$ac_ext >&5
17633
17634 eval "$as_ac_var=no"
17635fi
17636
17637rm -f core conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
17639fi
17640ac_res=`eval echo '${'$as_ac_var'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642echo "${ECHO_T}$ac_res" >&6; }
17643if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017644 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017646_ACEOF
17647
17648fi
17649done
17650
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017651
17652
17653
17654
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017655for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017656do
17657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17658{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17660if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663 cat >conftest.$ac_ext <<_ACEOF
17664/* confdefs.h. */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h. */
17669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17671#define $ac_func innocuous_$ac_func
17672
17673/* System header to define __stub macros and hopefully few prototypes,
17674 which can conflict with char $ac_func (); below.
17675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17676 <limits.h> exists even on freestanding compilers. */
17677
17678#ifdef __STDC__
17679# include <limits.h>
17680#else
17681# include <assert.h>
17682#endif
17683
17684#undef $ac_func
17685
17686/* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17689#ifdef __cplusplus
17690extern "C"
17691#endif
17692char $ac_func ();
17693/* The GNU C library defines this for functions which it implements
17694 to always fail with ENOSYS. Some functions are actually named
17695 something starting with __ and the normal name is an alias. */
17696#if defined __stub_$ac_func || defined __stub___$ac_func
17697choke me
17698#endif
17699
17700int
17701main ()
17702{
17703return $ac_func ();
17704 ;
17705 return 0;
17706}
17707_ACEOF
17708rm -f conftest.$ac_objext conftest$ac_exeext
17709if { (ac_try="$ac_link"
17710case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726esac
17727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest$ac_exeext'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 eval "$as_ac_var=yes"
17743else
17744 echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 eval "$as_ac_var=no"
17748fi
17749
17750rm -f core conftest.err conftest.$ac_objext \
17751 conftest$ac_exeext conftest.$ac_ext
17752fi
17753ac_res=`eval echo '${'$as_ac_var'}'`
17754 { echo "$as_me:$LINENO: result: $ac_res" >&5
17755echo "${ECHO_T}$ac_res" >&6; }
17756if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017757 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017759_ACEOF
17760
17761fi
17762done
17763
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017764
17765
17766
17767
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017768for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017769do
17770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17771{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775else
17776 cat >conftest.$ac_ext <<_ACEOF
17777/* confdefs.h. */
17778_ACEOF
17779cat confdefs.h >>conftest.$ac_ext
17780cat >>conftest.$ac_ext <<_ACEOF
17781/* end confdefs.h. */
17782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17784#define $ac_func innocuous_$ac_func
17785
17786/* System header to define __stub macros and hopefully few prototypes,
17787 which can conflict with char $ac_func (); below.
17788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17789 <limits.h> exists even on freestanding compilers. */
17790
17791#ifdef __STDC__
17792# include <limits.h>
17793#else
17794# include <assert.h>
17795#endif
17796
17797#undef $ac_func
17798
17799/* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17802#ifdef __cplusplus
17803extern "C"
17804#endif
17805char $ac_func ();
17806/* The GNU C library defines this for functions which it implements
17807 to always fail with ENOSYS. Some functions are actually named
17808 something starting with __ and the normal name is an alias. */
17809#if defined __stub_$ac_func || defined __stub___$ac_func
17810choke me
17811#endif
17812
17813int
17814main ()
17815{
17816return $ac_func ();
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext conftest$ac_exeext
17822if { (ac_try="$ac_link"
17823case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826esac
17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_link") 2>conftest.er1
17829 ac_status=$?
17830 grep -v '^ *+' conftest.er1 >conftest.err
17831 rm -f conftest.er1
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836 { (case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_try") 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 eval "$as_ac_var=yes"
17856else
17857 echo "$as_me: failed program was:" >&5
17858sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 eval "$as_ac_var=no"
17861fi
17862
17863rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865fi
17866ac_res=`eval echo '${'$as_ac_var'}'`
17867 { echo "$as_me:$LINENO: result: $ac_res" >&5
17868echo "${ECHO_T}$ac_res" >&6; }
17869if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017870 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017872_ACEOF
17873
17874fi
17875done
17876
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017877{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17878echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17879if test "${llvm_cv_c_printf_a+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017881else
17882 ac_ext=c
17883ac_cpp='$CPP $CPPFLAGS'
17884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017888 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017889 llvmac_cv_c_printf_a=no
17890else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017891 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017892
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017893 /* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000017898
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017899#include <stdio.h>
17900#include <stdlib.h>
17901
17902int
17903main ()
17904{
17905
17906volatile double A, B;
17907char Buffer[100];
17908A = 1;
17909A /= 10.0;
17910sprintf(Buffer, "%a", A);
17911B = atof(Buffer);
17912if (A != B)
17913 return (1);
17914if (A != 0x1.999999999999ap-4)
17915 return (1);
17916return (0);
17917 ;
17918 return 0;
17919}
17920_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017921rm -f conftest$ac_exeext
17922if { (ac_try="$ac_link"
17923case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17926esac
17927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_link") 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17932 { (case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17935esac
17936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_try") 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017941 llvm_cv_c_printf_a=yes
17942else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017943 echo "$as_me: program exited with status $ac_status" >&5
17944echo "$as_me: failed program was:" >&5
17945sed 's/^/| /' conftest.$ac_ext >&5
17946
17947( exit $ac_status )
17948llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017949fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017951fi
17952
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017953
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017954 ac_ext=c
17955ac_cpp='$CPP $CPPFLAGS'
17956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
17960fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017961{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17962echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017963 if test "$llvm_cv_c_printf_a" = "yes"; then
17964
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017965cat >>confdefs.h <<\_ACEOF
17966#define HAVE_PRINTF_A 1
17967_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017968
17969 fi
17970
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017971
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017972{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17973echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17974if test "${ac_cv_func_rand48+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017976else
17977 ac_ext=cpp
17978ac_cpp='$CXXCPP $CPPFLAGS'
17979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17982
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017988/* end confdefs.h. */
17989#include <stdlib.h>
17990int
17991main ()
17992{
17993srand48(0);lrand48();drand48();
17994 ;
17995 return 0;
17996}
17997_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017998rm -f conftest.$ac_objext
17999if { (ac_try="$ac_compile"
18000case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_compile") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018032 ac_cv_func_rand48=yes
18033else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018038fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018039
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 ac_ext=c
18042ac_cpp='$CPP $CPPFLAGS'
18043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018048{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18049echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018050
18051if test "$ac_cv_func_rand48" = "yes" ; then
18052
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018053cat >>confdefs.h <<\_ACEOF
18054#define HAVE_RAND48 1
18055_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018056
18057fi
18058
18059
Edwin Törökc27310c2010-01-26 08:50:50 +000018060
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018061{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18062echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18063if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018065else
18066 ac_ext=cpp
18067ac_cpp='$CXXCPP $CPPFLAGS'
18068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18071
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018072 cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018077/* end confdefs.h. */
18078#include <math.h>
18079int
18080main ()
18081{
18082float f; isnan(f);
18083 ;
18084 return 0;
18085}
18086_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018087rm -f conftest.$ac_objext
18088if { (ac_try="$ac_compile"
18089case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18092esac
18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018121 ac_cv_func_isnan_in_math_h=yes
18122else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018127fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018128
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 ac_ext=c
18131ac_cpp='$CPP $CPPFLAGS'
18132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135
18136fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018137{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18138echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018139
18140
18141if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18142
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018143cat >>confdefs.h <<\_ACEOF
18144#define HAVE_ISNAN_IN_MATH_H 1
18145_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018146
18147fi
18148
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018149{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18150echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18151if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018153else
18154 ac_ext=cpp
18155ac_cpp='$CXXCPP $CPPFLAGS'
18156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18159
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018160 cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018165/* end confdefs.h. */
18166#include <cmath>
18167int
18168main ()
18169{
18170float f; isnan(f);
18171 ;
18172 return 0;
18173}
18174_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018175rm -f conftest.$ac_objext
18176if { (ac_try="$ac_compile"
18177case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_compile") 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_try") 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018209 ac_cv_func_isnan_in_cmath=yes
18210else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018211 echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018215fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018216
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 ac_ext=c
18219ac_cpp='$CPP $CPPFLAGS'
18220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223
18224fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018225{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18226echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018227
18228if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18229
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018230cat >>confdefs.h <<\_ACEOF
18231#define HAVE_ISNAN_IN_CMATH 1
18232_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018233
18234fi
18235
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018236{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18237echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18238if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018240else
18241 ac_ext=cpp
18242ac_cpp='$CXXCPP $CPPFLAGS'
18243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18246
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018247 cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018252/* end confdefs.h. */
18253#include <cmath>
18254int
18255main ()
18256{
18257float f; std::isnan(f);
18258 ;
18259 return 0;
18260}
18261_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018262rm -f conftest.$ac_objext
18263if { (ac_try="$ac_compile"
18264case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267esac
18268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_compile") 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018296 ac_cv_func_std_isnan_in_cmath=yes
18297else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018298 echo "$as_me: failed program was:" >&5
18299sed 's/^/| /' conftest.$ac_ext >&5
18300
18301 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018302fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018303
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 ac_ext=c
18306ac_cpp='$CPP $CPPFLAGS'
18307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309ac_compiler_gnu=$ac_cv_c_compiler_gnu
18310
18311fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018312{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18313echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018314
18315if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18316
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018317cat >>confdefs.h <<\_ACEOF
18318#define HAVE_STD_ISNAN_IN_CMATH 1
18319_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018320
18321fi
18322
18323
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018324{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18325echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18326if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018328else
18329 ac_ext=cpp
18330ac_cpp='$CXXCPP $CPPFLAGS'
18331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18334
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018335 cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018340/* end confdefs.h. */
18341#include <math.h>
18342int
18343main ()
18344{
18345float f; isinf(f);
18346 ;
18347 return 0;
18348}
18349_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018350rm -f conftest.$ac_objext
18351if { (ac_try="$ac_compile"
18352case "(($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_compile") 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018384 ac_cv_func_isinf_in_math_h=yes
18385else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018386 echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018390fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018391
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 ac_ext=c
18394ac_cpp='$CPP $CPPFLAGS'
18395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398
18399fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018400{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18401echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018402
18403if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18404
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018405cat >>confdefs.h <<\_ACEOF
18406#define HAVE_ISINF_IN_MATH_H 1
18407_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018408
18409fi
18410
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018411{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18412echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18413if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018415else
18416 ac_ext=cpp
18417ac_cpp='$CXXCPP $CPPFLAGS'
18418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18421
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018422 cat >conftest.$ac_ext <<_ACEOF
18423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018427/* end confdefs.h. */
18428#include <cmath>
18429int
18430main ()
18431{
18432float f; isinf(f);
18433 ;
18434 return 0;
18435}
18436_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018437rm -f conftest.$ac_objext
18438if { (ac_try="$ac_compile"
18439case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_compile") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest.$ac_objext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018471 ac_cv_func_isinf_in_cmath=yes
18472else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018477fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018478
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 ac_ext=c
18481ac_cpp='$CPP $CPPFLAGS'
18482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018487{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18488echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018489
18490if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18491
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018492cat >>confdefs.h <<\_ACEOF
18493#define HAVE_ISINF_IN_CMATH 1
18494_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018495
18496fi
18497
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018498{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18499echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18500if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018502else
18503 ac_ext=cpp
18504ac_cpp='$CXXCPP $CPPFLAGS'
18505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18508
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018509 cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018514/* end confdefs.h. */
18515#include <cmath>
18516int
18517main ()
18518{
18519float f; std::isinf(f)}
18520 ;
18521 return 0;
18522}
18523_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018524rm -f conftest.$ac_objext
18525if { (ac_try="$ac_compile"
18526case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529esac
18530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018558 ac_cv_func_std_isinf_in_cmath=yes
18559else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018560 echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018564fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018565
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 ac_ext=c
18568ac_cpp='$CPP $CPPFLAGS'
18569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18571ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572
18573fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018574{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18575echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018576
18577if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18578
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018579cat >>confdefs.h <<\_ACEOF
18580#define HAVE_STD_ISINF_IN_CMATH 1
18581_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018582
18583fi
18584
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018585{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18586echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18587if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018589else
18590 ac_ext=cpp
18591ac_cpp='$CXXCPP $CPPFLAGS'
18592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18595
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018596 cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h. */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018601/* end confdefs.h. */
18602#include <ieeefp.h>
18603int
18604main ()
18605{
18606float f; finite(f);
18607 ;
18608 return 0;
18609}
18610_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018611rm -f conftest.$ac_objext
18612if { (ac_try="$ac_compile"
18613case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616esac
18617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629esac
18630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
18636 { (case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639esac
18640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_try") 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018645 ac_cv_func_finite_in_ieeefp_h=yes
18646else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018647 echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018651fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018652
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 ac_ext=c
18655ac_cpp='$CPP $CPPFLAGS'
18656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658ac_compiler_gnu=$ac_cv_c_compiler_gnu
18659
18660fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018661{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18662echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018663
18664if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18665
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018666cat >>confdefs.h <<\_ACEOF
18667#define HAVE_FINITE_IN_IEEEFP_H 1
18668_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018669
18670fi
18671
18672
18673
18674if test "$llvm_cv_platform_type" = "Unix" ; then
18675
18676
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018677for ac_header in stdlib.h unistd.h
18678do
18679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685fi
18686ac_res=`eval echo '${'$as_ac_Header'}'`
18687 { echo "$as_me:$LINENO: result: $ac_res" >&5
18688echo "${ECHO_T}$ac_res" >&6; }
18689else
18690 # Is the header compilable?
18691{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18693cat >conftest.$ac_ext <<_ACEOF
18694/* confdefs.h. */
18695_ACEOF
18696cat confdefs.h >>conftest.$ac_ext
18697cat >>conftest.$ac_ext <<_ACEOF
18698/* end confdefs.h. */
18699$ac_includes_default
18700#include <$ac_header>
18701_ACEOF
18702rm -f conftest.$ac_objext
18703if { (ac_try="$ac_compile"
18704case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707esac
18708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720esac
18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_header_compiler=yes
18737else
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018740
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018741 ac_header_compiler=no
18742fi
18743
18744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18746echo "${ECHO_T}$ac_header_compiler" >&6; }
18747
18748# Is the header present?
18749{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18751cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757#include <$ac_header>
18758_ACEOF
18759if { (ac_try="$ac_cpp conftest.$ac_ext"
18760case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } >/dev/null; then
18772 if test -s conftest.err; then
18773 ac_cpp_err=$ac_c_preproc_warn_flag
18774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18775 else
18776 ac_cpp_err=
18777 fi
18778else
18779 ac_cpp_err=yes
18780fi
18781if test -z "$ac_cpp_err"; then
18782 ac_header_preproc=yes
18783else
18784 echo "$as_me: failed program was:" >&5
18785sed 's/^/| /' conftest.$ac_ext >&5
18786
18787 ac_header_preproc=no
18788fi
18789
18790rm -f conftest.err conftest.$ac_ext
18791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18792echo "${ECHO_T}$ac_header_preproc" >&6; }
18793
18794# So? What about this header?
18795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18796 yes:no: )
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18801 ac_header_preproc=yes
18802 ;;
18803 no:yes:* )
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18816 ( cat <<\_ASBOX
18817## ----------------------------------- ##
18818## Report this to llvmbugs@cs.uiuc.edu ##
18819## ----------------------------------- ##
18820_ASBOX
18821 ) | sed "s/^/$as_me: WARNING: /" >&2
18822 ;;
18823esac
18824{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829 eval "$as_ac_Header=\$ac_header_preproc"
18830fi
18831ac_res=`eval echo '${'$as_ac_Header'}'`
18832 { echo "$as_me:$LINENO: result: $ac_res" >&5
18833echo "${ECHO_T}$ac_res" >&6; }
18834
18835fi
18836if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018837 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018839_ACEOF
18840
18841fi
18842
18843done
18844
18845
18846for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018847do
18848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862#define $ac_func innocuous_$ac_func
18863
18864/* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18868
18869#ifdef __STDC__
18870# include <limits.h>
18871#else
18872# include <assert.h>
18873#endif
18874
18875#undef $ac_func
18876
18877/* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18880#ifdef __cplusplus
18881extern "C"
18882#endif
18883char $ac_func ();
18884/* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887#if defined __stub_$ac_func || defined __stub___$ac_func
18888choke me
18889#endif
18890
18891int
18892main ()
18893{
18894return $ac_func ();
18895 ;
18896 return 0;
18897}
18898_ACEOF
18899rm -f conftest.$ac_objext conftest$ac_exeext
18900if { (ac_try="$ac_link"
18901case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904esac
18905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927esac
18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 eval "$as_ac_var=yes"
18934else
18935 echo "$as_me: failed program was:" >&5
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 eval "$as_ac_var=no"
18939fi
18940
18941rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943fi
18944ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946echo "${ECHO_T}$ac_res" >&6; }
18947if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018950_ACEOF
18951
18952fi
18953done
18954
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018955{ echo "$as_me:$LINENO: checking for working mmap" >&5
18956echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18957if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018959else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018960 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018961 ac_cv_func_mmap_fixed_mapped=no
18962else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018968/* end confdefs.h. */
18969$ac_includes_default
18970/* malloc might have been renamed as rpl_malloc. */
18971#undef malloc
18972
18973/* Thanks to Mike Haertel and Jim Avera for this test.
18974 Here is a matrix of mmap possibilities:
18975 mmap private not fixed
18976 mmap private fixed at somewhere currently unmapped
18977 mmap private fixed at somewhere already mapped
18978 mmap shared not fixed
18979 mmap shared fixed at somewhere currently unmapped
18980 mmap shared fixed at somewhere already mapped
18981 For private mappings, we should verify that changes cannot be read()
18982 back from the file, nor mmap's back from the file at a different
18983 address. (There have been systems where private was not correctly
18984 implemented like the infamous i386 svr4.0, and systems where the
18985 VM page cache was not coherent with the file system buffer cache
18986 like early versions of FreeBSD and possibly contemporary NetBSD.)
18987 For shared mappings, we should conversely verify that changes get
18988 propagated back to all the places they're supposed to be.
18989
18990 Grep wants private fixed already mapped.
18991 The main things grep needs to know about mmap are:
18992 * does it exist and is it safe to write into the mmap'd area
18993 * how to use it (BSD variants) */
18994
18995#include <fcntl.h>
18996#include <sys/mman.h>
18997
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018998#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018999char *malloc ();
19000#endif
19001
19002/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019003#if !HAVE_GETPAGESIZE
19004/* Assume that all systems that can run configure have sys/param.h. */
19005# if !HAVE_SYS_PARAM_H
19006# define HAVE_SYS_PARAM_H 1
19007# endif
19008
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019009# ifdef _SC_PAGESIZE
19010# define getpagesize() sysconf(_SC_PAGESIZE)
19011# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019012# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019013# include <sys/param.h>
19014# ifdef EXEC_PAGESIZE
19015# define getpagesize() EXEC_PAGESIZE
19016# else /* no EXEC_PAGESIZE */
19017# ifdef NBPG
19018# define getpagesize() NBPG * CLSIZE
19019# ifndef CLSIZE
19020# define CLSIZE 1
19021# endif /* no CLSIZE */
19022# else /* no NBPG */
19023# ifdef NBPC
19024# define getpagesize() NBPC
19025# else /* no NBPC */
19026# ifdef PAGESIZE
19027# define getpagesize() PAGESIZE
19028# endif /* PAGESIZE */
19029# endif /* no NBPC */
19030# endif /* no NBPG */
19031# endif /* no EXEC_PAGESIZE */
19032# else /* no HAVE_SYS_PARAM_H */
19033# define getpagesize() 8192 /* punt totally */
19034# endif /* no HAVE_SYS_PARAM_H */
19035# endif /* no _SC_PAGESIZE */
19036
19037#endif /* no HAVE_GETPAGESIZE */
19038
19039int
19040main ()
19041{
19042 char *data, *data2, *data3;
19043 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019044 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019045
19046 pagesize = getpagesize ();
19047
19048 /* First, make a file with some known garbage in it. */
19049 data = (char *) malloc (pagesize);
19050 if (!data)
19051 return 1;
19052 for (i = 0; i < pagesize; ++i)
19053 *(data + i) = rand ();
19054 umask (0);
19055 fd = creat ("conftest.mmap", 0600);
19056 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019057 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019058 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019059 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019060 close (fd);
19061
19062 /* Next, try to mmap the file at a fixed address which already has
19063 something else allocated at it. If we can, also make sure that
19064 we see the same garbage. */
19065 fd = open ("conftest.mmap", O_RDWR);
19066 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019067 return 1;
19068 data2 = (char *) malloc (2 * pagesize);
19069 if (!data2)
19070 return 1;
19071 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019072 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19073 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019074 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019075 for (i = 0; i < pagesize; ++i)
19076 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019077 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019078
19079 /* Finally, make sure that changes to the mapped area do not
19080 percolate back to the file as seen by read(). (This is a bug on
19081 some variants of i386 svr4.0.) */
19082 for (i = 0; i < pagesize; ++i)
19083 *(data2 + i) = *(data2 + i) + 1;
19084 data3 = (char *) malloc (pagesize);
19085 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019086 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019087 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019088 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019089 for (i = 0; i < pagesize; ++i)
19090 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019091 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019092 close (fd);
19093 return 0;
19094}
19095_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019096rm -f conftest$ac_exeext
19097if { (ac_try="$ac_link"
19098case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19101esac
19102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_link") 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019116 ac_cv_func_mmap_fixed_mapped=yes
19117else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019118 echo "$as_me: program exited with status $ac_status" >&5
19119echo "$as_me: failed program was:" >&5
19120sed 's/^/| /' conftest.$ac_ext >&5
19121
19122( exit $ac_status )
19123ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019124fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019126fi
19127
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019128
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019129fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019130{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19131echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019132if test $ac_cv_func_mmap_fixed_mapped = yes; then
19133
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019134cat >>confdefs.h <<\_ACEOF
19135#define HAVE_MMAP 1
19136_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019137
19138fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019139rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019140
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019141 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19142echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19143if test "${ac_cv_func_mmap_file+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019145else
19146 ac_ext=c
19147ac_cpp='$CPP $CPPFLAGS'
19148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019152 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019153 ac_cv_func_mmap_file=no
19154else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019155 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019156
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019157 /* confdefs.h. */
19158_ACEOF
19159cat confdefs.h >>conftest.$ac_ext
19160cat >>conftest.$ac_ext <<_ACEOF
19161/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000019162
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019163#include <sys/types.h>
19164#include <sys/mman.h>
19165#include <fcntl.h>
19166
19167int
19168main ()
19169{
19170
19171 int fd;
19172 fd = creat ("foo",0777);
19173 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19174 unlink ("foo");
19175 return (fd != (int) MAP_FAILED);
19176 ;
19177 return 0;
19178}
19179_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019180rm -f conftest$ac_exeext
19181if { (ac_try="$ac_link"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019200 ac_cv_func_mmap_file=yes
19201else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019202 echo "$as_me: program exited with status $ac_status" >&5
19203echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206( exit $ac_status )
19207ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019208fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019210fi
19211
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019212
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019213 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
19219
19220fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019221{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19222echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019223if test "$ac_cv_func_mmap_file" = yes; then
19224
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019225cat >>confdefs.h <<\_ACEOF
19226#define HAVE_MMAP_FILE
19227_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019228
19229 MMAP_FILE=yes
19230
19231fi
19232
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019233 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19234echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19235if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019237else
19238 if test "$llvm_cv_os_type" = "Interix" ; then
19239 ac_cv_need_dev_zero_for_mmap=yes
19240 else
19241 ac_cv_need_dev_zero_for_mmap=no
19242 fi
19243
19244fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019245{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19246echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019247if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19248
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019249cat >>confdefs.h <<\_ACEOF
19250#define NEED_DEV_ZERO_FOR_MMAP 1
19251_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019252
19253fi
19254
19255 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19256 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019257 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19258echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019259 fi
19260 if test "$ac_cv_func_mmap_file" = "no"
19261 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019262 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19263echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019264 fi
19265fi
19266
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019267{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19268echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19269cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000019274/* end confdefs.h. */
19275int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000019276 volatile unsigned long val = 1;
19277 __sync_synchronize();
19278 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000019279 __sync_add_and_fetch(&val, 1);
19280 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000019281 return 0;
19282 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019283
19284_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019285rm -f conftest.$ac_objext conftest$ac_exeext
19286if { (ac_try="$ac_link"
19287case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290esac
19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19293 ac_status=$?
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19300 { (case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303esac
19304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_try") 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
19310 { (case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313esac
19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_try") 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 { echo "$as_me:$LINENO: result: yes" >&5
19320echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000019321
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019322cat >>confdefs.h <<\_ACEOF
19323#define LLVM_MULTITHREADED 1
19324_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000019325
Owen Andersonff0f88e2009-05-18 23:58:51 +000019326else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019327 echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019329
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019330 { echo "$as_me:$LINENO: result: no" >&5
19331echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019332
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019333cat >>confdefs.h <<\_ACEOF
19334#define LLVM_MULTITHREADED 0
19335_ACEOF
19336
19337 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19338echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000019339fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019340
Owen Andersonff0f88e2009-05-18 23:58:51 +000019341rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019342 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000019343
19344
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019345
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019346if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019347 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19348echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19349if test "${llvm_cv_linux_mixed+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019351else
19352 ac_ext=c
19353ac_cpp='$CPP $CPPFLAGS'
19354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019358 cat >conftest.$ac_ext <<_ACEOF
19359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019363/* end confdefs.h. */
19364#ifndef __x86_64__
19365 error: Not x86-64 even if uname says so!
19366 #endif
19367
19368int
19369main ()
19370{
19371
19372 ;
19373 return 0;
19374}
19375_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019376rm -f conftest.$ac_objext
19377if { (ac_try="$ac_compile"
19378case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_compile") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest.$ac_objext'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019410 llvm_cv_linux_mixed=no
19411else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019412 echo "$as_me: failed program was:" >&5
19413sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019416fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019417
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 ac_ext=c
19420ac_cpp='$CPP $CPPFLAGS'
19421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423ac_compiler_gnu=$ac_cv_c_compiler_gnu
19424
19425
19426fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019427{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19428echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019429
19430 if test "$llvm_cv_linux_mixed" = "yes"; then
19431 llvm_cv_target_arch="x86"
19432 ARCH="x86"
19433 fi
19434fi
19435
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019436
Reid Spencer59c09b32007-07-30 20:13:24 +000019437for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019438do
19439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19440{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444else
19445 cat >conftest.$ac_ext <<_ACEOF
19446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
19451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19453#define $ac_func innocuous_$ac_func
19454
19455/* System header to define __stub macros and hopefully few prototypes,
19456 which can conflict with char $ac_func (); below.
19457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19458 <limits.h> exists even on freestanding compilers. */
19459
19460#ifdef __STDC__
19461# include <limits.h>
19462#else
19463# include <assert.h>
19464#endif
19465
19466#undef $ac_func
19467
19468/* Override any GCC internal prototype to avoid an error.
19469 Use char because int might match the return type of a GCC
19470 builtin and then its argument prototype would still apply. */
19471#ifdef __cplusplus
19472extern "C"
19473#endif
19474char $ac_func ();
19475/* The GNU C library defines this for functions which it implements
19476 to always fail with ENOSYS. Some functions are actually named
19477 something starting with __ and the normal name is an alias. */
19478#if defined __stub_$ac_func || defined __stub___$ac_func
19479choke me
19480#endif
19481
19482int
19483main ()
19484{
19485return $ac_func ();
19486 ;
19487 return 0;
19488}
19489_ACEOF
19490rm -f conftest.$ac_objext conftest$ac_exeext
19491if { (ac_try="$ac_link"
19492case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508esac
19509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest$ac_exeext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 eval "$as_ac_var=yes"
19525else
19526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 eval "$as_ac_var=no"
19530fi
19531
19532rm -f core conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
19534fi
19535ac_res=`eval echo '${'$as_ac_var'}'`
19536 { echo "$as_me:$LINENO: result: $ac_res" >&5
19537echo "${ECHO_T}$ac_res" >&6; }
19538if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000019539 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000019541_ACEOF
19542
19543fi
19544done
19545
19546
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019547{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19548echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19549if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019551else
19552 llvm_cv_llvmgcc_sanity="no"
19553if test -x "$LLVMGCC" ; then
19554 cp /dev/null conftest.c
19555 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19556 grep 'target datalayout =' > /dev/null 2>&1
19557 if test $? -eq 0 ; then
19558 llvm_cv_llvmgcc_sanity="yes"
19559 fi
19560 rm conftest.c
19561fi
19562fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019563{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19564echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019565
19566if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019567 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19568echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019569 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19570 LLVMCC1=$llvmcc1path
19571
19572 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19573 LLVMCC1PLUS=$llvmcc1pluspath
19574
19575 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19576 LLVMGCCDIR=$llvmgccdir
19577
19578 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19579 LLVMGCCLIBEXEC=$llvmgcclibexec
19580
19581 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
19582 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19583 LLVMGCC_VERSION=$llvmgccversion
19584
Tanya Lattner9894c2c2008-10-07 22:21:03 +000019585 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019586 LLVMGCC_LANGS=$llvmgcclangs
19587
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019588 { echo "$as_me:$LINENO: result: ok" >&5
19589echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019590fi
19591
19592SHLIBEXT=$libltdl_cv_shlibext
19593
19594
19595# Translate the various configuration directories and other basic
19596# information into substitutions that will end up in Makefile.config.in
19597# that these configured values can be used by the makefiles
19598if test "${prefix}" = "NONE" ; then
19599 prefix="/usr/local"
19600fi
19601eval LLVM_PREFIX="${prefix}";
19602eval LLVM_BINDIR="${prefix}/bin";
19603eval LLVM_LIBDIR="${prefix}/lib";
19604eval LLVM_DATADIR="${prefix}/share/llvm";
19605eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19606eval LLVM_ETCDIR="${prefix}/etc/llvm";
19607eval LLVM_INCLUDEDIR="${prefix}/include";
19608eval LLVM_INFODIR="${prefix}/info";
19609eval LLVM_MANDIR="${prefix}/man";
19610LLVM_CONFIGTIME=`date`
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622# Place the various directores into the config.h file as #defines so that we
19623# can know about the installation paths within LLVM.
19624
19625cat >>confdefs.h <<_ACEOF
19626#define LLVM_PREFIX "$LLVM_PREFIX"
19627_ACEOF
19628
19629
19630cat >>confdefs.h <<_ACEOF
19631#define LLVM_BINDIR "$LLVM_BINDIR"
19632_ACEOF
19633
19634
19635cat >>confdefs.h <<_ACEOF
19636#define LLVM_LIBDIR "$LLVM_LIBDIR"
19637_ACEOF
19638
19639
19640cat >>confdefs.h <<_ACEOF
19641#define LLVM_DATADIR "$LLVM_DATADIR"
19642_ACEOF
19643
19644
19645cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000019646#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019647_ACEOF
19648
19649
19650cat >>confdefs.h <<_ACEOF
19651#define LLVM_ETCDIR "$LLVM_ETCDIR"
19652_ACEOF
19653
19654
19655cat >>confdefs.h <<_ACEOF
19656#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19657_ACEOF
19658
19659
19660cat >>confdefs.h <<_ACEOF
19661#define LLVM_INFODIR "$LLVM_INFODIR"
19662_ACEOF
19663
19664
19665cat >>confdefs.h <<_ACEOF
19666#define LLVM_MANDIR "$LLVM_MANDIR"
19667_ACEOF
19668
19669
19670cat >>confdefs.h <<_ACEOF
19671#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19672_ACEOF
19673
19674
Eric Christopher8b274472007-12-01 00:34:39 +000019675cat >>confdefs.h <<_ACEOF
19676#define LLVM_HOSTTRIPLE "$host"
19677_ACEOF
19678
19679
Gordon Henriksen016ec472007-10-02 09:50:32 +000019680# Determine which bindings to build.
19681if test "$BINDINGS_TO_BUILD" = auto ; then
19682 BINDINGS_TO_BUILD=""
19683 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19684 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19685 fi
19686fi
19687BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19688
19689
19690# This isn't really configurey, but it avoids having to repeat the list in
19691# other files.
19692ALL_BINDINGS=ocaml
19693
19694
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019695# Do any work necessary to ensure that bindings have what they need.
19696binding_prereqs_failed=0
19697for a_binding in $BINDINGS_TO_BUILD ; do
19698 case "$a_binding" in
19699 ocaml)
19700 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019701 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19702echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019703 binding_prereqs_failed=1
19704 fi
19705 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019706 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19707echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019708 binding_prereqs_failed=1
19709 fi
19710 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019711 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19712echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019713 fi
19714 if test "x$with_ocaml_libdir" != xauto ; then
19715 OCAML_LIBDIR=$with_ocaml_libdir
19716
19717 else
19718 ocaml_stdlib="`"$OCAMLC" -where`"
19719 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19720 then
19721 # ocaml stdlib is beneath our prefix; use stdlib
19722 OCAML_LIBDIR=$ocaml_stdlib
19723
19724 else
19725 # ocaml stdlib is outside our prefix; use libdir/ocaml
19726 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19727
19728 fi
19729 fi
19730 ;;
19731 esac
19732done
19733if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019734 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19735echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19736 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019737fi
19738
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019739{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19740echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19741if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019743else
19744 ac_ext=cpp
19745ac_cpp='$CXXCPP $CPPFLAGS'
19746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19749
19750 oldcxxflags="$CXXFLAGS"
19751 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019752 cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019757/* end confdefs.h. */
19758
19759int
19760main ()
19761{
19762
19763 ;
19764 return 0;
19765}
19766_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019767rm -f conftest.$ac_objext
19768if { (ac_try="$ac_compile"
19769case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772esac
19773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest.$ac_objext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019801 llvm_cv_cxx_visibility_inlines_hidden=yes
19802else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019803 echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019807fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019808
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 CXXFLAGS="$oldcxxflags"
19811 ac_ext=c
19812ac_cpp='$CPP $CPPFLAGS'
19813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815ac_compiler_gnu=$ac_cv_c_compiler_gnu
19816
19817
19818fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019819{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19820echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019821if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19822 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19823
19824else
19825 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19826
19827fi
19828
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019829
Nick Lewycky6eab6652009-03-05 08:20:44 +000019830if test "$llvm_cv_link_use_r" = "yes" ; then
19831 RPATH="-Wl,-R"
19832else
19833 RPATH="-Wl,-rpath"
19834fi
19835
19836
19837if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19838 RDYNAMIC="-Wl,-export-dynamic"
19839else
19840 RDYNAMIC=""
19841fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000019842
19843
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019844
19845ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19846
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000019847ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19848
19849ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19850
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000019851ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19852
Daniel Dunbar0e18f262009-11-25 04:37:28 +000019853ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19854
Chandler Carruth1ec7df12009-10-26 01:35:46 +000019855ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019856
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019857
19858ac_config_files="$ac_config_files Makefile.config"
19859
19860
19861ac_config_files="$ac_config_files llvm.spec"
19862
19863
19864ac_config_files="$ac_config_files docs/doxygen.cfg"
19865
19866
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000019867ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19868
19869
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019870ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19871
19872
19873ac_config_commands="$ac_config_commands setup"
19874
19875ac_config_commands="$ac_config_commands Makefile"
19876
19877
19878ac_config_commands="$ac_config_commands Makefile.common"
19879
19880
19881ac_config_commands="$ac_config_commands examples/Makefile"
19882
19883
19884ac_config_commands="$ac_config_commands lib/Makefile"
19885
19886
19887ac_config_commands="$ac_config_commands runtime/Makefile"
19888
19889
19890ac_config_commands="$ac_config_commands test/Makefile"
19891
19892
19893ac_config_commands="$ac_config_commands test/Makefile.tests"
19894
19895
Bill Wendling9b9833f2009-01-04 23:12:30 +000019896ac_config_commands="$ac_config_commands unittests/Makefile"
19897
19898
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019899ac_config_commands="$ac_config_commands tools/Makefile"
19900
19901
19902ac_config_commands="$ac_config_commands utils/Makefile"
19903
19904
19905ac_config_commands="$ac_config_commands projects/Makefile"
19906
19907
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000019908ac_config_commands="$ac_config_commands bindings/Makefile"
19909
19910
19911ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19912
19913
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019914
19915cat >confcache <<\_ACEOF
19916# This file is a shell script that caches the results of configure
19917# tests run on this system so they can be shared between configure
19918# scripts and configure runs, see configure's option --config-cache.
19919# It is not useful on other systems. If it contains results you don't
19920# want to keep, you may remove or edit it.
19921#
19922# config.status only pays attention to the cache file if you give it
19923# the --recheck option to rerun configure.
19924#
19925# `ac_cv_env_foo' variables (set or unset) will be overridden when
19926# loading this file, other *unset* `ac_cv_foo' will be assigned the
19927# following values.
19928
19929_ACEOF
19930
19931# The following way of writing the cache mishandles newlines in values,
19932# but we know of no workaround that is simple, portable, and efficient.
19933# So, we kill variables containing newlines.
19934# Ultrix sh set writes to stderr and can't be redirected directly,
19935# and sets the high bit in the cache file unless we assign to the vars.
19936(
19937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19938 eval ac_val=\$$ac_var
19939 case $ac_val in #(
19940 *${as_nl}*)
19941 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019942 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19943echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019944 esac
19945 case $ac_var in #(
19946 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019947 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019948 esac ;;
19949 esac
19950 done
19951
19952 (set) 2>&1 |
19953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19954 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019955 # `set' does not quote correctly, so add quotes (double-quote
19956 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019957 sed -n \
19958 "s/'/'\\\\''/g;
19959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19960 ;; #(
19961 *)
19962 # `set' quotes correctly as required by POSIX, so do not add quotes.
19963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19964 ;;
19965 esac |
19966 sort
19967) |
19968 sed '
19969 /^ac_cv_env_/b end
19970 t clear
19971 :clear
19972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19973 t end
19974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19975 :end' >>confcache
19976if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19977 if test -w "$cache_file"; then
19978 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019979 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19980echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019981 cat confcache >$cache_file
19982 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019983 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19984echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019985 fi
19986fi
19987rm -f confcache
19988
19989test "x$prefix" = xNONE && prefix=$ac_default_prefix
19990# Let make expand exec_prefix.
19991test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19992
19993DEFS=-DHAVE_CONFIG_H
19994
19995ac_libobjs=
19996ac_ltlibobjs=
19997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19998 # 1. Remove the extension, and $U if already installed.
19999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020000 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20002 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020003 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20004 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020005done
20006LIBOBJS=$ac_libobjs
20007
20008LTLIBOBJS=$ac_ltlibobjs
20009
20010
20011if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020012 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20013Usually this means the macro was only invoked conditionally." >&5
20014echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20015Usually this means the macro was only invoked conditionally." >&2;}
20016 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020017fi
20018if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020019 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20020Usually this means the macro was only invoked conditionally." >&5
20021echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20022Usually this means the macro was only invoked conditionally." >&2;}
20023 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020024fi
20025
20026: ${CONFIG_STATUS=./config.status}
20027ac_clean_files_save=$ac_clean_files
20028ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020029{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20030echo "$as_me: creating $CONFIG_STATUS" >&6;}
20031cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020032#! $SHELL
20033# Generated by $as_me.
20034# Run this file to recreate the current configuration.
20035# Compiler output produced by configure, useful for debugging
20036# configure, is in config.log if it exists.
20037
20038debug=false
20039ac_cs_recheck=false
20040ac_cs_silent=false
20041SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020042_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020043
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020044cat >>$CONFIG_STATUS <<\_ACEOF
20045## --------------------- ##
20046## M4sh Initialization. ##
20047## --------------------- ##
20048
20049# Be Bourne compatible
20050if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020051 emulate sh
20052 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020053 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020054 # is contrary to our usage. Disable this feature.
20055 alias -g '${1+"$@"}'='"$@"'
20056 setopt NO_GLOB_SUBST
20057else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020058 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020059fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020060BIN_SH=xpg4; export BIN_SH # for Tru64
20061DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020062
20063
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020064# PATH needs CR
20065# Avoid depending upon Character Ranges.
20066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20069as_cr_digits='0123456789'
20070as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020071
20072# The user is always right.
20073if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020074 echo "#! /bin/sh" >conf$$.sh
20075 echo "exit 0" >>conf$$.sh
20076 chmod +x conf$$.sh
20077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20078 PATH_SEPARATOR=';'
20079 else
20080 PATH_SEPARATOR=:
20081 fi
20082 rm -f conf$$.sh
20083fi
20084
20085# Support unset when possible.
20086if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20087 as_unset=unset
20088else
20089 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020090fi
20091
20092
20093# IFS
20094# We need space, tab and new line, in precisely that order. Quoting is
20095# there to prevent editors from complaining about space-tab.
20096# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20097# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020098as_nl='
20099'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020100IFS=" "" $as_nl"
20101
20102# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020103case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020104 *[\\/]* ) as_myself=$0 ;;
20105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20106for as_dir in $PATH
20107do
20108 IFS=$as_save_IFS
20109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20111done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020112IFS=$as_save_IFS
20113
20114 ;;
20115esac
20116# We did not find ourselves, most probably we were run as `sh COMMAND'
20117# in which case we are not to be found in the path.
20118if test "x$as_myself" = x; then
20119 as_myself=$0
20120fi
20121if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020122 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20123 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020124fi
20125
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020126# Work around bugs in pre-3.0 UWIN ksh.
20127for as_var in ENV MAIL MAILPATH
20128do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020129done
20130PS1='$ '
20131PS2='> '
20132PS4='+ '
20133
20134# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020135for as_var in \
20136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20138 LC_TELEPHONE LC_TIME
20139do
20140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20141 eval $as_var=C; export $as_var
20142 else
20143 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000020144 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020145done
Edwin Törökc27310c2010-01-26 08:50:50 +000020146
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020147# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020148if expr a : '\(a\)' >/dev/null 2>&1 &&
20149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20150 as_expr=expr
20151else
20152 as_expr=false
20153fi
20154
20155if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20156 as_basename=basename
20157else
20158 as_basename=false
20159fi
20160
20161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020162# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020163as_me=`$as_basename -- "$0" ||
20164$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20165 X"$0" : 'X\(//\)$' \| \
20166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020167echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020168 sed '/^.*\/\([^/][^/]*\)\/*$/{
20169 s//\1/
20170 q
20171 }
20172 /^X\/\(\/\/\)$/{
20173 s//\1/
20174 q
20175 }
20176 /^X\/\(\/\).*/{
20177 s//\1/
20178 q
20179 }
20180 s/.*/./; q'`
20181
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020182# CDPATH.
20183$as_unset CDPATH
20184
20185
20186
20187 as_lineno_1=$LINENO
20188 as_lineno_2=$LINENO
20189 test "x$as_lineno_1" != "x$as_lineno_2" &&
20190 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20191
20192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20193 # uniformly replaced by the line number. The first 'sed' inserts a
20194 # line-number line after each line using $LINENO; the second 'sed'
20195 # does the real work. The second script uses 'N' to pair each
20196 # line-number line with the line containing $LINENO, and appends
20197 # trailing '-' during substitution so that $LINENO is not a special
20198 # case at line end.
20199 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20200 # scripts with optimization help from Paolo Bonzini. Blame Lee
20201 # E. McMahon (1931-1989) for sed's syntax. :-)
20202 sed -n '
20203 p
20204 /[$]LINENO/=
20205 ' <$as_myself |
20206 sed '
20207 s/[$]LINENO.*/&-/
20208 t lineno
20209 b
20210 :lineno
20211 N
20212 :loop
20213 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20214 t loop
20215 s/-\n.*//
20216 ' >$as_me.lineno &&
20217 chmod +x "$as_me.lineno" ||
20218 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20219 { (exit 1); exit 1; }; }
20220
20221 # Don't try to exec as it changes $[0], causing all sort of problems
20222 # (the dirname of $[0] is not the place where we might find the
20223 # original and so on. Autoconf is especially sensitive to this).
20224 . "./$as_me.lineno"
20225 # Exit status is that of the last command.
20226 exit
20227}
20228
20229
20230if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20231 as_dirname=dirname
20232else
20233 as_dirname=false
20234fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020235
20236ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020237case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020238-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020239 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020240 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020241 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020242 esac;;
20243*)
20244 ECHO_N='-n';;
20245esac
20246
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020247if expr a : '\(a\)' >/dev/null 2>&1 &&
20248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20249 as_expr=expr
20250else
20251 as_expr=false
20252fi
20253
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020254rm -f conf$$ conf$$.exe conf$$.file
20255if test -d conf$$.dir; then
20256 rm -f conf$$.dir/conf$$.file
20257else
20258 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020259 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020260fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020261echo >conf$$.file
20262if ln -s conf$$.file conf$$ 2>/dev/null; then
20263 as_ln_s='ln -s'
20264 # ... but there are two gotchas:
20265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20267 # In both cases, we have to default to `cp -p'.
20268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020269 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020270elif ln conf$$.file conf$$ 2>/dev/null; then
20271 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020272else
20273 as_ln_s='cp -p'
20274fi
20275rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20276rmdir conf$$.dir 2>/dev/null
20277
20278if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020279 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020280else
20281 test -d ./-p && rmdir ./-p
20282 as_mkdir_p=false
20283fi
20284
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020285# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20286# systems may use methods other than mode bits to determine executability.
20287cat >conf$$.file <<_ASEOF
20288#! /bin/sh
20289exit 0
20290_ASEOF
20291chmod +x conf$$.file
20292if test -x conf$$.file >/dev/null 2>&1; then
20293 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020294else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020295 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020296fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020297rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020298
20299# Sed expression to map a string onto a valid CPP name.
20300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20301
20302# Sed expression to map a string onto a valid variable name.
20303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20304
20305
20306exec 6>&1
20307
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020308# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020309# report actual input values of CONFIG_FILES etc. instead of their
20310# values after options handling.
20311ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020312This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020313generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020314
20315 CONFIG_FILES = $CONFIG_FILES
20316 CONFIG_HEADERS = $CONFIG_HEADERS
20317 CONFIG_LINKS = $CONFIG_LINKS
20318 CONFIG_COMMANDS = $CONFIG_COMMANDS
20319 $ $0 $@
20320
20321on `(hostname || uname -n) 2>/dev/null | sed 1q`
20322"
20323
20324_ACEOF
20325
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020326cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020327# Files that config.status was made for.
20328config_files="$ac_config_files"
20329config_headers="$ac_config_headers"
20330config_commands="$ac_config_commands"
20331
20332_ACEOF
20333
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020334cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020335ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020336\`$as_me' instantiates files from templates according to the
20337current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020338
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020339Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020340
20341 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020342 -V, --version print version number, then exit
20343 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020344 -d, --debug don't remove temporary files
20345 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020346 --file=FILE[:TEMPLATE]
20347 instantiate the configuration file FILE
20348 --header=FILE[:TEMPLATE]
20349 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020350
20351Configuration files:
20352$config_files
20353
20354Configuration headers:
20355$config_headers
20356
20357Configuration commands:
20358$config_commands
20359
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020360Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020361
20362_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020363cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020364ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020365llvm config.status 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020366configured by $0, generated by GNU Autoconf 2.60,
20367 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020368
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020369Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020370This config.status script is free software; the Free Software Foundation
20371gives unlimited permission to copy, distribute and modify it."
20372
20373ac_pwd='$ac_pwd'
20374srcdir='$srcdir'
20375INSTALL='$INSTALL'
20376_ACEOF
20377
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020378cat >>$CONFIG_STATUS <<\_ACEOF
20379# If no file are specified by the user, then we need to provide default
20380# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020381ac_need_defaults=:
20382while test $# != 0
20383do
20384 case $1 in
20385 --*=*)
20386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20388 ac_shift=:
20389 ;;
20390 *)
20391 ac_option=$1
20392 ac_optarg=$2
20393 ac_shift=shift
20394 ;;
20395 esac
20396
20397 case $ac_option in
20398 # Handling of the options.
20399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20400 ac_cs_recheck=: ;;
20401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020402 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020403 --debug | --debu | --deb | --de | --d | -d )
20404 debug=: ;;
20405 --file | --fil | --fi | --f )
20406 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020407 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020408 ac_need_defaults=false;;
20409 --header | --heade | --head | --hea )
20410 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020411 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020412 ac_need_defaults=false;;
20413 --he | --h)
20414 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020415 { echo "$as_me: error: ambiguous option: $1
20416Try \`$0 --help' for more information." >&2
20417 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020418 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020419 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20422 ac_cs_silent=: ;;
20423
20424 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020425 -*) { echo "$as_me: error: unrecognized option: $1
20426Try \`$0 --help' for more information." >&2
20427 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020428
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020429 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020430 ac_need_defaults=false ;;
20431
20432 esac
20433 shift
20434done
20435
20436ac_configure_extra_args=
20437
20438if $ac_cs_silent; then
20439 exec 6>/dev/null
20440 ac_configure_extra_args="$ac_configure_extra_args --silent"
20441fi
20442
20443_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020444cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020445if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020446 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20447 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020448 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020449 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020450fi
20451
20452_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020453cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020454exec 5>>config.log
20455{
20456 echo
20457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20458## Running $as_me. ##
20459_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020460 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020461} >&5
20462
20463_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020464cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020465#
20466# INIT-COMMANDS
20467#
20468llvm_src="${srcdir}"
20469
20470_ACEOF
20471
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020472cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020473
20474# Handling of arguments.
20475for ac_config_target in $ac_config_targets
20476do
20477 case $ac_config_target in
20478 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020479 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20480 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020481 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020482 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020483 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020484 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20485 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20486 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020487 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020488 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20489 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20490 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20491 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20492 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20493 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20494 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20495 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20496 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000020497 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020498 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20499 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20500 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020501 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20502 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020503
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020504 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20505echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20506 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020507 esac
20508done
20509
20510
20511# If the user did not use the arguments to specify the items to instantiate,
20512# then the envvar interface is used. Set only those that are not.
20513# We use the long form for the default assignment because of an extremely
20514# bizarre bug on SunOS 4.1.3.
20515if $ac_need_defaults; then
20516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20519fi
20520
20521# Have a temporary directory for convenience. Make it in the build tree
20522# simply because there is no reason against having it here, and in addition,
20523# creating and moving files from /tmp can sometimes cause problems.
20524# Hook for its removal unless debugging.
20525# Note that there is a small window in which the directory will not be cleaned:
20526# after its creation but before its name has been assigned to `$tmp'.
20527$debug ||
20528{
20529 tmp=
20530 trap 'exit_status=$?
20531 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20532' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020533 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020534}
20535# Create a (secure) tmp directory for tmp files.
20536
20537{
20538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20539 test -n "$tmp" && test -d "$tmp"
20540} ||
20541{
20542 tmp=./conf$$-$RANDOM
20543 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020544} ||
20545{
20546 echo "$me: cannot create a temporary directory in ." >&2
20547 { (exit 1); exit 1; }
20548}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020549
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020550#
20551# Set up the sed scripts for CONFIG_FILES section.
20552#
20553
20554# No need to generate the scripts if there are no CONFIG_FILES.
20555# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020556if test -n "$CONFIG_FILES"; then
20557
20558_ACEOF
20559
20560
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020561
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020562ac_delim='%!_!# '
20563for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020564 cat >conf$$subs.sed <<_ACEOF
20565SHELL!$SHELL$ac_delim
20566PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20567PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20568PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20569PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20570PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20571PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20572exec_prefix!$exec_prefix$ac_delim
20573prefix!$prefix$ac_delim
20574program_transform_name!$program_transform_name$ac_delim
20575bindir!$bindir$ac_delim
20576sbindir!$sbindir$ac_delim
20577libexecdir!$libexecdir$ac_delim
20578datarootdir!$datarootdir$ac_delim
20579datadir!$datadir$ac_delim
20580sysconfdir!$sysconfdir$ac_delim
20581sharedstatedir!$sharedstatedir$ac_delim
20582localstatedir!$localstatedir$ac_delim
20583includedir!$includedir$ac_delim
20584oldincludedir!$oldincludedir$ac_delim
20585docdir!$docdir$ac_delim
20586infodir!$infodir$ac_delim
20587htmldir!$htmldir$ac_delim
20588dvidir!$dvidir$ac_delim
20589pdfdir!$pdfdir$ac_delim
20590psdir!$psdir$ac_delim
20591libdir!$libdir$ac_delim
20592localedir!$localedir$ac_delim
20593mandir!$mandir$ac_delim
20594DEFS!$DEFS$ac_delim
20595ECHO_C!$ECHO_C$ac_delim
20596ECHO_N!$ECHO_N$ac_delim
20597ECHO_T!$ECHO_T$ac_delim
20598LIBS!$LIBS$ac_delim
20599build_alias!$build_alias$ac_delim
20600host_alias!$host_alias$ac_delim
20601target_alias!$target_alias$ac_delim
20602LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20603subdirs!$subdirs$ac_delim
20604build!$build$ac_delim
20605build_cpu!$build_cpu$ac_delim
20606build_vendor!$build_vendor$ac_delim
20607build_os!$build_os$ac_delim
20608host!$host$ac_delim
20609host_cpu!$host_cpu$ac_delim
20610host_vendor!$host_vendor$ac_delim
20611host_os!$host_os$ac_delim
20612target!$target$ac_delim
20613target_cpu!$target_cpu$ac_delim
20614target_vendor!$target_vendor$ac_delim
20615target_os!$target_os$ac_delim
20616OS!$OS$ac_delim
20617HOST_OS!$HOST_OS$ac_delim
20618TARGET_OS!$TARGET_OS$ac_delim
20619LINKALL!$LINKALL$ac_delim
20620NOLINKALL!$NOLINKALL$ac_delim
20621LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20622LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20623ARCH!$ARCH$ac_delim
20624ENDIAN!$ENDIAN$ac_delim
20625CC!$CC$ac_delim
20626CFLAGS!$CFLAGS$ac_delim
20627LDFLAGS!$LDFLAGS$ac_delim
20628CPPFLAGS!$CPPFLAGS$ac_delim
20629ac_ct_CC!$ac_ct_CC$ac_delim
20630EXEEXT!$EXEEXT$ac_delim
20631OBJEXT!$OBJEXT$ac_delim
20632CPP!$CPP$ac_delim
20633GREP!$GREP$ac_delim
20634EGREP!$EGREP$ac_delim
20635LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20636BUILD_CC!$BUILD_CC$ac_delim
20637BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20638BUILD_CXX!$BUILD_CXX$ac_delim
20639CVSBUILD!$CVSBUILD$ac_delim
20640ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20641ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20642DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20643ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20644EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20645DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20646DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20647JIT!$JIT$ac_delim
20648TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20649ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20650ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20651ENABLE_PIC!$ENABLE_PIC$ac_delim
20652TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20653LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20654LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20655LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20656LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20657ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20658OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20659EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20660BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin30f2e642010-02-18 04:43:02 +000020661ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020662_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020663
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020665 break
20666 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20668echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20669 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020670 else
20671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20672 fi
20673done
20674
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020675ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20676if test -n "$ac_eof"; then
20677 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20678 ac_eof=`expr $ac_eof + 1`
20679fi
20680
20681cat >>$CONFIG_STATUS <<_ACEOF
20682cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020684_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020685sed '
20686s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20687s/^/s,@/; s/!/@,|#_!!_#|/
20688:n
20689t n
20690s/'"$ac_delim"'$/,g/; t
20691s/$/\\/; p
20692N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20693' >>$CONFIG_STATUS <conf$$subs.sed
20694rm -f conf$$subs.sed
20695cat >>$CONFIG_STATUS <<_ACEOF
20696CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020697_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020698
20699
20700ac_delim='%!_!# '
20701for ac_last_try in false false false false false :; do
20702 cat >conf$$subs.sed <<_ACEOF
20703ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20704CXX!$CXX$ac_delim
20705CXXFLAGS!$CXXFLAGS$ac_delim
20706ac_ct_CXX!$ac_ct_CXX$ac_delim
20707NM!$NM$ac_delim
20708ifGNUmake!$ifGNUmake$ac_delim
20709LN_S!$LN_S$ac_delim
20710CMP!$CMP$ac_delim
20711CP!$CP$ac_delim
20712DATE!$DATE$ac_delim
20713FIND!$FIND$ac_delim
20714MKDIR!$MKDIR$ac_delim
20715MV!$MV$ac_delim
20716RANLIB!$RANLIB$ac_delim
20717AR!$AR$ac_delim
20718RM!$RM$ac_delim
20719SED!$SED$ac_delim
20720TAR!$TAR$ac_delim
20721BINPWD!$BINPWD$ac_delim
20722GRAPHVIZ!$GRAPHVIZ$ac_delim
20723DOT!$DOT$ac_delim
20724FDP!$FDP$ac_delim
20725NEATO!$NEATO$ac_delim
20726TWOPI!$TWOPI$ac_delim
20727CIRCO!$CIRCO$ac_delim
20728GV!$GV$ac_delim
20729DOTTY!$DOTTY$ac_delim
20730PERL!$PERL$ac_delim
20731HAVE_PERL!$HAVE_PERL$ac_delim
20732INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20733INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20734INSTALL_DATA!$INSTALL_DATA$ac_delim
20735BZIP2!$BZIP2$ac_delim
20736DOXYGEN!$DOXYGEN$ac_delim
20737GROFF!$GROFF$ac_delim
20738GZIP!$GZIP$ac_delim
20739POD2HTML!$POD2HTML$ac_delim
20740POD2MAN!$POD2MAN$ac_delim
20741RUNTEST!$RUNTEST$ac_delim
20742TCLSH!$TCLSH$ac_delim
20743ZIP!$ZIP$ac_delim
20744OCAMLC!$OCAMLC$ac_delim
20745OCAMLOPT!$OCAMLOPT$ac_delim
20746OCAMLDEP!$OCAMLDEP$ac_delim
20747OCAMLDOC!$OCAMLDOC$ac_delim
20748GAS!$GAS$ac_delim
20749INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20750INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20751CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20752CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20753LIBADD_DL!$LIBADD_DL$ac_delim
20754LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20755LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20756LLVMGCC!$LLVMGCC$ac_delim
20757LLVMGXX!$LLVMGXX$ac_delim
20758NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20759NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20760USE_UDIS86!$USE_UDIS86$ac_delim
20761USE_OPROFILE!$USE_OPROFILE$ac_delim
20762HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20763HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20764MMAP_FILE!$MMAP_FILE$ac_delim
20765LLVMCC1!$LLVMCC1$ac_delim
20766LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20767LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20768LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20769LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020770LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20771SHLIBEXT!$SHLIBEXT$ac_delim
20772LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20773LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20774LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20775LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20776LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20777LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20778LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20779LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20780LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20781LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20782BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20783ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20784OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20785ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20786RPATH!$RPATH$ac_delim
20787RDYNAMIC!$RDYNAMIC$ac_delim
20788LIBOBJS!$LIBOBJS$ac_delim
20789LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020790_ACEOF
20791
Daniel Dunbar62970842010-02-23 07:56:22 +000020792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020793 break
20794 elif $ac_last_try; then
20795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20796echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20797 { (exit 1); exit 1; }; }
20798 else
20799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20800 fi
20801done
20802
20803ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20804if test -n "$ac_eof"; then
20805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20806 ac_eof=`expr $ac_eof + 1`
20807fi
20808
20809cat >>$CONFIG_STATUS <<_ACEOF
20810cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20812_ACEOF
20813sed '
20814s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20815s/^/s,@/; s/!/@,|#_!!_#|/
20816:n
20817t n
20818s/'"$ac_delim"'$/,g/; t
20819s/$/\\/; p
20820N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20821' >>$CONFIG_STATUS <conf$$subs.sed
20822rm -f conf$$subs.sed
20823cat >>$CONFIG_STATUS <<_ACEOF
20824:end
20825s/|#_!!_#|//g
20826CEOF$ac_eof
20827_ACEOF
20828
20829
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020830# VPATH may cause trouble with some makes, so we remove $(srcdir),
20831# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20832# trailing colons and then remove the whole line if VPATH becomes empty
20833# (actually we leave an empty line to preserve line numbers).
20834if test "x$srcdir" = x.; then
20835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20836s/:*\$(srcdir):*/:/
20837s/:*\${srcdir}:*/:/
20838s/:*@srcdir@:*/:/
20839s/^\([^=]*=[ ]*\):*/\1/
20840s/:*$//
20841s/^[^=]*=[ ]*$//
20842}'
20843fi
20844
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020845cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020846fi # test -n "$CONFIG_FILES"
20847
20848
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020849for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020850do
20851 case $ac_tag in
20852 :[FHLC]) ac_mode=$ac_tag; continue;;
20853 esac
20854 case $ac_mode$ac_tag in
20855 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020856 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20857echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20858 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020859 :[FH]-) ac_tag=-:-;;
20860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20861 esac
20862 ac_save_IFS=$IFS
20863 IFS=:
20864 set x $ac_tag
20865 IFS=$ac_save_IFS
20866 shift
20867 ac_file=$1
20868 shift
20869
20870 case $ac_mode in
20871 :L) ac_source=$1;;
20872 :[FH])
20873 ac_file_inputs=
20874 for ac_f
20875 do
20876 case $ac_f in
20877 -) ac_f="$tmp/stdin";;
20878 *) # Look for the file first in the build tree, then in the source tree
20879 # (if the path is not absolute). The absolute path cannot be DOS-style,
20880 # because $ac_f cannot contain `:'.
20881 test -f "$ac_f" ||
20882 case $ac_f in
20883 [\\/$]*) false;;
20884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20885 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20887echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20888 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020889 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020890 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020891 done
20892
20893 # Let's still pretend it is `configure' which instantiates (i.e., don't
20894 # use $as_me), people would be surprised to read:
20895 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020896 configure_input="Generated from "`IFS=:
20897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020898 if test x"$ac_file" != x-; then
20899 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020900 { echo "$as_me:$LINENO: creating $ac_file" >&5
20901echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020902 fi
20903
20904 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020905 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020906 esac
20907 ;;
20908 esac
20909
20910 ac_dir=`$as_dirname -- "$ac_file" ||
20911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20912 X"$ac_file" : 'X\(//\)[^/]' \| \
20913 X"$ac_file" : 'X\(//\)$' \| \
20914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020915echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20917 s//\1/
20918 q
20919 }
20920 /^X\(\/\/\)[^/].*/{
20921 s//\1/
20922 q
20923 }
20924 /^X\(\/\/\)$/{
20925 s//\1/
20926 q
20927 }
20928 /^X\(\/\).*/{
20929 s//\1/
20930 q
20931 }
20932 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020933 { as_dir="$ac_dir"
20934 case $as_dir in #(
20935 -*) as_dir=./$as_dir;;
20936 esac
20937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20938 as_dirs=
20939 while :; do
20940 case $as_dir in #(
20941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20942 *) as_qdir=$as_dir;;
20943 esac
20944 as_dirs="'$as_qdir' $as_dirs"
20945 as_dir=`$as_dirname -- "$as_dir" ||
20946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20947 X"$as_dir" : 'X\(//\)[^/]' \| \
20948 X"$as_dir" : 'X\(//\)$' \| \
20949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20950echo X"$as_dir" |
20951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20952 s//\1/
20953 q
20954 }
20955 /^X\(\/\/\)[^/].*/{
20956 s//\1/
20957 q
20958 }
20959 /^X\(\/\/\)$/{
20960 s//\1/
20961 q
20962 }
20963 /^X\(\/\).*/{
20964 s//\1/
20965 q
20966 }
20967 s/.*/./; q'`
20968 test -d "$as_dir" && break
20969 done
20970 test -z "$as_dirs" || eval "mkdir $as_dirs"
20971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20972echo "$as_me: error: cannot create directory $as_dir" >&2;}
20973 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020974 ac_builddir=.
20975
20976case "$ac_dir" in
20977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020980 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020982 case $ac_top_builddir_sub in
20983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20985 esac ;;
20986esac
20987ac_abs_top_builddir=$ac_pwd
20988ac_abs_builddir=$ac_pwd$ac_dir_suffix
20989# for backward compatibility:
20990ac_top_builddir=$ac_top_build_prefix
20991
20992case $srcdir in
20993 .) # We are building in place.
20994 ac_srcdir=.
20995 ac_top_srcdir=$ac_top_builddir_sub
20996 ac_abs_top_srcdir=$ac_pwd ;;
20997 [\\/]* | ?:[\\/]* ) # Absolute name.
20998 ac_srcdir=$srcdir$ac_dir_suffix;
20999 ac_top_srcdir=$srcdir
21000 ac_abs_top_srcdir=$srcdir ;;
21001 *) # Relative name.
21002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21003 ac_top_srcdir=$ac_top_build_prefix$srcdir
21004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21005esac
21006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21007
21008
21009 case $ac_mode in
21010 :F)
21011 #
21012 # CONFIG_FILE
21013 #
21014
21015 case $INSTALL in
21016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21018 esac
21019_ACEOF
21020
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021021cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021022# If the template does not know about datarootdir, expand it.
21023# FIXME: This hack should be removed a few years after 2.60.
21024ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021025
21026case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021027 p
21028 q
21029}
21030/@datadir@/p
21031/@docdir@/p
21032/@infodir@/p
21033/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021034/@mandir@/p
21035' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021036*datarootdir*) ac_datarootdir_seen=yes;;
21037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021038 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21039echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021040_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021041cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021042 ac_datarootdir_hack='
21043 s&@datadir@&$datadir&g
21044 s&@docdir@&$docdir&g
21045 s&@infodir@&$infodir&g
21046 s&@localedir@&$localedir&g
21047 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021048 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021049esac
21050_ACEOF
21051
21052# Neutralize VPATH when `$srcdir' = `.'.
21053# Shell code in configure.ac might set extrasub.
21054# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021055cat >>$CONFIG_STATUS <<_ACEOF
21056 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021057$extrasub
21058_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021059cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021060:t
21061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021062s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021063s&@top_builddir@&$ac_top_builddir_sub&;t t
21064s&@srcdir@&$ac_srcdir&;t t
21065s&@abs_srcdir@&$ac_abs_srcdir&;t t
21066s&@top_srcdir@&$ac_top_srcdir&;t t
21067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21068s&@builddir@&$ac_builddir&;t t
21069s&@abs_builddir@&$ac_abs_builddir&;t t
21070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21071s&@INSTALL@&$ac_INSTALL&;t t
21072$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021073" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021074
21075test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021079which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021080echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021081which seems to be undefined. Please make sure it is defined." >&2;}
21082
21083 rm -f "$tmp/stdin"
21084 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021085 -) cat "$tmp/out"; rm -f "$tmp/out";;
21086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21087 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021088 ;;
21089 :H)
21090 #
21091 # CONFIG_HEADER
21092 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021093_ACEOF
21094
21095# Transform confdefs.h into a sed script `conftest.defines', that
21096# substitutes the proper values into config.h.in to produce config.h.
21097rm -f conftest.defines conftest.tail
21098# First, append a space to every undef/define line, to ease matching.
21099echo 's/$/ /' >conftest.defines
21100# Then, protect against being on the right side of a sed subst, or in
21101# an unquoted here document, in config.status. If some macros were
21102# called several times there might be several #defines for the same
21103# symbol, which is useless. But do not sort them, since the last
21104# AC_DEFINE must be honored.
21105ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21106# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21107# NAME is the cpp macro being defined, VALUE is the value it is being given.
21108# PARAMS is the parameter list in the macro definition--in most cases, it's
21109# just an empty string.
21110ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21111ac_dB='\\)[ (].*,\\1define\\2'
21112ac_dC=' '
21113ac_dD=' ,'
21114
21115uniq confdefs.h |
21116 sed -n '
21117 t rset
21118 :rset
21119 s/^[ ]*#[ ]*define[ ][ ]*//
21120 t ok
21121 d
21122 :ok
21123 s/[\\&,]/\\&/g
21124 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21125 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21126 ' >>conftest.defines
21127
21128# Remove the space that was appended to ease matching.
21129# Then replace #undef with comments. This is necessary, for
21130# example, in the case of _POSIX_SOURCE, which is predefined and required
21131# on some systems where configure will not decide to define it.
21132# (The regexp can be short, since the line contains either #define or #undef.)
21133echo 's/ $//
21134s,^[ #]*u.*,/* & */,' >>conftest.defines
21135
21136# Break up conftest.defines:
21137ac_max_sed_lines=50
21138
21139# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21140# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21141# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21142# et cetera.
21143ac_in='$ac_file_inputs'
21144ac_out='"$tmp/out1"'
21145ac_nxt='"$tmp/out2"'
21146
21147while :
21148do
21149 # Write a here document:
21150 cat >>$CONFIG_STATUS <<_ACEOF
21151 # First, check the format of the line:
21152 cat >"\$tmp/defines.sed" <<\\CEOF
21153/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21154/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21155b
21156:def
21157_ACEOF
21158 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21159 echo 'CEOF
21160 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21161 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21162 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21163 grep . conftest.tail >/dev/null || break
21164 rm -f conftest.defines
21165 mv conftest.tail conftest.defines
21166done
21167rm -f conftest.defines conftest.tail
21168
21169echo "ac_result=$ac_in" >>$CONFIG_STATUS
21170cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021171 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021172 echo "/* $configure_input */" >"$tmp/config.h"
21173 cat "$ac_result" >>"$tmp/config.h"
21174 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21176echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021177 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021178 rm -f $ac_file
21179 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021180 fi
21181 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021182 echo "/* $configure_input */"
21183 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021184 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021185 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021186 ;;
21187
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021188 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21189echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021190 ;;
21191 esac
21192
21193
21194 case $ac_file$ac_mode in
21195 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021197 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000021198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021199 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021201 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021203 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021205 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021207 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000021208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021209 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021211 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021213 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021215 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021216 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021217 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021218 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021219 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000021220 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021221
21222 esac
21223done # for ac_tag
21224
21225
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021226{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021227_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021228chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021229ac_clean_files=$ac_clean_files_save
21230
21231
21232# configure is writing to config.log, and then calls config.status.
21233# config.status does its own redirection, appending to config.log.
21234# Unfortunately, on DOS this fails, as config.log is still kept open
21235# by configure, so config.status won't be able to write to it; its
21236# output is simply discarded. So we exec the FD to /dev/null,
21237# effectively closing config.log, so it can be properly (re)opened and
21238# appended to by config.status. When coming back to configure, we
21239# need to make the FD available again.
21240if test "$no_create" != yes; then
21241 ac_cs_success=:
21242 ac_config_status_args=
21243 test "$silent" = yes &&
21244 ac_config_status_args="$ac_config_status_args --quiet"
21245 exec 5>/dev/null
21246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21247 exec 5>>config.log
21248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21249 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021250 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021251fi
21252
21253#
21254# CONFIG_SUBDIRS section.
21255#
21256if test "$no_recursion" != yes; then
21257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021258 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021259 ac_sub_configure_args=
21260 ac_prev=
21261 eval "set x $ac_configure_args"
21262 shift
21263 for ac_arg
21264 do
21265 if test -n "$ac_prev"; then
21266 ac_prev=
21267 continue
21268 fi
21269 case $ac_arg in
21270 -cache-file | --cache-file | --cache-fil | --cache-fi \
21271 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21272 ac_prev=cache_file ;;
21273 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21274 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21275 | --c=*)
21276 ;;
21277 --config-cache | -C)
21278 ;;
21279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21280 ac_prev=srcdir ;;
21281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21282 ;;
21283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21284 ac_prev=prefix ;;
21285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21286 ;;
21287 *)
21288 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021289 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021290 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021291 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021292 esac
21293 done
21294
21295 # Always prepend --prefix to ensure using the same prefix
21296 # in subdir configurations.
21297 ac_arg="--prefix=$prefix"
21298 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021299 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021300 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021301 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021302
21303 ac_popdir=`pwd`
21304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21305
21306 # Do not complain, so a configure script can configure whichever
21307 # parts of a large source tree are present.
21308 test -d "$srcdir/$ac_dir" || continue
21309
21310 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021311 echo "$as_me:$LINENO: $ac_msg" >&5
21312 echo "$ac_msg" >&6
21313 { as_dir="$ac_dir"
21314 case $as_dir in #(
21315 -*) as_dir=./$as_dir;;
21316 esac
21317 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21318 as_dirs=
21319 while :; do
21320 case $as_dir in #(
21321 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21322 *) as_qdir=$as_dir;;
21323 esac
21324 as_dirs="'$as_qdir' $as_dirs"
21325 as_dir=`$as_dirname -- "$as_dir" ||
21326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$as_dir" : 'X\(//\)[^/]' \| \
21328 X"$as_dir" : 'X\(//\)$' \| \
21329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21330echo X"$as_dir" |
21331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21332 s//\1/
21333 q
21334 }
21335 /^X\(\/\/\)[^/].*/{
21336 s//\1/
21337 q
21338 }
21339 /^X\(\/\/\)$/{
21340 s//\1/
21341 q
21342 }
21343 /^X\(\/\).*/{
21344 s//\1/
21345 q
21346 }
21347 s/.*/./; q'`
21348 test -d "$as_dir" && break
21349 done
21350 test -z "$as_dirs" || eval "mkdir $as_dirs"
21351 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21352echo "$as_me: error: cannot create directory $as_dir" >&2;}
21353 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021354 ac_builddir=.
21355
21356case "$ac_dir" in
21357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21358*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021360 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021362 case $ac_top_builddir_sub in
21363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21365 esac ;;
21366esac
21367ac_abs_top_builddir=$ac_pwd
21368ac_abs_builddir=$ac_pwd$ac_dir_suffix
21369# for backward compatibility:
21370ac_top_builddir=$ac_top_build_prefix
21371
21372case $srcdir in
21373 .) # We are building in place.
21374 ac_srcdir=.
21375 ac_top_srcdir=$ac_top_builddir_sub
21376 ac_abs_top_srcdir=$ac_pwd ;;
21377 [\\/]* | ?:[\\/]* ) # Absolute name.
21378 ac_srcdir=$srcdir$ac_dir_suffix;
21379 ac_top_srcdir=$srcdir
21380 ac_abs_top_srcdir=$srcdir ;;
21381 *) # Relative name.
21382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21383 ac_top_srcdir=$ac_top_build_prefix$srcdir
21384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21385esac
21386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21387
21388
21389 cd "$ac_dir"
21390
21391 # Check for guested configure; otherwise get Cygnus style configure.
21392 if test -f "$ac_srcdir/configure.gnu"; then
21393 ac_sub_configure=$ac_srcdir/configure.gnu
21394 elif test -f "$ac_srcdir/configure"; then
21395 ac_sub_configure=$ac_srcdir/configure
21396 elif test -f "$ac_srcdir/configure.in"; then
21397 # This should be Cygnus configure.
21398 ac_sub_configure=$ac_aux_dir/configure
21399 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21401echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021402 ac_sub_configure=
21403 fi
21404
21405 # The recursion is here.
21406 if test -n "$ac_sub_configure"; then
21407 # Make the cache file name correct relative to the subdirectory.
21408 case $cache_file in
21409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21410 *) # Relative name.
21411 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21412 esac
21413
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021414 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21415echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021416 # The eval makes quoting arguments work.
21417 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21418 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21420echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21421 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021422 fi
21423
21424 cd "$ac_popdir"
21425 done
21426fi
21427