blob: 82aaccdb04dae75559aef0ab4dd579c767254d2b [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerb072da72010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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#
John Criswell49428a22010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 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
Daniel Dunbar41bab122010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018if 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 Lattnerb072da72010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
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
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +0000692ENABLE_SHARED
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000761LLVMCC_OPTION
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000772LLVMGCC_LANGS
773SHLIBEXT
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000793ac_subst_files=''
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000804CCC'
John Criswellc0c57d62010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000811projects/privbracket
812projects/llvm-stacker
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000813projects/llvm-reopt
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell20b815d2010-02-25 22:57:19 +0000816projects/safecode
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817projects/llvm-kernel'
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001200fi
1201
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207do
1208 eval ac_val=\$$ac_var
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001289fi
1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Tanya Lattnerb072da72010-03-19 21:22:13 +00001319\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001341 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001343 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Tanya Lattnerb072da72010-03-19 21:22:13 +00001385 short | recursive ) echo "Configuration of llvm 2.8svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001396 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001407 is YES)
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00001408 --enable-shared Build a shared library and link tools against it
1409 (default is NO)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1416 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001419 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1421 Win32)
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001424 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001460
1461Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
Tanya Lattnerb072da72010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001538
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543
John Criswell49428a22010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001545_ACEOF
1546 exit
1547fi
1548cat >config.log <<_ACEOF
1549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerb072da72010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001554
1555 $ $0 $@
1556
1557_ACEOF
1558exec 5>>config.log
1559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001591IFS=$as_save_IFS
1592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
1607# Strip out --silent because we don't want to record it for future runs.
1608# Also quote any args containing shell meta-characters.
1609# Make two passes to allow for proper duplicate-argument suppression.
1610ac_configure_args=
1611ac_configure_args0=
1612ac_configure_args1=
1613ac_must_keep_next=false
1614for ac_pass in 1 2
1615do
1616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001628 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1644 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001646 ;;
1647 esac
1648 done
1649done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
1656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
1662
1663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001682 esac ;;
1683 esac
1684 done
1685 (set) 2>&1 |
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1688 sed -n \
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
1692 *)
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694 ;;
1695 esac |
1696 sort
1697)
1698 echo
1699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
1708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001711 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
1718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
1721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001728 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001730 done | sort
1731 echo
1732 fi
1733
1734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
1741 cat confdefs.h
1742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001747 } >&5
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 exit $exit_status
1751' 0
1752for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
1758rm -f -r conftest* confdefs.h
1759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001766
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001771
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001776
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001781
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001793else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001796fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001799do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001814 case $cache_file in
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1817 esac
1818 fi
1819else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
1828for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001872fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001897
1898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell49428a22010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001907
1908
1909
1910
1911
1912
1913
1914ac_aux_dir=
1915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001934fi
1935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
1944
1945
1946if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001951 fi
1952fi
1953
John Criswellc0c57d62010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001981for i in `ls ${srcdir}/projects`
1982do
1983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
1985 CVS) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001987 ;;
1988 privbracket) subdirs="$subdirs projects/privbracket"
1989 ;;
1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 ;;
1996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 ;;
John Criswell20b815d2010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2001 ;;
John Criswella43f5df2010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002007 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002010 ;;
2011 esac
2012 fi
2013done
2014
2015
2016# Make sure we can run config.sub.
2017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002021
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002026else
2027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002038
2039fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002047esac
2048build=$ac_cv_build
2049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060
2061
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002066else
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002074fi
2075
2076fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002084esac
2085host=$ac_cv_host
2086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2097
2098
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002103else
2104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002111fi
2112
2113fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002121esac
2122target=$ac_cv_target
2123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002147else
2148 case $host in
2149 *-*-aix*)
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="AIX"
2153 llvm_cv_platform_type="Unix" ;;
2154 *-*-irix*)
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="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-cygwin*)
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="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
2165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar41bab122010-04-10 18:56:24 +00002169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002174 *-*-freebsd*)
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-openbsd*)
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="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-netbsd*)
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="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002189 *-*-dragonfly*)
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="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002194 *-*-hpux*)
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="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-interix*)
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="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002219 *-*-win32*)
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002244 *)
2245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
2247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
2249esac
2250fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002253
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002258else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar41bab122010-04-10 18:56:24 +00002268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2296 *)
2297 llvm_cv_target_os_type="Unknown" ;;
2298esac
2299fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002302
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002307fi
2308
2309OS=$llvm_cv_os_type
2310
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002311HOST_OS=$llvm_cv_os_type
2312
2313TARGET_OS=$llvm_cv_target_os_type
2314
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002315
2316LINKALL=$llvm_cv_link_all_option
2317
2318NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
2321case $llvm_cv_platform_type in
2322 Unix)
2323
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_UNIX 1
2326_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002327
2328 LLVM_ON_UNIX=1
2329
2330 LLVM_ON_WIN32=0
2331
2332 ;;
2333 Win32)
2334
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002335cat >>confdefs.h <<\_ACEOF
2336#define LLVM_ON_WIN32 1
2337_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002338
2339 LLVM_ON_UNIX=0
2340
2341 LLVM_ON_WIN32=1
2342
2343 ;;
2344esac
2345
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: checking target architecture" >&5
2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002350else
2351 case $target in
2352 i?86-*) llvm_cv_target_arch="x86" ;;
2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002357 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002358 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002359 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002360 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002361 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00002364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002365 *) llvm_cv_target_arch="Unknown" ;;
2366esac
2367fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002370
2371if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002374fi
2375
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002376# Determine the LLVM native architecture for the target
2377case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381esac
2382
2383ARCH=$llvm_cv_target_arch
2384
2385
2386ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 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 +00002409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002411 break 2
2412 fi
2413done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002414done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002415IFS=$as_save_IFS
2416
2417fi
2418fi
2419CC=$ac_cv_prog_CC
2420if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002421 { echo "$as_me:$LINENO: result: $CC" >&5
2422echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002423else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002426fi
2427
2428
2429fi
2430if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 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 +00002449 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002451 break 2
2452 fi
2453done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002454done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002455IFS=$as_save_IFS
2456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002463else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002466fi
2467
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet. If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&5
2476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477whose name does not start with the host triplet. If you think this
2478configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002479ac_tool_warned=yes ;;
2480esac
2481 CC=$ac_ct_CC
2482 fi
2483else
2484 CC="$ac_cv_prog_CC"
2485fi
2486
2487if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002495else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 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 +00002506 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002508 break 2
2509 fi
2510done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002511done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002512IFS=$as_save_IFS
2513
2514fi
2515fi
2516CC=$ac_cv_prog_CC
2517if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002518 { echo "$as_me:$LINENO: result: $CC" >&5
2519echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002520else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002523fi
2524
2525
2526 fi
2527fi
2528if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539 ac_prog_rejected=no
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 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 +00002547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2550 fi
2551 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002553 break 2
2554 fi
2555done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002556done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002557IFS=$as_save_IFS
2558
2559if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 fi
2570fi
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002577else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002580fi
2581
2582
2583fi
2584if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2587 do
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 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 +00002605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002607 break 2
2608 fi
2609done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002610done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002611IFS=$as_save_IFS
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002619else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002622fi
2623
2624
2625 test -n "$CC" && break
2626 done
2627fi
2628if test -z "$CC"; then
2629 ac_ct_CC=$CC
2630 for ac_prog in cl.exe
2631do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002638else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 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 +00002649 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002654done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002663else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002666fi
2667
2668
2669 test -n "$ac_ct_CC" && break
2670done
2671
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet. If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&5
2680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681whose name does not start with the host triplet. If you think this
2682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002683ac_tool_warned=yes ;;
2684esac
2685 CC=$ac_ct_CC
2686 fi
2687fi
2688
2689fi
2690
2691
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: no acceptable C compiler found in \$PATH
2695See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002697
2698# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002699echo "$as_me:$LINENO: checking for C compiler version" >&5
2700ac_compiler=`set X $ac_compile; echo $2`
2701{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002708 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711{ (ac_try="$ac_compiler -v >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721{ (ac_try="$ac_compiler -V >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002731
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002732cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002737/* end confdefs.h. */
2738
2739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002748ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002752{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755#
2756# List of possible output files, starting from the most likely.
2757# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758# only as a last resort. b.out is created by i960 compilers.
2759ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760#
2761# The IRIX 6 linker writes into existing files which may not be
2762# executable, retaining their permissions. Remove them first so a
2763# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002764ac_rmfiles=
2765for ac_file in $ac_files
2766do
2767 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771done
2772rm -f $ac_rmfiles
2773
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002774if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002780 (eval "$ac_link_default") 2>&5
2781 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786# in a Makefile. We should not override ac_cv_exeext if it was cached,
2787# so that the user can short-circuit this test for compilers unknown to
2788# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002789for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002790do
2791 test -f "$ac_file" || continue
2792 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002794 ;;
2795 [ab].out )
2796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
2799 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 fi
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
2809 break;;
2810 * )
2811 break;;
2812 esac
2813done
2814test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
2816else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002817 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: C compiler cannot create executables
2823See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002825fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002826
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002827ac_exeext=$ac_cv_exeext
2828{ echo "$as_me:$LINENO: result: $ac_file" >&5
2829echo "${ECHO_T}$ac_file" >&6; }
2830
2831# Check that the compiler produces executables we can run. If not, either
2832# the compiler is broken, or we cross compile.
2833{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836# If not cross compiling, check that we can run a simple program.
2837if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854If you meant to cross compile, use \`--host'.
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861 fi
2862fi
2863{ echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6; }
2865
2866rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002867ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002883 (eval "$ac_link") 2>&5
2884 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889# work properly (i.e., refer to `conftest.exe'), while it won't with
2890# `rm'.
2891for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 break;;
2897 * ) break;;
2898 esac
2899done
2900else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002906fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002907
2908rm -f conftest$ac_cv_exeext
2909{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002911
2912rm -f conftest.$ac_ext
2913EXEEXT=$ac_cv_exeext
2914ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002915{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002919else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002936if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2948 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953done
2954else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002955 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002963fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002964
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002965rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002967{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002969OBJEXT=$ac_cv_objext
2970ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002971{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002975else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002981/* end confdefs.h. */
2982
2983int
2984main ()
2985{
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002994rm -f conftest.$ac_objext
2995if { (ac_try="$ac_compile"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003028 ac_compiler_gnu=yes
3029else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003034fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003035
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038
3039fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003043ac_test_CFLAGS=${CFLAGS+set}
3044ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003049else
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003103 ac_cv_prog_cc_g=yes
3104else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($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_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003159else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003164 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003214 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003220fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003221
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003224
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003227
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003233if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3240 fi
3241else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3246 fi
3247fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003248{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003252else
3253 ac_cv_prog_cc_c89=no
3254ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003255cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003260/* end confdefs.h. */
3261#include <stdarg.h>
3262#include <stdio.h>
3263#include <sys/types.h>
3264#include <sys/stat.h>
3265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266struct buf { int x; };
3267FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268static char *e (p, i)
3269 char **p;
3270 int i;
3271{
3272 return p[i];
3273}
3274static char *f (char * (*g) (char **, int), char **p, ...)
3275{
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3282}
3283
3284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
3293/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295#define FOO(x) 'x'
3296int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
3298int test (int i, double x);
3299struct s1 {int (*f) (int a);};
3300struct s2 {int (*f) (double a);};
3301int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302int argc;
3303char **argv;
3304int
3305main ()
3306{
3307return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314do
3315 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003316 rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003350 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003356fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003357
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003358rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3360done
3361rm -f conftest.$ac_ext
3362CC=$ac_save_CC
3363
3364fi
3365# AC_CACHE_VAL
3366case "x$ac_cv_prog_cc_c89" in
3367 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003368 { echo "$as_me:$LINENO: result: none needed" >&5
3369echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003370 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003373 *)
3374 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003377esac
3378
3379
3380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003394# On Suns, sometimes $CPP names a directory.
3395if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397fi
3398if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003401else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003446else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003455 # Broken: fails on valid input.
3456continue
3457fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003458
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003459rm -f conftest.err conftest.$ac_ext
3460
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003494 # Broken: success on invalid input.
3495continue
3496else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003504
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003510if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003511 break
3512fi
3513
3514 done
3515 ac_cv_prog_CPP=$CPP
3516
3517fi
3518 CPP=$ac_cv_prog_CPP
3519else
3520 ac_cv_prog_CPP=$CPP
3521fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003522{ echo "$as_me:$LINENO: result: $CPP" >&5
3523echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003524ac_preproc_ok=false
3525for ac_c_preproc_warn_flag in '' yes
3526do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003538/* end confdefs.h. */
3539#ifdef __STDC__
3540# include <limits.h>
3541#else
3542# include <assert.h>
3543#endif
3544 Syntax error
3545_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003546if { (ac_try="$ac_cpp conftest.$ac_ext"
3547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003565else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 :
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003574 # Broken: fails on valid input.
3575continue
3576fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003577
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003578rm -f conftest.err conftest.$ac_ext
3579
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003587/* end confdefs.h. */
3588#include <ac_nonexistent.h>
3589_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003613 # Broken: success on invalid input.
3614continue
3615else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003619 # Passes both tests.
3620ac_preproc_ok=:
3621break
3622fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003623
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003624rm -f conftest.err conftest.$ac_ext
3625
3626done
3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003629if $ac_preproc_ok; then
3630 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003631else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details." >&5
3634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003637fi
3638
3639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003646{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003650else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003651 # Extract the first word of "grep ggrep" to use in msg output
3652if test -z "$GREP"; then
3653set dummy grep ggrep; ac_prog_name=$2
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003657 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003658# Loop through the user's path and test for each of PROGNAME-LIST
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003669 # Check for GNU $ac_path_GREP
3670case `"$ac_path_GREP" --version 2>&1` in
3671*GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673*)
3674 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003681 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003684 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3689 fi
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694esac
3695
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003696
3697 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003698 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003699done
3700
3701done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003702IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003703
3704
3705fi
3706
3707GREP="$ac_cv_path_GREP"
3708if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3712fi
3713
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003714else
3715 ac_cv_path_GREP=$GREP
3716fi
3717
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003718
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003719fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003720{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003722 GREP="$ac_cv_path_GREP"
3723
3724
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: checking for egrep" >&5
3726echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003729else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003733 # Extract the first word of "egrep" to use in msg output
3734if test -z "$EGREP"; then
3735set dummy egrep; ac_prog_name=$2
3736if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003739 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003740# Loop through the user's path and test for each of PROGNAME-LIST
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003751 # Check for GNU $ac_path_EGREP
3752case `"$ac_path_EGREP" --version 2>&1` in
3753*GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755*)
3756 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003758 while :
3759 do
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003763 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003766 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3771 fi
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003778
3779 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003780 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003781done
3782
3783done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003784IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003785
3786
3787fi
3788
3789EGREP="$ac_cv_path_EGREP"
3790if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003796else
3797 ac_cv_path_EGREP=$EGREP
3798fi
3799
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003800
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003801 fi
3802fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003803{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003805 EGREP="$ac_cv_path_EGREP"
3806
3807
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003812else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003818/* end confdefs.h. */
3819#include <stdlib.h>
3820#include <stdarg.h>
3821#include <string.h>
3822#include <float.h>
3823
3824int
3825main ()
3826{
3827
3828 ;
3829 return 0;
3830}
3831_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003866 ac_cv_header_stdc=yes
3867else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003872fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003873
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875
3876if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003883/* end confdefs.h. */
3884#include <string.h>
3885
3886_ACEOF
3887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003888 $EGREP "memchr" >/dev/null 2>&1; then
3889 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003890else
3891 ac_cv_header_stdc=no
3892fi
3893rm -f conftest*
3894
3895fi
3896
3897if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003904/* end confdefs.h. */
3905#include <stdlib.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003909 $EGREP "free" >/dev/null 2>&1; then
3910 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003920 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003921 :
3922else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003928/* end confdefs.h. */
3929#include <ctype.h>
3930#include <stdlib.h>
3931#if ((' ' & 0x0FF) == 0x020)
3932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934#else
3935# define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940#endif
3941
3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943int
3944main ()
3945{
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3950 return 2;
3951 return 0;
3952}
3953_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003954rm -f conftest$ac_exeext
3955if { (ac_try="$ac_link"
3956case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003975else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003976 echo "$as_me: program exited with status $ac_status" >&5
3977echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980( exit $ac_status )
3981ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003982fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003983rm -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 +00003984fi
3985
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003986
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003987fi
3988fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003991if test $ac_cv_header_stdc = yes; then
3992
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003993cat >>confdefs.h <<\_ACEOF
3994#define STDC_HEADERS 1
3995_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003996
3997fi
3998
3999# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004000
4001
4002
4003
4004
4005
4006
4007
4008
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004011do
4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024$ac_includes_default
4025
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (ac_try="$ac_compile"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 eval "$as_ac_Header=no"
4068fi
4069
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071fi
4072ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074echo "${ECHO_T}$ac_res" >&6; }
4075if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004078_ACEOF
4079
4080fi
4081
4082done
4083
4084
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004089else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004090 # See if sys/param.h defines the BYTE_ORDER macro.
4091cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004093_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004096/* end confdefs.h. */
4097#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004098#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004099
4100int
4101main ()
4102{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004106
4107 ;
4108 return 0;
4109}
4110_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004111rm -f conftest.$ac_objext
4112if { (ac_try="$ac_compile"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004145 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004146cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004151/* end confdefs.h. */
4152#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004153#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004154
4155int
4156main ()
4157{
4158#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004159 not big endian
4160#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004161
4162 ;
4163 return 0;
4164}
4165_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004200 ac_cv_c_bigendian=yes
4201else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004204
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004205 ac_cv_c_bigendian=no
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # It does not; compile a test program.
4214if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004229int
4230main ()
4231{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004232 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004233 ;
4234 return 0;
4235}
4236_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004237rm -f conftest.$ac_objext
4238if { (ac_try="$ac_compile"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004272 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004273fi
4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4280 fi
4281fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004282else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004285
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004286
Edwin Törökc27310c2010-01-26 08:50:50 +00004287fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004288
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004296/* end confdefs.h. */
4297$ac_includes_default
4298int
4299main ()
4300{
4301
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4304 {
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004310
4311 ;
4312 return 0;
4313}
4314_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004315rm -f conftest$ac_exeext
4316if { (ac_try="$ac_link"
4317case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004335 ac_cv_c_bigendian=no
4336else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004337 echo "$as_me: program exited with status $ac_status" >&5
4338echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341( exit $ac_status )
4342ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004343fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004344rm -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 +00004345fi
4346
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004347
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004348fi
4349
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351fi
4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4357 ;;
4358 no)
4359 ENDIAN=little
4360 ;;
4361 *)
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364echo "$as_me: error: unknown endianness
4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004368
4369
4370if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4372
4373
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004378else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381else
4382 ac_build_prefix=${build_alias}-
4383
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004390else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 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 +00004401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004403 break 2
4404 fi
4405done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004406done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CC=$ac_cv_prog_BUILD_CC
4412if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004415else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004418fi
4419
4420
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004428else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 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 +00004439 ac_cv_prog_BUILD_CC="gcc"
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
4447fi
4448fi
4449BUILD_CC=$ac_cv_prog_BUILD_CC
4450if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004453else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004456fi
4457
4458
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004466else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 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 +00004478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004484 break 2
4485 fi
4486done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004487done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504BUILD_CC=$ac_cv_prog_BUILD_CC
4505if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004508else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004511fi
4512
4513
4514 fi
4515 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004528 for file in conftest.*; do
4529 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004530 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004538 fi
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541fi
4542fi
4543
4544BUILD_EXEEXT=""
4545test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004548ac_build_exeext=$BUILD_EXEEXT
4549
Jim Grosbache4c032e2008-10-02 22:56:44 +00004550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004557else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 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 +00004568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004570 break 2
4571 fi
4572done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004573done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004574IFS=$as_save_IFS
4575
4576fi
4577fi
4578BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004582else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004585fi
4586
4587
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004595else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 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 +00004606 ac_cv_prog_BUILD_CXX="g++"
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
4614fi
4615fi
4616BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004620else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004623fi
4624
4625
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004633else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636else
4637 ac_prog_rejected=no
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 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 +00004645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4648 fi
4649 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004651 break 2
4652 fi
4653done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004654done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004655IFS=$as_save_IFS
4656
4657if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667 fi
4668fi
4669fi
4670fi
4671BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004675else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004678fi
4679
4680
4681 fi
4682 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004683else
4684 LLVM_CROSS_COMPILING=0
4685
4686fi
4687
Nick Lewycky45f0f822009-04-10 05:18:27 +00004688if 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 +00004689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4692
4693else
4694 cvsbuild="no"
4695 optimize="yes"
4696fi
4697
4698
4699# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004700if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004701 enableval=$enable_optimized;
4702else
4703 enableval=$optimize
4704fi
4705
4706if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4708
4709else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712fi
4713
David Greene19b1cbd2009-04-17 14:50:39 +00004714# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004715if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004716 enableval=$enable_profiling;
4717else
4718 enableval="no"
4719fi
4720
4721if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4723
4724else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727fi
4728
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004729# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004730if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004731 enableval=$enable_assertions;
4732else
4733 enableval="yes"
4734fi
4735
4736if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4738
4739else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742fi
4743
4744# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004745if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004746 enableval=$enable_expensive_checks;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754 EXPENSIVE_CHECKS=yes
4755
4756else
4757 ENABLE_EXPENSIVE_CHECKS=
4758
4759 EXPENSIVE_CHECKS=no
4760
4761fi
4762
4763# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004764if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004765 enableval=$enable_debug_runtime;
4766else
4767 enableval=no
4768fi
4769
4770if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4772
4773else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776fi
4777
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004778# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004779if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004780 enableval=$enable_debug_symbols;
4781else
4782 enableval=no
4783fi
4784
4785if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4787
4788else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791fi
4792
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004793# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004794if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004795 enableval=$enable_jit;
4796else
4797 enableval=default
4798fi
4799
4800if test ${enableval} = "no"
4801then
4802 JIT=
4803
4804else
4805 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004806 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004807 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004808 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004809 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004810 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004811 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004812 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004813 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004814 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004815 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004816 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004817 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004818 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004819 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004820 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004821 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004822 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004823 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004824 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004825 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004826 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004827 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004828 Blackfin) TARGET_HAS_JIT=0
4829 ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004830 MBlaze) TARGET_HAS_JIT=0
4831 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004832 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004833 ;;
4834 esac
4835fi
4836
4837# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004838if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004839 enableval=$enable_doxygen;
4840else
4841 enableval=default
4842fi
4843
4844case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4846 ;;
4847 no) ENABLE_DOXYGEN=0
4848 ;;
4849 default) ENABLE_DOXYGEN=0
4850 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004854esac
4855
4856# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004857if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004858 enableval=$enable_threads;
4859else
4860 enableval=default
4861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_THREADS=1
4865 ;;
4866 no) ENABLE_THREADS=0
4867 ;;
4868 default) ENABLE_THREADS=1
4869 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004873esac
4874
Owen Anderson96237ec2009-05-19 22:18:56 +00004875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_THREADS $ENABLE_THREADS
4877_ACEOF
4878
4879
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004880# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004881if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004882 enableval=$enable_pic;
4883else
4884 enableval=default
4885fi
4886
4887case "$enableval" in
4888 yes) ENABLE_PIC=1
4889 ;;
4890 no) ENABLE_PIC=0
4891 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004892 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004893 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004897esac
4898
4899cat >>confdefs.h <<_ACEOF
4900#define ENABLE_PIC $ENABLE_PIC
4901_ACEOF
4902
4903
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00004904# Check whether --enable-shared was given.
4905if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_SHARED=1
4913 ;;
4914 no) ENABLE_SHARED=0
4915 ;;
4916 default) ENABLE_SHARED=0
4917 ;;
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921esac
4922
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004923TARGETS_TO_BUILD=""
4924# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004925if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004926 enableval=$enable_targets;
4927else
4928 enableval=all
4929fi
4930
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004931if test "$enableval" = host-only ; then
4932 enableval=host
4933fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004934case "$enableval" in
Wesley Peck5fbf1502010-02-23 19:15:24 +00004935 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004936 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4937 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004938 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4941 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4942 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4950 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004954 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004955 host) case "$llvm_cv_target_arch" in
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4962 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004963 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004964 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004968 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004969 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004970 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4971echo "$as_me: error: Can not set target to build" >&2;}
4972 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004973 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004977 esac
4978 done
4979 ;;
4980esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004981TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4982
4983
Douglas Gregor13e13882009-06-17 00:43:20 +00004984# Determine whether we are building LLVM support for the native architecture.
4985# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004989
4990cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004991#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004992_ACEOF
4993
4994 fi
4995done
4996
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004997# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4998# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004999LLVM_ENUM_TARGETS=""
5000LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005001LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005002LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005003for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5007 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5010 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005011 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5012 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5013 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005014done
5015
5016
5017
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005018
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005019
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005020# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005021if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005022 enableval=$enable_cbe_printf_a;
5023else
5024 enableval=default
5025fi
5026
5027case "$enableval" in
5028 yes) ENABLE_CBE_PRINTF_A=1
5029 ;;
5030 no) ENABLE_CBE_PRINTF_A=0
5031 ;;
5032 default) ENABLE_CBE_PRINTF_A=1
5033 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5035echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005037esac
5038
5039cat >>confdefs.h <<_ACEOF
5040#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5041_ACEOF
5042
5043
5044
5045# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005046if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005047 withval=$with_llvmgccdir;
5048else
5049 withval=default
5050fi
5051
5052case "$withval" in
5053 default) WITH_LLVMGCCDIR=default ;;
5054 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5056echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005058esac
5059
5060
Devang Pateld84ba7b2007-12-04 22:54:47 +00005061# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005062if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005063 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5064 WITH_LLVMGCCDIR=""
5065fi
5066
5067
5068
5069# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005070if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005071 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5072 WITH_LLVMGCCDIR=""
5073fi
5074
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005075
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005076if test -n "$LLVMGCC"; then
5077 LLVMGCCCOMMAND="$LLVMGCC"
5078fi
5079
5080if test -n "$LLVMGXX"; then
5081 LLVMGXXCOMMAND="$LLVMGXX"
5082fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005083
5084if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005085 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5086echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5087 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005088fi
5089
5090if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005091 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5092echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5093 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005094fi
5095
5096
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00005097# Check whether --with-clang was given.
5098if test "${with_clang+set}" = set; then
5099 withval=$with_clang;
5100else
5101 with_clang=default
5102fi
5103
5104
5105
5106# Check whether --with-built-clang was given.
5107if test "${with_built_clang+set}" = set; then
5108 withval=$with_built_clang;
5109else
5110 with_built_clang=check
5111fi
5112
5113
5114{ echo "$as_me:$LINENO: checking clang compiler" >&5
5115echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5116WITH_CLANGPATH=""
5117WITH_BUILT_CLANG=0
5118if test "$with_clang" != "default"; then
5119 WITH_CLANGPATH="$with_clang"
5120 if ! test -x "$WITH_CLANGPATH"; then
5121 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5122echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5123 { (exit 1); exit 1; }; }
5124 fi
5125elif test "$with_built_clang" = "yes"; then
5126 WITH_BUILT_CLANG=1
5127elif test "$with_built_clang" = "no"; then
5128 WITH_BUILT_CLANG=0
5129else
5130 if test "$with_built_clang" != "check"; then
5131 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5132echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5133 { (exit 1); exit 1; }; }
5134 fi
5135
5136 if test -f ${srcdir}/tools/clang/README.txt; then
5137 WITH_BUILT_CLANG=1
5138 fi
5139fi
5140
5141if ! test -z "$WITH_CLANGPATH"; then
5142 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5143echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5144 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5145elif test "$WITH_BUILT_CLANG" = "1"; then
5146 { echo "$as_me:$LINENO: result: built" >&5
5147echo "${ECHO_T}built" >&6; }
5148else
5149 { echo "$as_me:$LINENO: result: none" >&5
5150echo "${ECHO_T}none" >&6; }
5151fi
5152CLANGPATH=$WITH_CLANGPATH
5153
5154CLANGXXPATH=$WITH_CLANGXXPATH
5155
5156ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5157
5158
5159
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005160# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005161if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005162 withval=$with_optimize_option;
5163else
5164 withval=default
5165fi
5166
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005167{ echo "$as_me:$LINENO: checking optimization flags" >&5
5168echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005169case "$withval" in
5170 default)
5171 case "$llvm_cv_os_type" in
Daniel Dunbar41bab122010-04-10 18:56:24 +00005172 MingW) optimize_option=-O2 ;;
5173 *) optimize_option=-O3 ;;
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005174 esac ;;
5175 *) optimize_option="$withval" ;;
5176esac
5177OPTIMIZE_OPTION=$optimize_option
5178
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005179{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5180echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005181
5182
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005183# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005184if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005185 withval=$with_extra_options;
5186else
5187 withval=default
5188fi
5189
5190case "$withval" in
5191 default) EXTRA_OPTIONS= ;;
5192 *) EXTRA_OPTIONS=$withval ;;
5193esac
5194EXTRA_OPTIONS=$EXTRA_OPTIONS
5195
5196
Gordon Henriksen016ec472007-10-02 09:50:32 +00005197# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005198if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005199 enableval=$enable_bindings;
5200else
5201 enableval=default
5202fi
5203
5204BINDINGS_TO_BUILD=""
5205case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005206 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005207 all ) BINDINGS_TO_BUILD="ocaml" ;;
5208 none | no) BINDINGS_TO_BUILD="" ;;
5209 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5210 case "$a_binding" in
5211 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005212 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5213echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5214 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005215 esac
5216 done
5217 ;;
5218esac
5219
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005220
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005221# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005222if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005223 withval=$with_ocaml_libdir;
5224else
5225 withval=auto
5226fi
5227
5228case "$withval" in
5229 auto) with_ocaml_libdir="$withval" ;;
5230 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005231 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5232echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5233 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005234esac
5235
5236
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005237# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005238if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005239 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005240else
5241 withval=""
5242fi
5243
5244
5245cat >>confdefs.h <<_ACEOF
5246#define C_INCLUDE_DIRS "$withval"
5247_ACEOF
5248
5249
5250
Rafael Espindola3890bf02009-11-16 19:46:55 +00005251# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005252if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005253 withval=$with_cxx_include_root;
5254else
5255 withval=""
5256fi
5257
5258
5259cat >>confdefs.h <<_ACEOF
5260#define CXX_INCLUDE_ROOT "$withval"
5261_ACEOF
5262
5263
5264
5265# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005266if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005267 withval=$with_cxx_include_arch;
5268else
5269 withval=""
5270fi
5271
5272
5273cat >>confdefs.h <<_ACEOF
5274#define CXX_INCLUDE_ARCH "$withval"
5275_ACEOF
5276
5277
5278
5279# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005280if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005281 withval=$with_cxx_include_32bit_dir;
5282else
5283 withval=""
5284fi
5285
5286
5287cat >>confdefs.h <<_ACEOF
5288#define CXX_INCLUDE_32BIT_DIR "$withval"
5289_ACEOF
5290
5291
5292
5293# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005294if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005295 withval=$with_cxx_include_64bit_dir;
5296else
5297 withval=""
5298fi
5299
5300
5301cat >>confdefs.h <<_ACEOF
5302#define CXX_INCLUDE_64BIT_DIR "$withval"
5303_ACEOF
5304
5305
5306
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005307# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005308if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005309 withval=$with_binutils_include;
5310else
5311 withval=default
5312fi
5313
5314case "$withval" in
5315 default) WITH_BINUTILS_INCDIR=default ;;
5316 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005317 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5318echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5319 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005320esac
5321if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5322 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5323
5324 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5325 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005326 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5327echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5328 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005329 fi
5330fi
5331
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005332# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005333if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005334 enableval=$enable_libffi; case "$enableval" in
5335 yes) llvm_cv_enable_libffi="yes" ;;
5336 no) llvm_cv_enable_libffi="no" ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005338echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005340 esac
5341else
5342 llvm_cv_enable_libffi=no
5343fi
5344
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005345
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005346if test "$llvm_cv_os_type" = "Win32" ; then
5347 llvmc_dynamic="yes"
5348else
5349 llvmc_dynamic="no"
5350fi
5351
5352# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005353if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005354 enableval=$enable_llvmc_dynamic;
5355else
5356 enableval=$llvmc_dynamic
5357fi
5358
5359if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5360 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5361
5362else
5363 ENABLE_LLVMC_DYNAMIC=
5364
5365fi
5366
5367# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005368if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005369 enableval=$enable_llvmc_dynamic_plugins;
5370else
5371 enableval=yes
5372fi
5373
5374if test ${enableval} = "yes" ; then
5375 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5376
5377else
5378 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5379
5380fi
5381
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005382
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005388{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005390# On Suns, sometimes $CPP names a directory.
5391if test -n "$CPP" && test -d "$CPP"; then
5392 CPP=
5393fi
5394if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005397else
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5400 do
5401 ac_preproc_ok=false
5402for ac_c_preproc_warn_flag in '' yes
5403do
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005415/* end confdefs.h. */
5416#ifdef __STDC__
5417# include <limits.h>
5418#else
5419# include <assert.h>
5420#endif
5421 Syntax error
5422_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005423if { (ac_try="$ac_cpp conftest.$ac_ext"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5439 else
5440 ac_cpp_err=
5441 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005442else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005443 ac_cpp_err=yes
5444fi
5445if test -z "$ac_cpp_err"; then
5446 :
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005451 # Broken: fails on valid input.
5452continue
5453fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005454
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005455rm -f conftest.err conftest.$ac_ext
5456
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005459 cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h. */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005464/* end confdefs.h. */
5465#include <ac_nonexistent.h>
5466_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005467if { (ac_try="$ac_cpp conftest.$ac_ext"
5468case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483 else
5484 ac_cpp_err=
5485 fi
5486else
5487 ac_cpp_err=yes
5488fi
5489if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005490 # Broken: success on invalid input.
5491continue
5492else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005496 # Passes both tests.
5497ac_preproc_ok=:
5498break
5499fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005500
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005501rm -f conftest.err conftest.$ac_ext
5502
5503done
5504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005506if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005507 break
5508fi
5509
5510 done
5511 ac_cv_prog_CPP=$CPP
5512
5513fi
5514 CPP=$ac_cv_prog_CPP
5515else
5516 ac_cv_prog_CPP=$CPP
5517fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005518{ echo "$as_me:$LINENO: result: $CPP" >&5
5519echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005520ac_preproc_ok=false
5521for ac_c_preproc_warn_flag in '' yes
5522do
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005529 cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h. */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005534/* end confdefs.h. */
5535#ifdef __STDC__
5536# include <limits.h>
5537#else
5538# include <assert.h>
5539#endif
5540 Syntax error
5541_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005542if { (ac_try="$ac_cpp conftest.$ac_ext"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null; then
5555 if test -s conftest.err; then
5556 ac_cpp_err=$ac_c_preproc_warn_flag
5557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558 else
5559 ac_cpp_err=
5560 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005561else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005562 ac_cpp_err=yes
5563fi
5564if test -z "$ac_cpp_err"; then
5565 :
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005570 # Broken: fails on valid input.
5571continue
5572fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005573
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005574rm -f conftest.err conftest.$ac_ext
5575
5576 # OK, works on sane cases. Now check whether nonexistent headers
5577 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005578 cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005583/* end confdefs.h. */
5584#include <ac_nonexistent.h>
5585_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005586if { (ac_try="$ac_cpp conftest.$ac_ext"
5587case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602 else
5603 ac_cpp_err=
5604 fi
5605else
5606 ac_cpp_err=yes
5607fi
5608if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005609 # Broken: success on invalid input.
5610continue
5611else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005612 echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005615 # Passes both tests.
5616ac_preproc_ok=:
5617break
5618fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005619
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005620rm -f conftest.err conftest.$ac_ext
5621
5622done
5623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005625if $ac_preproc_ok; then
5626 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005627else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005628 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5629See \`config.log' for more details." >&5
5630echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5631See \`config.log' for more details." >&2;}
5632 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005633fi
5634
5635ac_ext=c
5636ac_cpp='$CPP $CPPFLAGS'
5637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646if test -n "$ac_tool_prefix"; then
5647 for ac_prog in gcc
5648 do
5649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653if test "${ac_cv_prog_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005655else
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 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 +00005666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005668 break 2
5669 fi
5670done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005671done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005672IFS=$as_save_IFS
5673
5674fi
5675fi
5676CC=$ac_cv_prog_CC
5677if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005678 { echo "$as_me:$LINENO: result: $CC" >&5
5679echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005680else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005681 { echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005683fi
5684
5685
5686 test -n "$CC" && break
5687 done
5688fi
5689if test -z "$CC"; then
5690 ac_ct_CC=$CC
5691 for ac_prog in gcc
5692do
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005699else
5700 if test -n "$ac_ct_CC"; then
5701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 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 +00005710 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005712 break 2
5713 fi
5714done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005715done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005716IFS=$as_save_IFS
5717
5718fi
5719fi
5720ac_ct_CC=$ac_cv_prog_ac_ct_CC
5721if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5723echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005724else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005725 { echo "$as_me:$LINENO: result: no" >&5
5726echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005727fi
5728
5729
5730 test -n "$ac_ct_CC" && break
5731done
5732
5733 if test "x$ac_ct_CC" = x; then
5734 CC=""
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739whose name does not start with the host triplet. If you think this
5740configuration is useful to you, please write to autoconf@gnu.org." >&5
5741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742whose name does not start with the host triplet. If you think this
5743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005744ac_tool_warned=yes ;;
5745esac
5746 CC=$ac_ct_CC
5747 fi
5748fi
5749
5750
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005751test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5752See \`config.log' for more details." >&5
5753echo "$as_me: error: no acceptable C compiler found in \$PATH
5754See \`config.log' for more details." >&2;}
5755 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005756
5757# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005758echo "$as_me:$LINENO: checking for C compiler version" >&5
5759ac_compiler=`set X $ac_compile; echo $2`
5760{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005761case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005767 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }
5770{ (ac_try="$ac_compiler -v >&5"
5771case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774esac
5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler -v >&5") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780{ (ac_try="$ac_compiler -V >&5"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -V >&5") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005790
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005791{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5792echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5793if test "${ac_cv_c_compiler_gnu+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005795else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005801/* end confdefs.h. */
5802
5803int
5804main ()
5805{
5806#ifndef __GNUC__
5807 choke me
5808#endif
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005814rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005848 ac_compiler_gnu=yes
5849else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005854fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005855
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857ac_cv_c_compiler_gnu=$ac_compiler_gnu
5858
5859fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005860{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5862GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005863ac_test_CFLAGS=${CFLAGS+set}
5864ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005865{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5866echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5867if test "${ac_cv_prog_cc_g+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005869else
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5872 ac_cv_prog_cc_g=no
5873 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005874 cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005879/* end confdefs.h. */
5880
5881int
5882main ()
5883{
5884
5885 ;
5886 return 0;
5887}
5888_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005889rm -f conftest.$ac_objext
5890if { (ac_try="$ac_compile"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5904 { (case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_try") 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005923 ac_cv_prog_cc_g=yes
5924else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 CFLAGS=""
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005934/* end confdefs.h. */
5935
5936int
5937main ()
5938{
5939
5940 ;
5941 return 0;
5942}
5943_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005944rm -f conftest.$ac_objext
5945if { (ac_try="$ac_compile"
5946case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 :
Edwin Törökc27310c2010-01-26 08:50:50 +00005979else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005984 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005990/* end confdefs.h. */
5991
5992int
5993main ()
5994{
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006000rm -f conftest.$ac_objext
6001if { (ac_try="$ac_compile"
6002case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006034 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006035else
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006040fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006041
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006044
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006047
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 ac_c_werror_flag=$ac_save_c_werror_flag
6050fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006051{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006053if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS=$ac_save_CFLAGS
6055elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6057 CFLAGS="-g -O2"
6058 else
6059 CFLAGS="-g"
6060 fi
6061else
6062 if test "$GCC" = yes; then
6063 CFLAGS="-O2"
6064 else
6065 CFLAGS=
6066 fi
6067fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006068{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6069echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6070if test "${ac_cv_prog_cc_c89+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006072else
6073 ac_cv_prog_cc_c89=no
6074ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006075cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006080/* end confdefs.h. */
6081#include <stdarg.h>
6082#include <stdio.h>
6083#include <sys/types.h>
6084#include <sys/stat.h>
6085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6086struct buf { int x; };
6087FILE * (*rcsopen) (struct buf *, struct stat *, int);
6088static char *e (p, i)
6089 char **p;
6090 int i;
6091{
6092 return p[i];
6093}
6094static char *f (char * (*g) (char **, int), char **p, ...)
6095{
6096 char *s;
6097 va_list v;
6098 va_start (v,p);
6099 s = g (p, va_arg (v,int));
6100 va_end (v);
6101 return s;
6102}
6103
6104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6105 function prototypes and stuff, but not '\xHH' hex character constants.
6106 These don't provoke an error unfortunately, instead are silently treated
6107 as 'x'. The following induces an error, until -std is added to get
6108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6109 array size at least. It's necessary to write '\x00'==0 to get something
6110 that's true only with -std. */
6111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6112
6113/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6114 inside strings and character constants. */
6115#define FOO(x) 'x'
6116int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6117
6118int test (int i, double x);
6119struct s1 {int (*f) (int a);};
6120struct s2 {int (*f) (double a);};
6121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6122int argc;
6123char **argv;
6124int
6125main ()
6126{
6127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6134do
6135 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006136 rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006170 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006176fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006177
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006178rm -f core conftest.err conftest.$ac_objext
6179 test "x$ac_cv_prog_cc_c89" != "xno" && break
6180done
6181rm -f conftest.$ac_ext
6182CC=$ac_save_CC
6183
6184fi
6185# AC_CACHE_VAL
6186case "x$ac_cv_prog_cc_c89" in
6187 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: none needed" >&5
6189echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006190 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006191 { echo "$as_me:$LINENO: result: unsupported" >&5
6192echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006193 *)
6194 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6196echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006197esac
6198
6199
6200ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
6206ac_ext=cpp
6207ac_cpp='$CXXCPP $CPPFLAGS'
6208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211if test -z "$CXX"; then
6212 if test -n "$CCC"; then
6213 CXX=$CCC
6214 else
6215 if test -n "$ac_tool_prefix"; then
6216 for ac_prog in g++
6217 do
6218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222if test "${ac_cv_prog_CXX+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006224else
6225 if test -n "$CXX"; then
6226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 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 +00006235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006237 break 2
6238 fi
6239done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006240done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006241IFS=$as_save_IFS
6242
6243fi
6244fi
6245CXX=$ac_cv_prog_CXX
6246if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006247 { echo "$as_me:$LINENO: result: $CXX" >&5
6248echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006249else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006250 { echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006252fi
6253
6254
6255 test -n "$CXX" && break
6256 done
6257fi
6258if test -z "$CXX"; then
6259 ac_ct_CXX=$CXX
6260 for ac_prog in g++
6261do
6262 # Extract the first word of "$ac_prog", so it can be a program name with args.
6263set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006268else
6269 if test -n "$ac_ct_CXX"; then
6270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 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 +00006279 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006281 break 2
6282 fi
6283done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006284done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006285IFS=$as_save_IFS
6286
6287fi
6288fi
6289ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6290if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6292echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006293else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006294 { echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006296fi
6297
6298
6299 test -n "$ac_ct_CXX" && break
6300done
6301
6302 if test "x$ac_ct_CXX" = x; then
6303 CXX="g++"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006307{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308whose name does not start with the host triplet. If you think this
6309configuration is useful to you, please write to autoconf@gnu.org." >&5
6310echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311whose name does not start with the host triplet. If you think this
6312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006313ac_tool_warned=yes ;;
6314esac
6315 CXX=$ac_ct_CXX
6316 fi
6317fi
6318
6319 fi
6320fi
6321# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006322echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6323ac_compiler=`set X $ac_compile; echo $2`
6324{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006325case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006331 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }
6334{ (ac_try="$ac_compiler -v >&5"
6335case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler -v >&5") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344{ (ac_try="$ac_compiler -V >&5"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -V >&5") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006354
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6356echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6357if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006359else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006360 cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006365/* end confdefs.h. */
6366
6367int
6368main ()
6369{
6370#ifndef __GNUC__
6371 choke me
6372#endif
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006378rm -f conftest.$ac_objext
6379if { (ac_try="$ac_compile"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406esac
6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006412 ac_compiler_gnu=yes
6413else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006414 echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006418fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006419
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6422
6423fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006424{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6425echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6426GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006427ac_test_CXXFLAGS=${CXXFLAGS+set}
6428ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006429{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6430echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6431if test "${ac_cv_prog_cxx_g+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006433else
6434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6435 ac_cxx_werror_flag=yes
6436 ac_cv_prog_cxx_g=no
6437 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006443/* end confdefs.h. */
6444
6445int
6446main ()
6447{
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006453rm -f conftest.$ac_objext
6454if { (ac_try="$ac_compile"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471esac
6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006487 ac_cv_prog_cxx_g=yes
6488else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 CXXFLAGS=""
6493 cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h. */
6495_ACEOF
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006498/* end confdefs.h. */
6499
6500int
6501main ()
6502{
6503
6504 ;
6505 return 0;
6506}
6507_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006508rm -f conftest.$ac_objext
6509if { (ac_try="$ac_compile"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006543else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006544 echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006548 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006549 cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006554/* end confdefs.h. */
6555
6556int
6557main ()
6558{
6559
6560 ;
6561 return 0;
6562}
6563_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006564rm -f conftest.$ac_objext
6565if { (ac_try="$ac_compile"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006598 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006599else
6600 echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
6602
6603
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006604fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006605
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006608
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006611
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6614fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006617if test "$ac_test_CXXFLAGS" = set; then
6618 CXXFLAGS=$ac_save_CXXFLAGS
6619elif test $ac_cv_prog_cxx_g = yes; then
6620 if test "$GXX" = yes; then
6621 CXXFLAGS="-g -O2"
6622 else
6623 CXXFLAGS="-g"
6624 fi
6625else
6626 if test "$GXX" = yes; then
6627 CXXFLAGS="-O2"
6628 else
6629 CXXFLAGS=
6630 fi
6631fi
6632ac_ext=c
6633ac_cpp='$CPP $CPPFLAGS'
6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006638
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006639{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6640echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6641if test "${lt_cv_path_NM+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006643else
6644 if test -n "$NM"; then
6645 # Let the user override the test.
6646 lt_cv_path_NM="$NM"
6647else
6648 lt_nm_to_check="${ac_tool_prefix}nm"
6649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6650 lt_nm_to_check="$lt_nm_to_check nm"
6651 fi
6652 for lt_tmp_nm in $lt_nm_to_check; do
6653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6655 IFS="$lt_save_ifs"
6656 test -z "$ac_dir" && ac_dir=.
6657 tmp_nm="$ac_dir/$lt_tmp_nm"
6658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6659 # Check to see if the nm accepts a BSD-compat flag.
6660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6661 # nm: unknown option "B" ignored
6662 # Tru64's nm complains that /dev/null is an invalid object file
6663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6664 */dev/null* | *'Invalid file or object type'*)
6665 lt_cv_path_NM="$tmp_nm -B"
6666 break
6667 ;;
6668 *)
6669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6670 */dev/null*)
6671 lt_cv_path_NM="$tmp_nm -p"
6672 break
6673 ;;
6674 *)
6675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6676 continue # so that we can try to find one that supports BSD flags
6677 ;;
6678 esac
6679 ;;
6680 esac
6681 fi
6682 done
6683 IFS="$lt_save_ifs"
6684 done
6685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6686fi
6687fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006688{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6689echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006690NM="$lt_cv_path_NM"
6691
6692
6693
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006694{ echo "$as_me:$LINENO: checking for GNU make" >&5
6695echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6696if test "${llvm_cv_gnu_make_command+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006698else
6699 llvm_cv_gnu_make_command=''
6700 for a in "$MAKE" make gmake gnumake ; do
6701 if test -z "$a" ; then continue ; fi ;
6702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6703 then
6704 llvm_cv_gnu_make_command=$a ;
6705 break;
6706 fi
6707 done
6708fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6710echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6712 ifGNUmake='' ;
6713 else
6714 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6716echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006717 fi
6718
6719
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006720{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006722LN_S=$as_ln_s
6723if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006724 { echo "$as_me:$LINENO: result: yes" >&5
6725echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006726else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6728echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006729fi
6730
6731# Extract the first word of "cmp", so it can be a program name with args.
6732set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735if test "${ac_cv_path_CMP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006737else
6738 case $CMP in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 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 +00006750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006752 break 2
6753 fi
6754done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006755done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006756IFS=$as_save_IFS
6757
6758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6759 ;;
6760esac
6761fi
6762CMP=$ac_cv_path_CMP
6763if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006764 { echo "$as_me:$LINENO: result: $CMP" >&5
6765echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006766else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006767 { echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006769fi
6770
6771
6772# Extract the first word of "cp", so it can be a program name with args.
6773set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_CP+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006778else
6779 case $CP in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 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 +00006791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006793 break 2
6794 fi
6795done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006796done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006797IFS=$as_save_IFS
6798
6799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6800 ;;
6801esac
6802fi
6803CP=$ac_cv_path_CP
6804if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006805 { echo "$as_me:$LINENO: result: $CP" >&5
6806echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006807else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006810fi
6811
6812
6813# Extract the first word of "date", so it can be a program name with args.
6814set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817if test "${ac_cv_path_DATE+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006819else
6820 case $DATE in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6823 ;;
6824 *)
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 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 +00006832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006834 break 2
6835 fi
6836done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006837done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006838IFS=$as_save_IFS
6839
6840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6841 ;;
6842esac
6843fi
6844DATE=$ac_cv_path_DATE
6845if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006846 { echo "$as_me:$LINENO: result: $DATE" >&5
6847echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006848else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006849 { echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006851fi
6852
6853
6854# Extract the first word of "find", so it can be a program name with args.
6855set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_path_FIND+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006860else
6861 case $FIND in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6864 ;;
6865 *)
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 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 +00006873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006875 break 2
6876 fi
6877done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006878done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006879IFS=$as_save_IFS
6880
6881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6882 ;;
6883esac
6884fi
6885FIND=$ac_cv_path_FIND
6886if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006887 { echo "$as_me:$LINENO: result: $FIND" >&5
6888echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006889else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006890 { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006892fi
6893
6894
6895# Extract the first word of "grep", so it can be a program name with args.
6896set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899if test "${ac_cv_path_GREP+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006901else
6902 case $GREP in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 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 +00006914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006916 break 2
6917 fi
6918done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006919done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006920IFS=$as_save_IFS
6921
6922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6923 ;;
6924esac
6925fi
6926GREP=$ac_cv_path_GREP
6927if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: $GREP" >&5
6929echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006930else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006933fi
6934
6935
6936# Extract the first word of "mkdir", so it can be a program name with args.
6937set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_path_MKDIR+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006942else
6943 case $MKDIR in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006957 break 2
6958 fi
6959done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006960done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006961IFS=$as_save_IFS
6962
6963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6964 ;;
6965esac
6966fi
6967MKDIR=$ac_cv_path_MKDIR
6968if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6970echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006971else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006972 { echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006974fi
6975
6976
6977# Extract the first word of "mv", so it can be a program name with args.
6978set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981if test "${ac_cv_path_MV+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006983else
6984 case $MV in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6987 ;;
6988 *)
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 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 +00006996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006998 break 2
6999 fi
7000done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007001done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007002IFS=$as_save_IFS
7003
7004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7005 ;;
7006esac
7007fi
7008MV=$ac_cv_path_MV
7009if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007010 { echo "$as_me:$LINENO: result: $MV" >&5
7011echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007012else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007013 { echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007015fi
7016
7017
7018if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023if test "${ac_cv_prog_RANLIB+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007025else
7026 if test -n "$RANLIB"; then
7027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 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 +00007036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007038 break 2
7039 fi
7040done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007041done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007042IFS=$as_save_IFS
7043
7044fi
7045fi
7046RANLIB=$ac_cv_prog_RANLIB
7047if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7049echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007050else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_RANLIB"; then
7058 ac_ct_RANLIB=$RANLIB
7059 # Extract the first word of "ranlib", so it can be a program name with args.
7060set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007065else
7066 if test -n "$ac_ct_RANLIB"; then
7067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 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 +00007076 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007078 break 2
7079 fi
7080done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007081done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007082IFS=$as_save_IFS
7083
7084fi
7085fi
7086ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7087if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7089echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007090else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007093fi
7094
7095 if test "x$ac_ct_RANLIB" = x; then
7096 RANLIB=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007100{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101whose name does not start with the host triplet. If you think this
7102configuration is useful to you, please write to autoconf@gnu.org." >&5
7103echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104whose name does not start with the host triplet. If you think this
7105configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007106ac_tool_warned=yes ;;
7107esac
7108 RANLIB=$ac_ct_RANLIB
7109 fi
7110else
7111 RANLIB="$ac_cv_prog_RANLIB"
7112fi
7113
Edwin Törökc27310c2010-01-26 08:50:50 +00007114if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7116set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119if test "${ac_cv_prog_AR+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007121else
7122 if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 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 +00007132 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007134 break 2
7135 fi
7136done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007137done
Edwin Törökc27310c2010-01-26 08:50:50 +00007138IFS=$as_save_IFS
7139
7140fi
7141fi
7142AR=$ac_cv_prog_AR
7143if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007144 { echo "$as_me:$LINENO: result: $AR" >&5
7145echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007146else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007147 { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007149fi
7150
7151
7152fi
7153if test -z "$ac_cv_prog_AR"; then
7154 ac_ct_AR=$AR
7155 # Extract the first word of "ar", so it can be a program name with args.
7156set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007161else
7162 if test -n "$ac_ct_AR"; then
7163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 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 +00007172 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007174 break 2
7175 fi
7176done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007177done
Edwin Törökc27310c2010-01-26 08:50:50 +00007178IFS=$as_save_IFS
7179
7180fi
7181fi
7182ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007186else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007187 { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007189fi
7190
7191 if test "x$ac_ct_AR" = x; then
7192 AR="false"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197whose name does not start with the host triplet. If you think this
7198configuration is useful to you, please write to autoconf@gnu.org." >&5
7199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200whose name does not start with the host triplet. If you think this
7201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007202ac_tool_warned=yes ;;
7203esac
7204 AR=$ac_ct_AR
7205 fi
7206else
7207 AR="$ac_cv_prog_AR"
7208fi
7209
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007210# Extract the first word of "rm", so it can be a program name with args.
7211set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_RM+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007216else
7217 case $RM in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 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 +00007229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007231 break 2
7232 fi
7233done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007234done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007235IFS=$as_save_IFS
7236
7237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7238 ;;
7239esac
7240fi
7241RM=$ac_cv_path_RM
7242if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007243 { echo "$as_me:$LINENO: result: $RM" >&5
7244echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007245else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007248fi
7249
7250
7251# Extract the first word of "sed", so it can be a program name with args.
7252set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255if test "${ac_cv_path_SED+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007257else
7258 case $SED in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7261 ;;
7262 *)
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 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 +00007270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007272 break 2
7273 fi
7274done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007275done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007276IFS=$as_save_IFS
7277
7278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7279 ;;
7280esac
7281fi
7282SED=$ac_cv_path_SED
7283if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007284 { echo "$as_me:$LINENO: result: $SED" >&5
7285echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007286else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007287 { echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007289fi
7290
7291
7292# Extract the first word of "tar", so it can be a program name with args.
7293set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296if test "${ac_cv_path_TAR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007298else
7299 case $TAR in
7300 [\\/]* | ?:[\\/]*)
7301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7302 ;;
7303 *)
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 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 +00007311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007313 break 2
7314 fi
7315done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007316done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007317IFS=$as_save_IFS
7318
7319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7320 ;;
7321esac
7322fi
7323TAR=$ac_cv_path_TAR
7324if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007325 { echo "$as_me:$LINENO: result: $TAR" >&5
7326echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007327else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007330fi
7331
7332
7333# Extract the first word of "pwd", so it can be a program name with args.
7334set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_BINPWD+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007339else
7340 case $BINPWD in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 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 +00007352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007354 break 2
7355 fi
7356done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007357done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007358IFS=$as_save_IFS
7359
7360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7361 ;;
7362esac
7363fi
7364BINPWD=$ac_cv_path_BINPWD
7365if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7367echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007368else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007369 { echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007371fi
7372
7373
7374
7375# Extract the first word of "Graphviz", so it can be a program name with args.
7376set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007381else
7382 case $GRAPHVIZ in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 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 +00007394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007396 break 2
7397 fi
7398done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007399done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007400IFS=$as_save_IFS
7401
7402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7403 ;;
7404esac
7405fi
7406GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7407if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7409echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007410else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007413fi
7414
7415
7416if test "$GRAPHVIZ" != "echo Graphviz" ; then
7417
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007418cat >>confdefs.h <<\_ACEOF
7419#define HAVE_GRAPHVIZ 1
7420_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007421
7422 if test "$llvm_cv_os_type" = "MingW" ; then
7423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424 fi
7425
7426cat >>confdefs.h <<_ACEOF
7427#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7428_ACEOF
7429
7430fi
7431# Extract the first word of "dot", so it can be a program name with args.
7432set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_path_DOT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007437else
7438 case $DOT in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7441 ;;
7442 *)
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 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 +00007450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007452 break 2
7453 fi
7454done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007455done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007456IFS=$as_save_IFS
7457
7458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7459 ;;
7460esac
7461fi
7462DOT=$ac_cv_path_DOT
7463if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $DOT" >&5
7465echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007466else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007469fi
7470
7471
7472if test "$DOT" != "echo dot" ; then
7473
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_DOT 1
7476_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007477
7478 if test "$llvm_cv_os_type" = "MingW" ; then
7479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7480 fi
7481
7482cat >>confdefs.h <<_ACEOF
7483#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7484_ACEOF
7485
7486fi
David Greenedb740ef2009-07-09 17:16:26 +00007487# Extract the first word of "fdp", so it can be a program name with args.
7488set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491if test "${ac_cv_path_FDP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007493else
7494 case $FDP in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7497 ;;
7498 *)
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 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 +00007506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007508 break 2
7509 fi
7510done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007511done
David Greenedb740ef2009-07-09 17:16:26 +00007512IFS=$as_save_IFS
7513
7514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7515 ;;
7516esac
7517fi
7518FDP=$ac_cv_path_FDP
7519if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007520 { echo "$as_me:$LINENO: result: $FDP" >&5
7521echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007522else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007523 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007525fi
7526
7527
7528if test "$FDP" != "echo fdp" ; then
7529
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007530cat >>confdefs.h <<\_ACEOF
7531#define HAVE_FDP 1
7532_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007533
7534 if test "$llvm_cv_os_type" = "MingW" ; then
7535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7536 fi
7537
7538cat >>confdefs.h <<_ACEOF
7539#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7540_ACEOF
7541
7542fi
7543# Extract the first word of "neato", so it can be a program name with args.
7544set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_NEATO+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007549else
7550 case $NEATO in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007564 break 2
7565 fi
7566done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007567done
David Greenedb740ef2009-07-09 17:16:26 +00007568IFS=$as_save_IFS
7569
7570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7571 ;;
7572esac
7573fi
7574NEATO=$ac_cv_path_NEATO
7575if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: $NEATO" >&5
7577echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007578else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007581fi
7582
7583
7584if test "$NEATO" != "echo neato" ; then
7585
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007586cat >>confdefs.h <<\_ACEOF
7587#define HAVE_NEATO 1
7588_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007589
7590 if test "$llvm_cv_os_type" = "MingW" ; then
7591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7592 fi
7593
7594cat >>confdefs.h <<_ACEOF
7595#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7596_ACEOF
7597
7598fi
7599# Extract the first word of "twopi", so it can be a program name with args.
7600set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603if test "${ac_cv_path_TWOPI+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007605else
7606 case $TWOPI in
7607 [\\/]* | ?:[\\/]*)
7608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7609 ;;
7610 *)
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 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 +00007618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007620 break 2
7621 fi
7622done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007623done
David Greenedb740ef2009-07-09 17:16:26 +00007624IFS=$as_save_IFS
7625
7626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7627 ;;
7628esac
7629fi
7630TWOPI=$ac_cv_path_TWOPI
7631if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7633echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007634else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: no" >&5
7636echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007637fi
7638
7639
7640if test "$TWOPI" != "echo twopi" ; then
7641
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007642cat >>confdefs.h <<\_ACEOF
7643#define HAVE_TWOPI 1
7644_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007645
7646 if test "$llvm_cv_os_type" = "MingW" ; then
7647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7648 fi
7649
7650cat >>confdefs.h <<_ACEOF
7651#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7652_ACEOF
7653
7654fi
7655# Extract the first word of "circo", so it can be a program name with args.
7656set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659if test "${ac_cv_path_CIRCO+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007661else
7662 case $CIRCO in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 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 +00007674 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007676 break 2
7677 fi
7678done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007679done
David Greenedb740ef2009-07-09 17:16:26 +00007680IFS=$as_save_IFS
7681
7682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7683 ;;
7684esac
7685fi
7686CIRCO=$ac_cv_path_CIRCO
7687if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7689echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007690else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007691 { echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007693fi
7694
7695
7696if test "$CIRCO" != "echo circo" ; then
7697
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007698cat >>confdefs.h <<\_ACEOF
7699#define HAVE_CIRCO 1
7700_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007701
7702 if test "$llvm_cv_os_type" = "MingW" ; then
7703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7704 fi
7705
7706cat >>confdefs.h <<_ACEOF
7707#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7708_ACEOF
7709
7710fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007711for ac_prog in gv gsview32
7712do
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717if test "${ac_cv_path_GV+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007719else
7720 case $GV in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7723 ;;
7724 *)
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 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 +00007732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007734 break 2
7735 fi
7736done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007737done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007738IFS=$as_save_IFS
7739
7740 ;;
7741esac
7742fi
7743GV=$ac_cv_path_GV
7744if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: $GV" >&5
7746echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007747else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007750fi
7751
7752
7753 test -n "$GV" && break
7754done
7755test -n "$GV" || GV="echo gv"
7756
7757if test "$GV" != "echo gv" ; then
7758
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007759cat >>confdefs.h <<\_ACEOF
7760#define HAVE_GV 1
7761_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007762
7763 if test "$llvm_cv_os_type" = "MingW" ; then
7764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 fi
7766
7767cat >>confdefs.h <<_ACEOF
7768#define LLVM_PATH_GV "$GV${EXEEXT}"
7769_ACEOF
7770
7771fi
7772# Extract the first word of "dotty", so it can be a program name with args.
7773set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_DOTTY+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007778else
7779 case $DOTTY in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 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 +00007791 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007793 break 2
7794 fi
7795done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007796done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007797IFS=$as_save_IFS
7798
7799 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7800 ;;
7801esac
7802fi
7803DOTTY=$ac_cv_path_DOTTY
7804if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7806echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007807else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007810fi
7811
7812
7813if test "$DOTTY" != "echo dotty" ; then
7814
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_DOTTY 1
7817_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007818
7819 if test "$llvm_cv_os_type" = "MingW" ; then
7820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821 fi
7822
7823cat >>confdefs.h <<_ACEOF
7824#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7825_ACEOF
7826
7827fi
7828
7829
7830# Extract the first word of "perl", so it can be a program name with args.
7831set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834if test "${ac_cv_path_PERL+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007836else
7837 case $PERL in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7840 ;;
7841 *)
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 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 +00007849 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007851 break 2
7852 fi
7853done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007854done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007855IFS=$as_save_IFS
7856
7857 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7858 ;;
7859esac
7860fi
7861PERL=$ac_cv_path_PERL
7862if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007863 { echo "$as_me:$LINENO: result: $PERL" >&5
7864echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007865else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007866 { echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007868fi
7869
7870
7871if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7873echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007874 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007875 { echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007877 else
7878 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007879 { echo "$as_me:$LINENO: result: not found" >&5
7880echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007881 fi
7882fi
7883
7884
7885if test x"$PERL" = xnone; then
7886 HAVE_PERL=0
7887
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007888 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7889echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7890 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007891else
7892 HAVE_PERL=1
7893
7894fi
7895
7896# Find a good install program. We prefer a C program (faster),
7897# so one script is as good as another. But avoid the broken or
7898# incompatible versions:
7899# SysV /etc/install, /usr/sbin/install
7900# SunOS /usr/etc/install
7901# IRIX /sbin/install
7902# AIX /bin/install
7903# AmigaOS /C/install, which installs bootblocks on floppy discs
7904# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7905# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7906# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7907# OS/2's system install, which has a completely different semantic
7908# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007909{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7910echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007911if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007912if test "${ac_cv_path_install+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007914else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007920 # Account for people who put trailing slashes in PATH elements.
7921case $as_dir/ in
7922 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007925 /usr/ucb/* ) ;;
7926 *)
7927 # OSF1 and SCO ODT 3.0 have their own names for install.
7928 # Don't use installbsd from OSF since it installs stuff as root
7929 # by default.
7930 for ac_prog in ginstall scoinst install; do
7931 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007932 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 +00007933 if test $ac_prog = install &&
7934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7935 # AIX install. It has an incompatible calling convention.
7936 :
7937 elif test $ac_prog = install &&
7938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # program-specific install script used by HP pwplus--don't use.
7940 :
7941 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7943 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007944 fi
7945 fi
7946 done
7947 done
7948 ;;
7949esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007950done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007951IFS=$as_save_IFS
7952
7953
7954fi
7955 if test "${ac_cv_path_install+set}" = set; then
7956 INSTALL=$ac_cv_path_install
7957 else
7958 # As a last resort, use the slow shell script. Don't cache a
7959 # value for INSTALL within a source directory, because that will
7960 # break other packages using the cache if that directory is
7961 # removed, or if the value is a relative name.
7962 INSTALL=$ac_install_sh
7963 fi
7964fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007965{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7966echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007967
7968# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7969# It thinks the first close brace ends the variable substitution.
7970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7971
7972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7973
7974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7975
7976
7977# Extract the first word of "bzip2", so it can be a program name with args.
7978set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981if test "${ac_cv_path_BZIP2+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007983else
7984 case $BZIP2 in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 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 +00007996 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007998 break 2
7999 fi
8000done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008001done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008002IFS=$as_save_IFS
8003
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008004 ;;
8005esac
8006fi
8007BZIP2=$ac_cv_path_BZIP2
8008if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008009 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8010echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008011else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008012 { echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008014fi
8015
8016
8017# Extract the first word of "doxygen", so it can be a program name with args.
8018set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021if test "${ac_cv_path_DOXYGEN+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008023else
8024 case $DOXYGEN in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8027 ;;
8028 *)
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 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 +00008036 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008038 break 2
8039 fi
8040done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008041done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008042IFS=$as_save_IFS
8043
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008044 ;;
8045esac
8046fi
8047DOXYGEN=$ac_cv_path_DOXYGEN
8048if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008049 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8050echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008051else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008052 { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008054fi
8055
8056
8057# Extract the first word of "groff", so it can be a program name with args.
8058set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061if test "${ac_cv_path_GROFF+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008063else
8064 case $GROFF in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 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 +00008076 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008078 break 2
8079 fi
8080done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008081done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008082IFS=$as_save_IFS
8083
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008084 ;;
8085esac
8086fi
8087GROFF=$ac_cv_path_GROFF
8088if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008089 { echo "$as_me:$LINENO: result: $GROFF" >&5
8090echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008091else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008092 { echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008094fi
8095
8096
8097# Extract the first word of "gzip", so it can be a program name with args.
8098set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_GZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008103else
8104 case $GZIP in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 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 +00008116 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008118 break 2
8119 fi
8120done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008121done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008122IFS=$as_save_IFS
8123
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008124 ;;
8125esac
8126fi
8127GZIP=$ac_cv_path_GZIP
8128if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: $GZIP" >&5
8130echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008131else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008134fi
8135
8136
8137# Extract the first word of "pod2html", so it can be a program name with args.
8138set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_POD2HTML+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008143else
8144 case $POD2HTML in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 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 +00008156 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008158 break 2
8159 fi
8160done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008161done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008162IFS=$as_save_IFS
8163
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008164 ;;
8165esac
8166fi
8167POD2HTML=$ac_cv_path_POD2HTML
8168if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008169 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8170echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008171else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008174fi
8175
8176
8177# Extract the first word of "pod2man", so it can be a program name with args.
8178set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181if test "${ac_cv_path_POD2MAN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008183else
8184 case $POD2MAN in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 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 +00008196 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008198 break 2
8199 fi
8200done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008201done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008202IFS=$as_save_IFS
8203
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008204 ;;
8205esac
8206fi
8207POD2MAN=$ac_cv_path_POD2MAN
8208if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8210echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008211else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008212 { echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008214fi
8215
8216
8217# Extract the first word of "runtest", so it can be a program name with args.
8218set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221if test "${ac_cv_path_RUNTEST+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008223else
8224 case $RUNTEST in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8227 ;;
8228 *)
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 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 +00008236 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008238 break 2
8239 fi
8240done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008241done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008242IFS=$as_save_IFS
8243
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008244 ;;
8245esac
8246fi
8247RUNTEST=$ac_cv_path_RUNTEST
8248if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8250echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008251else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008252 { echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008254fi
8255
8256
8257
8258no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008259{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8260echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008261
8262# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008263if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008264 withval=$with_tclinclude; with_tclinclude=${withval}
8265else
8266 with_tclinclude=''
8267fi
8268
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008269if test "${ac_cv_path_tclsh+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008271else
8272
8273if test x"${with_tclinclude}" != x ; then
8274 if test -f ${with_tclinclude}/tclsh ; then
8275 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8276 elif test -f ${with_tclinclude}/src/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8278 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008279 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8280echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8281 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008282 fi
8283fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008284fi
8285
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008286
8287if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: none" >&5
8289echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008290 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
8291do
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296if test "${ac_cv_path_TCLSH+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008298else
8299 case $TCLSH in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 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 +00008311 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008313 break 2
8314 fi
8315done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008316done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008317IFS=$as_save_IFS
8318
8319 ;;
8320esac
8321fi
8322TCLSH=$ac_cv_path_TCLSH
8323if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008324 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8325echo "${ECHO_T}$TCLSH" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008326else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008327 { echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008329fi
8330
8331
8332 test -n "$TCLSH" && break
8333done
8334
8335 if test x"${TCLSH}" = x ; then
8336 ac_cv_path_tclsh='';
8337 else
8338 ac_cv_path_tclsh="${TCLSH}";
8339 fi
8340else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008341 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8342echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008343 TCLSH="${ac_cv_path_tclsh}"
8344
8345fi
8346
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008347# Extract the first word of "zip", so it can be a program name with args.
8348set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8351if test "${ac_cv_path_ZIP+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008353else
8354 case $ZIP in
8355 [\\/]* | ?:[\\/]*)
8356 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8357 ;;
8358 *)
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 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 +00008366 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008368 break 2
8369 fi
8370done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008371done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008372IFS=$as_save_IFS
8373
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008374 ;;
8375esac
8376fi
8377ZIP=$ac_cv_path_ZIP
8378if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008379 { echo "$as_me:$LINENO: result: $ZIP" >&5
8380echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008381else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008382 { echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008384fi
8385
8386
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008387for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008388do
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393if test "${ac_cv_path_OCAMLC+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008395else
8396 case $OCAMLC in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8399 ;;
8400 *)
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 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 +00008408 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008410 break 2
8411 fi
8412done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008413done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008414IFS=$as_save_IFS
8415
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008416 ;;
8417esac
8418fi
8419OCAMLC=$ac_cv_path_OCAMLC
8420if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008421 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8422echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008423else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008424 { echo "$as_me:$LINENO: result: no" >&5
8425echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008426fi
8427
8428
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008429 test -n "$OCAMLC" && break
8430done
8431
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008432for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008433do
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008440else
8441 case $OCAMLOPT in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 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 +00008453 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008455 break 2
8456 fi
8457done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008458done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008459IFS=$as_save_IFS
8460
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008461 ;;
8462esac
8463fi
8464OCAMLOPT=$ac_cv_path_OCAMLOPT
8465if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008466 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8467echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008468else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008469 { echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008471fi
8472
8473
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008474 test -n "$OCAMLOPT" && break
8475done
8476
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008477for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008478do
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008485else
8486 case $OCAMLDEP in
8487 [\\/]* | ?:[\\/]*)
8488 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8489 ;;
8490 *)
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 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 +00008498 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008500 break 2
8501 fi
8502done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008503done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008504IFS=$as_save_IFS
8505
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008506 ;;
8507esac
8508fi
8509OCAMLDEP=$ac_cv_path_OCAMLDEP
8510if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008511 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8512echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008513else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008514 { echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008516fi
8517
8518
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008519 test -n "$OCAMLDEP" && break
8520done
8521
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008522for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008523do
8524 # Extract the first word of "$ac_prog", so it can be a program name with args.
8525set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8528if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008530else
8531 case $OCAMLDOC in
8532 [\\/]* | ?:[\\/]*)
8533 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8534 ;;
8535 *)
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 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 +00008543 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008545 break 2
8546 fi
8547done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008548done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008549IFS=$as_save_IFS
8550
8551 ;;
8552esac
8553fi
8554OCAMLDOC=$ac_cv_path_OCAMLDOC
8555if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008556 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8557echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008558else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008559 { echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008561fi
8562
8563
8564 test -n "$OCAMLDOC" && break
8565done
8566
Edwin Török20176752008-10-22 09:56:27 +00008567for ac_prog in gas as
8568do
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8573if test "${ac_cv_path_GAS+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008575else
8576 case $GAS in
8577 [\\/]* | ?:[\\/]*)
8578 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 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 +00008588 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008590 break 2
8591 fi
8592done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008593done
Edwin Török20176752008-10-22 09:56:27 +00008594IFS=$as_save_IFS
8595
8596 ;;
8597esac
8598fi
8599GAS=$ac_cv_path_GAS
8600if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008601 { echo "$as_me:$LINENO: result: $GAS" >&5
8602echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008603else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008604 { echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008606fi
8607
8608
8609 test -n "$GAS" && break
8610done
8611
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008612
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008613{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8614echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8615if test "${llvm_cv_link_use_r+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008617else
8618 ac_ext=c
8619ac_cpp='$CPP $CPPFLAGS'
8620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622ac_compiler_gnu=$ac_cv_c_compiler_gnu
8623
8624 oldcflags="$CFLAGS"
8625 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008626 cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008631/* end confdefs.h. */
8632
8633int
8634main ()
8635{
8636int main() { return 0; }
8637 ;
8638 return 0;
8639}
8640_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008641rm -f conftest.$ac_objext conftest$ac_exeext
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008675 llvm_cv_link_use_r=yes
8676else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008677 echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008681fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008682
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008683rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008684 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008685 CFLAGS="$oldcflags"
8686 ac_ext=c
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692
8693fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008694{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8695echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008696if test "$llvm_cv_link_use_r" = yes ; then
8697
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008698cat >>confdefs.h <<\_ACEOF
8699#define HAVE_LINK_R 1
8700_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008701
8702 fi
8703
8704
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008705{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8706echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8707if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008709else
8710 ac_ext=c
8711ac_cpp='$CPP $CPPFLAGS'
8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716 oldcflags="$CFLAGS"
8717 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008718 cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008723/* end confdefs.h. */
8724
8725int
8726main ()
8727{
8728int main() { return 0; }
8729 ;
8730 return 0;
8731}
8732_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008733rm -f conftest.$ac_objext conftest$ac_exeext
8734if { (ac_try="$ac_link"
8735case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751esac
8752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_try") 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008767 llvm_cv_link_use_export_dynamic=yes
8768else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008769 echo "$as_me: failed program was:" >&5
8770sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008773fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008774
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008775rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008776 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008777 CFLAGS="$oldcflags"
8778 ac_ext=c
8779ac_cpp='$CPP $CPPFLAGS'
8780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
8784
8785fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008786{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8787echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008788if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8789
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008790cat >>confdefs.h <<\_ACEOF
8791#define HAVE_LINK_EXPORT_DYNAMIC 1
8792_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008793
8794 fi
8795
8796
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008797
8798
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008799{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8800echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8801if test "${ac_cv_c_const+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008803else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008809/* end confdefs.h. */
8810
8811int
8812main ()
8813{
8814/* FIXME: Include the comments suggested by Paul. */
8815#ifndef __cplusplus
8816 /* Ultrix mips cc rejects this. */
8817 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008818 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008819 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008820 char const *const *ccp;
8821 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008822 /* NEC SVR4.0.2 mips cc rejects this. */
8823 struct point {int x, y;};
8824 static struct point const zero = {0,0};
8825 /* AIX XL C 1.02.0.0 rejects this.
8826 It does not let you subtract one const X* pointer from another in
8827 an arm of an if-expression whose if-part is not a constant
8828 expression */
8829 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008830 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008831 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008832 ++ccp;
8833 p = (char**) ccp;
8834 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008835 { /* SCO 3.2v4 cc rejects this. */
8836 char *t;
8837 char const *s = 0 ? (char *) 0 : (char const *) 0;
8838
8839 *t++ = 0;
8840 if (s) return 0;
8841 }
8842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8843 int x[] = {25, 17};
8844 const int *foo = &x[0];
8845 ++foo;
8846 }
8847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8848 typedef const int *iptr;
8849 iptr p = 0;
8850 ++p;
8851 }
8852 { /* AIX XL C 1.02.0.0 rejects this saying
8853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8854 struct s { int j; const int *ap[3]; };
8855 struct s *b; b->j = 5;
8856 }
8857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8858 const int foo = 10;
8859 if (!foo) return 0;
8860 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008861 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008862#endif
8863
8864 ;
8865 return 0;
8866}
8867_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008868rm -f conftest.$ac_objext
8869if { (ac_try="$ac_compile"
8870case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886esac
8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_try") 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
8897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008902 ac_cv_c_const=yes
8903else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008908fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008909
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008912{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8913echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008914if test $ac_cv_c_const = no; then
8915
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008916cat >>confdefs.h <<\_ACEOF
8917#define const
8918_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008919
8920fi
8921
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008922
8923
8924
8925
8926
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008927ac_header_dirent=no
8928for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8930{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8931echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008934else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008935 cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008940/* end confdefs.h. */
8941#include <sys/types.h>
8942#include <$ac_hdr>
8943
8944int
8945main ()
8946{
8947if ((DIR *) 0)
8948return 0;
8949 ;
8950 return 0;
8951}
8952_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008953rm -f conftest.$ac_objext
8954if { (ac_try="$ac_compile"
8955case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981esac
8982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008987 eval "$as_ac_Header=yes"
8988else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008993fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008994
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008997ac_res=`eval echo '${'$as_ac_Header'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999echo "${ECHO_T}$ac_res" >&6; }
9000if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009001 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009002#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009003_ACEOF
9004
9005ac_header_dirent=$ac_hdr; break
9006fi
9007
9008done
9009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9010if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9012echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9013if test "${ac_cv_search_opendir+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009015else
9016 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009017cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009022/* end confdefs.h. */
9023
9024/* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
9027#ifdef __cplusplus
9028extern "C"
9029#endif
9030char opendir ();
9031int
9032main ()
9033{
9034return opendir ();
9035 ;
9036 return 0;
9037}
9038_ACEOF
9039for ac_lib in '' dir; do
9040 if test -z "$ac_lib"; then
9041 ac_res="none required"
9042 else
9043 ac_res=-l$ac_lib
9044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9045 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009046 rm -f conftest.$ac_objext conftest$ac_exeext
9047if { (ac_try="$ac_link"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009080 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009081else
9082 echo "$as_me: failed program was:" >&5
9083sed 's/^/| /' conftest.$ac_ext >&5
9084
9085
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009086fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009087
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009089 conftest$ac_exeext
9090 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009091 break
9092fi
9093done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009094if test "${ac_cv_search_opendir+set}" = set; then
9095 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009096else
9097 ac_cv_search_opendir=no
9098fi
9099rm conftest.$ac_ext
9100LIBS=$ac_func_search_save_LIBS
9101fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009102{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9103echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009104ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009105if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9107
9108fi
9109
9110else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9112echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9113if test "${ac_cv_search_opendir+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009115else
9116 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009117cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009122/* end confdefs.h. */
9123
9124/* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9127#ifdef __cplusplus
9128extern "C"
9129#endif
9130char opendir ();
9131int
9132main ()
9133{
9134return opendir ();
9135 ;
9136 return 0;
9137}
9138_ACEOF
9139for ac_lib in '' x; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9142 else
9143 ac_res=-l$ac_lib
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009146 rm -f conftest.$ac_objext conftest$ac_exeext
9147if { (ac_try="$ac_link"
9148case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151esac
9152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_link") 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174esac
9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009180 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009181else
9182 echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009186fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009187
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009188rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009189 conftest$ac_exeext
9190 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009191 break
9192fi
9193done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009194if test "${ac_cv_search_opendir+set}" = set; then
9195 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009196else
9197 ac_cv_search_opendir=no
9198fi
9199rm conftest.$ac_ext
9200LIBS=$ac_func_search_save_LIBS
9201fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009202{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9203echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009204ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009205if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207
9208fi
9209
9210fi
9211
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009212
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009213for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009214do
9215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221fi
9222ac_res=`eval echo '${'$as_ac_Header'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224echo "${ECHO_T}$ac_res" >&6; }
9225else
9226 # Is the header compilable?
9227{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235$ac_includes_default
9236#include <$ac_header>
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (ac_try="$ac_compile"
9240case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256esac
9257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266esac
9267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9273else
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_header_compiler=no
9278fi
9279
9280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9282echo "${ECHO_T}$ac_header_compiler" >&6; }
9283
9284# Is the header present?
9285{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9287cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h. */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293#include <$ac_header>
9294_ACEOF
9295if { (ac_try="$ac_cpp conftest.$ac_ext"
9296case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299esac
9300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311 else
9312 ac_cpp_err=
9313 fi
9314else
9315 ac_cpp_err=yes
9316fi
9317if test -z "$ac_cpp_err"; then
9318 ac_header_preproc=yes
9319else
9320 echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_header_preproc=no
9324fi
9325
9326rm -f conftest.err conftest.$ac_ext
9327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328echo "${ECHO_T}$ac_header_preproc" >&6; }
9329
9330# So? What about this header?
9331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9332 yes:no: )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9338 ;;
9339 no:yes:* )
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9352 ( cat <<\_ASBOX
9353## ----------------------------------- ##
9354## Report this to llvmbugs@cs.uiuc.edu ##
9355## ----------------------------------- ##
9356_ASBOX
9357 ) | sed "s/^/$as_me: WARNING: /" >&2
9358 ;;
9359esac
9360{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364else
9365 eval "$as_ac_Header=\$ac_header_preproc"
9366fi
9367ac_res=`eval echo '${'$as_ac_Header'}'`
9368 { echo "$as_me:$LINENO: result: $ac_res" >&5
9369echo "${ECHO_T}$ac_res" >&6; }
9370
9371fi
9372if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009373 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009375_ACEOF
9376
9377fi
9378
9379done
9380
9381# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009382if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009383 enableval=$enable_ltdl_install;
9384fi
9385
9386
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009387
9388
9389if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009390 INSTALL_LTDL_TRUE=
9391 INSTALL_LTDL_FALSE='#'
9392else
9393 INSTALL_LTDL_TRUE='#'
9394 INSTALL_LTDL_FALSE=
9395fi
9396
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009397
9398
9399if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009400 CONVENIENCE_LTDL_TRUE=
9401 CONVENIENCE_LTDL_FALSE='#'
9402else
9403 CONVENIENCE_LTDL_TRUE='#'
9404 CONVENIENCE_LTDL_FALSE=
9405fi
9406
9407
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009408{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9409echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009410library_names_spec=
9411libname_spec='lib$name'
9412soname_spec=
9413shrext_cmds=".so"
9414postinstall_cmds=
9415postuninstall_cmds=
9416finish_cmds=
9417finish_eval=
9418shlibpath_var=
9419shlibpath_overrides_runpath=unknown
9420version_type=none
9421dynamic_linker="$host_os ld.so"
9422sys_lib_dlsearch_path_spec="/lib /usr/lib"
9423if test "$GCC" = yes; then
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9426 # if the path contains ";" then we assume it to be the separator
9427 # otherwise default to the standard path separator (i.e. ":") - it is
9428 # assumed that no part of a normal pathname contains ";" but that should
9429 # okay in the real world where ";" in dirpaths is itself problematic.
9430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9431 else
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9433 fi
9434else
9435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9436fi
9437need_lib_prefix=unknown
9438hardcode_into_libs=no
9439
9440# when you set need_version to no, make sure it does not cause -set_version
9441# flags to be left without arguments
9442need_version=unknown
9443
9444case $host_os in
9445aix3*)
9446 version_type=linux
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9448 shlibpath_var=LIBPATH
9449
9450 # AIX 3 has no versioning support, so we append a major version to the name.
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 ;;
9453
9454aix4* | aix5*)
9455 version_type=linux
9456 need_lib_prefix=no
9457 need_version=no
9458 hardcode_into_libs=yes
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 supports IA64
9461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 else
9464 # With GCC up to 2.95.x, collect2 would create an import file
9465 # for dependence libraries. The import file would start with
9466 # the line `#! .'. This would cause the generated library to
9467 # depend on `.', always an invalid library. This was fixed in
9468 # development snapshots of GCC prior to 3.0.
9469 case $host_os in
9470 aix4 | aix4.[01] | aix4.[01].*)
9471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9472 echo ' yes '
9473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9474 :
9475 else
9476 can_build_shared=no
9477 fi
9478 ;;
9479 esac
9480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9481 # soname into executable. Probably we can add versioning support to
9482 # collect2, so additional links can be useful in future.
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9485 # instead of lib<name>.a to let people know that these are not
9486 # typical AIX shared libraries.
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 else
9489 # We preserve .a as extension for shared libraries through AIX4.2
9490 # and later when we are not doing run time linking.
9491 library_names_spec='${libname}${release}.a $libname.a'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 fi
9494 shlibpath_var=LIBPATH
9495 fi
9496 ;;
9497
9498amigaos*)
9499 library_names_spec='$libname.ixlibrary $libname.a'
9500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9501 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'
9502 ;;
9503
9504beos*)
9505 library_names_spec='${libname}${shared_ext}'
9506 dynamic_linker="$host_os ld.so"
9507 shlibpath_var=LIBRARY_PATH
9508 ;;
9509
9510bsdi[45]*)
9511 version_type=linux
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9519 # the default ld.so.conf also contains /usr/contrib/lib and
9520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9521 # libtool to hard-code these into programs
9522 ;;
9523
9524cygwin* | mingw* | pw32*)
9525 version_type=windows
9526 shrext_cmds=".dll"
9527 need_version=no
9528 need_lib_prefix=no
9529
9530 case $GCC,$host_os in
9531 yes,cygwin* | yes,mingw* | yes,pw32*)
9532 library_names_spec='$libname.dll.a'
9533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9534 postinstall_cmds='base_file=`basename \${file}`~
9535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9536 dldir=$destdir/`dirname \$dlpath`~
9537 test -d \$dldir || mkdir -p \$dldir~
9538 $install_prog $dir/$dlname \$dldir/$dlname~
9539 chmod a+x \$dldir/$dlname'
9540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9541 dlpath=$dir/\$dldll~
9542 $rm \$dlpath'
9543 shlibpath_overrides_runpath=yes
9544
9545 case $host_os in
9546 cygwin*)
9547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9550 ;;
9551 mingw*)
9552 # MinGW DLLs use traditional 'lib' prefix
9553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9556 # It is most probably a Windows format PATH printed by
9557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9558 # path with ; separators, and with drive letters. We can handle the
9559 # drive letters (cygwin fileutils understands them), so leave them,
9560 # especially as we might pass files found there to a mingw objdump,
9561 # which wouldn't understand a cygwinified path. Ahh.
9562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 else
9564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9565 fi
9566 ;;
9567 pw32*)
9568 # pw32 DLLs use 'pw' prefix rather than 'lib'
9569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9570 ;;
9571 esac
9572 ;;
9573
9574 *)
9575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9576 ;;
9577 esac
9578 dynamic_linker='Win32 ld.exe'
9579 # FIXME: first we should search . and the directory the executable is in
9580 shlibpath_var=PATH
9581 ;;
9582
9583darwin* | rhapsody*)
9584 dynamic_linker="$host_os dyld"
9585 version_type=darwin
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9589 soname_spec='${libname}${release}${major}$shared_ext'
9590 shlibpath_overrides_runpath=yes
9591 shlibpath_var=DYLD_LIBRARY_PATH
9592 shrext_cmds='.dylib'
9593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9594 if test "$GCC" = yes; then
9595 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"`
9596 else
9597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9598 fi
9599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9600 ;;
9601
9602dgux*)
9603 version_type=linux
9604 need_lib_prefix=no
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 ;;
9610
9611freebsd1*)
9612 dynamic_linker=no
9613 ;;
9614
9615kfreebsd*-gnu)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=no
9623 hardcode_into_libs=yes
9624 dynamic_linker='GNU ld.so'
9625 ;;
9626
9627freebsd* | dragonfly*)
9628 # DragonFly does not have aout. When/if they implement a new
9629 # versioning mechanism, adjust this.
9630 if test -x /usr/bin/objformat; then
9631 objformat=`/usr/bin/objformat`
9632 else
9633 case $host_os in
9634 freebsd[123]*) objformat=aout ;;
9635 *) objformat=elf ;;
9636 esac
9637 fi
9638 version_type=freebsd-$objformat
9639 case $version_type in
9640 freebsd-elf*)
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9642 need_version=no
9643 need_lib_prefix=no
9644 ;;
9645 freebsd-*)
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9647 need_version=yes
9648 ;;
9649 esac
9650 shlibpath_var=LD_LIBRARY_PATH
9651 case $host_os in
9652 freebsd2*)
9653 shlibpath_overrides_runpath=yes
9654 ;;
9655 freebsd3.[01]* | freebsdelf3.[01]*)
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9658 ;;
9659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9661 shlibpath_overrides_runpath=no
9662 hardcode_into_libs=yes
9663 ;;
9664 freebsd*) # from 4.6 on
9665 shlibpath_overrides_runpath=yes
9666 hardcode_into_libs=yes
9667 ;;
9668 esac
9669 ;;
9670
9671gnu*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 hardcode_into_libs=yes
9679 ;;
9680
9681hpux9* | hpux10* | hpux11*)
9682 # Give a soname corresponding to the major version so that dld.sl refuses to
9683 # link against other versions.
9684 version_type=sunos
9685 need_lib_prefix=no
9686 need_version=no
9687 case $host_cpu in
9688 ia64*)
9689 shrext_cmds='.so'
9690 hardcode_into_libs=yes
9691 dynamic_linker="$host_os dld.so"
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 if test "X$HPUX_IA64_MODE" = X32; then
9697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9698 else
9699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9700 fi
9701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9702 ;;
9703 hppa*64*)
9704 shrext_cmds='.sl'
9705 hardcode_into_libs=yes
9706 dynamic_linker="$host_os dld.sl"
9707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9713 ;;
9714 *)
9715 shrext_cmds='.sl'
9716 dynamic_linker="$host_os dld.sl"
9717 shlibpath_var=SHLIB_PATH
9718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 ;;
9722 esac
9723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9724 postinstall_cmds='chmod 555 $lib'
9725 ;;
9726
9727interix3*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9737 ;;
9738
9739irix5* | irix6* | nonstopux*)
9740 case $host_os in
9741 nonstopux*) version_type=nonstopux ;;
9742 *)
9743 if test "$lt_cv_prog_gnu_ld" = yes; then
9744 version_type=linux
9745 else
9746 version_type=irix
9747 fi ;;
9748 esac
9749 need_lib_prefix=no
9750 need_version=no
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9753 case $host_os in
9754 irix5* | nonstopux*)
9755 libsuff= shlibsuff=
9756 ;;
9757 *)
9758 case $LD in # libtool.m4 will add one of these switches to LD
9759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9760 libsuff= shlibsuff= libmagic=32-bit;;
9761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9762 libsuff=32 shlibsuff=N32 libmagic=N32;;
9763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9765 *) libsuff= shlibsuff= libmagic=never-match;;
9766 esac
9767 ;;
9768 esac
9769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9770 shlibpath_overrides_runpath=no
9771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9773 hardcode_into_libs=yes
9774 ;;
9775
9776# No shared lib support for Linux oldld, aout, or coff.
9777linux*oldld* | linux*aout* | linux*coff*)
9778 dynamic_linker=no
9779 ;;
9780
9781# This must be Linux ELF.
9782linux*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=no
9791 # This implies no fast_install, which is unacceptable.
9792 # Some rework will be needed to allow for fast_install
9793 # before this can be enabled.
9794 hardcode_into_libs=yes
9795
9796 # Append ld.so.conf contents to the search path
9797 if test -f /etc/ld.so.conf; then
9798 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' ' '`
9799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9800 fi
9801
9802 # We used to test for /lib/ld.so.1 and disable shared libraries on
9803 # powerpc, because MkLinux only supported shared libraries with the
9804 # GNU dynamic linker. Since this was broken with cross compilers,
9805 # most powerpc-linux boxes support dynamic linking these days and
9806 # people can always --disable-shared, the test was removed, and we
9807 # assume the GNU/Linux dynamic linker is in use.
9808 dynamic_linker='GNU/Linux ld.so'
9809 ;;
9810
9811knetbsd*-gnu)
9812 version_type=linux
9813 need_lib_prefix=no
9814 need_version=no
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 hardcode_into_libs=yes
9820 dynamic_linker='GNU ld.so'
9821 ;;
9822
9823netbsd*)
9824 version_type=sunos
9825 need_lib_prefix=no
9826 need_version=no
9827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9830 dynamic_linker='NetBSD (a.out) ld.so'
9831 else
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 dynamic_linker='NetBSD ld.elf_so'
9835 fi
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9839 ;;
9840
9841newsos6)
9842 version_type=linux
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes
9846 ;;
9847
9848nto-qnx*)
9849 version_type=linux
9850 need_lib_prefix=no
9851 need_version=no
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9856 ;;
9857
9858openbsd*)
9859 version_type=sunos
9860 sys_lib_dlsearch_path_spec="/usr/lib"
9861 need_lib_prefix=no
9862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9863 case $host_os in
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9866 esac
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 case $host_os in
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9874 ;;
9875 *)
9876 shlibpath_overrides_runpath=yes
9877 ;;
9878 esac
9879 else
9880 shlibpath_overrides_runpath=yes
9881 fi
9882 ;;
9883
9884os2*)
9885 libname_spec='$name'
9886 shrext_cmds=".dll"
9887 need_lib_prefix=no
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9891 ;;
9892
9893osf3* | osf4* | osf5*)
9894 version_type=osf
9895 need_lib_prefix=no
9896 need_version=no
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9902 ;;
9903
9904solaris*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 hardcode_into_libs=yes
9913 # ldd complains unless libraries are executable
9914 postinstall_cmds='chmod +x $lib'
9915 ;;
9916
9917sunos4*)
9918 version_type=sunos
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 if test "$with_gnu_ld" = yes; then
9924 need_lib_prefix=no
9925 fi
9926 need_version=yes
9927 ;;
9928
9929sysv4 | sysv4.3*)
9930 version_type=linux
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 case $host_vendor in
9935 sni)
9936 shlibpath_overrides_runpath=no
9937 need_lib_prefix=no
9938 export_dynamic_flag_spec='${wl}-Blargedynsym'
9939 runpath_var=LD_RUN_PATH
9940 ;;
9941 siemens)
9942 need_lib_prefix=no
9943 ;;
9944 motorola)
9945 need_lib_prefix=no
9946 need_version=no
9947 shlibpath_overrides_runpath=no
9948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9949 ;;
9950 esac
9951 ;;
9952
9953sysv4*MP*)
9954 if test -d /usr/nec ;then
9955 version_type=linux
9956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9957 soname_spec='$libname${shared_ext}.$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 fi
9960 ;;
9961
9962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9963 version_type=freebsd-elf
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9970 if test "$with_gnu_ld" = yes; then
9971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9972 shlibpath_overrides_runpath=no
9973 else
9974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9975 shlibpath_overrides_runpath=yes
9976 case $host_os in
9977 sco3.2v5*)
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9979 ;;
9980 esac
9981 fi
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9983 ;;
9984
9985uts4*)
9986 version_type=linux
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9990 ;;
9991
9992*)
9993 dynamic_linker=no
9994 ;;
9995esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009996{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9997echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009998test "$dynamic_linker" = no && can_build_shared=no
9999
10000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10001if test "$GCC" = yes; then
10002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10003fi
10004
10005
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010006{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10007echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10008if test "${libltdl_cv_shlibext+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010010else
10011
10012module=yes
10013eval libltdl_cv_shlibext=$shrext_cmds
10014
10015fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010016{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10017echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010018if test -n "$libltdl_cv_shlibext"; then
10019
10020cat >>confdefs.h <<_ACEOF
10021#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10022_ACEOF
10023
10024fi
10025
10026
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010027{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10028echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10029if test "${libltdl_cv_shlibpath_var+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010031else
10032 libltdl_cv_shlibpath_var="$shlibpath_var"
10033fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010034{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10035echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010036if test -n "$libltdl_cv_shlibpath_var"; then
10037
10038cat >>confdefs.h <<_ACEOF
10039#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10040_ACEOF
10041
10042fi
10043
10044
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010045{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10046echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10047if test "${libltdl_cv_sys_search_path+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010049else
10050 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10051fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010052{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10053echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010054if test -n "$libltdl_cv_sys_search_path"; then
10055 sys_search_path=
10056 for dir in $libltdl_cv_sys_search_path; do
10057 if test -z "$sys_search_path"; then
10058 sys_search_path="$dir"
10059 else
10060 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10061 fi
10062 done
10063
10064cat >>confdefs.h <<_ACEOF
10065#define LTDL_SYSSEARCHPATH "$sys_search_path"
10066_ACEOF
10067
10068fi
10069
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010070{ echo "$as_me:$LINENO: checking for objdir" >&5
10071echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10072if test "${libltdl_cv_objdir+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010074else
10075 libltdl_cv_objdir="$objdir"
10076 if test -n "$objdir"; then
10077 :
10078 else
10079 rm -f .libs 2>/dev/null
10080 mkdir .libs 2>/dev/null
10081 if test -d .libs; then
10082 libltdl_cv_objdir=.libs
10083 else
10084 # MS-DOS does not allow filenames that begin with a dot.
10085 libltdl_cv_objdir=_libs
10086 fi
10087 rmdir .libs 2>/dev/null
10088 fi
10089
10090fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010091{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10092echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010093
10094cat >>confdefs.h <<_ACEOF
10095#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10096_ACEOF
10097
10098
10099
10100
10101
10102
10103# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010104{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10105echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10106if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010108else
10109
10110# These are sane defaults that work on at least a few old systems.
10111# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10112
10113# Character class describing NM global symbol codes.
10114symcode='[BCDEGRST]'
10115
10116# Regexp to match symbols that can be accessed directly from C.
10117sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10118
10119# Transform an extracted symbol line into a proper C declaration
10120lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10121
10122# Transform an extracted symbol line into symbol name and symbol address
10123lt_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'"
10124
10125# Define system-specific variables.
10126case $host_os in
10127aix*)
10128 symcode='[BCDT]'
10129 ;;
10130cygwin* | mingw* | pw32*)
10131 symcode='[ABCDGISTW]'
10132 ;;
10133hpux*) # Its linker distinguishes data from code symbols
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDEGRST]'
10136 fi
10137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10138 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'"
10139 ;;
10140linux*)
10141 if test "$host_cpu" = ia64; then
10142 symcode='[ABCDGIRSTW]'
10143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10144 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'"
10145 fi
10146 ;;
10147irix* | nonstopux*)
10148 symcode='[BCDEGRST]'
10149 ;;
10150osf*)
10151 symcode='[BCDEGQRST]'
10152 ;;
10153solaris*)
10154 symcode='[BDRT]'
10155 ;;
10156sco3.2v5*)
10157 symcode='[DT]'
10158 ;;
10159sysv4.2uw2*)
10160 symcode='[DT]'
10161 ;;
10162sysv5* | sco5v6* | unixware* | OpenUNIX*)
10163 symcode='[ABDT]'
10164 ;;
10165sysv4)
10166 symcode='[DFNSTU]'
10167 ;;
10168esac
10169
10170# Handle CRLF in mingw tool chain
10171opt_cr=
10172case $build_os in
10173mingw*)
10174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10175 ;;
10176esac
10177
10178# If we're using GNU nm, then use its standard symbol codes.
10179case `$NM -V 2>&1` in
10180*GNU* | *'with BFD'*)
10181 symcode='[ABCDGIRSTW]' ;;
10182esac
10183
10184# Try without a prefix undercore, then with it.
10185for ac_symprfx in "" "_"; do
10186
10187 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10188 symxfrm="\\1 $ac_symprfx\\2 \\2"
10189
10190 # Write the raw and C identifiers.
10191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10192
10193 # Check to see that the pipe works correctly.
10194 pipe_works=no
10195
10196 rm -f conftest*
10197 cat > conftest.$ac_ext <<EOF
10198#ifdef __cplusplus
10199extern "C" {
10200#endif
10201char nm_test_var;
10202void nm_test_func(){}
10203#ifdef __cplusplus
10204}
10205#endif
10206int main(){nm_test_var='a';nm_test_func();return(0);}
10207EOF
10208
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010210 (eval $ac_compile) 2>&5
10211 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010214 # Now try to grab the symbols.
10215 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010216 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 +000010217 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10218 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010221 # Try sorting and uniquifying the output.
10222 if sort "$nlist" | uniq > "$nlist"T; then
10223 mv -f "$nlist"T "$nlist"
10224 else
10225 rm -f "$nlist"T
10226 fi
10227
10228 # Make sure that we snagged all the symbols we need.
10229 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10230 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10231 cat <<EOF > conftest.$ac_ext
10232#ifdef __cplusplus
10233extern "C" {
10234#endif
10235
10236EOF
10237 # Now generate the symbol file.
10238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10239
10240 cat <<EOF >> conftest.$ac_ext
10241#if defined (__STDC__) && __STDC__
10242# define lt_ptr_t void *
10243#else
10244# define lt_ptr_t char *
10245# define const
10246#endif
10247
10248/* The mapping between symbol names and symbols. */
10249const struct {
10250 const char *name;
10251 lt_ptr_t address;
10252}
10253lt_preloaded_symbols[] =
10254{
10255EOF
10256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10257 cat <<\EOF >> conftest.$ac_ext
10258 {0, (lt_ptr_t) 0}
10259};
10260
10261#ifdef __cplusplus
10262}
10263#endif
10264EOF
10265 # Now try linking the two files.
10266 mv conftest.$ac_objext conftstm.$ac_objext
10267 lt_save_LIBS="$LIBS"
10268 lt_save_CFLAGS="$CFLAGS"
10269 LIBS="conftstm.$ac_objext"
10270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010272 (eval $ac_link) 2>&5
10273 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010276 pipe_works=yes
10277 fi
10278 LIBS="$lt_save_LIBS"
10279 CFLAGS="$lt_save_CFLAGS"
10280 else
10281 echo "cannot find nm_test_func in $nlist" >&5
10282 fi
10283 else
10284 echo "cannot find nm_test_var in $nlist" >&5
10285 fi
10286 else
10287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10288 fi
10289 else
10290 echo "$progname: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 fi
10293 rm -f conftest* conftst*
10294
10295 # Do not use the global_symbol_pipe unless it works.
10296 if test "$pipe_works" = yes; then
10297 break
10298 else
10299 lt_cv_sys_global_symbol_pipe=
10300 fi
10301done
10302
10303fi
10304
10305if test -z "$lt_cv_sys_global_symbol_pipe"; then
10306 lt_cv_sys_global_symbol_to_cdecl=
10307fi
10308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010309 { echo "$as_me:$LINENO: result: failed" >&5
10310echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010311else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010312 { echo "$as_me:$LINENO: result: ok" >&5
10313echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010314fi
10315
10316
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10318echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10319if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010321else
10322 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10323 libltdl_cv_preloaded_symbols=yes
10324 else
10325 libltdl_cv_preloaded_symbols=no
10326 fi
10327
10328fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010329{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10330echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010331if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10332
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010333cat >>confdefs.h <<\_ACEOF
10334#define HAVE_PRELOADED_SYMBOLS 1
10335_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010336
10337fi
10338
10339LIBADD_DL=
10340
10341ac_ext=c
10342ac_cpp='$CPP $CPPFLAGS'
10343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346
10347
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010348{ echo "$as_me:$LINENO: checking for shl_load" >&5
10349echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10350if test "${ac_cv_func_shl_load+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
10359/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10361#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010362
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010363/* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char shl_load (); below.
10365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366 <limits.h> exists even on freestanding compilers. */
10367
10368#ifdef __STDC__
10369# include <limits.h>
10370#else
10371# include <assert.h>
10372#endif
10373
10374#undef shl_load
10375
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382char shl_load ();
10383/* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386#if defined __stub_shl_load || defined __stub___shl_load
10387choke me
10388#endif
10389
10390int
10391main ()
10392{
10393return shl_load ();
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426esac
10427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_func_shl_load=yes
10433else
10434 echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_cv_func_shl_load=no
10438fi
10439
10440rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442fi
10443{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10445if test $ac_cv_func_shl_load = yes; then
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define HAVE_SHL_LOAD 1
10449_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010450
10451else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010452 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10453echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10454if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010456else
10457 ac_check_lib_save_LIBS=$LIBS
10458LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010459cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010464/* end confdefs.h. */
10465
10466/* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469#ifdef __cplusplus
10470extern "C"
10471#endif
10472char shl_load ();
10473int
10474main ()
10475{
10476return shl_load ();
10477 ;
10478 return 0;
10479}
10480_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010481rm -f conftest.$ac_objext conftest$ac_exeext
10482if { (ac_try="$ac_link"
10483case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010515 ac_cv_lib_dld_shl_load=yes
10516else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010517 echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010521fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010522
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010523rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010524 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010525LIBS=$ac_check_lib_save_LIBS
10526fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010527{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10528echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10529if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010530
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010531cat >>confdefs.h <<\_ACEOF
10532#define HAVE_SHL_LOAD 1
10533_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010534
10535 LIBADD_DL="$LIBADD_DL -ldld"
10536else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10539if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010541else
10542 ac_check_lib_save_LIBS=$LIBS
10543LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010544cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010549/* end confdefs.h. */
10550
10551/* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554#ifdef __cplusplus
10555extern "C"
10556#endif
10557char dlopen ();
10558int
10559main ()
10560{
10561return dlopen ();
10562 ;
10563 return 0;
10564}
10565_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (ac_try="$ac_link"
10568case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010600 ac_cv_lib_dl_dlopen=yes
10601else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010606fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010607
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010608rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010609 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010610LIBS=$ac_check_lib_save_LIBS
10611fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010612{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10614if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010615
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010616cat >>confdefs.h <<\_ACEOF
10617#define HAVE_LIBDL 1
10618_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010619
10620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10621else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010622 cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010627/* end confdefs.h. */
10628#if HAVE_DLFCN_H
10629# include <dlfcn.h>
10630#endif
10631
10632int
10633main ()
10634{
10635dlopen(0, 0);
10636 ;
10637 return 0;
10638}
10639_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010640rm -f conftest.$ac_objext conftest$ac_exeext
10641if { (ac_try="$ac_link"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_link") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668esac
10669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_try") 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010674
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010675cat >>confdefs.h <<\_ACEOF
10676#define HAVE_LIBDL 1
10677_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010678 libltdl_cv_func_dlopen="yes"
10679else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10684echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10685if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010687else
10688 ac_check_lib_save_LIBS=$LIBS
10689LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010690cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010695/* end confdefs.h. */
10696
10697/* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703char dlopen ();
10704int
10705main ()
10706{
10707return dlopen ();
10708 ;
10709 return 0;
10710}
10711_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010712rm -f conftest.$ac_objext conftest$ac_exeext
10713if { (ac_try="$ac_link"
10714case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010746 ac_cv_lib_svld_dlopen=yes
10747else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010752fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010753
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010755 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010756LIBS=$ac_check_lib_save_LIBS
10757fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010758{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10760if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010761
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010762cat >>confdefs.h <<\_ACEOF
10763#define HAVE_LIBDL 1
10764_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010765
10766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10767else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010772else
10773 ac_check_lib_save_LIBS=$LIBS
10774LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010775cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010780/* end confdefs.h. */
10781
10782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785#ifdef __cplusplus
10786extern "C"
10787#endif
10788char dld_link ();
10789int
10790main ()
10791{
10792return dld_link ();
10793 ;
10794 return 0;
10795}
10796_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010797rm -f conftest.$ac_objext conftest$ac_exeext
10798if { (ac_try="$ac_link"
10799case "(($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_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010831 ac_cv_lib_dld_dld_link=yes
10832else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010837fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010838
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010839rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010840 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010841LIBS=$ac_check_lib_save_LIBS
10842fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10844echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10845if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010846
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010847cat >>confdefs.h <<\_ACEOF
10848#define HAVE_DLD 1
10849_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010850
10851 LIBADD_DL="$LIBADD_DL -ldld"
10852else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010853 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10854echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10855if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010867
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010868/* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char _dyld_func_lookup (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010872
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010873#ifdef __STDC__
10874# include <limits.h>
10875#else
10876# include <assert.h>
10877#endif
10878
10879#undef _dyld_func_lookup
10880
10881/* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884#ifdef __cplusplus
10885extern "C"
10886#endif
10887char _dyld_func_lookup ();
10888/* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10892choke me
10893#endif
10894
10895int
10896main ()
10897{
10898return _dyld_func_lookup ();
10899 ;
10900 return 0;
10901}
10902_ACEOF
10903rm -f conftest.$ac_objext conftest$ac_exeext
10904if { (ac_try="$ac_link"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_func__dyld_func_lookup=yes
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010943fi
10944
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010945rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010946 conftest$ac_exeext conftest.$ac_ext
10947fi
10948{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10949echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10950if test $ac_cv_func__dyld_func_lookup = yes; then
10951
10952cat >>confdefs.h <<\_ACEOF
10953#define HAVE_DYLD 1
10954_ACEOF
10955
10956fi
10957
10958
10959fi
10960
10961
10962fi
10963
10964
10965fi
10966
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010969
10970fi
10971
10972
10973fi
10974
10975
10976fi
10977
10978
10979if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10980then
10981 lt_save_LIBS="$LIBS"
10982 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010983
10984for ac_func in dlerror
10985do
10986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000#define $ac_func innocuous_$ac_func
11001
11002/* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11006
11007#ifdef __STDC__
11008# include <limits.h>
11009#else
11010# include <assert.h>
11011#endif
11012
11013#undef $ac_func
11014
11015/* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char $ac_func ();
11022/* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025#if defined __stub_$ac_func || defined __stub___$ac_func
11026choke me
11027#endif
11028
11029int
11030main ()
11031{
11032return $ac_func ();
11033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
11038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 eval "$as_ac_var=yes"
11072else
11073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 eval "$as_ac_var=no"
11077fi
11078
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081fi
11082ac_res=`eval echo '${'$as_ac_var'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084echo "${ECHO_T}$ac_res" >&6; }
11085if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011086 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011088_ACEOF
11089
11090fi
11091done
11092
11093 LIBS="$lt_save_LIBS"
11094fi
11095ac_ext=c
11096ac_cpp='$CPP $CPPFLAGS'
11097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101
11102
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011103{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11104echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11105if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011107else
11108 ac_cv_sys_symbol_underscore=no
11109 cat > conftest.$ac_ext <<EOF
11110void nm_test_func(){}
11111int main(){nm_test_func;return 0;}
11112EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011114 (eval $ac_compile) 2>&5
11115 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011118 # Now try to grab the symbols.
11119 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011120 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 +000011121 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11122 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011125 # See whether the symbols have a leading underscore.
11126 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11127 ac_cv_sys_symbol_underscore=yes
11128 else
11129 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11130 :
11131 else
11132 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11133 fi
11134 fi
11135 else
11136 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11137 fi
11138 else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.c >&5
11141 fi
11142 rm -rf conftest*
11143
11144fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011145{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11146echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011147
11148
11149if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11150 if test x"$libltdl_cv_func_dlopen" = xyes ||
11151 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011152 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11153echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11154if test "${libltdl_cv_need_uscore+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011156else
11157 libltdl_cv_need_uscore=unknown
11158 save_LIBS="$LIBS"
11159 LIBS="$LIBS $LIBADD_DL"
11160 if test "$cross_compiling" = yes; then :
11161 libltdl_cv_need_uscore=cross
11162else
11163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164 lt_status=$lt_dlunknown
11165 cat > conftest.$ac_ext <<EOF
Daniel Dunbar41bab122010-04-10 18:56:24 +000011166#line 11166 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011167#include "confdefs.h"
11168
11169#if HAVE_DLFCN_H
11170#include <dlfcn.h>
11171#endif
11172
11173#include <stdio.h>
11174
11175#ifdef RTLD_GLOBAL
11176# define LT_DLGLOBAL RTLD_GLOBAL
11177#else
11178# ifdef DL_GLOBAL
11179# define LT_DLGLOBAL DL_GLOBAL
11180# else
11181# define LT_DLGLOBAL 0
11182# endif
11183#endif
11184
11185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186 find out it does not work in some platform. */
11187#ifndef LT_DLLAZY_OR_NOW
11188# ifdef RTLD_LAZY
11189# define LT_DLLAZY_OR_NOW RTLD_LAZY
11190# else
11191# ifdef DL_LAZY
11192# define LT_DLLAZY_OR_NOW DL_LAZY
11193# else
11194# ifdef RTLD_NOW
11195# define LT_DLLAZY_OR_NOW RTLD_NOW
11196# else
11197# ifdef DL_NOW
11198# define LT_DLLAZY_OR_NOW DL_NOW
11199# else
11200# define LT_DLLAZY_OR_NOW 0
11201# endif
11202# endif
11203# endif
11204# endif
11205#endif
11206
11207#ifdef __cplusplus
11208extern "C" void exit (int);
11209#endif
11210
11211void fnord() { int i=42;}
11212int main ()
11213{
11214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215 int status = $lt_dlunknown;
11216
11217 if (self)
11218 {
11219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 /* dlclose (self); */
11222 }
11223 else
11224 puts (dlerror ());
11225
11226 exit (status);
11227}
11228EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011230 (eval $ac_link) 2>&5
11231 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011234 (./conftest; exit; ) >&5 2>/dev/null
11235 lt_status=$?
11236 case x$lt_status in
11237 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11238 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11239 x$lt_dlunknown|x*) ;;
11240 esac
11241 else :
11242 # compilation failed
11243
11244 fi
11245fi
11246rm -fr conftest*
11247
11248 LIBS="$save_LIBS"
11249
11250fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011251{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11252echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011253 fi
11254fi
11255
11256if test x"$libltdl_cv_need_uscore" = xyes; then
11257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011258cat >>confdefs.h <<\_ACEOF
11259#define NEED_USCORE 1
11260_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011261
11262fi
11263
11264
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011265{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11266echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11267if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011269else
11270 # PORTME does your system automatically load deplibs for dlopen?
11271 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11272 # For now, we just catch OSes we know something about -- in the
11273 # future, we'll try test this programmatically.
11274 libltdl_cv_sys_dlopen_deplibs=unknown
11275 case "$host_os" in
11276 aix3*|aix4.1.*|aix4.2.*)
11277 # Unknown whether this is true for these versions of AIX, but
11278 # we want this `case' here to explicitly catch those versions.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11280 ;;
11281 aix[45]*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11283 ;;
11284 darwin*)
11285 # Assuming the user has installed a libdl from somewhere, this is true
11286 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11287 libltdl_cv_sys_dlopen_deplibs=yes
11288 ;;
11289 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11290 # GNU and its variants, using gnu ld.so (Glibc)
11291 libltdl_cv_sys_dlopen_deplibs=yes
11292 ;;
11293 hpux10*|hpux11*)
11294 libltdl_cv_sys_dlopen_deplibs=yes
11295 ;;
11296 interix*)
11297 libltdl_cv_sys_dlopen_deplibs=yes
11298 ;;
11299 irix[12345]*|irix6.[01]*)
11300 # Catch all versions of IRIX before 6.2, and indicate that we don't
11301 # know how it worked for any of those versions.
11302 libltdl_cv_sys_dlopen_deplibs=unknown
11303 ;;
11304 irix*)
11305 # The case above catches anything before 6.2, and it's known that
11306 # at 6.2 and later dlopen does load deplibs.
11307 libltdl_cv_sys_dlopen_deplibs=yes
11308 ;;
11309 netbsd*)
11310 libltdl_cv_sys_dlopen_deplibs=yes
11311 ;;
11312 openbsd*)
11313 libltdl_cv_sys_dlopen_deplibs=yes
11314 ;;
11315 osf[1234]*)
11316 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11317 # it did *not* use an RPATH in a shared library to find objects the
11318 # library depends on, so we explictly say `no'.
11319 libltdl_cv_sys_dlopen_deplibs=no
11320 ;;
11321 osf5.0|osf5.0a|osf5.1)
11322 # dlopen *does* load deplibs and with the right loader patch applied
11323 # it even uses RPATH in a shared library to search for shared objects
11324 # that the library depends on, but there's no easy way to know if that
11325 # patch is installed. Since this is the case, all we can really
11326 # say is unknown -- it depends on the patch being installed. If
11327 # it is, this changes to `yes'. Without it, it would be `no'.
11328 libltdl_cv_sys_dlopen_deplibs=unknown
11329 ;;
11330 osf*)
11331 # the two cases above should catch all versions of osf <= 5.1. Read
11332 # the comments above for what we know about them.
11333 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11334 # is used to find them so we can finally say `yes'.
11335 libltdl_cv_sys_dlopen_deplibs=yes
11336 ;;
11337 solaris*)
11338 libltdl_cv_sys_dlopen_deplibs=yes
11339 ;;
11340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11341 libltdl_cv_sys_dlopen_deplibs=yes
11342 ;;
11343 esac
11344
11345fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011346{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11347echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011348if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11349
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011350cat >>confdefs.h <<\_ACEOF
11351#define LTDL_DLOPEN_DEPLIBS 1
11352_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011353
11354fi
11355
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011356
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011357for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011358do
11359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365fi
11366ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368echo "${ECHO_T}$ac_res" >&6; }
11369else
11370 # Is the header compilable?
11371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379$ac_includes_default
11380#include <$ac_header>
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410esac
11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_header_compiler=no
11422fi
11423
11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11426echo "${ECHO_T}$ac_header_compiler" >&6; }
11427
11428# Is the header present?
11429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11431cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h. */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h. */
11437#include <$ac_header>
11438_ACEOF
11439if { (ac_try="$ac_cpp conftest.$ac_ext"
11440case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 else
11456 ac_cpp_err=
11457 fi
11458else
11459 ac_cpp_err=yes
11460fi
11461if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_header_preproc=no
11468fi
11469
11470rm -f conftest.err conftest.$ac_ext
11471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472echo "${ECHO_T}$ac_header_preproc" >&6; }
11473
11474# So? What about this header?
11475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 yes:no: )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc=yes
11482 ;;
11483 no:yes:* )
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11496 ( cat <<\_ASBOX
11497## ----------------------------------- ##
11498## Report this to llvmbugs@cs.uiuc.edu ##
11499## ----------------------------------- ##
11500_ASBOX
11501 ) | sed "s/^/$as_me: WARNING: /" >&2
11502 ;;
11503esac
11504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508else
11509 eval "$as_ac_Header=\$ac_header_preproc"
11510fi
11511ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513echo "${ECHO_T}$ac_res" >&6; }
11514
11515fi
11516if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011517 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011519_ACEOF
11520
11521fi
11522
11523done
11524
11525
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011526{ echo "$as_me:$LINENO: checking for error_t" >&5
11527echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11528if test "${ac_cv_type_error_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531 cat >conftest.$ac_ext <<_ACEOF
11532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
11537#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011538# include <argz.h>
11539#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011540
11541typedef error_t ac__type_new_;
11542int
11543main ()
11544{
11545if ((ac__type_new_ *) 0)
11546 return 0;
11547if (sizeof (ac__type_new_))
11548 return 0;
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext
11554if { (ac_try="$ac_compile"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_type_error_t=yes
11588else
11589 echo "$as_me: failed program was:" >&5
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_cv_type_error_t=no
11593fi
11594
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596fi
11597{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11598echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11599if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011600
11601cat >>confdefs.h <<_ACEOF
11602#define HAVE_ERROR_T 1
11603_ACEOF
11604
11605
11606else
11607
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011608cat >>confdefs.h <<\_ACEOF
11609#define error_t int
11610_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011611
11612fi
11613
11614
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011615
11616
11617
11618
11619
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011620for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011621do
11622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
11634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636#define $ac_func innocuous_$ac_func
11637
11638/* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11642
11643#ifdef __STDC__
11644# include <limits.h>
11645#else
11646# include <assert.h>
11647#endif
11648
11649#undef $ac_func
11650
11651/* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654#ifdef __cplusplus
11655extern "C"
11656#endif
11657char $ac_func ();
11658/* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661#if defined __stub_$ac_func || defined __stub___$ac_func
11662choke me
11663#endif
11664
11665int
11666main ()
11667{
11668return $ac_func ();
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext conftest$ac_exeext
11674if { (ac_try="$ac_link"
11675case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 eval "$as_ac_var=no"
11713fi
11714
11715rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717fi
11718ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720echo "${ECHO_T}$ac_res" >&6; }
11721if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011722 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011724_ACEOF
11725
11726fi
11727done
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011748
11749
11750
11751
11752
11753
11754
11755
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011756for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11757 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011758do
11759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765fi
11766ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768echo "${ECHO_T}$ac_res" >&6; }
11769else
11770 # Is the header compilable?
11771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11773cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780#include <$ac_header>
11781_ACEOF
11782rm -f conftest.$ac_objext
11783if { (ac_try="$ac_compile"
11784case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787esac
11788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler=yes
11817else
11818 echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_header_compiler=no
11822fi
11823
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11826echo "${ECHO_T}$ac_header_compiler" >&6; }
11827
11828# Is the header present?
11829{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11831cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837#include <$ac_header>
11838_ACEOF
11839if { (ac_try="$ac_cpp conftest.$ac_ext"
11840case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11855 else
11856 ac_cpp_err=
11857 fi
11858else
11859 ac_cpp_err=yes
11860fi
11861if test -z "$ac_cpp_err"; then
11862 ac_header_preproc=yes
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 ac_header_preproc=no
11868fi
11869
11870rm -f conftest.err conftest.$ac_ext
11871{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11872echo "${ECHO_T}$ac_header_preproc" >&6; }
11873
11874# So? What about this header?
11875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11876 yes:no: )
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11881 ac_header_preproc=yes
11882 ;;
11883 no:yes:* )
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11896 ( cat <<\_ASBOX
11897## ----------------------------------- ##
11898## Report this to llvmbugs@cs.uiuc.edu ##
11899## ----------------------------------- ##
11900_ASBOX
11901 ) | sed "s/^/$as_me: WARNING: /" >&2
11902 ;;
11903esac
11904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 eval "$as_ac_Header=\$ac_header_preproc"
11910fi
11911ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913echo "${ECHO_T}$ac_res" >&6; }
11914
11915fi
11916if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011917 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011919_ACEOF
11920
11921fi
11922
11923done
11924
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011925
11926
11927
11928
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011929for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011930do
11931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937fi
11938ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940echo "${ECHO_T}$ac_res" >&6; }
11941else
11942 # Is the header compilable?
11943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11945cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951$ac_includes_default
11952#include <$ac_header>
11953_ACEOF
11954rm -f conftest.$ac_objext
11955if { (ac_try="$ac_compile"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_header_compiler=yes
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 ac_header_compiler=no
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998echo "${ECHO_T}$ac_header_compiler" >&6; }
11999
12000# Is the header present?
12001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12003cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009#include <$ac_header>
12010_ACEOF
12011if { (ac_try="$ac_cpp conftest.$ac_ext"
12012case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null; then
12024 if test -s conftest.err; then
12025 ac_cpp_err=$ac_c_preproc_warn_flag
12026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12027 else
12028 ac_cpp_err=
12029 fi
12030else
12031 ac_cpp_err=yes
12032fi
12033if test -z "$ac_cpp_err"; then
12034 ac_header_preproc=yes
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 ac_header_preproc=no
12040fi
12041
12042rm -f conftest.err conftest.$ac_ext
12043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044echo "${ECHO_T}$ac_header_preproc" >&6; }
12045
12046# So? What about this header?
12047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 yes:no: )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12054 ;;
12055 no:yes:* )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 ( cat <<\_ASBOX
12069## ----------------------------------- ##
12070## Report this to llvmbugs@cs.uiuc.edu ##
12071## ----------------------------------- ##
12072_ASBOX
12073 ) | sed "s/^/$as_me: WARNING: /" >&2
12074 ;;
12075esac
12076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 eval "$as_ac_Header=\$ac_header_preproc"
12082fi
12083ac_res=`eval echo '${'$as_ac_Header'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085echo "${ECHO_T}$ac_res" >&6; }
12086
12087fi
12088if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012091_ACEOF
12092
12093fi
12094
12095done
12096
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012097
12098
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012099for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012100do
12101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107fi
12108ac_res=`eval echo '${'$as_ac_Header'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110echo "${ECHO_T}$ac_res" >&6; }
12111else
12112 # Is the header compilable?
12113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12115cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121$ac_includes_default
12122#include <$ac_header>
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (ac_try="$ac_compile"
12126case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_header_compiler=yes
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 ac_header_compiler=no
12164fi
12165
12166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12168echo "${ECHO_T}$ac_header_compiler" >&6; }
12169
12170# Is the header present?
12171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12173cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179#include <$ac_header>
12180_ACEOF
12181if { (ac_try="$ac_cpp conftest.$ac_ext"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } >/dev/null; then
12194 if test -s conftest.err; then
12195 ac_cpp_err=$ac_c_preproc_warn_flag
12196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12197 else
12198 ac_cpp_err=
12199 fi
12200else
12201 ac_cpp_err=yes
12202fi
12203if test -z "$ac_cpp_err"; then
12204 ac_header_preproc=yes
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 ac_header_preproc=no
12210fi
12211
12212rm -f conftest.err conftest.$ac_ext
12213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214echo "${ECHO_T}$ac_header_preproc" >&6; }
12215
12216# So? What about this header?
12217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 yes:no: )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12224 ;;
12225 no:yes:* )
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12238 ( cat <<\_ASBOX
12239## ----------------------------------- ##
12240## Report this to llvmbugs@cs.uiuc.edu ##
12241## ----------------------------------- ##
12242_ASBOX
12243 ) | sed "s/^/$as_me: WARNING: /" >&2
12244 ;;
12245esac
12246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 eval "$as_ac_Header=\$ac_header_preproc"
12252fi
12253ac_res=`eval echo '${'$as_ac_Header'}'`
12254 { echo "$as_me:$LINENO: result: $ac_res" >&5
12255echo "${ECHO_T}$ac_res" >&6; }
12256
12257fi
12258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012261_ACEOF
12262 break
12263fi
12264
12265done
12266
12267
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012268
12269
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012270for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012271do
12272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286#define $ac_func innocuous_$ac_func
12287
12288/* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12292
12293#ifdef __STDC__
12294# include <limits.h>
12295#else
12296# include <assert.h>
12297#endif
12298
12299#undef $ac_func
12300
12301/* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304#ifdef __cplusplus
12305extern "C"
12306#endif
12307char $ac_func ();
12308/* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311#if defined __stub_$ac_func || defined __stub___$ac_func
12312choke me
12313#endif
12314
12315int
12316main ()
12317{
12318return $ac_func ();
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
12324if { (ac_try="$ac_link"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 eval "$as_ac_var=no"
12363fi
12364
12365rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367fi
12368ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370echo "${ECHO_T}$ac_res" >&6; }
12371if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012372 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012374_ACEOF
12375 break
12376fi
12377done
12378
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012379
12380
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012381for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397#define $ac_func innocuous_$ac_func
12398
12399/* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
12412/* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415#ifdef __cplusplus
12416extern "C"
12417#endif
12418char $ac_func ();
12419/* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422#if defined __stub_$ac_func || defined __stub___$ac_func
12423choke me
12424#endif
12425
12426int
12427main ()
12428{
12429return $ac_func ();
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 eval "$as_ac_var=no"
12474fi
12475
12476rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478fi
12479ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
12482if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012485_ACEOF
12486 break
12487fi
12488done
12489
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012490
12491
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012492for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012493do
12494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508#define $ac_func innocuous_$ac_func
12509
12510/* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12514
12515#ifdef __STDC__
12516# include <limits.h>
12517#else
12518# include <assert.h>
12519#endif
12520
12521#undef $ac_func
12522
12523/* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529char $ac_func ();
12530/* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533#if defined __stub_$ac_func || defined __stub___$ac_func
12534choke me
12535#endif
12536
12537int
12538main ()
12539{
12540return $ac_func ();
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 eval "$as_ac_var=no"
12585fi
12586
12587rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589fi
12590ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592echo "${ECHO_T}$ac_res" >&6; }
12593if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012596_ACEOF
12597 break
12598fi
12599done
12600
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012601
12602
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012603for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012604do
12605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619#define $ac_func innocuous_$ac_func
12620
12621/* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12625
12626#ifdef __STDC__
12627# include <limits.h>
12628#else
12629# include <assert.h>
12630#endif
12631
12632#undef $ac_func
12633
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char $ac_func ();
12641/* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644#if defined __stub_$ac_func || defined __stub___$ac_func
12645choke me
12646#endif
12647
12648int
12649main ()
12650{
12651return $ac_func ();
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (ac_try="$ac_link"
12658case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661esac
12662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 eval "$as_ac_var=no"
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700fi
12701ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703echo "${ECHO_T}$ac_res" >&6; }
12704if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012707_ACEOF
12708
12709fi
12710done
12711
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012712
12713
12714
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012715for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012716do
12717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731#define $ac_func innocuous_$ac_func
12732
12733/* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12737
12738#ifdef __STDC__
12739# include <limits.h>
12740#else
12741# include <assert.h>
12742#endif
12743
12744#undef $ac_func
12745
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749#ifdef __cplusplus
12750extern "C"
12751#endif
12752char $ac_func ();
12753/* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756#if defined __stub_$ac_func || defined __stub___$ac_func
12757choke me
12758#endif
12759
12760int
12761main ()
12762{
12763return $ac_func ();
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext conftest$ac_exeext
12769if { (ac_try="$ac_link"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 eval "$as_ac_var=no"
12808fi
12809
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812fi
12813ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815echo "${ECHO_T}$ac_res" >&6; }
12816if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012819_ACEOF
12820
12821fi
12822done
12823
12824
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000012825
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012826if test "$WITH_LLVMGCCDIR" = "default" ; then
12827 LLVMGCC="llvm-gcc${EXEEXT}"
12828 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012829 LLVMGCCCOMMAND="$LLVMGCC"
12830 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012831 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12832
12833 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12834
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012835 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12836set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12839if test "${ac_cv_path_LLVMGCC+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012841else
12842 case $LLVMGCC in
12843 [\\/]* | ?:[\\/]*)
12844 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12845 ;;
12846 *)
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 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 +000012854 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012856 break 2
12857 fi
12858done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012859done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012860IFS=$as_save_IFS
12861
12862 ;;
12863esac
12864fi
12865LLVMGCC=$ac_cv_path_LLVMGCC
12866if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012867 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12868echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012869else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012870 { echo "$as_me:$LINENO: result: no" >&5
12871echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012872fi
12873
12874
12875 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12876set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879if test "${ac_cv_path_LLVMGXX+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012881else
12882 case $LLVMGXX in
12883 [\\/]* | ?:[\\/]*)
12884 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12885 ;;
12886 *)
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 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 +000012894 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012896 break 2
12897 fi
12898done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012899done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012900IFS=$as_save_IFS
12901
12902 ;;
12903esac
12904fi
12905LLVMGXX=$ac_cv_path_LLVMGXX
12906if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012907 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12908echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012909else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012910 { echo "$as_me:$LINENO: result: no" >&5
12911echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012912fi
12913
12914
12915else
Devang Pateld84ba7b2007-12-04 22:54:47 +000012916 if test -z "$LLVMGCC"; then
12917 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012918 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012919 fi
12920 if test -z "$LLVMGXX"; then
12921 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012922 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012923 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012924
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012925 LLVMGCC=$LLVMGCC
12926
12927 LLVMGXX=$LLVMGXX
12928
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012929 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12930
12931 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12932
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012933fi
12934
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012935
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000012936# Check whether --with-llvmcc was given.
12937if test "${with_llvmcc+set}" = set; then
12938 withval=$with_llvmcc;
12939else
12940 with_llvmcc=check
12941fi
12942
12943{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12944echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12945if test "$with_llvmcc" != "check"; then
12946 if (test "$with_llvmcc" != "llvm-gcc" &&
12947 test "$with_llvmcc" != "clang" &&
12948 test "$with_llvmcc" != "none"); then
12949 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12950echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12951 { (exit 1); exit 1; }; }
12952 fi
12953 WITH_LLVMCC="$with_llvmcc"
12954elif test -n "$LLVMGCC"; then
12955 WITH_LLVMCC=llvm-gcc
12956elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12957 WITH_LLVMCC=clang
12958else
12959 WITH_LLVMCC=none
12960fi
12961{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12962echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12963LLVMCC_OPTION=$WITH_LLVMCC
12964
12965
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012966{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12967echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012968
12969ICC=no
12970IXX=no
12971case $CC in
12972 icc*|icpc*)
12973 ICC=yes
12974 IXX=yes
12975 ;;
12976 *)
12977 ;;
12978esac
12979
12980if test "$GCC" != "yes" && test "$ICC" != "yes"
12981then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012982 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12983echo "$as_me: error: gcc|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012985fi
12986
12987if test "$GXX" != "yes" && test "$IXX" != "yes"
12988then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012989 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12990echo "$as_me: error: g++|icc required but not found" >&2;}
12991 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012992fi
12993
12994if test "$GCC" = "yes"
12995then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012996 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012997#if !defined(__GNUC__) || __GNUC__ < 3
12998#error Unsupported GCC version
12999#endif
13000
13001_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013002rm -f conftest.$ac_objext
13003if { (ac_try="$ac_compile"
13004case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030esac
13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013037else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013038 echo "$as_me: failed program was:" >&5
13039sed 's/^/| /' conftest.$ac_ext >&5
13040
13041 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13042echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13043 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013044fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013045
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013047fi
13048
13049if test -z "$llvm_cv_gnu_make_command"
13050then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013051 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13052echo "$as_me: error: GNU Make required but not found" >&2;}
13053 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013054fi
13055
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013056{ echo "$as_me:$LINENO: result: ok" >&5
13057echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013058
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013059{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13060echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013061NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13062
13063NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13064
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013065{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13066echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013067
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000013068
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013069
13070{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13071echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13072if test "${ac_cv_lib_m_sin+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013074else
13075 ac_check_lib_save_LIBS=$LIBS
13076LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013077cat >conftest.$ac_ext <<_ACEOF
13078/* confdefs.h. */
13079_ACEOF
13080cat confdefs.h >>conftest.$ac_ext
13081cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013082/* end confdefs.h. */
13083
13084/* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087#ifdef __cplusplus
13088extern "C"
13089#endif
13090char sin ();
13091int
13092main ()
13093{
13094return sin ();
13095 ;
13096 return 0;
13097}
13098_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013099rm -f conftest.$ac_objext conftest$ac_exeext
13100if { (ac_try="$ac_link"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_link") 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117esac
13118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest$ac_exeext'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013133 ac_cv_lib_m_sin=yes
13134else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013135 echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013139fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013140
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013141rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013142 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013143LIBS=$ac_check_lib_save_LIBS
13144fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013145{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13146echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13147if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013148 cat >>confdefs.h <<_ACEOF
13149#define HAVE_LIBM 1
13150_ACEOF
13151
13152 LIBS="-lm $LIBS"
13153
13154fi
13155
13156if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013157
13158{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13159echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13160if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013162else
13163 ac_check_lib_save_LIBS=$LIBS
13164LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013170/* end confdefs.h. */
13171
13172
13173int
13174main ()
13175{
13176return main ();
13177 ;
13178 return 0;
13179}
13180_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013181rm -f conftest.$ac_objext conftest$ac_exeext
13182if { (ac_try="$ac_link"
13183case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013215 ac_cv_lib_imagehlp_main=yes
13216else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013221fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013222
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013223rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013224 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013225LIBS=$ac_check_lib_save_LIBS
13226fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013227{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13228echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13229if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013230 cat >>confdefs.h <<_ACEOF
13231#define HAVE_LIBIMAGEHLP 1
13232_ACEOF
13233
13234 LIBS="-limagehlp $LIBS"
13235
13236fi
13237
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013238
13239{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13240echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13241if test "${ac_cv_lib_psapi_main+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013243else
13244 ac_check_lib_save_LIBS=$LIBS
13245LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013246cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013251/* end confdefs.h. */
13252
13253
13254int
13255main ()
13256{
13257return main ();
13258 ;
13259 return 0;
13260}
13261_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013262rm -f conftest.$ac_objext conftest$ac_exeext
13263if { (ac_try="$ac_link"
13264case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267esac
13268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_link") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013296 ac_cv_lib_psapi_main=yes
13297else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013298 echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013302fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013303
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013304rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013305 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013306LIBS=$ac_check_lib_save_LIBS
13307fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013308{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13309echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13310if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013311 cat >>confdefs.h <<_ACEOF
13312#define HAVE_LIBPSAPI 1
13313_ACEOF
13314
13315 LIBS="-lpsapi $LIBS"
13316
13317fi
13318
13319fi
13320
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013321{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13322echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13323if test "${ac_cv_search_dlopen+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013325else
13326 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013327cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013332/* end confdefs.h. */
13333
13334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13340char dlopen ();
13341int
13342main ()
13343{
13344return dlopen ();
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349for ac_lib in '' dl; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13352 else
13353 ac_res=-l$ac_lib
13354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13355 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013356 rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013390 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013396fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013397
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013398rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013399 conftest$ac_exeext
13400 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013401 break
13402fi
13403done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013404if test "${ac_cv_search_dlopen+set}" = set; then
13405 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013406else
13407 ac_cv_search_dlopen=no
13408fi
13409rm conftest.$ac_ext
13410LIBS=$ac_func_search_save_LIBS
13411fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013412{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13413echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013414ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013415if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013418cat >>confdefs.h <<\_ACEOF
13419#define HAVE_DLOPEN 1
13420_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013421
13422else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013423 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13424echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013425fi
13426
13427
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013428if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013429 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13430echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13431if test "${ac_cv_search_ffi_call+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013433else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013434 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013435cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013440/* end confdefs.h. */
13441
13442/* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply. */
13445#ifdef __cplusplus
13446extern "C"
13447#endif
13448char ffi_call ();
13449int
13450main ()
13451{
13452return ffi_call ();
13453 ;
13454 return 0;
13455}
13456_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013457for ac_lib in '' ffi; do
13458 if test -z "$ac_lib"; then
13459 ac_res="none required"
13460 else
13461 ac_res=-l$ac_lib
13462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13463 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013464 rm -f conftest.$ac_objext conftest$ac_exeext
13465if { (ac_try="$ac_link"
13466case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492esac
13493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013498 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503
Nick Lewycky0235b622009-02-04 06:27:44 +000013504fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013505
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013506rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013507 conftest$ac_exeext
13508 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013509 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013510fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013511done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013512if test "${ac_cv_search_ffi_call+set}" = set; then
13513 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013514else
13515 ac_cv_search_ffi_call=no
13516fi
13517rm conftest.$ac_ext
13518LIBS=$ac_func_search_save_LIBS
13519fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013520{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13521echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013522ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013523if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13525
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013526cat >>confdefs.h <<\_ACEOF
13527#define HAVE_FFI_CALL 1
13528_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013529
Nick Lewycky0235b622009-02-04 06:27:44 +000013530else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013531 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13532echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13533 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013534fi
13535
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013536fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013537
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013538{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13539echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13540if test "${ac_cv_search_mallinfo+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013542else
13543 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013544cat >conftest.$ac_ext <<_ACEOF
13545/* confdefs.h. */
13546_ACEOF
13547cat confdefs.h >>conftest.$ac_ext
13548cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013549/* end confdefs.h. */
13550
13551/* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554#ifdef __cplusplus
13555extern "C"
13556#endif
13557char mallinfo ();
13558int
13559main ()
13560{
13561return mallinfo ();
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566for ac_lib in '' malloc; do
13567 if test -z "$ac_lib"; then
13568 ac_res="none required"
13569 else
13570 ac_res=-l$ac_lib
13571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13572 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013573 rm -f conftest.$ac_objext conftest$ac_exeext
13574if { (ac_try="$ac_link"
13575case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest$ac_exeext'
13598 { (case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601esac
13602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_try") 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013607 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013613fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013614
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013615rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013616 conftest$ac_exeext
13617 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013618 break
13619fi
13620done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013621if test "${ac_cv_search_mallinfo+set}" = set; then
13622 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013623else
13624 ac_cv_search_mallinfo=no
13625fi
13626rm conftest.$ac_ext
13627LIBS=$ac_func_search_save_LIBS
13628fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013629{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13630echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013631ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013632if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13634
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013635cat >>confdefs.h <<\_ACEOF
13636#define HAVE_MALLINFO 1
13637_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013638
13639fi
13640
13641
13642if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013643
13644{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13645echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13646if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013648else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013649 ac_check_lib_save_LIBS=$LIBS
13650LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013656/* end confdefs.h. */
13657
13658/* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
13661#ifdef __cplusplus
13662extern "C"
13663#endif
13664char pthread_mutex_init ();
13665int
13666main ()
13667{
13668return pthread_mutex_init ();
13669 ;
13670 return 0;
13671}
13672_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013673rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (ac_try="$ac_link"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013707 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013708else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013709 echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013713fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013714
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013715rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013716 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013717LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013718fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013719{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13720echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13721if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013722 cat >>confdefs.h <<_ACEOF
13723#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013724_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013725
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013726 LIBS="-lpthread $LIBS"
13727
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013728fi
13729
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013730 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13731echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13732if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013734else
13735 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013741/* end confdefs.h. */
13742
13743/* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13746#ifdef __cplusplus
13747extern "C"
13748#endif
13749char pthread_mutex_lock ();
13750int
13751main ()
13752{
13753return pthread_mutex_lock ();
13754 ;
13755 return 0;
13756}
13757_ACEOF
13758for ac_lib in '' pthread; do
13759 if test -z "$ac_lib"; then
13760 ac_res="none required"
13761 else
13762 ac_res=-l$ac_lib
13763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13764 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013765 rm -f conftest.$ac_objext conftest$ac_exeext
13766if { (ac_try="$ac_link"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013799 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013805fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013806
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013807rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013808 conftest$ac_exeext
13809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013810 break
13811fi
13812done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013813if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13814 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013815else
13816 ac_cv_search_pthread_mutex_lock=no
13817fi
13818rm conftest.$ac_ext
13819LIBS=$ac_func_search_save_LIBS
13820fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013821{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13822echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013823ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013824if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13826
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013827cat >>confdefs.h <<\_ACEOF
13828#define HAVE_PTHREAD_MUTEX_LOCK 1
13829_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013830
13831fi
13832
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013833 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13834echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13835if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000013837else
13838 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013839cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013844/* end confdefs.h. */
13845
13846/* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849#ifdef __cplusplus
13850extern "C"
13851#endif
13852char pthread_rwlock_init ();
13853int
13854main ()
13855{
13856return pthread_rwlock_init ();
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861for ac_lib in '' pthread; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13864 else
13865 ac_res=-l$ac_lib
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13867 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013868 rm -f conftest.$ac_objext conftest$ac_exeext
13869if { (ac_try="$ac_link"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
Owen Anderson23c36602009-06-16 18:20:20 +000013902 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907
Owen Anderson23c36602009-06-16 18:20:20 +000013908fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013909
Owen Anderson23c36602009-06-16 18:20:20 +000013910rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013911 conftest$ac_exeext
13912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000013913 break
13914fi
13915done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013916if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13917 :
Owen Anderson23c36602009-06-16 18:20:20 +000013918else
13919 ac_cv_search_pthread_rwlock_init=no
13920fi
13921rm conftest.$ac_ext
13922LIBS=$ac_func_search_save_LIBS
13923fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013924{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13925echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000013926ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013927if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000013928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013930cat >>confdefs.h <<\_ACEOF
13931#define HAVE_PTHREAD_RWLOCK_INIT 1
13932_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013933
13934fi
13935
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013936 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13937echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13938if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000013940else
13941 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013947/* end confdefs.h. */
13948
13949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952#ifdef __cplusplus
13953extern "C"
13954#endif
13955char pthread_getspecific ();
13956int
13957main ()
13958{
13959return pthread_getspecific ();
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964for ac_lib in '' pthread; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13970 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013971 rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (ac_try="$ac_link"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014005 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010
Owen Andersoncc135af2009-06-25 23:10:26 +000014011fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014012
Owen Andersoncc135af2009-06-25 23:10:26 +000014013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014014 conftest$ac_exeext
14015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014016 break
14017fi
14018done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014019if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14020 :
Owen Andersoncc135af2009-06-25 23:10:26 +000014021else
14022 ac_cv_search_pthread_getspecific=no
14023fi
14024rm conftest.$ac_ext
14025LIBS=$ac_func_search_save_LIBS
14026fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014027{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14028echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000014029ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014030if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14032
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014033cat >>confdefs.h <<\_ACEOF
14034#define HAVE_PTHREAD_GETSPECIFIC 1
14035_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000014036
14037fi
14038
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014039fi
14040
14041
14042# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014043if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014044 withval=$with_udis86;
14045 USE_UDIS86=1
14046
14047 case "$withval" in
14048 /usr/lib|yes) ;;
14049 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14050 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014051
14052{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14053echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14054if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014056else
14057 ac_check_lib_save_LIBS=$LIBS
14058LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014064/* end confdefs.h. */
14065
14066/* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069#ifdef __cplusplus
14070extern "C"
14071#endif
14072char ud_init ();
14073int
14074main ()
14075{
14076return ud_init ();
14077 ;
14078 return 0;
14079}
14080_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (ac_try="$ac_link"
14083case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109esac
14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014115 ac_cv_lib_udis86_ud_init=yes
14116else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014121fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014122
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014123rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014124 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014125LIBS=$ac_check_lib_save_LIBS
14126fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014127{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14128echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14129if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014130 cat >>confdefs.h <<_ACEOF
14131#define HAVE_LIBUDIS86 1
14132_ACEOF
14133
14134 LIBS="-ludis86 $LIBS"
14135
14136else
14137
14138 echo "Error! You need to have libudis86 around."
14139 exit -1
14140
14141fi
14142
14143
14144else
14145 USE_UDIS86=0
14146
14147fi
14148
14149
14150cat >>confdefs.h <<_ACEOF
14151#define USE_UDIS86 $USE_UDIS86
14152_ACEOF
14153
14154
14155
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014156# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014157if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014158 withval=$with_oprofile;
14159 USE_OPROFILE=1
14160
14161 case "$withval" in
14162 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014163 no) llvm_cv_oppath=
14164 USE_OPROFILE=0
14165 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014166 *) llvm_cv_oppath="${withval}/lib/oprofile"
14167 CPPFLAGS="-I${withval}/include";;
14168 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014169 if test -n "$llvm_cv_oppath" ; then
14170 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014171 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14172echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14173if test "${ac_cv_search_bfd_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014175else
14176 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014177cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014182/* end confdefs.h. */
14183
14184/* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14187#ifdef __cplusplus
14188extern "C"
14189#endif
14190char bfd_init ();
14191int
14192main ()
14193{
14194return bfd_init ();
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199for ac_lib in '' bfd; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14202 else
14203 ac_res=-l$ac_lib
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14205 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014206 rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014240 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014246fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014247
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014248rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014249 conftest$ac_exeext
14250 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014251 break
14252fi
14253done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014254if test "${ac_cv_search_bfd_init+set}" = set; then
14255 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014256else
14257 ac_cv_search_bfd_init=no
14258fi
14259rm conftest.$ac_ext
14260LIBS=$ac_func_search_save_LIBS
14261fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14263echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014264ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014265if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
14268fi
14269
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014270 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14271echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14272if test "${ac_cv_search_op_open_agent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014274else
14275 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014276cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014281/* end confdefs.h. */
14282
14283/* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14286#ifdef __cplusplus
14287extern "C"
14288#endif
14289char op_open_agent ();
14290int
14291main ()
14292{
14293return op_open_agent ();
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298for ac_lib in '' opagent; do
14299 if test -z "$ac_lib"; then
14300 ac_res="none required"
14301 else
14302 ac_res=-l$ac_lib
14303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14304 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014305 rm -f conftest.$ac_objext conftest$ac_exeext
14306if { (ac_try="$ac_link"
14307case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310esac
14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333esac
14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014339 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014345fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014346
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014347rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014348 conftest$ac_exeext
14349 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014350 break
14351fi
14352done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014353if test "${ac_cv_search_op_open_agent+set}" = set; then
14354 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014355else
14356 ac_cv_search_op_open_agent=no
14357fi
14358rm conftest.$ac_ext
14359LIBS=$ac_func_search_save_LIBS
14360fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014361{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14362echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014363ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014364if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14366
14367else
14368
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014369 echo "Error! You need to have libopagent around."
14370 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014371
14372fi
14373
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014374 if test "${ac_cv_header_opagent_h+set}" = set; then
14375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14376echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14377if test "${ac_cv_header_opagent_h+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379fi
14380{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14381echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14382else
14383 # Is the header compilable?
14384{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14385echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14386cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392$ac_includes_default
14393#include <opagent.h>
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (ac_try="$ac_compile"
14397case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400esac
14401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14423esac
14424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_header_compiler=yes
14430else
14431 echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014433
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014434 ac_header_compiler=no
14435fi
14436
14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439echo "${ECHO_T}$ac_header_compiler" >&6; }
14440
14441# Is the header present?
14442{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14443echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450#include <opagent.h>
14451_ACEOF
14452if { (ac_try="$ac_cpp conftest.$ac_ext"
14453case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456esac
14457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null; then
14465 if test -s conftest.err; then
14466 ac_cpp_err=$ac_c_preproc_warn_flag
14467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14468 else
14469 ac_cpp_err=
14470 fi
14471else
14472 ac_cpp_err=yes
14473fi
14474if test -z "$ac_cpp_err"; then
14475 ac_header_preproc=yes
14476else
14477 echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_preproc=no
14481fi
14482
14483rm -f conftest.err conftest.$ac_ext
14484{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14485echo "${ECHO_T}$ac_header_preproc" >&6; }
14486
14487# So? What about this header?
14488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14489 yes:no: )
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14491echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14493echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14494 ac_header_preproc=yes
14495 ;;
14496 no:yes:* )
14497 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14498echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14500echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14502echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14504echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14506echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14508echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14509 ( cat <<\_ASBOX
14510## ----------------------------------- ##
14511## Report this to llvmbugs@cs.uiuc.edu ##
14512## ----------------------------------- ##
14513_ASBOX
14514 ) | sed "s/^/$as_me: WARNING: /" >&2
14515 ;;
14516esac
14517{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14518echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14519if test "${ac_cv_header_opagent_h+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
14522 ac_cv_header_opagent_h=$ac_header_preproc
14523fi
14524{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14525echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14526
14527fi
14528if test $ac_cv_header_opagent_h = yes; then
14529 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014530else
14531
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014532 echo "Error! You need to have opagent.h around."
14533 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014534
14535fi
14536
14537
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014538 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014539
14540else
14541
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014542 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014543
14544
14545fi
14546
14547
14548cat >>confdefs.h <<_ACEOF
14549#define USE_OPROFILE $USE_OPROFILE
14550_ACEOF
14551
14552
14553
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014554
14555
14556
14557
14558
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014559ac_header_dirent=no
14560for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014561 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14562{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14563echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014566else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014567 cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014572/* end confdefs.h. */
14573#include <sys/types.h>
14574#include <$ac_hdr>
14575
14576int
14577main ()
14578{
14579if ((DIR *) 0)
14580return 0;
14581 ;
14582 return 0;
14583}
14584_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014585rm -f conftest.$ac_objext
14586if { (ac_try="$ac_compile"
14587case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590esac
14591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603esac
14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613esac
14614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014619 eval "$as_ac_Header=yes"
14620else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014625fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014626
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014629ac_res=`eval echo '${'$as_ac_Header'}'`
14630 { echo "$as_me:$LINENO: result: $ac_res" >&5
14631echo "${ECHO_T}$ac_res" >&6; }
14632if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014633 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014634#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014635_ACEOF
14636
14637ac_header_dirent=$ac_hdr; break
14638fi
14639
14640done
14641# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14642if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014643 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14644echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14645if test "${ac_cv_search_opendir+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014647else
14648 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014649cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014654/* end confdefs.h. */
14655
14656/* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14659#ifdef __cplusplus
14660extern "C"
14661#endif
14662char opendir ();
14663int
14664main ()
14665{
14666return opendir ();
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671for ac_lib in '' dir; do
14672 if test -z "$ac_lib"; then
14673 ac_res="none required"
14674 else
14675 ac_res=-l$ac_lib
14676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14677 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014678 rm -f conftest.$ac_objext conftest$ac_exeext
14679if { (ac_try="$ac_link"
14680case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683esac
14684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014712 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014713else
14714 echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5
14716
14717
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014718fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014719
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014720rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014721 conftest$ac_exeext
14722 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014723 break
14724fi
14725done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014726if test "${ac_cv_search_opendir+set}" = set; then
14727 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014728else
14729 ac_cv_search_opendir=no
14730fi
14731rm conftest.$ac_ext
14732LIBS=$ac_func_search_save_LIBS
14733fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014734{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14735echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014736ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014737if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14739
14740fi
14741
14742else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014743 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14744echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14745if test "${ac_cv_search_opendir+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014747else
14748 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014749cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014754/* end confdefs.h. */
14755
14756/* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14759#ifdef __cplusplus
14760extern "C"
14761#endif
14762char opendir ();
14763int
14764main ()
14765{
14766return opendir ();
14767 ;
14768 return 0;
14769}
14770_ACEOF
14771for ac_lib in '' x; do
14772 if test -z "$ac_lib"; then
14773 ac_res="none required"
14774 else
14775 ac_res=-l$ac_lib
14776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14777 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014778 rm -f conftest.$ac_objext conftest$ac_exeext
14779if { (ac_try="$ac_link"
14780case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783esac
14784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796esac
14797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_try") 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806esac
14807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014812 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014813else
14814 echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014818fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014819
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014821 conftest$ac_exeext
14822 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014823 break
14824fi
14825done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014826if test "${ac_cv_search_opendir+set}" = set; then
14827 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014828else
14829 ac_cv_search_opendir=no
14830fi
14831rm conftest.$ac_ext
14832LIBS=$ac_func_search_save_LIBS
14833fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014834{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14835echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014836ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014837if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14839
14840fi
14841
14842fi
14843
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014844{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14845echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14846if test "${ac_cv_header_mmap_anon+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014848else
14849 ac_ext=c
14850ac_cpp='$CPP $CPPFLAGS'
14851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014860/* end confdefs.h. */
14861#include <sys/mman.h>
14862#include <unistd.h>
14863#include <fcntl.h>
14864int
14865main ()
14866{
14867mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14868 ;
14869 return 0;
14870}
14871_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014872rm -f conftest.$ac_objext
14873if { (ac_try="$ac_compile"
14874case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014906 ac_cv_header_mmap_anon=yes
14907else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014912fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014913
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 ac_ext=c
14916ac_cpp='$CPP $CPPFLAGS'
14917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921
14922fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014923{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14924echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014925if test "$ac_cv_header_mmap_anon" = yes; then
14926
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014927cat >>confdefs.h <<\_ACEOF
14928#define HAVE_MMAP_ANONYMOUS 1
14929_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014930
14931fi
14932
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014933{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14934echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14935if test "${ac_cv_header_stat_broken+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014937else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014938 cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014943/* end confdefs.h. */
14944#include <sys/types.h>
14945#include <sys/stat.h>
14946
14947#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014948# if S_ISBLK (S_IFDIR)
14949You lose.
14950# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014951#endif
14952
14953#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014954# if S_ISBLK (S_IFCHR)
14955You lose.
14956# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014957#endif
14958
14959#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014960# if S_ISLNK (S_IFREG)
14961You lose.
14962# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014963#endif
14964
14965#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014966# if S_ISSOCK (S_IFREG)
14967You lose.
14968# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014969#endif
14970
14971_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14973 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000014974 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014975else
14976 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014977fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014978rm -f conftest*
14979
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014980fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014981{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14982echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014983if test $ac_cv_header_stat_broken = yes; then
14984
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014985cat >>confdefs.h <<\_ACEOF
14986#define STAT_MACROS_BROKEN 1
14987_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014988
14989fi
14990
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014991{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14992echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14993if test "${ac_cv_header_stdc+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014995else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014996 cat >conftest.$ac_ext <<_ACEOF
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015001/* end confdefs.h. */
15002#include <stdlib.h>
15003#include <stdarg.h>
15004#include <string.h>
15005#include <float.h>
15006
15007int
15008main ()
15009{
15010
15011 ;
15012 return 0;
15013}
15014_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015015rm -f conftest.$ac_objext
15016if { (ac_try="$ac_compile"
15017case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15030 { (case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033esac
15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_try") 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
15044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015049 ac_cv_header_stdc=yes
15050else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015055fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015056
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058
15059if test $ac_cv_header_stdc = yes; then
15060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015061 cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015066/* end confdefs.h. */
15067#include <string.h>
15068
15069_ACEOF
15070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015071 $EGREP "memchr" >/dev/null 2>&1; then
15072 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015073else
15074 ac_cv_header_stdc=no
15075fi
15076rm -f conftest*
15077
15078fi
15079
15080if test $ac_cv_header_stdc = yes; then
15081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015082 cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015087/* end confdefs.h. */
15088#include <stdlib.h>
15089
15090_ACEOF
15091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015092 $EGREP "free" >/dev/null 2>&1; then
15093 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015094else
15095 ac_cv_header_stdc=no
15096fi
15097rm -f conftest*
15098
15099fi
15100
15101if test $ac_cv_header_stdc = yes; then
15102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015103 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015104 :
15105else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015106 cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015111/* end confdefs.h. */
15112#include <ctype.h>
15113#include <stdlib.h>
15114#if ((' ' & 0x0FF) == 0x020)
15115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15117#else
15118# define ISLOWER(c) \
15119 (('a' <= (c) && (c) <= 'i') \
15120 || ('j' <= (c) && (c) <= 'r') \
15121 || ('s' <= (c) && (c) <= 'z'))
15122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15123#endif
15124
15125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15126int
15127main ()
15128{
15129 int i;
15130 for (i = 0; i < 256; i++)
15131 if (XOR (islower (i), ISLOWER (i))
15132 || toupper (i) != TOUPPER (i))
15133 return 2;
15134 return 0;
15135}
15136_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015137rm -f conftest$ac_exeext
15138if { (ac_try="$ac_link"
15139case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015158else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015159 echo "$as_me: program exited with status $ac_status" >&5
15160echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163( exit $ac_status )
15164ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015165fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015166rm -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 +000015167fi
15168
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015169
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015170fi
15171fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015172{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15173echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015174if test $ac_cv_header_stdc = yes; then
15175
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015176cat >>confdefs.h <<\_ACEOF
15177#define STDC_HEADERS 1
15178_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015179
15180fi
15181
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015182{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15183echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15184if test "${ac_cv_header_sys_wait_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015186else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015192/* end confdefs.h. */
15193#include <sys/types.h>
15194#include <sys/wait.h>
15195#ifndef WEXITSTATUS
15196# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15197#endif
15198#ifndef WIFEXITED
15199# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15200#endif
15201
15202int
15203main ()
15204{
15205 int s;
15206 wait (&s);
15207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15208 ;
15209 return 0;
15210}
15211_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015212rm -f conftest.$ac_objext
15213if { (ac_try="$ac_compile"
15214case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217esac
15218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230esac
15231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240esac
15241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_try") 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015246 ac_cv_header_sys_wait_h=yes
15247else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015248 echo "$as_me: failed program was:" >&5
15249sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015252fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015253
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015256{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15257echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015258if test $ac_cv_header_sys_wait_h = yes; then
15259
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015260cat >>confdefs.h <<\_ACEOF
15261#define HAVE_SYS_WAIT_H 1
15262_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015263
15264fi
15265
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015266{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15267echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15268if test "${ac_cv_header_time+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015270else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015271 cat >conftest.$ac_ext <<_ACEOF
15272/* confdefs.h. */
15273_ACEOF
15274cat confdefs.h >>conftest.$ac_ext
15275cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015276/* end confdefs.h. */
15277#include <sys/types.h>
15278#include <sys/time.h>
15279#include <time.h>
15280
15281int
15282main ()
15283{
15284if ((struct tm *) 0)
15285return 0;
15286 ;
15287 return 0;
15288}
15289_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015290rm -f conftest.$ac_objext
15291if { (ac_try="$ac_compile"
15292case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295esac
15296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308esac
15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318esac
15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015324 ac_cv_header_time=yes
15325else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015330fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015331
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015334{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15335echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015336if test $ac_cv_header_time = yes; then
15337
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015338cat >>confdefs.h <<\_ACEOF
15339#define TIME_WITH_SYS_TIME 1
15340_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015341
15342fi
15343
15344
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015345
15346
15347
15348
15349
15350
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015351for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015352do
15353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359fi
15360ac_res=`eval echo '${'$as_ac_Header'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362echo "${ECHO_T}$ac_res" >&6; }
15363else
15364 # Is the header compilable?
15365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15367cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373$ac_includes_default
15374#include <$ac_header>
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (ac_try="$ac_compile"
15378case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15384 ac_status=$?
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394esac
15395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_try") 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404esac
15405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_header_compiler=yes
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415 ac_header_compiler=no
15416fi
15417
15418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420echo "${ECHO_T}$ac_header_compiler" >&6; }
15421
15422# Is the header present?
15423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431#include <$ac_header>
15432_ACEOF
15433if { (ac_try="$ac_cpp conftest.$ac_ext"
15434case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437esac
15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449 else
15450 ac_cpp_err=
15451 fi
15452else
15453 ac_cpp_err=yes
15454fi
15455if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15457else
15458 echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_header_preproc=no
15462fi
15463
15464rm -f conftest.err conftest.$ac_ext
15465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466echo "${ECHO_T}$ac_header_preproc" >&6; }
15467
15468# So? What about this header?
15469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470 yes:no: )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475 ac_header_preproc=yes
15476 ;;
15477 no:yes:* )
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490 ( cat <<\_ASBOX
15491## ----------------------------------- ##
15492## Report this to llvmbugs@cs.uiuc.edu ##
15493## ----------------------------------- ##
15494_ASBOX
15495 ) | sed "s/^/$as_me: WARNING: /" >&2
15496 ;;
15497esac
15498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
15503 eval "$as_ac_Header=\$ac_header_preproc"
15504fi
15505ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507echo "${ECHO_T}$ac_res" >&6; }
15508
15509fi
15510if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015513_ACEOF
15514
15515fi
15516
15517done
15518
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015519
15520
15521
15522
15523
15524
Douglas Gregor6230bee2009-05-18 17:21:34 +000015525for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015526do
15527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533fi
15534ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536echo "${ECHO_T}$ac_res" >&6; }
15537else
15538 # Is the header compilable?
15539{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15541cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547$ac_includes_default
15548#include <$ac_header>
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (ac_try="$ac_compile"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_header_compiler=no
15590fi
15591
15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594echo "${ECHO_T}$ac_header_compiler" >&6; }
15595
15596# Is the header present?
15597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605#include <$ac_header>
15606_ACEOF
15607if { (ac_try="$ac_cpp conftest.$ac_ext"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 else
15624 ac_cpp_err=
15625 fi
15626else
15627 ac_cpp_err=yes
15628fi
15629if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15631else
15632 echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_header_preproc=no
15636fi
15637
15638rm -f conftest.err conftest.$ac_ext
15639{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640echo "${ECHO_T}$ac_header_preproc" >&6; }
15641
15642# So? What about this header?
15643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15650 ;;
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ( cat <<\_ASBOX
15665## ----------------------------------- ##
15666## Report this to llvmbugs@cs.uiuc.edu ##
15667## ----------------------------------- ##
15668_ASBOX
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15670 ;;
15671esac
15672{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 eval "$as_ac_Header=\$ac_header_preproc"
15678fi
15679ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681echo "${ECHO_T}$ac_res" >&6; }
15682
15683fi
15684if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015685 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015687_ACEOF
15688
15689fi
15690
15691done
15692
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015693
15694
Douglas Gregor6230bee2009-05-18 17:21:34 +000015695for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015696do
15697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703fi
15704ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706echo "${ECHO_T}$ac_res" >&6; }
15707else
15708 # Is the header compilable?
15709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718#include <$ac_header>
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (ac_try="$ac_compile"
15722case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725esac
15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($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_try") 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748esac
15749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_header_compiler=no
15760fi
15761
15762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764echo "${ECHO_T}$ac_header_compiler" >&6; }
15765
15766# Is the header present?
15767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775#include <$ac_header>
15776_ACEOF
15777if { (ac_try="$ac_cpp conftest.$ac_ext"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 else
15794 ac_cpp_err=
15795 fi
15796else
15797 ac_cpp_err=yes
15798fi
15799if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_header_preproc=no
15806fi
15807
15808rm -f conftest.err conftest.$ac_ext
15809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810echo "${ECHO_T}$ac_header_preproc" >&6; }
15811
15812# So? What about this header?
15813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 yes:no: )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15820 ;;
15821 no:yes:* )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834 ( cat <<\_ASBOX
15835## ----------------------------------- ##
15836## Report this to llvmbugs@cs.uiuc.edu ##
15837## ----------------------------------- ##
15838_ASBOX
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15840 ;;
15841esac
15842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 eval "$as_ac_Header=\$ac_header_preproc"
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852
15853fi
15854if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000015855 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000015857_ACEOF
15858
15859fi
15860
15861done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015862
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015863
15864
15865
15866
Reid Spencer096a8142007-08-17 05:45:26 +000015867for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015868do
15869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875fi
15876ac_res=`eval echo '${'$as_ac_Header'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878echo "${ECHO_T}$ac_res" >&6; }
15879else
15880 # Is the header compilable?
15881{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15883cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889$ac_includes_default
15890#include <$ac_header>
15891_ACEOF
15892rm -f conftest.$ac_objext
15893if { (ac_try="$ac_compile"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
15898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15907 { (case "(($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_try") 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; } &&
15916 { ac_try='test -s conftest.$ac_objext'
15917 { (case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920esac
15921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_try") 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_header_compiler=yes
15927else
15928 echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_header_compiler=no
15932fi
15933
15934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15936echo "${ECHO_T}$ac_header_compiler" >&6; }
15937
15938# Is the header present?
15939{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15941cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947#include <$ac_header>
15948_ACEOF
15949if { (ac_try="$ac_cpp conftest.$ac_ext"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } >/dev/null; then
15962 if test -s conftest.err; then
15963 ac_cpp_err=$ac_c_preproc_warn_flag
15964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15965 else
15966 ac_cpp_err=
15967 fi
15968else
15969 ac_cpp_err=yes
15970fi
15971if test -z "$ac_cpp_err"; then
15972 ac_header_preproc=yes
15973else
15974 echo "$as_me: failed program was:" >&5
15975sed 's/^/| /' conftest.$ac_ext >&5
15976
15977 ac_header_preproc=no
15978fi
15979
15980rm -f conftest.err conftest.$ac_ext
15981{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982echo "${ECHO_T}$ac_header_preproc" >&6; }
15983
15984# So? What about this header?
15985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 yes:no: )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15992 ;;
15993 no:yes:* )
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16006 ( cat <<\_ASBOX
16007## ----------------------------------- ##
16008## Report this to llvmbugs@cs.uiuc.edu ##
16009## ----------------------------------- ##
16010_ASBOX
16011 ) | sed "s/^/$as_me: WARNING: /" >&2
16012 ;;
16013esac
16014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018else
16019 eval "$as_ac_Header=\$ac_header_preproc"
16020fi
16021ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023echo "${ECHO_T}$ac_res" >&6; }
16024
16025fi
16026if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016027 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016029_ACEOF
16030
16031fi
16032
16033done
16034
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016035
16036
16037
16038
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000016039for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016040do
16041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047fi
16048ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050echo "${ECHO_T}$ac_res" >&6; }
16051else
16052 # Is the header compilable?
16053{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16055cat >conftest.$ac_ext <<_ACEOF
16056/* confdefs.h. */
16057_ACEOF
16058cat confdefs.h >>conftest.$ac_ext
16059cat >>conftest.$ac_ext <<_ACEOF
16060/* end confdefs.h. */
16061$ac_includes_default
16062#include <$ac_header>
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (ac_try="$ac_compile"
16066case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
16070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_header_compiler=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_header_compiler=no
16104fi
16105
16106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16108echo "${ECHO_T}$ac_header_compiler" >&6; }
16109
16110# Is the header present?
16111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16113cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119#include <$ac_header>
16120_ACEOF
16121if { (ac_try="$ac_cpp conftest.$ac_ext"
16122case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16137 else
16138 ac_cpp_err=
16139 fi
16140else
16141 ac_cpp_err=yes
16142fi
16143if test -z "$ac_cpp_err"; then
16144 ac_header_preproc=yes
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 ac_header_preproc=no
16150fi
16151
16152rm -f conftest.err conftest.$ac_ext
16153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16154echo "${ECHO_T}$ac_header_preproc" >&6; }
16155
16156# So? What about this header?
16157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16158 yes:no: )
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16163 ac_header_preproc=yes
16164 ;;
16165 no:yes:* )
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16178 ( cat <<\_ASBOX
16179## ----------------------------------- ##
16180## Report this to llvmbugs@cs.uiuc.edu ##
16181## ----------------------------------- ##
16182_ASBOX
16183 ) | sed "s/^/$as_me: WARNING: /" >&2
16184 ;;
16185esac
16186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190else
16191 eval "$as_ac_Header=\$ac_header_preproc"
16192fi
16193ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195echo "${ECHO_T}$ac_res" >&6; }
16196
16197fi
16198if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016199 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016201_ACEOF
16202
16203fi
16204
16205done
16206
Jeffrey Yasskin8cf48c22010-03-15 04:57:55 +000016207
16208for ac_header in valgrind/valgrind.h
16209do
16210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216fi
16217ac_res=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219echo "${ECHO_T}$ac_res" >&6; }
16220else
16221 # Is the header compilable?
16222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16224cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231#include <$ac_header>
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (ac_try="$ac_compile"
16235case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238esac
16239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251esac
16252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_header_compiler=yes
16268else
16269 echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272 ac_header_compiler=no
16273fi
16274
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16277echo "${ECHO_T}$ac_header_compiler" >&6; }
16278
16279# Is the header present?
16280{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16282cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288#include <$ac_header>
16289_ACEOF
16290if { (ac_try="$ac_cpp conftest.$ac_ext"
16291case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294esac
16295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_c_preproc_warn_flag
16305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16306 else
16307 ac_cpp_err=
16308 fi
16309else
16310 ac_cpp_err=yes
16311fi
16312if test -z "$ac_cpp_err"; then
16313 ac_header_preproc=yes
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_preproc=no
16319fi
16320
16321rm -f conftest.err conftest.$ac_ext
16322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323echo "${ECHO_T}$ac_header_preproc" >&6; }
16324
16325# So? What about this header?
16326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 yes:no: )
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16333 ;;
16334 no:yes:* )
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16347 ( cat <<\_ASBOX
16348## ----------------------------------- ##
16349## Report this to llvmbugs@cs.uiuc.edu ##
16350## ----------------------------------- ##
16351_ASBOX
16352 ) | sed "s/^/$as_me: WARNING: /" >&2
16353 ;;
16354esac
16355{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16361fi
16362ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364echo "${ECHO_T}$ac_res" >&6; }
16365
16366fi
16367if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370_ACEOF
16371
16372fi
16373
16374done
16375
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016376if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016377
16378for ac_header in pthread.h
16379do
16380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16386fi
16387ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389echo "${ECHO_T}$ac_res" >&6; }
16390else
16391 # Is the header compilable?
16392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16394cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
16400$ac_includes_default
16401#include <$ac_header>
16402_ACEOF
16403rm -f conftest.$ac_objext
16404if { (ac_try="$ac_compile"
16405case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421esac
16422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_header_compiler=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_header_compiler=no
16443fi
16444
16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447echo "${ECHO_T}$ac_header_compiler" >&6; }
16448
16449# Is the header present?
16450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16452cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458#include <$ac_header>
16459_ACEOF
16460if { (ac_try="$ac_cpp conftest.$ac_ext"
16461case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } >/dev/null; then
16473 if test -s conftest.err; then
16474 ac_cpp_err=$ac_c_preproc_warn_flag
16475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16476 else
16477 ac_cpp_err=
16478 fi
16479else
16480 ac_cpp_err=yes
16481fi
16482if test -z "$ac_cpp_err"; then
16483 ac_header_preproc=yes
16484else
16485 echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 ac_header_preproc=no
16489fi
16490
16491rm -f conftest.err conftest.$ac_ext
16492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493echo "${ECHO_T}$ac_header_preproc" >&6; }
16494
16495# So? What about this header?
16496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 yes:no: )
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16503 ;;
16504 no:yes:* )
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16517 ( cat <<\_ASBOX
16518## ----------------------------------- ##
16519## Report this to llvmbugs@cs.uiuc.edu ##
16520## ----------------------------------- ##
16521_ASBOX
16522 ) | sed "s/^/$as_me: WARNING: /" >&2
16523 ;;
16524esac
16525{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529else
16530 eval "$as_ac_Header=\$ac_header_preproc"
16531fi
16532ac_res=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534echo "${ECHO_T}$ac_res" >&6; }
16535
16536fi
16537if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016538 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016540_ACEOF
16541 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016542
16543else
16544 HAVE_PTHREAD=0
16545
16546fi
16547
Reid Spencer096a8142007-08-17 05:45:26 +000016548done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016549
16550else
16551 HAVE_PTHREAD=0
16552
16553fi
16554
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016555if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016556
16557
16558for ac_header in ffi.h ffi/ffi.h
16559do
16560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566fi
16567ac_res=`eval echo '${'$as_ac_Header'}'`
16568 { echo "$as_me:$LINENO: result: $ac_res" >&5
16569echo "${ECHO_T}$ac_res" >&6; }
16570else
16571 # Is the header compilable?
16572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16574cat >conftest.$ac_ext <<_ACEOF
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580$ac_includes_default
16581#include <$ac_header>
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (ac_try="$ac_compile"
16585case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
16589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_header_compiler=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_header_compiler=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627echo "${ECHO_T}$ac_header_compiler" >&6; }
16628
16629# Is the header present?
16630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16632cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638#include <$ac_header>
16639_ACEOF
16640if { (ac_try="$ac_cpp conftest.$ac_ext"
16641case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
16645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } >/dev/null; then
16653 if test -s conftest.err; then
16654 ac_cpp_err=$ac_c_preproc_warn_flag
16655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16656 else
16657 ac_cpp_err=
16658 fi
16659else
16660 ac_cpp_err=yes
16661fi
16662if test -z "$ac_cpp_err"; then
16663 ac_header_preproc=yes
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ac_header_preproc=no
16669fi
16670
16671rm -f conftest.err conftest.$ac_ext
16672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673echo "${ECHO_T}$ac_header_preproc" >&6; }
16674
16675# So? What about this header?
16676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16677 yes:no: )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16683 ;;
16684 no:yes:* )
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16697 ( cat <<\_ASBOX
16698## ----------------------------------- ##
16699## Report this to llvmbugs@cs.uiuc.edu ##
16700## ----------------------------------- ##
16701_ASBOX
16702 ) | sed "s/^/$as_me: WARNING: /" >&2
16703 ;;
16704esac
16705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709else
16710 eval "$as_ac_Header=\$ac_header_preproc"
16711fi
16712ac_res=`eval echo '${'$as_ac_Header'}'`
16713 { echo "$as_me:$LINENO: result: $ac_res" >&5
16714echo "${ECHO_T}$ac_res" >&6; }
16715
16716fi
16717if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016718 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016720_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016721
16722fi
16723
16724done
16725
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016726fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016727
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016728
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016729
Edwin Törökc27310c2010-01-26 08:50:50 +000016730
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016731 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16732echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16733if test "${ac_cv_huge_val_sanity+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016735else
16736
16737 ac_ext=cpp
16738ac_cpp='$CXXCPP $CPPFLAGS'
16739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16742
Eric Christopherd0750262010-03-02 05:06:54 +000016743 ac_save_CXXFLAGS=$CXXFLAGS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016744 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016745 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016746 ac_cv_huge_val_sanity=yes
16747else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016748 cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016753/* end confdefs.h. */
16754#include <math.h>
16755int
16756main ()
16757{
16758double x = HUGE_VAL; return x != x;
16759 ;
16760 return 0;
16761}
16762_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016763rm -f conftest$ac_exeext
16764if { (ac_try="$ac_link"
16765case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016783 ac_cv_huge_val_sanity=yes
16784else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016785 echo "$as_me: program exited with status $ac_status" >&5
16786echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789( exit $ac_status )
16790ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016791fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016792rm -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 +000016793fi
16794
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016795
Eric Christopherd0750262010-03-02 05:06:54 +000016796 CXXFLAGS=$ac_save_CXXFLAGS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016797 ac_ext=c
16798ac_cpp='$CPP $CPPFLAGS'
16799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801ac_compiler_gnu=$ac_cv_c_compiler_gnu
16802
16803
16804fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016805{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16806echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016807 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16808
16809
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016810{ echo "$as_me:$LINENO: checking for pid_t" >&5
16811echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16812if test "${ac_cv_type_pid_t+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822typedef pid_t ac__type_new_;
16823int
16824main ()
16825{
16826if ((ac__type_new_ *) 0)
16827 return 0;
16828if (sizeof (ac__type_new_))
16829 return 0;
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (ac_try="$ac_compile"
16836case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_compile") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852esac
16853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_type_pid_t=yes
16869else
16870 echo "$as_me: failed program was:" >&5
16871sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016872
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016873 ac_cv_type_pid_t=no
16874fi
16875
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877fi
16878{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16879echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16880if test $ac_cv_type_pid_t = yes; then
16881 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016882else
16883
16884cat >>confdefs.h <<_ACEOF
16885#define pid_t int
16886_ACEOF
16887
16888fi
16889
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016890{ echo "$as_me:$LINENO: checking for size_t" >&5
16891echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16892if test "${ac_cv_type_size_t+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894else
16895 cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
16901$ac_includes_default
16902typedef size_t ac__type_new_;
16903int
16904main ()
16905{
16906if ((ac__type_new_ *) 0)
16907 return 0;
16908if (sizeof (ac__type_new_))
16909 return 0;
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
16915if { (ac_try="$ac_compile"
16916case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_compile") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_type_size_t=yes
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016952
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016953 ac_cv_type_size_t=no
16954fi
16955
16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957fi
16958{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16959echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16960if test $ac_cv_type_size_t = yes; then
16961 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016962else
16963
16964cat >>confdefs.h <<_ACEOF
16965#define size_t unsigned int
16966_ACEOF
16967
16968fi
16969
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016970
16971cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000016972#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016973_ACEOF
16974
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016975{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16976echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16977if test "${ac_cv_struct_tm+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016979else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016980 cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016985/* end confdefs.h. */
16986#include <sys/types.h>
16987#include <time.h>
16988
16989int
16990main ()
16991{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016992struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016993 ;
16994 return 0;
16995}
16996_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016997rm -f conftest.$ac_objext
16998if { (ac_try="$ac_compile"
16999case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017031 ac_cv_struct_tm=time.h
17032else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017037fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017038
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017041{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17042echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017043if test $ac_cv_struct_tm = sys/time.h; then
17044
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017045cat >>confdefs.h <<\_ACEOF
17046#define TM_IN_SYS_TIME 1
17047_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017048
17049fi
17050
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017051{ echo "$as_me:$LINENO: checking for int64_t" >&5
17052echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17053if test "${ac_cv_type_int64_t+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 cat >conftest.$ac_ext <<_ACEOF
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062$ac_includes_default
17063typedef int64_t ac__type_new_;
17064int
17065main ()
17066{
17067if ((ac__type_new_ *) 0)
17068 return 0;
17069if (sizeof (ac__type_new_))
17070 return 0;
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext
17076if { (ac_try="$ac_compile"
17077case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_type_int64_t=yes
17110else
17111 echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_type_int64_t=no
17115fi
17116
17117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118fi
17119{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17120echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17121if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017122
17123cat >>confdefs.h <<_ACEOF
17124#define HAVE_INT64_T 1
17125_ACEOF
17126
17127
17128else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017129 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17130echo "$as_me: error: Type int64_t required but not found" >&2;}
17131 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017132fi
17133
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017134{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17135echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17136if test "${ac_cv_type_uint64_t+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138else
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145$ac_includes_default
17146typedef uint64_t ac__type_new_;
17147int
17148main ()
17149{
17150if ((ac__type_new_ *) 0)
17151 return 0;
17152if (sizeof (ac__type_new_))
17153 return 0;
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext
17159if { (ac_try="$ac_compile"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_compile") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_type_uint64_t=yes
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_cv_type_uint64_t=no
17198fi
17199
17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201fi
17202{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17203echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17204if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017205
17206cat >>confdefs.h <<_ACEOF
17207#define HAVE_UINT64_T 1
17208_ACEOF
17209
17210
17211else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017212 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17213echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17214if test "${ac_cv_type_u_int64_t+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217 cat >conftest.$ac_ext <<_ACEOF
17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
17223$ac_includes_default
17224typedef u_int64_t ac__type_new_;
17225int
17226main ()
17227{
17228if ((ac__type_new_ *) 0)
17229 return 0;
17230if (sizeof (ac__type_new_))
17231 return 0;
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest.$ac_objext
17237if { (ac_try="$ac_compile"
17238case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254esac
17255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_u_int64_t=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_cv_type_u_int64_t=no
17276fi
17277
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17281echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17282if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017283
17284cat >>confdefs.h <<_ACEOF
17285#define HAVE_U_INT64_T 1
17286_ACEOF
17287
17288
17289else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017290 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17291echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17292 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017293fi
17294
17295fi
17296
17297
17298
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017299
17300
17301
17302
17303
17304
17305
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017306for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017307do
17308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17322#define $ac_func innocuous_$ac_func
17323
17324/* System header to define __stub macros and hopefully few prototypes,
17325 which can conflict with char $ac_func (); below.
17326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327 <limits.h> exists even on freestanding compilers. */
17328
17329#ifdef __STDC__
17330# include <limits.h>
17331#else
17332# include <assert.h>
17333#endif
17334
17335#undef $ac_func
17336
17337/* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17340#ifdef __cplusplus
17341extern "C"
17342#endif
17343char $ac_func ();
17344/* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347#if defined __stub_$ac_func || defined __stub___$ac_func
17348choke me
17349#endif
17350
17351int
17352main ()
17353{
17354return $ac_func ();
17355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext conftest$ac_exeext
17360if { (ac_try="$ac_link"
17361case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest$ac_exeext'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 eval "$as_ac_var=yes"
17394else
17395 echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 eval "$as_ac_var=no"
17399fi
17400
17401rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403fi
17404ac_res=`eval echo '${'$as_ac_var'}'`
17405 { echo "$as_me:$LINENO: result: $ac_res" >&5
17406echo "${ECHO_T}$ac_res" >&6; }
17407if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017408 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017410_ACEOF
17411
17412fi
17413done
17414
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017415
17416
17417
17418
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017419for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017420do
17421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17422{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17424if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435#define $ac_func innocuous_$ac_func
17436
17437/* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17441
17442#ifdef __STDC__
17443# include <limits.h>
17444#else
17445# include <assert.h>
17446#endif
17447
17448#undef $ac_func
17449
17450/* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char $ac_func ();
17457/* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460#if defined __stub_$ac_func || defined __stub___$ac_func
17461choke me
17462#endif
17463
17464int
17465main ()
17466{
17467return $ac_func ();
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
17473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17506 eval "$as_ac_var=yes"
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 eval "$as_ac_var=no"
17512fi
17513
17514rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17516fi
17517ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519echo "${ECHO_T}$ac_res" >&6; }
17520if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017521 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017523_ACEOF
17524
17525fi
17526done
17527
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017528
17529
17530
17531
17532
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017533for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017534do
17535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 cat >conftest.$ac_ext <<_ACEOF
17542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
17547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549#define $ac_func innocuous_$ac_func
17550
17551/* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17555
17556#ifdef __STDC__
17557# include <limits.h>
17558#else
17559# include <assert.h>
17560#endif
17561
17562#undef $ac_func
17563
17564/* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567#ifdef __cplusplus
17568extern "C"
17569#endif
17570char $ac_func ();
17571/* The GNU C library defines this for functions which it implements
17572 to always fail with ENOSYS. Some functions are actually named
17573 something starting with __ and the normal name is an alias. */
17574#if defined __stub_$ac_func || defined __stub___$ac_func
17575choke me
17576#endif
17577
17578int
17579main ()
17580{
17581return $ac_func ();
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext conftest$ac_exeext
17587if { (ac_try="$ac_link"
17588case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_link") 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614esac
17615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 eval "$as_ac_var=yes"
17621else
17622 echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 eval "$as_ac_var=no"
17626fi
17627
17628rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630fi
17631ac_res=`eval echo '${'$as_ac_var'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633echo "${ECHO_T}$ac_res" >&6; }
17634if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017635 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017637_ACEOF
17638
17639fi
17640done
17641
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017642
17643
17644
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017645for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017646do
17647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652else
17653 cat >conftest.$ac_ext <<_ACEOF
17654/* confdefs.h. */
17655_ACEOF
17656cat confdefs.h >>conftest.$ac_ext
17657cat >>conftest.$ac_ext <<_ACEOF
17658/* end confdefs.h. */
17659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661#define $ac_func innocuous_$ac_func
17662
17663/* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17667
17668#ifdef __STDC__
17669# include <limits.h>
17670#else
17671# include <assert.h>
17672#endif
17673
17674#undef $ac_func
17675
17676/* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682char $ac_func ();
17683/* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686#if defined __stub_$ac_func || defined __stub___$ac_func
17687choke me
17688#endif
17689
17690int
17691main ()
17692{
17693return $ac_func ();
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (ac_try="$ac_link"
17700case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17732 eval "$as_ac_var=yes"
17733else
17734 echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 eval "$as_ac_var=no"
17738fi
17739
17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742fi
17743ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745echo "${ECHO_T}$ac_res" >&6; }
17746if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017747 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017749_ACEOF
17750
17751fi
17752done
17753
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017754
17755
17756
17757
17758
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017759for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017760do
17761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17762{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17764if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17766else
17767 cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h. */
17773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775#define $ac_func innocuous_$ac_func
17776
17777/* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char $ac_func (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17781
17782#ifdef __STDC__
17783# include <limits.h>
17784#else
17785# include <assert.h>
17786#endif
17787
17788#undef $ac_func
17789
17790/* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17793#ifdef __cplusplus
17794extern "C"
17795#endif
17796char $ac_func ();
17797/* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800#if defined __stub_$ac_func || defined __stub___$ac_func
17801choke me
17802#endif
17803
17804int
17805main ()
17806{
17807return $ac_func ();
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext conftest$ac_exeext
17813if { (ac_try="$ac_link"
17814case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830esac
17831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 eval "$as_ac_var=yes"
17847else
17848 echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 eval "$as_ac_var=no"
17852fi
17853
17854rm -f core conftest.err conftest.$ac_objext \
17855 conftest$ac_exeext conftest.$ac_ext
17856fi
17857ac_res=`eval echo '${'$as_ac_var'}'`
17858 { echo "$as_me:$LINENO: result: $ac_res" >&5
17859echo "${ECHO_T}$ac_res" >&6; }
17860if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017861 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017863_ACEOF
17864
17865fi
17866done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017867
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017868
17869
17870
17871
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000017872for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017873do
17874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888#define $ac_func innocuous_$ac_func
17889
17890/* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17894
17895#ifdef __STDC__
17896# include <limits.h>
17897#else
17898# include <assert.h>
17899#endif
17900
17901#undef $ac_func
17902
17903/* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17906#ifdef __cplusplus
17907extern "C"
17908#endif
17909char $ac_func ();
17910/* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913#if defined __stub_$ac_func || defined __stub___$ac_func
17914choke me
17915#endif
17916
17917int
17918main ()
17919{
17920return $ac_func ();
17921 ;
17922 return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext conftest$ac_exeext
17926if { (ac_try="$ac_link"
17927case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930esac
17931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_try") 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953esac
17954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 eval "$as_ac_var=yes"
17960else
17961 echo "$as_me: failed program was:" >&5
17962sed 's/^/| /' conftest.$ac_ext >&5
17963
17964 eval "$as_ac_var=no"
17965fi
17966
17967rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969fi
17970ac_res=`eval echo '${'$as_ac_var'}'`
17971 { echo "$as_me:$LINENO: result: $ac_res" >&5
17972echo "${ECHO_T}$ac_res" >&6; }
17973if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017974 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017976_ACEOF
17977
17978fi
17979done
17980
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017981
17982
17983
17984
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017985for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017986do
17987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
17999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001#define $ac_func innocuous_$ac_func
18002
18003/* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18007
18008#ifdef __STDC__
18009# include <limits.h>
18010#else
18011# include <assert.h>
18012#endif
18013
18014#undef $ac_func
18015
18016/* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019#ifdef __cplusplus
18020extern "C"
18021#endif
18022char $ac_func ();
18023/* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026#if defined __stub_$ac_func || defined __stub___$ac_func
18027choke me
18028#endif
18029
18030int
18031main ()
18032{
18033return $ac_func ();
18034 ;
18035 return 0;
18036}
18037_ACEOF
18038rm -f conftest.$ac_objext conftest$ac_exeext
18039if { (ac_try="$ac_link"
18040case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043esac
18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056esac
18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066esac
18067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18073else
18074 echo "$as_me: failed program was:" >&5
18075sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 eval "$as_ac_var=no"
18078fi
18079
18080rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082fi
18083ac_res=`eval echo '${'$as_ac_var'}'`
18084 { echo "$as_me:$LINENO: result: $ac_res" >&5
18085echo "${ECHO_T}$ac_res" >&6; }
18086if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018087 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018089_ACEOF
18090
18091fi
18092done
18093
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018094
18095
18096
18097
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018098for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018099do
18100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114#define $ac_func innocuous_$ac_func
18115
18116/* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18120
18121#ifdef __STDC__
18122# include <limits.h>
18123#else
18124# include <assert.h>
18125#endif
18126
18127#undef $ac_func
18128
18129/* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char $ac_func ();
18136/* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139#if defined __stub_$ac_func || defined __stub___$ac_func
18140choke me
18141#endif
18142
18143int
18144main ()
18145{
18146return $ac_func ();
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext conftest$ac_exeext
18152if { (ac_try="$ac_link"
18153case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156esac
18157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 eval "$as_ac_var=yes"
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 eval "$as_ac_var=no"
18191fi
18192
18193rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195fi
18196ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198echo "${ECHO_T}$ac_res" >&6; }
18199if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018200 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018202_ACEOF
18203
18204fi
18205done
18206
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018207{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18208echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18209if test "${llvm_cv_c_printf_a+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018211else
18212 ac_ext=c
18213ac_cpp='$CPP $CPPFLAGS'
18214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216ac_compiler_gnu=$ac_cv_c_compiler_gnu
18217
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018218 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018219 llvmac_cv_c_printf_a=no
18220else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018221 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018222
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018223 /* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000018228
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018229#include <stdio.h>
18230#include <stdlib.h>
18231
18232int
18233main ()
18234{
18235
18236volatile double A, B;
18237char Buffer[100];
18238A = 1;
18239A /= 10.0;
18240sprintf(Buffer, "%a", A);
18241B = atof(Buffer);
18242if (A != B)
18243 return (1);
18244if (A != 0x1.999999999999ap-4)
18245 return (1);
18246return (0);
18247 ;
18248 return 0;
18249}
18250_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018251rm -f conftest$ac_exeext
18252if { (ac_try="$ac_link"
18253case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_link") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018271 llvm_cv_c_printf_a=yes
18272else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018273 echo "$as_me: program exited with status $ac_status" >&5
18274echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277( exit $ac_status )
18278llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018279fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018280rm -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 +000018281fi
18282
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018283
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018284 ac_ext=c
18285ac_cpp='$CPP $CPPFLAGS'
18286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288ac_compiler_gnu=$ac_cv_c_compiler_gnu
18289
18290fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018291{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18292echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018293 if test "$llvm_cv_c_printf_a" = "yes"; then
18294
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018295cat >>confdefs.h <<\_ACEOF
18296#define HAVE_PRINTF_A 1
18297_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018298
18299 fi
18300
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018301
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018302{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18303echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18304if test "${ac_cv_func_rand48+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018306else
18307 ac_ext=cpp
18308ac_cpp='$CXXCPP $CPPFLAGS'
18309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18312
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018313 cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018318/* end confdefs.h. */
18319#include <stdlib.h>
18320int
18321main ()
18322{
18323srand48(0);lrand48();drand48();
18324 ;
18325 return 0;
18326}
18327_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018328rm -f conftest.$ac_objext
18329if { (ac_try="$ac_compile"
18330case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356esac
18357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018362 ac_cv_func_rand48=yes
18363else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018364 echo "$as_me: failed program was:" >&5
18365sed 's/^/| /' conftest.$ac_ext >&5
18366
18367 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018368fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018369
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18371 ac_ext=c
18372ac_cpp='$CPP $CPPFLAGS'
18373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375ac_compiler_gnu=$ac_cv_c_compiler_gnu
18376
18377fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018378{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18379echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018380
18381if test "$ac_cv_func_rand48" = "yes" ; then
18382
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018383cat >>confdefs.h <<\_ACEOF
18384#define HAVE_RAND48 1
18385_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018386
18387fi
18388
18389
Edwin Törökc27310c2010-01-26 08:50:50 +000018390
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018391{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18392echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18393if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018395else
18396 ac_ext=cpp
18397ac_cpp='$CXXCPP $CPPFLAGS'
18398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18401
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018402 cat >conftest.$ac_ext <<_ACEOF
18403/* confdefs.h. */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018407/* end confdefs.h. */
18408#include <math.h>
18409int
18410main ()
18411{
18412float f; isnan(f);
18413 ;
18414 return 0;
18415}
18416_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018417rm -f conftest.$ac_objext
18418if { (ac_try="$ac_compile"
18419case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435esac
18436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018451 ac_cv_func_isnan_in_math_h=yes
18452else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018453 echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018457fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018458
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 ac_ext=c
18461ac_cpp='$CPP $CPPFLAGS'
18462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18464ac_compiler_gnu=$ac_cv_c_compiler_gnu
18465
18466fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018467{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18468echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018469
18470
18471if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18472
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018473cat >>confdefs.h <<\_ACEOF
18474#define HAVE_ISNAN_IN_MATH_H 1
18475_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018476
18477fi
18478
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018479{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18480echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18481if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018483else
18484 ac_ext=cpp
18485ac_cpp='$CXXCPP $CPPFLAGS'
18486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18489
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018490 cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018495/* end confdefs.h. */
18496#include <cmath>
18497int
18498main ()
18499{
18500float f; isnan(f);
18501 ;
18502 return 0;
18503}
18504_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018505rm -f conftest.$ac_objext
18506if { (ac_try="$ac_compile"
18507case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523esac
18524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018539 ac_cv_func_isnan_in_cmath=yes
18540else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018541 echo "$as_me: failed program was:" >&5
18542sed 's/^/| /' conftest.$ac_ext >&5
18543
18544 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018545fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018546
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 ac_ext=c
18549ac_cpp='$CPP $CPPFLAGS'
18550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552ac_compiler_gnu=$ac_cv_c_compiler_gnu
18553
18554fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018555{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18556echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018557
18558if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18559
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018560cat >>confdefs.h <<\_ACEOF
18561#define HAVE_ISNAN_IN_CMATH 1
18562_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018563
18564fi
18565
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018566{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18567echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18568if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018570else
18571 ac_ext=cpp
18572ac_cpp='$CXXCPP $CPPFLAGS'
18573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18576
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018577 cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018582/* end confdefs.h. */
18583#include <cmath>
18584int
18585main ()
18586{
18587float f; std::isnan(f);
18588 ;
18589 return 0;
18590}
18591_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018592rm -f conftest.$ac_objext
18593if { (ac_try="$ac_compile"
18594case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610esac
18611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest.$ac_objext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620esac
18621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018626 ac_cv_func_std_isnan_in_cmath=yes
18627else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018628 echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018632fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018633
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 ac_ext=c
18636ac_cpp='$CPP $CPPFLAGS'
18637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640
18641fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018642{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18643echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018644
18645if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18646
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018647cat >>confdefs.h <<\_ACEOF
18648#define HAVE_STD_ISNAN_IN_CMATH 1
18649_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018650
18651fi
18652
18653
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018654{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18655echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18656if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018658else
18659 ac_ext=cpp
18660ac_cpp='$CXXCPP $CPPFLAGS'
18661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18664
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018665 cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018670/* end confdefs.h. */
18671#include <math.h>
18672int
18673main ()
18674{
18675float f; isinf(f);
18676 ;
18677 return 0;
18678}
18679_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018680rm -f conftest.$ac_objext
18681if { (ac_try="$ac_compile"
18682case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18685esac
18686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_compile") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698esac
18699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018714 ac_cv_func_isinf_in_math_h=yes
18715else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018720fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018721
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 ac_ext=c
18724ac_cpp='$CPP $CPPFLAGS'
18725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727ac_compiler_gnu=$ac_cv_c_compiler_gnu
18728
18729fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018730{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18731echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018732
18733if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18734
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018735cat >>confdefs.h <<\_ACEOF
18736#define HAVE_ISINF_IN_MATH_H 1
18737_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018738
18739fi
18740
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018741{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18742echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18743if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018745else
18746 ac_ext=cpp
18747ac_cpp='$CXXCPP $CPPFLAGS'
18748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18751
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018752 cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018757/* end confdefs.h. */
18758#include <cmath>
18759int
18760main ()
18761{
18762float f; isinf(f);
18763 ;
18764 return 0;
18765}
18766_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018767rm -f conftest.$ac_objext
18768if { (ac_try="$ac_compile"
18769case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_compile") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018801 ac_cv_func_isinf_in_cmath=yes
18802else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018807fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018808
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 ac_ext=c
18811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018817{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18818echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018819
18820if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18821
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018822cat >>confdefs.h <<\_ACEOF
18823#define HAVE_ISINF_IN_CMATH 1
18824_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018825
18826fi
18827
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018828{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18829echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18830if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018832else
18833 ac_ext=cpp
18834ac_cpp='$CXXCPP $CPPFLAGS'
18835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18838
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018844/* end confdefs.h. */
18845#include <cmath>
18846int
18847main ()
18848{
18849float f; std::isinf(f)}
18850 ;
18851 return 0;
18852}
18853_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018854rm -f conftest.$ac_objext
18855if { (ac_try="$ac_compile"
18856case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_compile") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872esac
18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest.$ac_objext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018888 ac_cv_func_std_isinf_in_cmath=yes
18889else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018894fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018895
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 ac_ext=c
18898ac_cpp='$CPP $CPPFLAGS'
18899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902
18903fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018904{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18905echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018906
18907if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18908
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018909cat >>confdefs.h <<\_ACEOF
18910#define HAVE_STD_ISINF_IN_CMATH 1
18911_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018912
18913fi
18914
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018915{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18916echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18917if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018919else
18920 ac_ext=cpp
18921ac_cpp='$CXXCPP $CPPFLAGS'
18922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018926 cat >conftest.$ac_ext <<_ACEOF
18927/* confdefs.h. */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018931/* end confdefs.h. */
18932#include <ieeefp.h>
18933int
18934main ()
18935{
18936float f; finite(f);
18937 ;
18938 return 0;
18939}
18940_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018941rm -f conftest.$ac_objext
18942if { (ac_try="$ac_compile"
18943case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_compile") 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18969esac
18970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018975 ac_cv_func_finite_in_ieeefp_h=yes
18976else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018977 echo "$as_me: failed program was:" >&5
18978sed 's/^/| /' conftest.$ac_ext >&5
18979
18980 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018981fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018982
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 ac_ext=c
18985ac_cpp='$CPP $CPPFLAGS'
18986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988ac_compiler_gnu=$ac_cv_c_compiler_gnu
18989
18990fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018991{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18992echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018993
18994if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18995
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018996cat >>confdefs.h <<\_ACEOF
18997#define HAVE_FINITE_IN_IEEEFP_H 1
18998_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018999
19000fi
19001
19002
19003
19004if test "$llvm_cv_platform_type" = "Unix" ; then
19005
19006
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019007for ac_header in stdlib.h unistd.h
19008do
19009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19015fi
19016ac_res=`eval echo '${'$as_ac_Header'}'`
19017 { echo "$as_me:$LINENO: result: $ac_res" >&5
19018echo "${ECHO_T}$ac_res" >&6; }
19019else
19020 # Is the header compilable?
19021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19023cat >conftest.$ac_ext <<_ACEOF
19024/* confdefs.h. */
19025_ACEOF
19026cat confdefs.h >>conftest.$ac_ext
19027cat >>conftest.$ac_ext <<_ACEOF
19028/* end confdefs.h. */
19029$ac_includes_default
19030#include <$ac_header>
19031_ACEOF
19032rm -f conftest.$ac_objext
19033if { (ac_try="$ac_compile"
19034case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037esac
19038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_compile") 2>conftest.er1
19040 ac_status=$?
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
19057 { (case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060esac
19061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_try") 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_header_compiler=yes
19067else
19068 echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019070
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019071 ac_header_compiler=no
19072fi
19073
19074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076echo "${ECHO_T}$ac_header_compiler" >&6; }
19077
19078# Is the header present?
19079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087#include <$ac_header>
19088_ACEOF
19089if { (ac_try="$ac_cpp conftest.$ac_ext"
19090case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null; then
19102 if test -s conftest.err; then
19103 ac_cpp_err=$ac_c_preproc_warn_flag
19104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19105 else
19106 ac_cpp_err=
19107 fi
19108else
19109 ac_cpp_err=yes
19110fi
19111if test -z "$ac_cpp_err"; then
19112 ac_header_preproc=yes
19113else
19114 echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_header_preproc=no
19118fi
19119
19120rm -f conftest.err conftest.$ac_ext
19121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19122echo "${ECHO_T}$ac_header_preproc" >&6; }
19123
19124# So? What about this header?
19125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19126 yes:no: )
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19131 ac_header_preproc=yes
19132 ;;
19133 no:yes:* )
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19146 ( cat <<\_ASBOX
19147## ----------------------------------- ##
19148## Report this to llvmbugs@cs.uiuc.edu ##
19149## ----------------------------------- ##
19150_ASBOX
19151 ) | sed "s/^/$as_me: WARNING: /" >&2
19152 ;;
19153esac
19154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158else
19159 eval "$as_ac_Header=\$ac_header_preproc"
19160fi
19161ac_res=`eval echo '${'$as_ac_Header'}'`
19162 { echo "$as_me:$LINENO: result: $ac_res" >&5
19163echo "${ECHO_T}$ac_res" >&6; }
19164
19165fi
19166if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019167 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019169_ACEOF
19170
19171fi
19172
19173done
19174
19175
19176for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019177do
19178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19192#define $ac_func innocuous_$ac_func
19193
19194/* System header to define __stub macros and hopefully few prototypes,
19195 which can conflict with char $ac_func (); below.
19196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19197 <limits.h> exists even on freestanding compilers. */
19198
19199#ifdef __STDC__
19200# include <limits.h>
19201#else
19202# include <assert.h>
19203#endif
19204
19205#undef $ac_func
19206
19207/* Override any GCC internal prototype to avoid an error.
19208 Use char because int might match the return type of a GCC
19209 builtin and then its argument prototype would still apply. */
19210#ifdef __cplusplus
19211extern "C"
19212#endif
19213char $ac_func ();
19214/* The GNU C library defines this for functions which it implements
19215 to always fail with ENOSYS. Some functions are actually named
19216 something starting with __ and the normal name is an alias. */
19217#if defined __stub_$ac_func || defined __stub___$ac_func
19218choke me
19219#endif
19220
19221int
19222main ()
19223{
19224return $ac_func ();
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext conftest$ac_exeext
19230if { (ac_try="$ac_link"
19231case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234esac
19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_link") 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247esac
19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257esac
19258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_try") 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 eval "$as_ac_var=yes"
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 eval "$as_ac_var=no"
19269fi
19270
19271rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19273fi
19274ac_res=`eval echo '${'$as_ac_var'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276echo "${ECHO_T}$ac_res" >&6; }
19277if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019278 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019280_ACEOF
19281
19282fi
19283done
19284
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019285{ echo "$as_me:$LINENO: checking for working mmap" >&5
19286echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19287if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019289else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019290 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019291 ac_cv_func_mmap_fixed_mapped=no
19292else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019293 cat >conftest.$ac_ext <<_ACEOF
19294/* confdefs.h. */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019298/* end confdefs.h. */
19299$ac_includes_default
19300/* malloc might have been renamed as rpl_malloc. */
19301#undef malloc
19302
19303/* Thanks to Mike Haertel and Jim Avera for this test.
19304 Here is a matrix of mmap possibilities:
19305 mmap private not fixed
19306 mmap private fixed at somewhere currently unmapped
19307 mmap private fixed at somewhere already mapped
19308 mmap shared not fixed
19309 mmap shared fixed at somewhere currently unmapped
19310 mmap shared fixed at somewhere already mapped
19311 For private mappings, we should verify that changes cannot be read()
19312 back from the file, nor mmap's back from the file at a different
19313 address. (There have been systems where private was not correctly
19314 implemented like the infamous i386 svr4.0, and systems where the
19315 VM page cache was not coherent with the file system buffer cache
19316 like early versions of FreeBSD and possibly contemporary NetBSD.)
19317 For shared mappings, we should conversely verify that changes get
19318 propagated back to all the places they're supposed to be.
19319
19320 Grep wants private fixed already mapped.
19321 The main things grep needs to know about mmap are:
19322 * does it exist and is it safe to write into the mmap'd area
19323 * how to use it (BSD variants) */
19324
19325#include <fcntl.h>
19326#include <sys/mman.h>
19327
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019328#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019329char *malloc ();
19330#endif
19331
19332/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019333#if !HAVE_GETPAGESIZE
19334/* Assume that all systems that can run configure have sys/param.h. */
19335# if !HAVE_SYS_PARAM_H
19336# define HAVE_SYS_PARAM_H 1
19337# endif
19338
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019339# ifdef _SC_PAGESIZE
19340# define getpagesize() sysconf(_SC_PAGESIZE)
19341# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019342# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019343# include <sys/param.h>
19344# ifdef EXEC_PAGESIZE
19345# define getpagesize() EXEC_PAGESIZE
19346# else /* no EXEC_PAGESIZE */
19347# ifdef NBPG
19348# define getpagesize() NBPG * CLSIZE
19349# ifndef CLSIZE
19350# define CLSIZE 1
19351# endif /* no CLSIZE */
19352# else /* no NBPG */
19353# ifdef NBPC
19354# define getpagesize() NBPC
19355# else /* no NBPC */
19356# ifdef PAGESIZE
19357# define getpagesize() PAGESIZE
19358# endif /* PAGESIZE */
19359# endif /* no NBPC */
19360# endif /* no NBPG */
19361# endif /* no EXEC_PAGESIZE */
19362# else /* no HAVE_SYS_PARAM_H */
19363# define getpagesize() 8192 /* punt totally */
19364# endif /* no HAVE_SYS_PARAM_H */
19365# endif /* no _SC_PAGESIZE */
19366
19367#endif /* no HAVE_GETPAGESIZE */
19368
19369int
19370main ()
19371{
19372 char *data, *data2, *data3;
19373 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019374 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019375
19376 pagesize = getpagesize ();
19377
19378 /* First, make a file with some known garbage in it. */
19379 data = (char *) malloc (pagesize);
19380 if (!data)
19381 return 1;
19382 for (i = 0; i < pagesize; ++i)
19383 *(data + i) = rand ();
19384 umask (0);
19385 fd = creat ("conftest.mmap", 0600);
19386 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019387 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019388 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019389 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019390 close (fd);
19391
19392 /* Next, try to mmap the file at a fixed address which already has
19393 something else allocated at it. If we can, also make sure that
19394 we see the same garbage. */
19395 fd = open ("conftest.mmap", O_RDWR);
19396 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019397 return 1;
19398 data2 = (char *) malloc (2 * pagesize);
19399 if (!data2)
19400 return 1;
19401 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019404 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019405 for (i = 0; i < pagesize; ++i)
19406 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019407 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019408
19409 /* Finally, make sure that changes to the mapped area do not
19410 percolate back to the file as seen by read(). (This is a bug on
19411 some variants of i386 svr4.0.) */
19412 for (i = 0; i < pagesize; ++i)
19413 *(data2 + i) = *(data2 + i) + 1;
19414 data3 = (char *) malloc (pagesize);
19415 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019416 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019417 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019418 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019419 for (i = 0; i < pagesize; ++i)
19420 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019421 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019422 close (fd);
19423 return 0;
19424}
19425_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019426rm -f conftest$ac_exeext
19427if { (ac_try="$ac_link"
19428case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431esac
19432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019446 ac_cv_func_mmap_fixed_mapped=yes
19447else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019448 echo "$as_me: program exited with status $ac_status" >&5
19449echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452( exit $ac_status )
19453ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019454fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019455rm -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 +000019456fi
19457
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019458
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019459fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019460{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19461echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019462if test $ac_cv_func_mmap_fixed_mapped = yes; then
19463
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019464cat >>confdefs.h <<\_ACEOF
19465#define HAVE_MMAP 1
19466_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019467
19468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019469rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019470
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019471 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19472echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19473if test "${ac_cv_func_mmap_file+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019475else
19476 ac_ext=c
19477ac_cpp='$CPP $CPPFLAGS'
19478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019482 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019483 ac_cv_func_mmap_file=no
19484else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019485 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019486
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019487 /* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000019492
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019493#include <sys/types.h>
19494#include <sys/mman.h>
19495#include <fcntl.h>
19496
19497int
19498main ()
19499{
19500
19501 int fd;
19502 fd = creat ("foo",0777);
19503 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19504 unlink ("foo");
19505 return (fd != (int) MAP_FAILED);
19506 ;
19507 return 0;
19508}
19509_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019510rm -f conftest$ac_exeext
19511if { (ac_try="$ac_link"
19512case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524esac
19525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019530 ac_cv_func_mmap_file=yes
19531else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019532 echo "$as_me: program exited with status $ac_status" >&5
19533echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536( exit $ac_status )
19537ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019538fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019539rm -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 +000019540fi
19541
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019542
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019543 ac_ext=c
19544ac_cpp='$CPP $CPPFLAGS'
19545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548
19549
19550fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019551{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19552echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019553if test "$ac_cv_func_mmap_file" = yes; then
19554
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019555cat >>confdefs.h <<\_ACEOF
19556#define HAVE_MMAP_FILE
19557_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019558
19559 MMAP_FILE=yes
19560
19561fi
19562
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019563 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19564echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19565if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019567else
19568 if test "$llvm_cv_os_type" = "Interix" ; then
19569 ac_cv_need_dev_zero_for_mmap=yes
19570 else
19571 ac_cv_need_dev_zero_for_mmap=no
19572 fi
19573
19574fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019575{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19576echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019577if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19578
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019579cat >>confdefs.h <<\_ACEOF
19580#define NEED_DEV_ZERO_FOR_MMAP 1
19581_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019582
19583fi
19584
19585 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19586 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019587 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19588echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019589 fi
19590 if test "$ac_cv_func_mmap_file" = "no"
19591 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019592 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19593echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019594 fi
19595fi
19596
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019597{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19598echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19599cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000019604/* end confdefs.h. */
19605int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000019606 volatile unsigned long val = 1;
19607 __sync_synchronize();
19608 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000019609 __sync_add_and_fetch(&val, 1);
19610 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000019611 return 0;
19612 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019613
19614_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019615rm -f conftest.$ac_objext conftest$ac_exeext
19616if { (ac_try="$ac_link"
19617case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 { echo "$as_me:$LINENO: result: yes" >&5
19650echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000019651
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019652cat >>confdefs.h <<\_ACEOF
19653#define LLVM_MULTITHREADED 1
19654_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000019655
Owen Andersonff0f88e2009-05-18 23:58:51 +000019656else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019657 echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019659
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019660 { echo "$as_me:$LINENO: result: no" >&5
19661echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019662
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019663cat >>confdefs.h <<\_ACEOF
19664#define LLVM_MULTITHREADED 0
19665_ACEOF
19666
19667 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19668echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000019669fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019670
Owen Andersonff0f88e2009-05-18 23:58:51 +000019671rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019672 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000019673
19674
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019675
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019676if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019677 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19678echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19679if test "${llvm_cv_linux_mixed+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019681else
19682 ac_ext=c
19683ac_cpp='$CPP $CPPFLAGS'
19684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_c_compiler_gnu
19687
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019688 cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019693/* end confdefs.h. */
19694#ifndef __x86_64__
19695 error: Not x86-64 even if uname says so!
19696 #endif
19697
19698int
19699main ()
19700{
19701
19702 ;
19703 return 0;
19704}
19705_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019706rm -f conftest.$ac_objext
19707if { (ac_try="$ac_compile"
19708case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19711esac
19712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724esac
19725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734esac
19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019740 llvm_cv_linux_mixed=no
19741else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019742 echo "$as_me: failed program was:" >&5
19743sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019746fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019747
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 ac_ext=c
19750ac_cpp='$CPP $CPPFLAGS'
19751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754
19755
19756fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019757{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19758echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019759
19760 if test "$llvm_cv_linux_mixed" = "yes"; then
19761 llvm_cv_target_arch="x86"
19762 ARCH="x86"
19763 fi
19764fi
19765
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019766
Reid Spencer59c09b32007-07-30 20:13:24 +000019767for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019768do
19769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774else
19775 cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h. */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h. */
19781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19783#define $ac_func innocuous_$ac_func
19784
19785/* System header to define __stub macros and hopefully few prototypes,
19786 which can conflict with char $ac_func (); below.
19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788 <limits.h> exists even on freestanding compilers. */
19789
19790#ifdef __STDC__
19791# include <limits.h>
19792#else
19793# include <assert.h>
19794#endif
19795
19796#undef $ac_func
19797
19798/* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19801#ifdef __cplusplus
19802extern "C"
19803#endif
19804char $ac_func ();
19805/* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808#if defined __stub_$ac_func || defined __stub___$ac_func
19809choke me
19810#endif
19811
19812int
19813main ()
19814{
19815return $ac_func ();
19816 ;
19817 return 0;
19818}
19819_ACEOF
19820rm -f conftest.$ac_objext conftest$ac_exeext
19821if { (ac_try="$ac_link"
19822case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_link") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest$ac_exeext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 eval "$as_ac_var=yes"
19855else
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 eval "$as_ac_var=no"
19860fi
19861
19862rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864fi
19865ac_res=`eval echo '${'$as_ac_var'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867echo "${ECHO_T}$ac_res" >&6; }
19868if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000019869 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000019871_ACEOF
19872
19873fi
19874done
19875
19876
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019877{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19878echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19879if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019881else
19882 llvm_cv_llvmgcc_sanity="no"
19883if test -x "$LLVMGCC" ; then
19884 cp /dev/null conftest.c
19885 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19886 grep 'target datalayout =' > /dev/null 2>&1
19887 if test $? -eq 0 ; then
19888 llvm_cv_llvmgcc_sanity="yes"
19889 fi
19890 rm conftest.c
19891fi
19892fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019893{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19894echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019895
19896if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019897 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19898echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019899 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19900 LLVMCC1=$llvmcc1path
19901
19902 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19903 LLVMCC1PLUS=$llvmcc1pluspath
19904
19905 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19906 LLVMGCCDIR=$llvmgccdir
19907
Tanya Lattner9894c2c2008-10-07 22:21:03 +000019908 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019909 LLVMGCC_LANGS=$llvmgcclangs
19910
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019911 { echo "$as_me:$LINENO: result: ok" >&5
19912echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019913fi
19914
19915SHLIBEXT=$libltdl_cv_shlibext
19916
19917
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000019918SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19919
19920
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019921# Translate the various configuration directories and other basic
19922# information into substitutions that will end up in Makefile.config.in
19923# that these configured values can be used by the makefiles
19924if test "${prefix}" = "NONE" ; then
19925 prefix="/usr/local"
19926fi
19927eval LLVM_PREFIX="${prefix}";
19928eval LLVM_BINDIR="${prefix}/bin";
19929eval LLVM_LIBDIR="${prefix}/lib";
19930eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb98a6232010-03-02 05:17:21 +000019931eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019932eval LLVM_ETCDIR="${prefix}/etc/llvm";
19933eval LLVM_INCLUDEDIR="${prefix}/include";
19934eval LLVM_INFODIR="${prefix}/info";
19935eval LLVM_MANDIR="${prefix}/man";
19936LLVM_CONFIGTIME=`date`
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948# Place the various directores into the config.h file as #defines so that we
19949# can know about the installation paths within LLVM.
19950
19951cat >>confdefs.h <<_ACEOF
19952#define LLVM_PREFIX "$LLVM_PREFIX"
19953_ACEOF
19954
19955
19956cat >>confdefs.h <<_ACEOF
19957#define LLVM_BINDIR "$LLVM_BINDIR"
19958_ACEOF
19959
19960
19961cat >>confdefs.h <<_ACEOF
19962#define LLVM_LIBDIR "$LLVM_LIBDIR"
19963_ACEOF
19964
19965
19966cat >>confdefs.h <<_ACEOF
19967#define LLVM_DATADIR "$LLVM_DATADIR"
19968_ACEOF
19969
19970
19971cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000019972#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019973_ACEOF
19974
19975
19976cat >>confdefs.h <<_ACEOF
19977#define LLVM_ETCDIR "$LLVM_ETCDIR"
19978_ACEOF
19979
19980
19981cat >>confdefs.h <<_ACEOF
19982#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19983_ACEOF
19984
19985
19986cat >>confdefs.h <<_ACEOF
19987#define LLVM_INFODIR "$LLVM_INFODIR"
19988_ACEOF
19989
19990
19991cat >>confdefs.h <<_ACEOF
19992#define LLVM_MANDIR "$LLVM_MANDIR"
19993_ACEOF
19994
19995
19996cat >>confdefs.h <<_ACEOF
19997#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19998_ACEOF
19999
20000
Eric Christopher8b274472007-12-01 00:34:39 +000020001cat >>confdefs.h <<_ACEOF
20002#define LLVM_HOSTTRIPLE "$host"
20003_ACEOF
20004
20005
Gordon Henriksen016ec472007-10-02 09:50:32 +000020006# Determine which bindings to build.
20007if test "$BINDINGS_TO_BUILD" = auto ; then
20008 BINDINGS_TO_BUILD=""
20009 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20010 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20011 fi
20012fi
20013BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20014
20015
20016# This isn't really configurey, but it avoids having to repeat the list in
20017# other files.
20018ALL_BINDINGS=ocaml
20019
20020
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020021# Do any work necessary to ensure that bindings have what they need.
20022binding_prereqs_failed=0
20023for a_binding in $BINDINGS_TO_BUILD ; do
20024 case "$a_binding" in
20025 ocaml)
20026 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020027 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20028echo "$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 +000020029 binding_prereqs_failed=1
20030 fi
20031 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020032 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20033echo "$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 +000020034 binding_prereqs_failed=1
20035 fi
20036 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020037 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20038echo "$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 +000020039 fi
20040 if test "x$with_ocaml_libdir" != xauto ; then
20041 OCAML_LIBDIR=$with_ocaml_libdir
20042
20043 else
20044 ocaml_stdlib="`"$OCAMLC" -where`"
20045 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20046 then
20047 # ocaml stdlib is beneath our prefix; use stdlib
20048 OCAML_LIBDIR=$ocaml_stdlib
20049
20050 else
20051 # ocaml stdlib is outside our prefix; use libdir/ocaml
20052 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20053
20054 fi
20055 fi
20056 ;;
20057 esac
20058done
20059if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020060 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20061echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20062 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020063fi
20064
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020065{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20066echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20067if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020069else
20070 ac_ext=cpp
20071ac_cpp='$CXXCPP $CPPFLAGS'
20072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20075
20076 oldcxxflags="$CXXFLAGS"
20077 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020083/* end confdefs.h. */
20084
20085int
20086main ()
20087{
20088
20089 ;
20090 return 0;
20091}
20092_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020093rm -f conftest.$ac_objext
20094if { (ac_try="$ac_compile"
20095case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111esac
20112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20121esac
20122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020127 llvm_cv_cxx_visibility_inlines_hidden=yes
20128else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020129 echo "$as_me: failed program was:" >&5
20130sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020133fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020134
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 CXXFLAGS="$oldcxxflags"
20137 ac_ext=c
20138ac_cpp='$CPP $CPPFLAGS'
20139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141ac_compiler_gnu=$ac_cv_c_compiler_gnu
20142
20143
20144fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020145{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20146echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020147if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20148 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20149
20150else
20151 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20152
20153fi
20154
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020155
Nick Lewycky6eab6652009-03-05 08:20:44 +000020156if test "$llvm_cv_link_use_r" = "yes" ; then
20157 RPATH="-Wl,-R"
20158else
20159 RPATH="-Wl,-rpath"
20160fi
20161
20162
20163if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20164 RDYNAMIC="-Wl,-export-dynamic"
20165else
20166 RDYNAMIC=""
20167fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000020168
20169
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020170
20171ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20172
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020173ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20174
20175ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20176
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020177ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20178
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020179ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20180
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020181ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020182
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020183
20184ac_config_files="$ac_config_files Makefile.config"
20185
20186
20187ac_config_files="$ac_config_files llvm.spec"
20188
20189
20190ac_config_files="$ac_config_files docs/doxygen.cfg"
20191
20192
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020193ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20194
20195
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020196ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20197
20198
20199ac_config_commands="$ac_config_commands setup"
20200
20201ac_config_commands="$ac_config_commands Makefile"
20202
20203
20204ac_config_commands="$ac_config_commands Makefile.common"
20205
20206
20207ac_config_commands="$ac_config_commands examples/Makefile"
20208
20209
20210ac_config_commands="$ac_config_commands lib/Makefile"
20211
20212
20213ac_config_commands="$ac_config_commands runtime/Makefile"
20214
20215
20216ac_config_commands="$ac_config_commands test/Makefile"
20217
20218
20219ac_config_commands="$ac_config_commands test/Makefile.tests"
20220
20221
Bill Wendling9b9833f2009-01-04 23:12:30 +000020222ac_config_commands="$ac_config_commands unittests/Makefile"
20223
20224
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020225ac_config_commands="$ac_config_commands tools/Makefile"
20226
20227
20228ac_config_commands="$ac_config_commands utils/Makefile"
20229
20230
20231ac_config_commands="$ac_config_commands projects/Makefile"
20232
20233
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020234ac_config_commands="$ac_config_commands bindings/Makefile"
20235
20236
20237ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20238
20239
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020240
20241cat >confcache <<\_ACEOF
20242# This file is a shell script that caches the results of configure
20243# tests run on this system so they can be shared between configure
20244# scripts and configure runs, see configure's option --config-cache.
20245# It is not useful on other systems. If it contains results you don't
20246# want to keep, you may remove or edit it.
20247#
20248# config.status only pays attention to the cache file if you give it
20249# the --recheck option to rerun configure.
20250#
20251# `ac_cv_env_foo' variables (set or unset) will be overridden when
20252# loading this file, other *unset* `ac_cv_foo' will be assigned the
20253# following values.
20254
20255_ACEOF
20256
20257# The following way of writing the cache mishandles newlines in values,
20258# but we know of no workaround that is simple, portable, and efficient.
20259# So, we kill variables containing newlines.
20260# Ultrix sh set writes to stderr and can't be redirected directly,
20261# and sets the high bit in the cache file unless we assign to the vars.
20262(
20263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20264 eval ac_val=\$$ac_var
20265 case $ac_val in #(
20266 *${as_nl}*)
20267 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20269echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020270 esac
20271 case $ac_var in #(
20272 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020273 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020274 esac ;;
20275 esac
20276 done
20277
20278 (set) 2>&1 |
20279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20280 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020281 # `set' does not quote correctly, so add quotes (double-quote
20282 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020283 sed -n \
20284 "s/'/'\\\\''/g;
20285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20286 ;; #(
20287 *)
20288 # `set' quotes correctly as required by POSIX, so do not add quotes.
20289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20290 ;;
20291 esac |
20292 sort
20293) |
20294 sed '
20295 /^ac_cv_env_/b end
20296 t clear
20297 :clear
20298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20299 t end
20300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20301 :end' >>confcache
20302if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20303 if test -w "$cache_file"; then
20304 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20306echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020307 cat confcache >$cache_file
20308 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20310echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020311 fi
20312fi
20313rm -f confcache
20314
20315test "x$prefix" = xNONE && prefix=$ac_default_prefix
20316# Let make expand exec_prefix.
20317test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20318
20319DEFS=-DHAVE_CONFIG_H
20320
20321ac_libobjs=
20322ac_ltlibobjs=
20323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020326 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20328 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020331done
20332LIBOBJS=$ac_libobjs
20333
20334LTLIBOBJS=$ac_ltlibobjs
20335
20336
20337if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020338 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20339Usually this means the macro was only invoked conditionally." >&5
20340echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20341Usually this means the macro was only invoked conditionally." >&2;}
20342 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020343fi
20344if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020345 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20346Usually this means the macro was only invoked conditionally." >&5
20347echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20348Usually this means the macro was only invoked conditionally." >&2;}
20349 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020350fi
20351
20352: ${CONFIG_STATUS=./config.status}
20353ac_clean_files_save=$ac_clean_files
20354ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020355{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20356echo "$as_me: creating $CONFIG_STATUS" >&6;}
20357cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020358#! $SHELL
20359# Generated by $as_me.
20360# Run this file to recreate the current configuration.
20361# Compiler output produced by configure, useful for debugging
20362# configure, is in config.log if it exists.
20363
20364debug=false
20365ac_cs_recheck=false
20366ac_cs_silent=false
20367SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020368_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020369
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020370cat >>$CONFIG_STATUS <<\_ACEOF
20371## --------------------- ##
20372## M4sh Initialization. ##
20373## --------------------- ##
20374
20375# Be Bourne compatible
20376if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020377 emulate sh
20378 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020379 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020380 # is contrary to our usage. Disable this feature.
20381 alias -g '${1+"$@"}'='"$@"'
20382 setopt NO_GLOB_SUBST
20383else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020384 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020385fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020386BIN_SH=xpg4; export BIN_SH # for Tru64
20387DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020388
20389
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020390# PATH needs CR
20391# Avoid depending upon Character Ranges.
20392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20395as_cr_digits='0123456789'
20396as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020397
20398# The user is always right.
20399if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020400 echo "#! /bin/sh" >conf$$.sh
20401 echo "exit 0" >>conf$$.sh
20402 chmod +x conf$$.sh
20403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20404 PATH_SEPARATOR=';'
20405 else
20406 PATH_SEPARATOR=:
20407 fi
20408 rm -f conf$$.sh
20409fi
20410
20411# Support unset when possible.
20412if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20413 as_unset=unset
20414else
20415 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020416fi
20417
20418
20419# IFS
20420# We need space, tab and new line, in precisely that order. Quoting is
20421# there to prevent editors from complaining about space-tab.
20422# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20423# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020424as_nl='
20425'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020426IFS=" "" $as_nl"
20427
20428# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020429case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020430 *[\\/]* ) as_myself=$0 ;;
20431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432for as_dir in $PATH
20433do
20434 IFS=$as_save_IFS
20435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20437done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020438IFS=$as_save_IFS
20439
20440 ;;
20441esac
20442# We did not find ourselves, most probably we were run as `sh COMMAND'
20443# in which case we are not to be found in the path.
20444if test "x$as_myself" = x; then
20445 as_myself=$0
20446fi
20447if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020448 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20449 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020450fi
20451
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020452# Work around bugs in pre-3.0 UWIN ksh.
20453for as_var in ENV MAIL MAILPATH
20454do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020455done
20456PS1='$ '
20457PS2='> '
20458PS4='+ '
20459
20460# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020461for as_var in \
20462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20464 LC_TELEPHONE LC_TIME
20465do
20466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20467 eval $as_var=C; export $as_var
20468 else
20469 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000020470 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020471done
Edwin Törökc27310c2010-01-26 08:50:50 +000020472
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020473# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020474if expr a : '\(a\)' >/dev/null 2>&1 &&
20475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20476 as_expr=expr
20477else
20478 as_expr=false
20479fi
20480
20481if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20482 as_basename=basename
20483else
20484 as_basename=false
20485fi
20486
20487
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020488# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020489as_me=`$as_basename -- "$0" ||
20490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20491 X"$0" : 'X\(//\)$' \| \
20492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020493echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020494 sed '/^.*\/\([^/][^/]*\)\/*$/{
20495 s//\1/
20496 q
20497 }
20498 /^X\/\(\/\/\)$/{
20499 s//\1/
20500 q
20501 }
20502 /^X\/\(\/\).*/{
20503 s//\1/
20504 q
20505 }
20506 s/.*/./; q'`
20507
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020508# CDPATH.
20509$as_unset CDPATH
20510
20511
20512
20513 as_lineno_1=$LINENO
20514 as_lineno_2=$LINENO
20515 test "x$as_lineno_1" != "x$as_lineno_2" &&
20516 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20517
20518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20519 # uniformly replaced by the line number. The first 'sed' inserts a
20520 # line-number line after each line using $LINENO; the second 'sed'
20521 # does the real work. The second script uses 'N' to pair each
20522 # line-number line with the line containing $LINENO, and appends
20523 # trailing '-' during substitution so that $LINENO is not a special
20524 # case at line end.
20525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20526 # scripts with optimization help from Paolo Bonzini. Blame Lee
20527 # E. McMahon (1931-1989) for sed's syntax. :-)
20528 sed -n '
20529 p
20530 /[$]LINENO/=
20531 ' <$as_myself |
20532 sed '
20533 s/[$]LINENO.*/&-/
20534 t lineno
20535 b
20536 :lineno
20537 N
20538 :loop
20539 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20540 t loop
20541 s/-\n.*//
20542 ' >$as_me.lineno &&
20543 chmod +x "$as_me.lineno" ||
20544 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20545 { (exit 1); exit 1; }; }
20546
20547 # Don't try to exec as it changes $[0], causing all sort of problems
20548 # (the dirname of $[0] is not the place where we might find the
20549 # original and so on. Autoconf is especially sensitive to this).
20550 . "./$as_me.lineno"
20551 # Exit status is that of the last command.
20552 exit
20553}
20554
20555
20556if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20557 as_dirname=dirname
20558else
20559 as_dirname=false
20560fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020561
20562ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020563case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020564-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020565 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020567 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020568 esac;;
20569*)
20570 ECHO_N='-n';;
20571esac
20572
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020573if expr a : '\(a\)' >/dev/null 2>&1 &&
20574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20575 as_expr=expr
20576else
20577 as_expr=false
20578fi
20579
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020580rm -f conf$$ conf$$.exe conf$$.file
20581if test -d conf$$.dir; then
20582 rm -f conf$$.dir/conf$$.file
20583else
20584 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020585 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020586fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020587echo >conf$$.file
20588if ln -s conf$$.file conf$$ 2>/dev/null; then
20589 as_ln_s='ln -s'
20590 # ... but there are two gotchas:
20591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20593 # In both cases, we have to default to `cp -p'.
20594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020595 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020596elif ln conf$$.file conf$$ 2>/dev/null; then
20597 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020598else
20599 as_ln_s='cp -p'
20600fi
20601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20602rmdir conf$$.dir 2>/dev/null
20603
20604if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020605 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020606else
20607 test -d ./-p && rmdir ./-p
20608 as_mkdir_p=false
20609fi
20610
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020611# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20612# systems may use methods other than mode bits to determine executability.
20613cat >conf$$.file <<_ASEOF
20614#! /bin/sh
20615exit 0
20616_ASEOF
20617chmod +x conf$$.file
20618if test -x conf$$.file >/dev/null 2>&1; then
20619 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020620else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020621 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020622fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020623rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020624
20625# Sed expression to map a string onto a valid CPP name.
20626as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20627
20628# Sed expression to map a string onto a valid variable name.
20629as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20630
20631
20632exec 6>&1
20633
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020634# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020635# report actual input values of CONFIG_FILES etc. instead of their
20636# values after options handling.
20637ac_log="
Tanya Lattnerb072da72010-03-19 21:22:13 +000020638This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020639generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020640
20641 CONFIG_FILES = $CONFIG_FILES
20642 CONFIG_HEADERS = $CONFIG_HEADERS
20643 CONFIG_LINKS = $CONFIG_LINKS
20644 CONFIG_COMMANDS = $CONFIG_COMMANDS
20645 $ $0 $@
20646
20647on `(hostname || uname -n) 2>/dev/null | sed 1q`
20648"
20649
20650_ACEOF
20651
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020652cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020653# Files that config.status was made for.
20654config_files="$ac_config_files"
20655config_headers="$ac_config_headers"
20656config_commands="$ac_config_commands"
20657
20658_ACEOF
20659
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020660cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020661ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020662\`$as_me' instantiates files from templates according to the
20663current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020664
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020665Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020666
20667 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020668 -V, --version print version number, then exit
20669 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020670 -d, --debug don't remove temporary files
20671 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020672 --file=FILE[:TEMPLATE]
20673 instantiate the configuration file FILE
20674 --header=FILE[:TEMPLATE]
20675 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020676
20677Configuration files:
20678$config_files
20679
20680Configuration headers:
20681$config_headers
20682
20683Configuration commands:
20684$config_commands
20685
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020686Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020687
20688_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020689cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020690ac_cs_version="\\
Tanya Lattnerb072da72010-03-19 21:22:13 +000020691llvm config.status 2.8svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020692configured by $0, generated by GNU Autoconf 2.60,
20693 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020694
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020695Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020696This config.status script is free software; the Free Software Foundation
20697gives unlimited permission to copy, distribute and modify it."
20698
20699ac_pwd='$ac_pwd'
20700srcdir='$srcdir'
20701INSTALL='$INSTALL'
20702_ACEOF
20703
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020704cat >>$CONFIG_STATUS <<\_ACEOF
20705# If no file are specified by the user, then we need to provide default
20706# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020707ac_need_defaults=:
20708while test $# != 0
20709do
20710 case $1 in
20711 --*=*)
20712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20714 ac_shift=:
20715 ;;
20716 *)
20717 ac_option=$1
20718 ac_optarg=$2
20719 ac_shift=shift
20720 ;;
20721 esac
20722
20723 case $ac_option in
20724 # Handling of the options.
20725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20726 ac_cs_recheck=: ;;
20727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020728 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020729 --debug | --debu | --deb | --de | --d | -d )
20730 debug=: ;;
20731 --file | --fil | --fi | --f )
20732 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020734 ac_need_defaults=false;;
20735 --header | --heade | --head | --hea )
20736 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020738 ac_need_defaults=false;;
20739 --he | --h)
20740 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020741 { echo "$as_me: error: ambiguous option: $1
20742Try \`$0 --help' for more information." >&2
20743 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020744 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020745 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20748 ac_cs_silent=: ;;
20749
20750 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020751 -*) { echo "$as_me: error: unrecognized option: $1
20752Try \`$0 --help' for more information." >&2
20753 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020754
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020755 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020756 ac_need_defaults=false ;;
20757
20758 esac
20759 shift
20760done
20761
20762ac_configure_extra_args=
20763
20764if $ac_cs_silent; then
20765 exec 6>/dev/null
20766 ac_configure_extra_args="$ac_configure_extra_args --silent"
20767fi
20768
20769_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020770cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020771if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020772 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20773 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020774 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020775 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020776fi
20777
20778_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020779cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020780exec 5>>config.log
20781{
20782 echo
20783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20784## Running $as_me. ##
20785_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020786 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020787} >&5
20788
20789_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020790cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020791#
20792# INIT-COMMANDS
20793#
20794llvm_src="${srcdir}"
20795
20796_ACEOF
20797
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020798cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020799
20800# Handling of arguments.
20801for ac_config_target in $ac_config_targets
20802do
20803 case $ac_config_target in
20804 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020805 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20806 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020807 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020808 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020809 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020810 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20811 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20812 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020813 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020814 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20815 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20816 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20817 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20818 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20819 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20820 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20821 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20822 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000020823 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020824 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20825 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20826 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020827 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20828 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020829
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020830 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20831echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20832 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020833 esac
20834done
20835
20836
20837# If the user did not use the arguments to specify the items to instantiate,
20838# then the envvar interface is used. Set only those that are not.
20839# We use the long form for the default assignment because of an extremely
20840# bizarre bug on SunOS 4.1.3.
20841if $ac_need_defaults; then
20842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20845fi
20846
20847# Have a temporary directory for convenience. Make it in the build tree
20848# simply because there is no reason against having it here, and in addition,
20849# creating and moving files from /tmp can sometimes cause problems.
20850# Hook for its removal unless debugging.
20851# Note that there is a small window in which the directory will not be cleaned:
20852# after its creation but before its name has been assigned to `$tmp'.
20853$debug ||
20854{
20855 tmp=
20856 trap 'exit_status=$?
20857 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20858' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020859 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020860}
20861# Create a (secure) tmp directory for tmp files.
20862
20863{
20864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20865 test -n "$tmp" && test -d "$tmp"
20866} ||
20867{
20868 tmp=./conf$$-$RANDOM
20869 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020870} ||
20871{
20872 echo "$me: cannot create a temporary directory in ." >&2
20873 { (exit 1); exit 1; }
20874}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020875
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020876#
20877# Set up the sed scripts for CONFIG_FILES section.
20878#
20879
20880# No need to generate the scripts if there are no CONFIG_FILES.
20881# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020882if test -n "$CONFIG_FILES"; then
20883
20884_ACEOF
20885
20886
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020887
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020888ac_delim='%!_!# '
20889for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020890 cat >conf$$subs.sed <<_ACEOF
20891SHELL!$SHELL$ac_delim
20892PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20893PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20894PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20895PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20896PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20897PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20898exec_prefix!$exec_prefix$ac_delim
20899prefix!$prefix$ac_delim
20900program_transform_name!$program_transform_name$ac_delim
20901bindir!$bindir$ac_delim
20902sbindir!$sbindir$ac_delim
20903libexecdir!$libexecdir$ac_delim
20904datarootdir!$datarootdir$ac_delim
20905datadir!$datadir$ac_delim
20906sysconfdir!$sysconfdir$ac_delim
20907sharedstatedir!$sharedstatedir$ac_delim
20908localstatedir!$localstatedir$ac_delim
20909includedir!$includedir$ac_delim
20910oldincludedir!$oldincludedir$ac_delim
20911docdir!$docdir$ac_delim
20912infodir!$infodir$ac_delim
20913htmldir!$htmldir$ac_delim
20914dvidir!$dvidir$ac_delim
20915pdfdir!$pdfdir$ac_delim
20916psdir!$psdir$ac_delim
20917libdir!$libdir$ac_delim
20918localedir!$localedir$ac_delim
20919mandir!$mandir$ac_delim
20920DEFS!$DEFS$ac_delim
20921ECHO_C!$ECHO_C$ac_delim
20922ECHO_N!$ECHO_N$ac_delim
20923ECHO_T!$ECHO_T$ac_delim
20924LIBS!$LIBS$ac_delim
20925build_alias!$build_alias$ac_delim
20926host_alias!$host_alias$ac_delim
20927target_alias!$target_alias$ac_delim
20928LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20929subdirs!$subdirs$ac_delim
20930build!$build$ac_delim
20931build_cpu!$build_cpu$ac_delim
20932build_vendor!$build_vendor$ac_delim
20933build_os!$build_os$ac_delim
20934host!$host$ac_delim
20935host_cpu!$host_cpu$ac_delim
20936host_vendor!$host_vendor$ac_delim
20937host_os!$host_os$ac_delim
20938target!$target$ac_delim
20939target_cpu!$target_cpu$ac_delim
20940target_vendor!$target_vendor$ac_delim
20941target_os!$target_os$ac_delim
20942OS!$OS$ac_delim
20943HOST_OS!$HOST_OS$ac_delim
20944TARGET_OS!$TARGET_OS$ac_delim
20945LINKALL!$LINKALL$ac_delim
20946NOLINKALL!$NOLINKALL$ac_delim
20947LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20948LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20949ARCH!$ARCH$ac_delim
20950ENDIAN!$ENDIAN$ac_delim
20951CC!$CC$ac_delim
20952CFLAGS!$CFLAGS$ac_delim
20953LDFLAGS!$LDFLAGS$ac_delim
20954CPPFLAGS!$CPPFLAGS$ac_delim
20955ac_ct_CC!$ac_ct_CC$ac_delim
20956EXEEXT!$EXEEXT$ac_delim
20957OBJEXT!$OBJEXT$ac_delim
20958CPP!$CPP$ac_delim
20959GREP!$GREP$ac_delim
20960EGREP!$EGREP$ac_delim
20961LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20962BUILD_CC!$BUILD_CC$ac_delim
20963BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20964BUILD_CXX!$BUILD_CXX$ac_delim
20965CVSBUILD!$CVSBUILD$ac_delim
20966ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20967ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20968DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20969ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20970EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20971DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20972DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20973JIT!$JIT$ac_delim
20974TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20975ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20976ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20977ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000020978ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020979TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20980LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20981LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20982LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20983LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20984ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020985CLANGPATH!$CLANGPATH$ac_delim
20986CLANGXXPATH!$CLANGXXPATH$ac_delim
20987ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020988_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020989
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020990 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020991 break
20992 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020993 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20994echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20995 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020996 else
20997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20998 fi
20999done
21000
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021001ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21002if test -n "$ac_eof"; then
21003 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21004 ac_eof=`expr $ac_eof + 1`
21005fi
21006
21007cat >>$CONFIG_STATUS <<_ACEOF
21008cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21009/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021010_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021011sed '
21012s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21013s/^/s,@/; s/!/@,|#_!!_#|/
21014:n
21015t n
21016s/'"$ac_delim"'$/,g/; t
21017s/$/\\/; p
21018N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21019' >>$CONFIG_STATUS <conf$$subs.sed
21020rm -f conf$$subs.sed
21021cat >>$CONFIG_STATUS <<_ACEOF
21022CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021023_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021024
21025
21026ac_delim='%!_!# '
21027for ac_last_try in false false false false false :; do
21028 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021029OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000021030EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21031BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21032ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021033ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21034CXX!$CXX$ac_delim
21035CXXFLAGS!$CXXFLAGS$ac_delim
21036ac_ct_CXX!$ac_ct_CXX$ac_delim
21037NM!$NM$ac_delim
21038ifGNUmake!$ifGNUmake$ac_delim
21039LN_S!$LN_S$ac_delim
21040CMP!$CMP$ac_delim
21041CP!$CP$ac_delim
21042DATE!$DATE$ac_delim
21043FIND!$FIND$ac_delim
21044MKDIR!$MKDIR$ac_delim
21045MV!$MV$ac_delim
21046RANLIB!$RANLIB$ac_delim
21047AR!$AR$ac_delim
21048RM!$RM$ac_delim
21049SED!$SED$ac_delim
21050TAR!$TAR$ac_delim
21051BINPWD!$BINPWD$ac_delim
21052GRAPHVIZ!$GRAPHVIZ$ac_delim
21053DOT!$DOT$ac_delim
21054FDP!$FDP$ac_delim
21055NEATO!$NEATO$ac_delim
21056TWOPI!$TWOPI$ac_delim
21057CIRCO!$CIRCO$ac_delim
21058GV!$GV$ac_delim
21059DOTTY!$DOTTY$ac_delim
21060PERL!$PERL$ac_delim
21061HAVE_PERL!$HAVE_PERL$ac_delim
21062INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21063INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21064INSTALL_DATA!$INSTALL_DATA$ac_delim
21065BZIP2!$BZIP2$ac_delim
21066DOXYGEN!$DOXYGEN$ac_delim
21067GROFF!$GROFF$ac_delim
21068GZIP!$GZIP$ac_delim
21069POD2HTML!$POD2HTML$ac_delim
21070POD2MAN!$POD2MAN$ac_delim
21071RUNTEST!$RUNTEST$ac_delim
21072TCLSH!$TCLSH$ac_delim
21073ZIP!$ZIP$ac_delim
21074OCAMLC!$OCAMLC$ac_delim
21075OCAMLOPT!$OCAMLOPT$ac_delim
21076OCAMLDEP!$OCAMLDEP$ac_delim
21077OCAMLDOC!$OCAMLDOC$ac_delim
21078GAS!$GAS$ac_delim
21079INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21080INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21081CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21082CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21083LIBADD_DL!$LIBADD_DL$ac_delim
21084LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21085LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21086LLVMGCC!$LLVMGCC$ac_delim
21087LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000021088LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021089NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21090NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21091USE_UDIS86!$USE_UDIS86$ac_delim
21092USE_OPROFILE!$USE_OPROFILE$ac_delim
21093HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21094HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21095MMAP_FILE!$MMAP_FILE$ac_delim
21096LLVMCC1!$LLVMCC1$ac_delim
21097LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21098LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021099LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21100SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021101SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021102LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21103LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21104LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21105LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21106LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21107LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21108LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21109LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21110LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21111LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21112BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21113ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21114OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21115ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21116RPATH!$RPATH$ac_delim
21117RDYNAMIC!$RDYNAMIC$ac_delim
21118LIBOBJS!$LIBOBJS$ac_delim
21119LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021120_ACEOF
21121
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021123 break
21124 elif $ac_last_try; then
21125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21126echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21127 { (exit 1); exit 1; }; }
21128 else
21129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21130 fi
21131done
21132
21133ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21134if test -n "$ac_eof"; then
21135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21136 ac_eof=`expr $ac_eof + 1`
21137fi
21138
21139cat >>$CONFIG_STATUS <<_ACEOF
21140cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21142_ACEOF
21143sed '
21144s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21145s/^/s,@/; s/!/@,|#_!!_#|/
21146:n
21147t n
21148s/'"$ac_delim"'$/,g/; t
21149s/$/\\/; p
21150N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21151' >>$CONFIG_STATUS <conf$$subs.sed
21152rm -f conf$$subs.sed
21153cat >>$CONFIG_STATUS <<_ACEOF
21154:end
21155s/|#_!!_#|//g
21156CEOF$ac_eof
21157_ACEOF
21158
21159
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021160# VPATH may cause trouble with some makes, so we remove $(srcdir),
21161# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21162# trailing colons and then remove the whole line if VPATH becomes empty
21163# (actually we leave an empty line to preserve line numbers).
21164if test "x$srcdir" = x.; then
21165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21166s/:*\$(srcdir):*/:/
21167s/:*\${srcdir}:*/:/
21168s/:*@srcdir@:*/:/
21169s/^\([^=]*=[ ]*\):*/\1/
21170s/:*$//
21171s/^[^=]*=[ ]*$//
21172}'
21173fi
21174
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021175cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021176fi # test -n "$CONFIG_FILES"
21177
21178
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021179for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021180do
21181 case $ac_tag in
21182 :[FHLC]) ac_mode=$ac_tag; continue;;
21183 esac
21184 case $ac_mode$ac_tag in
21185 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021186 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21187echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21188 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021189 :[FH]-) ac_tag=-:-;;
21190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21191 esac
21192 ac_save_IFS=$IFS
21193 IFS=:
21194 set x $ac_tag
21195 IFS=$ac_save_IFS
21196 shift
21197 ac_file=$1
21198 shift
21199
21200 case $ac_mode in
21201 :L) ac_source=$1;;
21202 :[FH])
21203 ac_file_inputs=
21204 for ac_f
21205 do
21206 case $ac_f in
21207 -) ac_f="$tmp/stdin";;
21208 *) # Look for the file first in the build tree, then in the source tree
21209 # (if the path is not absolute). The absolute path cannot be DOS-style,
21210 # because $ac_f cannot contain `:'.
21211 test -f "$ac_f" ||
21212 case $ac_f in
21213 [\\/$]*) false;;
21214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21215 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021216 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21217echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21218 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021219 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021220 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021221 done
21222
21223 # Let's still pretend it is `configure' which instantiates (i.e., don't
21224 # use $as_me), people would be surprised to read:
21225 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021226 configure_input="Generated from "`IFS=:
21227 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021228 if test x"$ac_file" != x-; then
21229 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021230 { echo "$as_me:$LINENO: creating $ac_file" >&5
21231echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021232 fi
21233
21234 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021235 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021236 esac
21237 ;;
21238 esac
21239
21240 ac_dir=`$as_dirname -- "$ac_file" ||
21241$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21242 X"$ac_file" : 'X\(//\)[^/]' \| \
21243 X"$ac_file" : 'X\(//\)$' \| \
21244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021245echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21247 s//\1/
21248 q
21249 }
21250 /^X\(\/\/\)[^/].*/{
21251 s//\1/
21252 q
21253 }
21254 /^X\(\/\/\)$/{
21255 s//\1/
21256 q
21257 }
21258 /^X\(\/\).*/{
21259 s//\1/
21260 q
21261 }
21262 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021263 { as_dir="$ac_dir"
21264 case $as_dir in #(
21265 -*) as_dir=./$as_dir;;
21266 esac
21267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21268 as_dirs=
21269 while :; do
21270 case $as_dir in #(
21271 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21272 *) as_qdir=$as_dir;;
21273 esac
21274 as_dirs="'$as_qdir' $as_dirs"
21275 as_dir=`$as_dirname -- "$as_dir" ||
21276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21277 X"$as_dir" : 'X\(//\)[^/]' \| \
21278 X"$as_dir" : 'X\(//\)$' \| \
21279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21280echo X"$as_dir" |
21281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21282 s//\1/
21283 q
21284 }
21285 /^X\(\/\/\)[^/].*/{
21286 s//\1/
21287 q
21288 }
21289 /^X\(\/\/\)$/{
21290 s//\1/
21291 q
21292 }
21293 /^X\(\/\).*/{
21294 s//\1/
21295 q
21296 }
21297 s/.*/./; q'`
21298 test -d "$as_dir" && break
21299 done
21300 test -z "$as_dirs" || eval "mkdir $as_dirs"
21301 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21302echo "$as_me: error: cannot create directory $as_dir" >&2;}
21303 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021304 ac_builddir=.
21305
21306case "$ac_dir" in
21307.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21308*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021310 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021312 case $ac_top_builddir_sub in
21313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21315 esac ;;
21316esac
21317ac_abs_top_builddir=$ac_pwd
21318ac_abs_builddir=$ac_pwd$ac_dir_suffix
21319# for backward compatibility:
21320ac_top_builddir=$ac_top_build_prefix
21321
21322case $srcdir in
21323 .) # We are building in place.
21324 ac_srcdir=.
21325 ac_top_srcdir=$ac_top_builddir_sub
21326 ac_abs_top_srcdir=$ac_pwd ;;
21327 [\\/]* | ?:[\\/]* ) # Absolute name.
21328 ac_srcdir=$srcdir$ac_dir_suffix;
21329 ac_top_srcdir=$srcdir
21330 ac_abs_top_srcdir=$srcdir ;;
21331 *) # Relative name.
21332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21333 ac_top_srcdir=$ac_top_build_prefix$srcdir
21334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21335esac
21336ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21337
21338
21339 case $ac_mode in
21340 :F)
21341 #
21342 # CONFIG_FILE
21343 #
21344
21345 case $INSTALL in
21346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21348 esac
21349_ACEOF
21350
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021351cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021352# If the template does not know about datarootdir, expand it.
21353# FIXME: This hack should be removed a few years after 2.60.
21354ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021355
21356case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021357 p
21358 q
21359}
21360/@datadir@/p
21361/@docdir@/p
21362/@infodir@/p
21363/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021364/@mandir@/p
21365' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021366*datarootdir*) ac_datarootdir_seen=yes;;
21367*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021368 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21369echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021370_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021371cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021372 ac_datarootdir_hack='
21373 s&@datadir@&$datadir&g
21374 s&@docdir@&$docdir&g
21375 s&@infodir@&$infodir&g
21376 s&@localedir@&$localedir&g
21377 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021378 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021379esac
21380_ACEOF
21381
21382# Neutralize VPATH when `$srcdir' = `.'.
21383# Shell code in configure.ac might set extrasub.
21384# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021385cat >>$CONFIG_STATUS <<_ACEOF
21386 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021387$extrasub
21388_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021389cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021390:t
21391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021392s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021393s&@top_builddir@&$ac_top_builddir_sub&;t t
21394s&@srcdir@&$ac_srcdir&;t t
21395s&@abs_srcdir@&$ac_abs_srcdir&;t t
21396s&@top_srcdir@&$ac_top_srcdir&;t t
21397s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21398s&@builddir@&$ac_builddir&;t t
21399s&@abs_builddir@&$ac_abs_builddir&;t t
21400s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21401s&@INSTALL@&$ac_INSTALL&;t t
21402$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021403" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021404
21405test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21406 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021408 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021409which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021410echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021411which seems to be undefined. Please make sure it is defined." >&2;}
21412
21413 rm -f "$tmp/stdin"
21414 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021415 -) cat "$tmp/out"; rm -f "$tmp/out";;
21416 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21417 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021418 ;;
21419 :H)
21420 #
21421 # CONFIG_HEADER
21422 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021423_ACEOF
21424
21425# Transform confdefs.h into a sed script `conftest.defines', that
21426# substitutes the proper values into config.h.in to produce config.h.
21427rm -f conftest.defines conftest.tail
21428# First, append a space to every undef/define line, to ease matching.
21429echo 's/$/ /' >conftest.defines
21430# Then, protect against being on the right side of a sed subst, or in
21431# an unquoted here document, in config.status. If some macros were
21432# called several times there might be several #defines for the same
21433# symbol, which is useless. But do not sort them, since the last
21434# AC_DEFINE must be honored.
21435ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21436# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21437# NAME is the cpp macro being defined, VALUE is the value it is being given.
21438# PARAMS is the parameter list in the macro definition--in most cases, it's
21439# just an empty string.
21440ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21441ac_dB='\\)[ (].*,\\1define\\2'
21442ac_dC=' '
21443ac_dD=' ,'
21444
21445uniq confdefs.h |
21446 sed -n '
21447 t rset
21448 :rset
21449 s/^[ ]*#[ ]*define[ ][ ]*//
21450 t ok
21451 d
21452 :ok
21453 s/[\\&,]/\\&/g
21454 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21455 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21456 ' >>conftest.defines
21457
21458# Remove the space that was appended to ease matching.
21459# Then replace #undef with comments. This is necessary, for
21460# example, in the case of _POSIX_SOURCE, which is predefined and required
21461# on some systems where configure will not decide to define it.
21462# (The regexp can be short, since the line contains either #define or #undef.)
21463echo 's/ $//
21464s,^[ #]*u.*,/* & */,' >>conftest.defines
21465
21466# Break up conftest.defines:
21467ac_max_sed_lines=50
21468
21469# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21470# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21471# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21472# et cetera.
21473ac_in='$ac_file_inputs'
21474ac_out='"$tmp/out1"'
21475ac_nxt='"$tmp/out2"'
21476
21477while :
21478do
21479 # Write a here document:
21480 cat >>$CONFIG_STATUS <<_ACEOF
21481 # First, check the format of the line:
21482 cat >"\$tmp/defines.sed" <<\\CEOF
21483/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21484/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21485b
21486:def
21487_ACEOF
21488 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21489 echo 'CEOF
21490 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21491 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21492 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21493 grep . conftest.tail >/dev/null || break
21494 rm -f conftest.defines
21495 mv conftest.tail conftest.defines
21496done
21497rm -f conftest.defines conftest.tail
21498
21499echo "ac_result=$ac_in" >>$CONFIG_STATUS
21500cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021501 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021502 echo "/* $configure_input */" >"$tmp/config.h"
21503 cat "$ac_result" >>"$tmp/config.h"
21504 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21506echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021507 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021508 rm -f $ac_file
21509 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021510 fi
21511 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021512 echo "/* $configure_input */"
21513 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021514 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021515 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021516 ;;
21517
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021518 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21519echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021520 ;;
21521 esac
21522
21523
21524 case $ac_file$ac_mode in
21525 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021527 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000021528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021529 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021531 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021533 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021535 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021537 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000021538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021539 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021540 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021541 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021542 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021543 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021544 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021545 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021546 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021547 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021548 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021549 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000021550 ${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 +000021551
21552 esac
21553done # for ac_tag
21554
21555
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021556{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021557_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021558chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021559ac_clean_files=$ac_clean_files_save
21560
21561
21562# configure is writing to config.log, and then calls config.status.
21563# config.status does its own redirection, appending to config.log.
21564# Unfortunately, on DOS this fails, as config.log is still kept open
21565# by configure, so config.status won't be able to write to it; its
21566# output is simply discarded. So we exec the FD to /dev/null,
21567# effectively closing config.log, so it can be properly (re)opened and
21568# appended to by config.status. When coming back to configure, we
21569# need to make the FD available again.
21570if test "$no_create" != yes; then
21571 ac_cs_success=:
21572 ac_config_status_args=
21573 test "$silent" = yes &&
21574 ac_config_status_args="$ac_config_status_args --quiet"
21575 exec 5>/dev/null
21576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21577 exec 5>>config.log
21578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21579 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021580 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021581fi
21582
21583#
21584# CONFIG_SUBDIRS section.
21585#
21586if test "$no_recursion" != yes; then
21587
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021588 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021589 ac_sub_configure_args=
21590 ac_prev=
21591 eval "set x $ac_configure_args"
21592 shift
21593 for ac_arg
21594 do
21595 if test -n "$ac_prev"; then
21596 ac_prev=
21597 continue
21598 fi
21599 case $ac_arg in
21600 -cache-file | --cache-file | --cache-fil | --cache-fi \
21601 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21602 ac_prev=cache_file ;;
21603 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21604 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21605 | --c=*)
21606 ;;
21607 --config-cache | -C)
21608 ;;
21609 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21610 ac_prev=srcdir ;;
21611 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21612 ;;
21613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21614 ac_prev=prefix ;;
21615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21616 ;;
21617 *)
21618 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021619 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021620 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021621 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021622 esac
21623 done
21624
21625 # Always prepend --prefix to ensure using the same prefix
21626 # in subdir configurations.
21627 ac_arg="--prefix=$prefix"
21628 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021629 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021630 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021631 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021632
21633 ac_popdir=`pwd`
21634 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21635
21636 # Do not complain, so a configure script can configure whichever
21637 # parts of a large source tree are present.
21638 test -d "$srcdir/$ac_dir" || continue
21639
21640 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021641 echo "$as_me:$LINENO: $ac_msg" >&5
21642 echo "$ac_msg" >&6
21643 { as_dir="$ac_dir"
21644 case $as_dir in #(
21645 -*) as_dir=./$as_dir;;
21646 esac
21647 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21648 as_dirs=
21649 while :; do
21650 case $as_dir in #(
21651 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21652 *) as_qdir=$as_dir;;
21653 esac
21654 as_dirs="'$as_qdir' $as_dirs"
21655 as_dir=`$as_dirname -- "$as_dir" ||
21656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21657 X"$as_dir" : 'X\(//\)[^/]' \| \
21658 X"$as_dir" : 'X\(//\)$' \| \
21659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21660echo X"$as_dir" |
21661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21662 s//\1/
21663 q
21664 }
21665 /^X\(\/\/\)[^/].*/{
21666 s//\1/
21667 q
21668 }
21669 /^X\(\/\/\)$/{
21670 s//\1/
21671 q
21672 }
21673 /^X\(\/\).*/{
21674 s//\1/
21675 q
21676 }
21677 s/.*/./; q'`
21678 test -d "$as_dir" && break
21679 done
21680 test -z "$as_dirs" || eval "mkdir $as_dirs"
21681 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21682echo "$as_me: error: cannot create directory $as_dir" >&2;}
21683 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021684 ac_builddir=.
21685
21686case "$ac_dir" in
21687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21688*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021690 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021691 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021692 case $ac_top_builddir_sub in
21693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21695 esac ;;
21696esac
21697ac_abs_top_builddir=$ac_pwd
21698ac_abs_builddir=$ac_pwd$ac_dir_suffix
21699# for backward compatibility:
21700ac_top_builddir=$ac_top_build_prefix
21701
21702case $srcdir in
21703 .) # We are building in place.
21704 ac_srcdir=.
21705 ac_top_srcdir=$ac_top_builddir_sub
21706 ac_abs_top_srcdir=$ac_pwd ;;
21707 [\\/]* | ?:[\\/]* ) # Absolute name.
21708 ac_srcdir=$srcdir$ac_dir_suffix;
21709 ac_top_srcdir=$srcdir
21710 ac_abs_top_srcdir=$srcdir ;;
21711 *) # Relative name.
21712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21713 ac_top_srcdir=$ac_top_build_prefix$srcdir
21714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21715esac
21716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21717
21718
21719 cd "$ac_dir"
21720
21721 # Check for guested configure; otherwise get Cygnus style configure.
21722 if test -f "$ac_srcdir/configure.gnu"; then
21723 ac_sub_configure=$ac_srcdir/configure.gnu
21724 elif test -f "$ac_srcdir/configure"; then
21725 ac_sub_configure=$ac_srcdir/configure
21726 elif test -f "$ac_srcdir/configure.in"; then
21727 # This should be Cygnus configure.
21728 ac_sub_configure=$ac_aux_dir/configure
21729 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021730 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21731echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021732 ac_sub_configure=
21733 fi
21734
21735 # The recursion is here.
21736 if test -n "$ac_sub_configure"; then
21737 # Make the cache file name correct relative to the subdirectory.
21738 case $cache_file in
21739 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21740 *) # Relative name.
21741 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21742 esac
21743
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021744 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21745echo "$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 +000021746 # The eval makes quoting arguments work.
21747 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21748 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021749 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21750echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21751 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021752 fi
21753
21754 cd "$ac_popdir"
21755 done
21756fi
21757