blob: a7a502dc4cd251637e2caa87b4d7a1fc77edb547 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-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
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
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 Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
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 Yasskin1611ebb2010-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; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-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
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-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
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +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 Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +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 Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-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. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-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; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +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
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-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
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-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 ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-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"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# 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
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-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
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-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'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001320\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001386 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherbee515f2011-11-11 22:51:42 +00001421 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422 msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001427 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001428 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001433 --with-optimize-option Select the compiler options to use for optimized
1434 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001435 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001436 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001439 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1442 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001453 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001454 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001455 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001456 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001470 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +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
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +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
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 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 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 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
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001536llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-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.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001544Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001552It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
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`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/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 Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
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.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 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 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 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
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-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; }
John Criswell7a73b802003-06-30 21:59:07 +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.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# 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.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
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 Yasskin1611ebb2010-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;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +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 Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-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;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-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;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +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
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-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;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-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;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-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=:
John Criswell7a73b802003-06-30 21:59:07 +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 Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +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 Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-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; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-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
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_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
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-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
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-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; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
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
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-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; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
Nick Lewycky83fc4472009-09-29 05:48:51 +00001954ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001959if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001960 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001961 do
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001968else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981 break 2
1982 fi
1983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984done
Reid Spencera773bd52006-08-04 18:18:08 +00001985IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001986
1987fi
1988fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989CC=$ac_cv_prog_CC
1990if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: $CC" >&5
1992echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001996fi
1997
Reid Spencera773bd52006-08-04 18:18:08 +00001998
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002000 done
2001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002if test -z "$CC"; then
2003 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002004 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002005do
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002012else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002023 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002025 break 2
2026 fi
2027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028done
Reid Spencera773bd52006-08-04 18:18:08 +00002029IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002030
2031fi
2032fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002040fi
2041
Reid Spencera773bd52006-08-04 18:18:08 +00002042
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002044done
John Criswell7a73b802003-06-30 21:59:07 +00002045
Reid Spencera773bd52006-08-04 18:18:08 +00002046 if test "x$ac_ct_CC" = x; then
2047 CC=""
2048 else
2049 case $cross_compiling:$ac_tool_warned in
2050yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&5
2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055whose name does not start with the host triplet. If you think this
2056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002057ac_tool_warned=yes ;;
2058esac
2059 CC=$ac_ct_CC
2060 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069
John Criswell7a73b802003-06-30 21:59:07 +00002070# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071echo "$as_me:$LINENO: checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002074case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002080 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083{ (ac_try="$ac_compiler -v >&5"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -V >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002110
John Criswell7a73b802003-06-30 21:59:07 +00002111int
2112main ()
2113{
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002121# Try to create an executable without -o first, disregard a.out.
2122# It will help us diagnose broken compilers, and finding out an intuition
2123# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127#
2128# List of possible output files, starting from the most likely.
2129# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130# only as a last resort. b.out is created by i960 compilers.
2131ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132#
2133# The IRIX 6 linker writes into existing files which may not be
2134# executable, retaining their permissions. Remove them first so a
2135# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_rmfiles=
2137for ac_file in $ac_files
2138do
2139 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 esac
2143done
2144rm -f $ac_rmfiles
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002152 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002153 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158# in a Makefile. We should not override ac_cv_exeext if it was cached,
2159# so that the user can short-circuit this test for compilers unknown to
2160# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162do
2163 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002166 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002173 then :; else
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175 fi
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2180 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002184 esac
2185done
Reid Spencera773bd52006-08-04 18:18:08 +00002186test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
John Criswell7a73b802003-06-30 21:59:07 +00002188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002190sed 's/^/| /' conftest.$ac_ext >&5
2191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: C compiler cannot create executables
2195See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199ac_exeext=$ac_cv_exeext
2200{ echo "$as_me:$LINENO: result: $ac_file" >&5
2201echo "${ECHO_T}$ac_file" >&6; }
2202
2203# Check that the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208# If not cross compiling, check that we can run a simple program.
2209if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214esac
2215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 cross_compiling=no
2221 else
2222 if test "$cross_compiling" = maybe; then
2223 cross_compiling=yes
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233 fi
2234fi
2235{ echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002239ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002240# Check that the compiler produces executables we can run. If not, either
2241# the compiler is broken, or we cross compile.
2242{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002255 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002256 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002263for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002265 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002269 * ) break;;
2270 esac
2271done
2272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279
2280rm -f conftest$ac_cv_exeext
2281{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002298
John Criswell7a73b802003-06-30 21:59:07 +00002299int
2300main ()
2301{
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002314 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002320 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325done
2326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002328sed 's/^/| /' conftest.$ac_ext >&5
2329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336
John Criswell7a73b802003-06-30 21:59:07 +00002337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002354
John Criswell7a73b802003-06-30 21:59:07 +00002355int
2356main ()
2357{
2358#ifndef __GNUC__
2359 choke me
2360#endif
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002366rm -f conftest.$ac_objext
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002400 ac_compiler_gnu=yes
2401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407
Reid Spencera773bd52006-08-04 18:18:08 +00002408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002421else
Reid Spencera773bd52006-08-04 18:18:08 +00002422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2424 ac_cv_prog_cc_g=no
2425 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002432
John Criswell7a73b802003-06-30 21:59:07 +00002433int
2434main ()
2435{
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441rm -f conftest.$ac_objext
2442if { (ac_try="$ac_compile"
2443case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 CFLAGS=""
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002486/* end confdefs.h. */
2487
2488int
2489main ()
2490{
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496rm -f conftest.$ac_objext
2497if { (ac_try="$ac_compile"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 :
Torok Edwin871384f2010-01-26 08:50:50 +00002531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002536 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599
Reid Spencera773bd52006-08-04 18:18:08 +00002600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2609 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002610 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002612 fi
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test "$GCC" = yes; then
2615 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632/* end confdefs.h. */
2633#include <stdarg.h>
2634#include <stdio.h>
2635#include <sys/types.h>
2636#include <sys/stat.h>
2637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638struct buf { int x; };
2639FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640static char *e (p, i)
2641 char **p;
2642 int i;
2643{
2644 return p[i];
2645}
2646static char *f (char * (*g) (char **, int), char **p, ...)
2647{
2648 char *s;
2649 va_list v;
2650 va_start (v,p);
2651 s = g (p, va_arg (v,int));
2652 va_end (v);
2653 return s;
2654}
2655
2656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002659 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002662 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
Reid Spencera773bd52006-08-04 18:18:08 +00002665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2667#define FOO(x) 'x'
2668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int test (int i, double x);
2671struct s1 {int (*f) (int a);};
2672struct s2 {int (*f) (double a);};
2673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674int argc;
2675char **argv;
2676int
2677main ()
2678{
2679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 ;
2681 return 0;
2682}
2683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686do
2687 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688 rm -f conftest.$ac_objext
2689if { (ac_try="$ac_compile"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002722 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732done
Reid Spencera773bd52006-08-04 18:18:08 +00002733rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734CC=$ac_save_CC
2735
2736fi
Reid Spencera773bd52006-08-04 18:18:08 +00002737# AC_CACHE_VAL
2738case "x$ac_cv_prog_cc_c89" in
2739 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002742 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002746 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749esac
2750
John Criswell0c38eaf2003-09-10 15:17:25 +00002751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
Eric Christopherffee5722011-09-16 20:36:25 +00002758ac_ext=cpp
2759ac_cpp='$CXXCPP $CPPFLAGS'
2760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2765 CXX=$CCC
2766 else
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CXX=$ac_cv_prog_CXX
2798if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800echo "${ECHO_T}$CXX" >&6; }
2801else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807 test -n "$CXX" && break
2808 done
2809fi
2810if test -z "$CXX"; then
2811 ac_ct_CXX=$CXX
2812 for ac_prog in clang++ llvm-g++ g++
2813do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851 test -n "$ac_ct_CXX" && break
2852done
2853
2854 if test "x$ac_ct_CXX" = x; then
2855 CXX="g++"
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&5
2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet. If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 CXX=$ac_ct_CXX
2868 fi
2869fi
2870
2871 fi
2872fi
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (ac_try="$ac_compiler --version >&5"
2877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886{ (ac_try="$ac_compiler -v >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -V >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906
2907{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918
2919int
2920main ()
2921{
2922#ifndef __GNUC__
2923 choke me
2924#endif
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_compiler_gnu=yes
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_compiler_gnu=no
2970fi
2971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978GXX=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CXXFLAGS=${CXXFLAGS+set}
2980ac_save_CXXFLAGS=$CXXFLAGS
2981{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2988 ac_cv_prog_cxx_g=no
2989 CXXFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 CXXFLAGS=""
3045 cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100 CXXFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3173 CXXFLAGS="-g -O2"
3174 else
3175 CXXFLAGS="-g"
3176 fi
3177else
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-O2"
3180 else
3181 CXXFLAGS=
3182 fi
3183fi
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003189
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003195{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222/* end confdefs.h. */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228 Syntax error
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3248 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250 ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253 :
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 # Broken: fails on valid input.
3259continue
3260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262rm -f conftest.err conftest.$ac_ext
3263
Reid Spencera773bd52006-08-04 18:18:08 +00003264 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 # Broken: success on invalid input.
3298continue
3299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 break
3315fi
3316
3317 done
3318 ac_cv_prog_CPP=$CPP
3319
3320fi
3321 CPP=$ac_cv_prog_CPP
3322else
3323 ac_cv_prog_CPP=$CPP
3324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325{ echo "$as_me:$LINENO: result: $CPP" >&5
3326echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347 Syntax error
3348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003349if { (ac_try="$ac_cpp conftest.$ac_ext"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3367 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 :
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 # Broken: fails on valid input.
3378continue
3379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381rm -f conftest.err conftest.$ac_ext
3382
Reid Spencera773bd52006-08-04 18:18:08 +00003383 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390/* end confdefs.h. */
3391#include <ac_nonexistent.h>
3392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 # Broken: success on invalid input.
3417continue
3418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if $ac_preproc_ok; then
3433 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440fi
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448
Eric Christopherffee5722011-09-16 20:36:25 +00003449
3450
3451if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3473
3474fi
3475
3476for i in `ls ${srcdir}/projects`
3477do
3478 if test -d ${srcdir}/projects/${i} ; then
3479 case ${i} in
3480 sample) subdirs="$subdirs projects/sample"
3481 ;;
3482 privbracket) subdirs="$subdirs projects/privbracket"
3483 ;;
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485 ;;
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3487;;
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3489 ;;
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3491 ;;
3492 safecode) subdirs="$subdirs projects/safecode"
3493 ;;
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3495 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003496 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003497 llvm-gcc) ;;
3498 test-suite) ;;
3499 llvm-test) ;;
3500 poolalloc) ;;
3501 llvm-poolalloc) ;;
3502 *)
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 ;;
3506 esac
3507 fi
3508done
3509
3510# Check whether --enable-polly was given.
3511if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3513else
3514 enableval=default
3515fi
3516
3517case "$enableval" in
3518 yes) ENABLE_POLLY=1
3519 ;;
3520 no) ENABLE_POLLY=0
3521 ;;
3522 default) ENABLE_POLLY=1
3523 ;;
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3527esac
3528
3529
3530if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531 LLVM_HAS_POLLY=1
3532
3533 subdirs="$subdirs tools/polly"
3534
3535fi
3536
3537
3538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3543
3544{ echo "$as_me:$LINENO: checking build system type" >&5
3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563echo "${ECHO_T}$ac_cv_build" >&6; }
3564case $ac_cv_build in
3565*-*-*) ;;
3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3569esac
3570build=$ac_cv_build
3571ac_save_IFS=$IFS; IFS='-'
3572set x $ac_cv_build
3573shift
3574build_cpu=$1
3575build_vendor=$2
3576shift; shift
3577# Remember, the first character of IFS is used to create $*,
3578# except with old shells:
3579build_os=$*
3580IFS=$ac_save_IFS
3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584{ echo "$as_me:$LINENO: checking host system type" >&5
3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3591else
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3596fi
3597
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600echo "${ECHO_T}$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ echo "$as_me:$LINENO: checking target system type" >&5
3622echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3633fi
3634
3635fi
3636{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637echo "${ECHO_T}$ac_cv_target" >&6; }
3638case $ac_cv_target in
3639*-*-*) ;;
3640*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
3665{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 case $host in
3671 *-*-aix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-irix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-cygwin*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-darwin*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-minix*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-freebsd*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-openbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-netbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-dragonfly*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-hpux*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-interix*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-linux*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-solaris*)
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="SunOS"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-auroraux*)
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="AuroraUX"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-win32*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Win32"
3745 llvm_cv_platform_type="Win32" ;;
3746 *-*-mingw*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="MingW"
3750 llvm_cv_platform_type="Win32" ;;
3751 *-*-haiku*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Haiku"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-unknown-eabi*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-unknown-elf*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3766 *)
3767 llvm_cv_link_all_option=""
3768 llvm_cv_no_link_all_option=""
3769 llvm_cv_os_type="Unknown"
3770 llvm_cv_platform_type="Unknown" ;;
3771esac
3772fi
3773{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3774echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3775
3776{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3777echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3778if test "${llvm_cv_target_os_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 case $target in
3782 *-*-aix*)
3783 llvm_cv_target_os_type="AIX" ;;
3784 *-*-irix*)
3785 llvm_cv_target_os_type="IRIX" ;;
3786 *-*-cygwin*)
3787 llvm_cv_target_os_type="Cygwin" ;;
3788 *-*-darwin*)
3789 llvm_cv_target_os_type="Darwin" ;;
3790 *-*-minix*)
3791 llvm_cv_target_os_type="Minix" ;;
3792 *-*-freebsd*)
3793 llvm_cv_target_os_type="FreeBSD" ;;
3794 *-*-openbsd*)
3795 llvm_cv_target_os_type="OpenBSD" ;;
3796 *-*-netbsd*)
3797 llvm_cv_target_os_type="NetBSD" ;;
3798 *-*-dragonfly*)
3799 llvm_cv_target_os_type="DragonFly" ;;
3800 *-*-hpux*)
3801 llvm_cv_target_os_type="HP-UX" ;;
3802 *-*-interix*)
3803 llvm_cv_target_os_type="Interix" ;;
3804 *-*-linux*)
3805 llvm_cv_target_os_type="Linux" ;;
3806 *-*-solaris*)
3807 llvm_cv_target_os_type="SunOS" ;;
3808 *-*-auroraux*)
3809 llvm_cv_target_os_type="AuroraUX" ;;
3810 *-*-win32*)
3811 llvm_cv_target_os_type="Win32" ;;
3812 *-*-mingw*)
3813 llvm_cv_target_os_type="MingW" ;;
3814 *-*-haiku*)
3815 llvm_cv_target_os_type="Haiku" ;;
3816 *-*-rtems*)
3817 llvm_cv_target_os_type="RTEMS" ;;
3818 *-*-nacl*)
3819 llvm_cv_target_os_type="NativeClient" ;;
3820 *-unknown-eabi*)
3821 llvm_cv_target_os_type="Freestanding" ;;
3822 *)
3823 llvm_cv_target_os_type="Unknown" ;;
3824esac
3825fi
3826{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3827echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3828
3829if test "$llvm_cv_os_type" = "Unknown" ; then
3830 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3831echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3832 { (exit 1); exit 1; }; }
3833fi
3834
3835OS=$llvm_cv_os_type
3836
3837HOST_OS=$llvm_cv_os_type
3838
3839TARGET_OS=$llvm_cv_target_os_type
3840
3841
3842LINKALL=$llvm_cv_link_all_option
3843
3844NOLINKALL=$llvm_cv_no_link_all_option
3845
3846
3847case $llvm_cv_platform_type in
3848 Unix)
3849
3850cat >>confdefs.h <<\_ACEOF
3851#define LLVM_ON_UNIX 1
3852_ACEOF
3853
3854 LLVM_ON_UNIX=1
3855
3856 LLVM_ON_WIN32=0
3857
3858 ;;
3859 Win32)
3860
3861cat >>confdefs.h <<\_ACEOF
3862#define LLVM_ON_WIN32 1
3863_ACEOF
3864
3865 LLVM_ON_UNIX=0
3866
3867 LLVM_ON_WIN32=1
3868
3869 ;;
3870esac
3871
3872{ echo "$as_me:$LINENO: checking target architecture" >&5
3873echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3874if test "${llvm_cv_target_arch+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 case $target in
3878 i?86-*) llvm_cv_target_arch="x86" ;;
3879 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3880 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3881 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003882 arm*-*) llvm_cv_target_arch="ARM" ;;
3883 mips-*) llvm_cv_target_arch="Mips" ;;
3884 xcore-*) llvm_cv_target_arch="XCore" ;;
3885 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003886 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3887 ptx-*) llvm_cv_target_arch="PTX" ;;
3888 *) llvm_cv_target_arch="Unknown" ;;
3889esac
3890fi
3891{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3892echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3893
3894if test "$llvm_cv_target_arch" = "Unknown" ; then
3895 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3896echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3897fi
3898
3899# Determine the LLVM native architecture for the target
3900case "$llvm_cv_target_arch" in
3901 x86) LLVM_NATIVE_ARCH="X86" ;;
3902 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3903 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3904esac
3905
3906ARCH=$llvm_cv_target_arch
3907
3908
3909
3910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003911{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3912echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3913if test "${ac_cv_path_GREP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003916 # Extract the first word of "grep ggrep" to use in msg output
3917if test -z "$GREP"; then
3918set dummy grep ggrep; ac_prog_name=$2
3919if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
Reid Spencera773bd52006-08-04 18:18:08 +00003922 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923# Loop through the user's path and test for each of PROGNAME-LIST
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929 for ac_prog in grep ggrep; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3932 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3933 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003934 # Check for GNU $ac_path_GREP
3935case `"$ac_path_GREP" --version 2>&1` in
3936*GNU*)
3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938*)
3939 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003941 while :
3942 do
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_GREP="$ac_path_GREP"
3953 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003954 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3957 done
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961
3962 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003963 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964done
3965
3966done
Reid Spencera773bd52006-08-04 18:18:08 +00003967IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968
3969
3970fi
3971
3972GREP="$ac_cv_path_GREP"
3973if test -z "$GREP"; then
3974 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976 { (exit 1); exit 1; }; }
3977fi
3978
Reid Spencera773bd52006-08-04 18:18:08 +00003979else
3980 ac_cv_path_GREP=$GREP
3981fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983
Reid Spencera773bd52006-08-04 18:18:08 +00003984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3986echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003987 GREP="$ac_cv_path_GREP"
3988
3989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990{ echo "$as_me:$LINENO: checking for egrep" >&5
3991echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3992if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003994else
3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996 then ac_cv_path_EGREP="$GREP -E"
3997 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003998 # Extract the first word of "egrep" to use in msg output
3999if test -z "$EGREP"; then
4000set dummy egrep; ac_prog_name=$2
4001if test "${ac_cv_path_EGREP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
Reid Spencera773bd52006-08-04 18:18:08 +00004004 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005# Loop through the user's path and test for each of PROGNAME-LIST
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004016 # Check for GNU $ac_path_EGREP
4017case `"$ac_path_EGREP" --version 2>&1` in
4018*GNU*)
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020*)
4021 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041esac
4042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043
4044 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004045 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046done
4047
4048done
Reid Spencera773bd52006-08-04 18:18:08 +00004049IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050
4051
4052fi
4053
4054EGREP="$ac_cv_path_EGREP"
4055if test -z "$EGREP"; then
4056 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4057echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4058 { (exit 1); exit 1; }; }
4059fi
4060
Reid Spencera773bd52006-08-04 18:18:08 +00004061else
4062 ac_cv_path_EGREP=$EGREP
4063fi
4064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065
Reid Spencera773bd52006-08-04 18:18:08 +00004066 fi
4067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4069echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004070 EGREP="$ac_cv_path_EGREP"
4071
4072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4074echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4075if test "${ac_cv_header_stdc+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004084#include <stdlib.h>
4085#include <stdarg.h>
4086#include <string.h>
4087#include <float.h>
4088
John Criswell0c38eaf2003-09-10 15:17:25 +00004089int
4090main ()
4091{
4092
4093 ;
4094 return 0;
4095}
John Criswell7a73b802003-06-30 21:59:07 +00004096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097rm -f conftest.$ac_objext
4098if { (ac_try="$ac_compile"
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_compile") 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4112 { (case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_try") 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125esac
4126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_try") 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004131 ac_cv_header_stdc=yes
4132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138
Reid Spencera773bd52006-08-04 18:18:08 +00004139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004140
4141if test $ac_cv_header_stdc = yes; then
4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004149#include <string.h>
4150
4151_ACEOF
4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153 $EGREP "memchr" >/dev/null 2>&1; then
4154 :
John Criswell7a73b802003-06-30 21:59:07 +00004155else
4156 ac_cv_header_stdc=no
4157fi
4158rm -f conftest*
4159
4160fi
4161
4162if test $ac_cv_header_stdc = yes; then
4163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004164 cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004170#include <stdlib.h>
4171
4172_ACEOF
4173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174 $EGREP "free" >/dev/null 2>&1; then
4175 :
John Criswell7a73b802003-06-30 21:59:07 +00004176else
4177 ac_cv_header_stdc=no
4178fi
4179rm -f conftest*
4180
4181fi
4182
4183if test $ac_cv_header_stdc = yes; then
4184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004186 :
4187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004194#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004195#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004196#if ((' ' & 0x0FF) == 0x020)
4197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004200# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004201 (('a' <= (c) && (c) <= 'i') \
4202 || ('j' <= (c) && (c) <= 'r') \
4203 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205#endif
4206
4207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208int
4209main ()
4210{
4211 int i;
4212 for (i = 0; i < 256; i++)
4213 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004214 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004215 return 2;
4216 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004217}
4218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004219rm -f conftest$ac_exeext
4220if { (ac_try="$ac_link"
4221case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_link") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 :
John Criswell7a73b802003-06-30 21:59:07 +00004240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241 echo "$as_me: program exited with status $ac_status" >&5
4242echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245( exit $ac_status )
4246ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004249fi
4250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251
John Criswell7a73b802003-06-30 21:59:07 +00004252fi
4253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4255echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004256if test $ac_cv_header_stdc = yes; then
4257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258cat >>confdefs.h <<\_ACEOF
4259#define STDC_HEADERS 1
4260_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004261
4262fi
4263
Reid Spencera773bd52006-08-04 18:18:08 +00004264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265
4266
4267
4268
4269
4270
4271
4272
4273
Reid Spencera773bd52006-08-04 18:18:08 +00004274for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4275 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276do
4277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283 cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
4289$ac_includes_default
4290
4291#include <$ac_header>
4292_ACEOF
4293rm -f conftest.$ac_objext
4294if { (ac_try="$ac_compile"
4295case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4328else
4329 echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 eval "$as_ac_Header=no"
4333fi
4334
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336fi
4337ac_res=`eval echo '${'$as_ac_Header'}'`
4338 { echo "$as_me:$LINENO: result: $ac_res" >&5
4339echo "${ECHO_T}$ac_res" >&6; }
4340if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004341 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004343_ACEOF
4344
4345fi
4346
4347done
4348
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4351echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4352if test "${ac_cv_c_bigendian+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004355 # See if sys/param.h defines the BYTE_ORDER macro.
4356cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004361/* end confdefs.h. */
4362#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004364
4365int
4366main ()
4367{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004368#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4369 bogus endian macros
4370#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004371
4372 ;
4373 return 0;
4374}
4375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004376rm -f conftest.$ac_objext
4377if { (ac_try="$ac_compile"
4378case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
4390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4391 { (case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004410 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004416/* end confdefs.h. */
4417#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004419
4420int
4421main ()
4422{
4423#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424 not big endian
4425#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004426
4427 ;
4428 return 0;
4429}
4430_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004431rm -f conftest.$ac_objext
4432if { (ac_try="$ac_compile"
4433case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436esac
4437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_compile") 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4446 { (case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449esac
4450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_try") 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004465 ac_cv_c_bigendian=yes
4466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470 ac_cv_c_bigendian=no
4471fi
4472
4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 # It does not; compile a test program.
4479if test "$cross_compiling" = yes; then
4480 # try to guess the endianness by grepping values into an object file
4481 ac_cv_c_bigendian=unknown
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
4488short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4489short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4490void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4491short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4492short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4493void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004494int
4495main ()
4496{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004497 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004498 ;
4499 return 0;
4500}
4501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004502rm -f conftest.$ac_objext
4503if { (ac_try="$ac_compile"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4517 { (case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520esac
4521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_try") 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_try") 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004537 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538fi
4539if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4540 if test "$ac_cv_c_bigendian" = unknown; then
4541 ac_cv_c_bigendian=no
4542 else
4543 # finding both strings is unlikely to happen, but who knows?
4544 ac_cv_c_bigendian=unknown
4545 fi
4546fi
Reid Spencera773bd52006-08-04 18:18:08 +00004547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548 echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004551
Torok Edwin871384f2010-01-26 08:50:50 +00004552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553
Reid Spencera773bd52006-08-04 18:18:08 +00004554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556 cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h. */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004561/* end confdefs.h. */
4562$ac_includes_default
4563int
4564main ()
4565{
4566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 /* Are we little or big endian? From Harbison&Steele. */
4568 union
4569 {
4570 long int l;
4571 char c[sizeof (long int)];
4572 } u;
4573 u.l = 1;
4574 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004575
4576 ;
4577 return 0;
4578}
4579_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580rm -f conftest$ac_exeext
4581if { (ac_try="$ac_link"
4582case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585esac
4586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_link") 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4591 { (case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004600 ac_cv_c_bigendian=no
4601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606( exit $ac_status )
4607ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612
Reid Spencera773bd52006-08-04 18:18:08 +00004613fi
4614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616fi
4617{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4618echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4619case $ac_cv_c_bigendian in
4620 yes)
4621 ENDIAN=big
4622 ;;
4623 no)
4624 ENDIAN=little
4625 ;;
4626 *)
4627 { { echo "$as_me:$LINENO: error: unknown endianness
4628presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4629echo "$as_me: error: unknown endianness
4630presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4631 { (exit 1); exit 1; }; } ;;
4632esac
Reid Spencera773bd52006-08-04 18:18:08 +00004633
4634
4635if test "$cross_compiling" = yes; then
4636 LLVM_CROSS_COMPILING=1
4637
4638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4640echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4641if test "${ac_cv_build_exeext+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004643else
4644 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4645 ac_cv_build_exeext=.exe
4646else
4647 ac_build_prefix=${build_alias}-
4648
4649 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4650set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004655else
4656 if test -n "$BUILD_CC"; then
4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004666 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004668 break 2
4669 fi
4670done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671done
Reid Spencera773bd52006-08-04 18:18:08 +00004672IFS=$as_save_IFS
4673
4674fi
4675fi
4676BUILD_CC=$ac_cv_prog_BUILD_CC
4677if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681 { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004683fi
4684
4685
4686 if test -z "$BUILD_CC"; then
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004693else
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004704 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004706 break 2
4707 fi
4708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004709done
Reid Spencera773bd52006-08-04 18:18:08 +00004710IFS=$as_save_IFS
4711
4712fi
4713fi
4714BUILD_CC=$ac_cv_prog_BUILD_CC
4715if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4717echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 { echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004721fi
4722
4723
4724 if test -z "$BUILD_CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
4732 if test -n "$BUILD_CC"; then
4733 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4734else
4735 ac_prog_rejected=no
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4745 continue
4746 fi
4747 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004749 break 2
4750 fi
4751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752done
Reid Spencera773bd52006-08-04 18:18:08 +00004753IFS=$as_save_IFS
4754
4755if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_BUILD_CC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set BUILD_CC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4765 fi
4766fi
4767fi
4768fi
4769BUILD_CC=$ac_cv_prog_BUILD_CC
4770if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4772echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004774 { echo "$as_me:$LINENO: result: no" >&5
4775echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004776fi
4777
4778
4779 fi
4780 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004781 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4782echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4783 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004784 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4785 rm -f conftest*
4786 echo 'int main () { return 0; }' > conftest.$ac_ext
4787 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004789 (eval $ac_build_link) 2>&5
4790 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004793 for file in conftest.*; do
4794 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004795 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004796 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 esac
4798 done
4799 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004800 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4801echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4802 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004803 fi
4804 rm -f conftest*
4805 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4806fi
4807fi
4808
4809BUILD_EXEEXT=""
4810test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004811{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4812echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004813ac_build_exeext=$BUILD_EXEEXT
4814
Jim Grosbach673612e2008-10-02 22:56:44 +00004815 ac_build_prefix=${build_alias}-
4816 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4817set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004822else
4823 if test -n "$BUILD_CXX"; then
4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004833 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004835 break 2
4836 fi
4837done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838done
Jim Grosbach673612e2008-10-02 22:56:44 +00004839IFS=$as_save_IFS
4840
4841fi
4842fi
4843BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848 { echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004850fi
4851
4852
4853 if test -z "$BUILD_CXX"; then
4854 # Extract the first word of "g++", so it can be a program name with args.
4855set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004860else
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004871 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004873 break 2
4874 fi
4875done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004876done
Jim Grosbach673612e2008-10-02 22:56:44 +00004877IFS=$as_save_IFS
4878
4879fi
4880fi
4881BUILD_CXX=$ac_cv_prog_BUILD_CXX
4882if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4884echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 { echo "$as_me:$LINENO: result: no" >&5
4887echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004888fi
4889
4890
4891 if test -z "$BUILD_CXX"; then
4892 # Extract the first word of "c++", so it can be a program name with args.
4893set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004898else
4899 if test -n "$BUILD_CXX"; then
4900 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4901else
4902 ac_prog_rejected=no
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4911 ac_prog_rejected=yes
4912 continue
4913 fi
4914 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004916 break 2
4917 fi
4918done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919done
Jim Grosbach673612e2008-10-02 22:56:44 +00004920IFS=$as_save_IFS
4921
4922if test $ac_prog_rejected = yes; then
4923 # We found a bogon in the path, so make sure we never use it.
4924 set dummy $ac_cv_prog_BUILD_CXX
4925 shift
4926 if test $# != 0; then
4927 # We chose a different compiler from the bogus one.
4928 # However, it has the same basename, so the bogon will be chosen
4929 # first if we set BUILD_CXX to just the basename; use the full file name.
4930 shift
4931 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4932 fi
4933fi
4934fi
4935fi
4936BUILD_CXX=$ac_cv_prog_BUILD_CXX
4937if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4939echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004941 { echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004943fi
4944
4945
4946 fi
4947 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004948else
4949 LLVM_CROSS_COMPILING=0
4950
4951fi
4952
Dan Gohman56fb5f92010-08-04 16:25:01 +00004953if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004954 cvsbuild="yes"
4955 optimize="no"
4956 CVSBUILD=CVSBUILD=1
4957
4958else
4959 cvsbuild="no"
4960 optimize="yes"
4961fi
4962
4963
Eric Christopherbee515f2011-11-11 22:51:42 +00004964# Check whether --enable-libcpp was given.
4965if test "${enable_libcpp+set}" = set; then
4966 enableval=$enable_libcpp;
4967else
4968 enableval=default
4969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_LIBCPP=1
4973 ;;
4974 no) ENABLE_LIBCPP=0
4975 ;;
4976 default) ENABLE_LIBCPP=0
4977;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
Reid Spencera773bd52006-08-04 18:18:08 +00004983# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004985 enableval=$enable_optimized;
4986else
4987 enableval=$optimize
4988fi
4989
4990if test ${enableval} = "no" ; then
4991 ENABLE_OPTIMIZED=
4992
4993else
4994 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4995
4996fi
4997
David Greene2a5a12c2009-04-17 14:50:39 +00004998# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004999if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005000 enableval=$enable_profiling;
5001else
5002 enableval="no"
5003fi
5004
5005if test ${enableval} = "no" ; then
5006 ENABLE_PROFILING=
5007
5008else
5009 ENABLE_PROFILING=ENABLE_PROFILING=1
5010
5011fi
5012
Reid Spencera773bd52006-08-04 18:18:08 +00005013# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005014if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005015 enableval=$enable_assertions;
5016else
5017 enableval="yes"
5018fi
5019
5020if test ${enableval} = "yes" ; then
5021 DISABLE_ASSERTIONS=
5022
5023else
5024 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5025
5026fi
5027
David Greenea696d242007-06-28 19:36:08 +00005028# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005029if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005030 enableval=$enable_expensive_checks;
5031else
5032 enableval="no"
5033fi
5034
5035if test ${enableval} = "yes" ; then
5036 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5037
5038 EXPENSIVE_CHECKS=yes
5039
5040else
5041 ENABLE_EXPENSIVE_CHECKS=
5042
5043 EXPENSIVE_CHECKS=no
5044
5045fi
5046
Reid Spencer8b2e1412006-11-17 03:32:33 +00005047# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005048if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005049 enableval=$enable_debug_runtime;
5050else
5051 enableval=no
5052fi
5053
5054if test ${enableval} = "no" ; then
5055 DEBUG_RUNTIME=
5056
5057else
5058 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5059
5060fi
5061
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005062# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005063if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005064 enableval=$enable_debug_symbols;
5065else
5066 enableval=no
5067fi
5068
5069if test ${enableval} = "no" ; then
5070 DEBUG_SYMBOLS=
5071
5072else
5073 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5074
5075fi
5076
Reid Spencera773bd52006-08-04 18:18:08 +00005077# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005078if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005079 enableval=$enable_jit;
5080else
5081 enableval=default
5082fi
5083
5084if test ${enableval} = "no"
5085then
5086 JIT=
5087
5088else
5089 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005090 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005091 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005092 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005093 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005094 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005095 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005096 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005097 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005098 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005099 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005100 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005101 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005102 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005103 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005104 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005105 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005106 MBlaze) TARGET_HAS_JIT=0
5107 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005108 PTX) TARGET_HAS_JIT=0
5109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005111 ;;
5112 esac
5113fi
5114
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005115# Check whether --enable-docs was given.
5116if test "${enable_docs+set}" = set; then
5117 enableval=$enable_docs;
5118else
5119 enableval=default
5120fi
5121
5122case "$enableval" in
5123 yes) ENABLE_DOCS=1
5124 ;;
5125 no) ENABLE_DOCS=0
5126 ;;
5127 default) ENABLE_DOCS=1
5128 ;;
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5130echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5132esac
5133
Reid Spencera773bd52006-08-04 18:18:08 +00005134# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005136 enableval=$enable_doxygen;
5137else
5138 enableval=default
5139fi
5140
5141case "$enableval" in
5142 yes) ENABLE_DOXYGEN=1
5143 ;;
5144 no) ENABLE_DOXYGEN=0
5145 ;;
5146 default) ENABLE_DOXYGEN=0
5147 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5149echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005151esac
5152
5153# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005154if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005155 enableval=$enable_threads;
5156else
Reid Spencer65c5d752006-11-05 17:08:18 +00005157 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005158fi
5159
5160case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005161 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005162 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005163 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005164 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005165 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005166 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5168echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005170esac
5171
Owen Andersona8603702009-05-19 22:18:56 +00005172cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005173#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005174_ACEOF
5175
5176
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005177# Check whether --enable-pthreads was given.
5178if test "${enable_pthreads+set}" = set; then
5179 enableval=$enable_pthreads;
5180else
5181 enableval=default
5182fi
5183
5184case "$enableval" in
5185 yes) ENABLE_PTHREADS=1
5186 ;;
5187 no) ENABLE_PTHREADS=0
5188 ;;
5189 default) ENABLE_PTHREADS=1
5190 ;;
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5192echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5194esac
5195
Reid Spencer89b0d992006-12-16 22:07:52 +00005196# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005197if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005198 enableval=$enable_pic;
5199else
5200 enableval=default
5201fi
5202
5203case "$enableval" in
5204 yes) ENABLE_PIC=1
5205 ;;
5206 no) ENABLE_PIC=0
5207 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005208 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005209 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5211echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005213esac
5214
5215cat >>confdefs.h <<_ACEOF
5216#define ENABLE_PIC $ENABLE_PIC
5217_ACEOF
5218
5219
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005220# Check whether --enable-shared was given.
5221if test "${enable_shared+set}" = set; then
5222 enableval=$enable_shared;
5223else
5224 enableval=default
5225fi
5226
5227case "$enableval" in
5228 yes) ENABLE_SHARED=1
5229 ;;
5230 no) ENABLE_SHARED=0
5231 ;;
5232 default) ENABLE_SHARED=0
5233 ;;
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5235echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5237esac
5238
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005239# Check whether --enable-embed-stdcxx was given.
5240if test "${enable_embed_stdcxx+set}" = set; then
5241 enableval=$enable_embed_stdcxx;
5242else
5243 enableval=default
5244fi
5245
5246case "$enableval" in
5247 yes) ENABLE_EMBED_STDCXX=1
5248 ;;
5249 no) ENABLE_EMBED_STDCXX=0
5250 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005251 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005252 ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5256esac
5257
Daniel Dunbardd464df2010-05-10 20:11:56 +00005258# Check whether --enable-timestamps was given.
5259if test "${enable_timestamps+set}" = set; then
5260 enableval=$enable_timestamps;
5261else
5262 enableval=default
5263fi
5264
5265case "$enableval" in
5266 yes) ENABLE_TIMESTAMPS=1
5267 ;;
5268 no) ENABLE_TIMESTAMPS=0
5269 ;;
5270 default) ENABLE_TIMESTAMPS=1
5271 ;;
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5275esac
5276
5277cat >>confdefs.h <<_ACEOF
5278#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5279_ACEOF
5280
5281
Reid Spencera773bd52006-08-04 18:18:08 +00005282TARGETS_TO_BUILD=""
5283# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005284if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005285 enableval=$enable_targets;
5286else
5287 enableval=all
5288fi
5289
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005290if test "$enableval" = host-only ; then
5291 enableval=host
5292fi
Reid Spencera773bd52006-08-04 18:18:08 +00005293case "$enableval" in
Dan Gohman33ba8b02011-10-27 22:56:32 +00005294 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005295 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5296 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005297 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5299 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5300 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005301 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5302 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5303 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005304 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5305 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005306 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005307 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005308 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005309 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005310 host) case "$llvm_cv_target_arch" in
5311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5313 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5314 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005315 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5316 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005317 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005318 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005319 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005321 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5323echo "$as_me: error: Can not set target to build" >&2;}
5324 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005325 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5327echo "$as_me: error: Unrecognized target $a_target" >&2;}
5328 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005329 esac
5330 done
5331 ;;
5332esac
Reid Spencera773bd52006-08-04 18:18:08 +00005333TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5334
5335
Douglas Gregor0711c302009-06-17 00:43:20 +00005336# Determine whether we are building LLVM support for the native architecture.
5337# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5338for a_target in $TARGETS_TO_BUILD; do
5339 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5340
5341cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005342#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5343_ACEOF
5344
5345 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5346 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005347 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005348 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5351 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005352
5353cat >>confdefs.h <<_ACEOF
5354#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005355_ACEOF
5356
5357
5358cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005359#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5360_ACEOF
5361
5362
5363cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005364#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005365_ACEOF
5366
5367
5368cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005369#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005370_ACEOF
5371
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005372 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005373
5374cat >>confdefs.h <<_ACEOF
5375#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5376_ACEOF
5377
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005378 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005379 fi
5380done
5381
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005382# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5383# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005384LLVM_ENUM_TARGETS=""
5385LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005386LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005387LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005388for target_to_build in $TARGETS_TO_BUILD; do
5389 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005390 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005391 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5392 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005393 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5395 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005396 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5398 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005399done
5400
5401
5402
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005403
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005404
Reid Spencer65c5d752006-11-05 17:08:18 +00005405# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005406if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005407 enableval=$enable_cbe_printf_a;
5408else
5409 enableval=default
5410fi
5411
5412case "$enableval" in
5413 yes) ENABLE_CBE_PRINTF_A=1
5414 ;;
5415 no) ENABLE_CBE_PRINTF_A=0
5416 ;;
5417 default) ENABLE_CBE_PRINTF_A=1
5418 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5420echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5421 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005422esac
5423
5424cat >>confdefs.h <<_ACEOF
5425#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5426_ACEOF
5427
5428
Reid Spencera773bd52006-08-04 18:18:08 +00005429
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005430# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005432 withval=$with_optimize_option;
5433else
5434 withval=default
5435fi
5436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437{ echo "$as_me:$LINENO: checking optimization flags" >&5
5438echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005439case "$withval" in
5440 default)
5441 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005442 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005443 MingW) optimize_option=-O2 ;;
5444 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005445 esac ;;
5446 *) optimize_option="$withval" ;;
5447esac
5448OPTIMIZE_OPTION=$optimize_option
5449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5451echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005452
5453
Reid Spencera773bd52006-08-04 18:18:08 +00005454# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005456 withval=$with_extra_options;
5457else
5458 withval=default
5459fi
5460
5461case "$withval" in
5462 default) EXTRA_OPTIONS= ;;
5463 *) EXTRA_OPTIONS=$withval ;;
5464esac
5465EXTRA_OPTIONS=$EXTRA_OPTIONS
5466
5467
Daniel Dunbared344d22011-06-16 22:30:41 +00005468
5469# Check whether --with-extra-ld-options was given.
5470if test "${with_extra_ld_options+set}" = set; then
5471 withval=$with_extra_ld_options;
5472else
5473 withval=default
5474fi
5475
5476case "$withval" in
5477 default) EXTRA_LD_OPTIONS= ;;
5478 *) EXTRA_LD_OPTIONS=$withval ;;
5479esac
5480EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5481
5482
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005483# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005484if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005485 enableval=$enable_bindings;
5486else
5487 enableval=default
5488fi
5489
5490BINDINGS_TO_BUILD=""
5491case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005492 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005493 all ) BINDINGS_TO_BUILD="ocaml" ;;
5494 none | no) BINDINGS_TO_BUILD="" ;;
5495 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5496 case "$a_binding" in
5497 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5499echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5500 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005501 esac
5502 done
5503 ;;
5504esac
5505
Reid Spencera773bd52006-08-04 18:18:08 +00005506
Gordon Henriksenf0915682007-10-02 16:42:22 +00005507# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005509 withval=$with_ocaml_libdir;
5510else
5511 withval=auto
5512fi
5513
5514case "$withval" in
5515 auto) with_ocaml_libdir="$withval" ;;
5516 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005517 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5518echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5519 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005520esac
5521
5522
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005523# Check whether --with-clang-srcdir was given.
5524if test "${with_clang_srcdir+set}" = set; then
5525 withval=$with_clang_srcdir;
5526else
5527 withval="-"
5528fi
5529
5530case "$withval" in
5531 -) clang_src_root="" ;;
5532 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5533 *) clang_src_root="$ac_pwd/$withval" ;;
5534esac
5535CLANG_SRC_ROOT=$clang_src_root
5536
5537
5538
Chandler Carruth6b241162010-10-19 08:21:25 +00005539# Check whether --with-clang-resource-dir was given.
5540if test "${with_clang_resource_dir+set}" = set; then
5541 withval=$with_clang_resource_dir;
5542else
5543 withval=""
5544fi
5545
5546
5547cat >>confdefs.h <<_ACEOF
5548#define CLANG_RESOURCE_DIR "$withval"
5549_ACEOF
5550
5551
5552
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005553# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005554if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005555 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005556else
5557 withval=""
5558fi
5559
5560
5561cat >>confdefs.h <<_ACEOF
5562#define C_INCLUDE_DIRS "$withval"
5563_ACEOF
5564
5565
5566
Rafael Espindola420d23c2009-11-16 19:46:55 +00005567# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005568if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005569 withval=$with_cxx_include_root;
5570else
5571 withval=""
5572fi
5573
5574
5575cat >>confdefs.h <<_ACEOF
5576#define CXX_INCLUDE_ROOT "$withval"
5577_ACEOF
5578
5579
5580
5581# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005583 withval=$with_cxx_include_arch;
5584else
5585 withval=""
5586fi
5587
5588
5589cat >>confdefs.h <<_ACEOF
5590#define CXX_INCLUDE_ARCH "$withval"
5591_ACEOF
5592
5593
5594
5595# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005596if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005597 withval=$with_cxx_include_32bit_dir;
5598else
5599 withval=""
5600fi
5601
5602
5603cat >>confdefs.h <<_ACEOF
5604#define CXX_INCLUDE_32BIT_DIR "$withval"
5605_ACEOF
5606
5607
5608
5609# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005610if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005611 withval=$with_cxx_include_64bit_dir;
5612else
5613 withval=""
5614fi
5615
5616
5617cat >>confdefs.h <<_ACEOF
5618#define CXX_INCLUDE_64BIT_DIR "$withval"
5619_ACEOF
5620
5621
5622
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005623# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005625 withval=$with_binutils_include;
5626else
5627 withval=default
5628fi
5629
5630case "$withval" in
5631 default) WITH_BINUTILS_INCDIR=default ;;
5632 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005633 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5634echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5635 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005636esac
5637if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5638 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5639
5640 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5641 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5643echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5644 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005645 fi
5646fi
5647
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005648
5649# Check whether --with-bug-report-url was given.
5650if test "${with_bug_report_url+set}" = set; then
5651 withval=$with_bug_report_url;
5652else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005653 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005654fi
5655
5656
5657cat >>confdefs.h <<_ACEOF
5658#define BUG_REPORT_URL "$withval"
5659_ACEOF
5660
5661
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005662# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005664 enableval=$enable_libffi; case "$enableval" in
5665 yes) llvm_cv_enable_libffi="yes" ;;
5666 no) llvm_cv_enable_libffi="no" ;;
5667 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5669 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005670 esac
5671else
5672 llvm_cv_enable_libffi=no
5673fi
5674
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005675
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005676
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005677# Check whether --with-internal-prefix was given.
5678if test "${with_internal_prefix+set}" = set; then
5679 withval=$with_internal_prefix;
5680else
5681 withval=""
5682fi
5683
5684INTERNAL_PREFIX=$withval
5685
5686
5687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5689echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5690if test "${lt_cv_path_NM+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005692else
5693 if test -n "$NM"; then
5694 # Let the user override the test.
5695 lt_cv_path_NM="$NM"
5696else
5697 lt_nm_to_check="${ac_tool_prefix}nm"
5698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699 lt_nm_to_check="$lt_nm_to_check nm"
5700 fi
5701 for lt_tmp_nm in $lt_nm_to_check; do
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5704 IFS="$lt_save_ifs"
5705 test -z "$ac_dir" && ac_dir=.
5706 tmp_nm="$ac_dir/$lt_tmp_nm"
5707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708 # Check to see if the nm accepts a BSD-compat flag.
5709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710 # nm: unknown option "B" ignored
5711 # Tru64's nm complains that /dev/null is an invalid object file
5712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713 */dev/null* | *'Invalid file or object type'*)
5714 lt_cv_path_NM="$tmp_nm -B"
5715 break
5716 ;;
5717 *)
5718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5719 */dev/null*)
5720 lt_cv_path_NM="$tmp_nm -p"
5721 break
5722 ;;
5723 *)
5724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725 continue # so that we can try to find one that supports BSD flags
5726 ;;
5727 esac
5728 ;;
5729 esac
5730 fi
5731 done
5732 IFS="$lt_save_ifs"
5733 done
5734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5735fi
5736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5738echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005739NM="$lt_cv_path_NM"
5740
5741
5742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743{ echo "$as_me:$LINENO: checking for GNU make" >&5
5744echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5745if test "${llvm_cv_gnu_make_command+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005747else
5748 llvm_cv_gnu_make_command=''
5749 for a in "$MAKE" make gmake gnumake ; do
5750 if test -z "$a" ; then continue ; fi ;
5751 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5752 then
5753 llvm_cv_gnu_make_command=$a ;
5754 break;
5755 fi
5756 done
5757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5759echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005760 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5761 ifGNUmake='' ;
5762 else
5763 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5765echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005766 fi
5767
5768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5770echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005771LN_S=$as_ln_s
5772if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 { echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5777echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778fi
5779
5780# Extract the first word of "cmp", so it can be a program name with args.
5781set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784if test "${ac_cv_path_CMP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005786else
5787 case $CMP in
5788 [\\/]* | ?:[\\/]*)
5789 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5790 ;;
5791 *)
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005799 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005801 break 2
5802 fi
5803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804done
Reid Spencera773bd52006-08-04 18:18:08 +00005805IFS=$as_save_IFS
5806
5807 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5808 ;;
5809esac
5810fi
5811CMP=$ac_cv_path_CMP
5812if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: $CMP" >&5
5814echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816 { echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005818fi
5819
5820
5821# Extract the first word of "cp", so it can be a program name with args.
5822set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825if test "${ac_cv_path_CP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
5828 case $CP in
5829 [\\/]* | ?:[\\/]*)
5830 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5831 ;;
5832 *)
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005840 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005842 break 2
5843 fi
5844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845done
Reid Spencera773bd52006-08-04 18:18:08 +00005846IFS=$as_save_IFS
5847
5848 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5849 ;;
5850esac
5851fi
5852CP=$ac_cv_path_CP
5853if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 { echo "$as_me:$LINENO: result: $CP" >&5
5855echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857 { echo "$as_me:$LINENO: result: no" >&5
5858echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005859fi
5860
5861
5862# Extract the first word of "date", so it can be a program name with args.
5863set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866if test "${ac_cv_path_DATE+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005868else
5869 case $DATE in
5870 [\\/]* | ?:[\\/]*)
5871 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5872 ;;
5873 *)
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005881 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005883 break 2
5884 fi
5885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886done
Reid Spencera773bd52006-08-04 18:18:08 +00005887IFS=$as_save_IFS
5888
5889 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5890 ;;
5891esac
5892fi
5893DATE=$ac_cv_path_DATE
5894if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 { echo "$as_me:$LINENO: result: $DATE" >&5
5896echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005900fi
5901
5902
5903# Extract the first word of "find", so it can be a program name with args.
5904set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907if test "${ac_cv_path_FIND+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005909else
5910 case $FIND in
5911 [\\/]* | ?:[\\/]*)
5912 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5913 ;;
5914 *)
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005922 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005924 break 2
5925 fi
5926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927done
Reid Spencera773bd52006-08-04 18:18:08 +00005928IFS=$as_save_IFS
5929
5930 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5931 ;;
5932esac
5933fi
5934FIND=$ac_cv_path_FIND
5935if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936 { echo "$as_me:$LINENO: result: $FIND" >&5
5937echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939 { echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005941fi
5942
5943
5944# Extract the first word of "grep", so it can be a program name with args.
5945set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948if test "${ac_cv_path_GREP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
5951 case $GREP in
5952 [\\/]* | ?:[\\/]*)
5953 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5954 ;;
5955 *)
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005963 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005965 break 2
5966 fi
5967done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968done
Reid Spencera773bd52006-08-04 18:18:08 +00005969IFS=$as_save_IFS
5970
5971 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5972 ;;
5973esac
5974fi
5975GREP=$ac_cv_path_GREP
5976if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 { echo "$as_me:$LINENO: result: $GREP" >&5
5978echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 { echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005982fi
5983
5984
5985# Extract the first word of "mkdir", so it can be a program name with args.
5986set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989if test "${ac_cv_path_MKDIR+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005991else
5992 case $MKDIR in
5993 [\\/]* | ?:[\\/]*)
5994 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5995 ;;
5996 *)
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006004 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006006 break 2
6007 fi
6008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009done
Reid Spencera773bd52006-08-04 18:18:08 +00006010IFS=$as_save_IFS
6011
6012 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6013 ;;
6014esac
6015fi
6016MKDIR=$ac_cv_path_MKDIR
6017if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6019echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006023fi
6024
6025
6026# Extract the first word of "mv", so it can be a program name with args.
6027set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030if test "${ac_cv_path_MV+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
6033 case $MV in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6036 ;;
6037 *)
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006045 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006047 break 2
6048 fi
6049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050done
Reid Spencera773bd52006-08-04 18:18:08 +00006051IFS=$as_save_IFS
6052
6053 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6054 ;;
6055esac
6056fi
6057MV=$ac_cv_path_MV
6058if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: $MV" >&5
6060echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 { echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006064fi
6065
6066
6067if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072if test "${ac_cv_prog_RANLIB+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006074else
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006087 break 2
6088 fi
6089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090done
Reid Spencera773bd52006-08-04 18:18:08 +00006091IFS=$as_save_IFS
6092
6093fi
6094fi
6095RANLIB=$ac_cv_prog_RANLIB
6096if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6098echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006102fi
6103
6104
6105fi
6106if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006114else
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006125 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006127 break 2
6128 fi
6129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130done
Reid Spencera773bd52006-08-04 18:18:08 +00006131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6138echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006142fi
6143
6144 if test "x$ac_ct_RANLIB" = x; then
6145 RANLIB=":"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6150whose name does not start with the host triplet. If you think this
6151configuration is useful to you, please write to autoconf@gnu.org." >&5
6152echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6153whose name does not start with the host triplet. If you think this
6154configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006155ac_tool_warned=yes ;;
6156esac
6157 RANLIB=$ac_ct_RANLIB
6158 fi
6159else
6160 RANLIB="$ac_cv_prog_RANLIB"
6161fi
6162
Torok Edwin871384f2010-01-26 08:50:50 +00006163if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6165set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168if test "${ac_cv_prog_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006170else
6171 if test -n "$AR"; then
6172 ac_cv_prog_AR="$AR" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006181 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006183 break 2
6184 fi
6185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186done
Torok Edwin871384f2010-01-26 08:50:50 +00006187IFS=$as_save_IFS
6188
6189fi
6190fi
6191AR=$ac_cv_prog_AR
6192if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 { echo "$as_me:$LINENO: result: $AR" >&5
6194echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: no" >&5
6197echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006198fi
6199
6200
6201fi
6202if test -z "$ac_cv_prog_AR"; then
6203 ac_ct_AR=$AR
6204 # Extract the first word of "ar", so it can be a program name with args.
6205set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006210else
6211 if test -n "$ac_ct_AR"; then
6212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006221 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006223 break 2
6224 fi
6225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226done
Torok Edwin871384f2010-01-26 08:50:50 +00006227IFS=$as_save_IFS
6228
6229fi
6230fi
6231ac_ct_AR=$ac_cv_prog_ac_ct_AR
6232if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6234echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236 { echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006238fi
6239
6240 if test "x$ac_ct_AR" = x; then
6241 AR="false"
6242 else
6243 case $cross_compiling:$ac_tool_warned in
6244yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6246whose name does not start with the host triplet. If you think this
6247configuration is useful to you, please write to autoconf@gnu.org." >&5
6248echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6249whose name does not start with the host triplet. If you think this
6250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006251ac_tool_warned=yes ;;
6252esac
6253 AR=$ac_ct_AR
6254 fi
6255else
6256 AR="$ac_cv_prog_AR"
6257fi
6258
Reid Spencera773bd52006-08-04 18:18:08 +00006259# Extract the first word of "rm", so it can be a program name with args.
6260set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263if test "${ac_cv_path_RM+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006265else
6266 case $RM in
6267 [\\/]* | ?:[\\/]*)
6268 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6269 ;;
6270 *)
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006278 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006280 break 2
6281 fi
6282done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283done
Reid Spencera773bd52006-08-04 18:18:08 +00006284IFS=$as_save_IFS
6285
6286 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6287 ;;
6288esac
6289fi
6290RM=$ac_cv_path_RM
6291if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $RM" >&5
6293echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006297fi
6298
6299
6300# Extract the first word of "sed", so it can be a program name with args.
6301set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304if test "${ac_cv_path_SED+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
6307 case $SED in
6308 [\\/]* | ?:[\\/]*)
6309 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6310 ;;
6311 *)
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006319 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006321 break 2
6322 fi
6323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324done
Reid Spencera773bd52006-08-04 18:18:08 +00006325IFS=$as_save_IFS
6326
6327 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6328 ;;
6329esac
6330fi
6331SED=$ac_cv_path_SED
6332if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 { echo "$as_me:$LINENO: result: $SED" >&5
6334echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336 { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006338fi
6339
6340
6341# Extract the first word of "tar", so it can be a program name with args.
6342set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345if test "${ac_cv_path_TAR+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
6348 case $TAR in
6349 [\\/]* | ?:[\\/]*)
6350 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6351 ;;
6352 *)
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006360 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006362 break 2
6363 fi
6364done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365done
Reid Spencera773bd52006-08-04 18:18:08 +00006366IFS=$as_save_IFS
6367
6368 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6369 ;;
6370esac
6371fi
6372TAR=$ac_cv_path_TAR
6373if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 { echo "$as_me:$LINENO: result: $TAR" >&5
6375echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377 { echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006379fi
6380
6381
6382# Extract the first word of "pwd", so it can be a program name with args.
6383set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_path_BINPWD+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
6389 case $BINPWD in
6390 [\\/]* | ?:[\\/]*)
6391 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6392 ;;
6393 *)
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006401 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006403 break 2
6404 fi
6405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406done
Reid Spencera773bd52006-08-04 18:18:08 +00006407IFS=$as_save_IFS
6408
6409 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6410 ;;
6411esac
6412fi
6413BINPWD=$ac_cv_path_BINPWD
6414if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6416echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 { echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006420fi
6421
6422
6423
6424# Extract the first word of "Graphviz", so it can be a program name with args.
6425set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006430else
6431 case $GRAPHVIZ in
6432 [\\/]* | ?:[\\/]*)
6433 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6434 ;;
6435 *)
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006443 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006445 break 2
6446 fi
6447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448done
Reid Spencera773bd52006-08-04 18:18:08 +00006449IFS=$as_save_IFS
6450
6451 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6452 ;;
6453esac
6454fi
6455GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6456if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6458echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006462fi
6463
6464
6465if test "$GRAPHVIZ" != "echo Graphviz" ; then
6466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467cat >>confdefs.h <<\_ACEOF
6468#define HAVE_GRAPHVIZ 1
6469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006470
Jeff Cohen28783c32007-01-12 18:22:38 +00006471 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006472 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473 fi
6474
6475cat >>confdefs.h <<_ACEOF
6476#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6477_ACEOF
6478
6479fi
6480# Extract the first word of "dot", so it can be a program name with args.
6481set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484if test "${ac_cv_path_DOT+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006486else
6487 case $DOT in
6488 [\\/]* | ?:[\\/]*)
6489 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6490 ;;
6491 *)
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006499 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006501 break 2
6502 fi
6503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504done
Reid Spencera773bd52006-08-04 18:18:08 +00006505IFS=$as_save_IFS
6506
6507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6508 ;;
6509esac
6510fi
6511DOT=$ac_cv_path_DOT
6512if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513 { echo "$as_me:$LINENO: result: $DOT" >&5
6514echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006518fi
6519
6520
6521if test "$DOT" != "echo dot" ; then
6522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523cat >>confdefs.h <<\_ACEOF
6524#define HAVE_DOT 1
6525_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006526
Jeff Cohen28783c32007-01-12 18:22:38 +00006527 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006528 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529 fi
6530
6531cat >>confdefs.h <<_ACEOF
6532#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6533_ACEOF
6534
6535fi
David Greenef0b9eff2009-07-09 17:16:26 +00006536# Extract the first word of "fdp", so it can be a program name with args.
6537set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540if test "${ac_cv_path_FDP+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006542else
6543 case $FDP in
6544 [\\/]* | ?:[\\/]*)
6545 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6546 ;;
6547 *)
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006555 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006557 break 2
6558 fi
6559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560done
David Greenef0b9eff2009-07-09 17:16:26 +00006561IFS=$as_save_IFS
6562
6563 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6564 ;;
6565esac
6566fi
6567FDP=$ac_cv_path_FDP
6568if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569 { echo "$as_me:$LINENO: result: $FDP" >&5
6570echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572 { echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006574fi
6575
6576
6577if test "$FDP" != "echo fdp" ; then
6578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579cat >>confdefs.h <<\_ACEOF
6580#define HAVE_FDP 1
6581_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006582
6583 if test "$llvm_cv_os_type" = "MingW" ; then
6584 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6585 fi
6586
6587cat >>confdefs.h <<_ACEOF
6588#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6589_ACEOF
6590
6591fi
6592# Extract the first word of "neato", so it can be a program name with args.
6593set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596if test "${ac_cv_path_NEATO+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006598else
6599 case $NEATO in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6602 ;;
6603 *)
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006611 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006613 break 2
6614 fi
6615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616done
David Greenef0b9eff2009-07-09 17:16:26 +00006617IFS=$as_save_IFS
6618
6619 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6620 ;;
6621esac
6622fi
6623NEATO=$ac_cv_path_NEATO
6624if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625 { echo "$as_me:$LINENO: result: $NEATO" >&5
6626echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628 { echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006630fi
6631
6632
6633if test "$NEATO" != "echo neato" ; then
6634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635cat >>confdefs.h <<\_ACEOF
6636#define HAVE_NEATO 1
6637_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006638
6639 if test "$llvm_cv_os_type" = "MingW" ; then
6640 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6641 fi
6642
6643cat >>confdefs.h <<_ACEOF
6644#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6645_ACEOF
6646
6647fi
6648# Extract the first word of "twopi", so it can be a program name with args.
6649set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652if test "${ac_cv_path_TWOPI+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006654else
6655 case $TWOPI in
6656 [\\/]* | ?:[\\/]*)
6657 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006667 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006669 break 2
6670 fi
6671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672done
David Greenef0b9eff2009-07-09 17:16:26 +00006673IFS=$as_save_IFS
6674
6675 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6676 ;;
6677esac
6678fi
6679TWOPI=$ac_cv_path_TWOPI
6680if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6682echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006686fi
6687
6688
6689if test "$TWOPI" != "echo twopi" ; then
6690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691cat >>confdefs.h <<\_ACEOF
6692#define HAVE_TWOPI 1
6693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006694
6695 if test "$llvm_cv_os_type" = "MingW" ; then
6696 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6697 fi
6698
6699cat >>confdefs.h <<_ACEOF
6700#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6701_ACEOF
6702
6703fi
6704# Extract the first word of "circo", so it can be a program name with args.
6705set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_CIRCO+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006710else
6711 case $CIRCO in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006723 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006725 break 2
6726 fi
6727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728done
David Greenef0b9eff2009-07-09 17:16:26 +00006729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6732 ;;
6733esac
6734fi
6735CIRCO=$ac_cv_path_CIRCO
6736if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6738echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006742fi
6743
6744
6745if test "$CIRCO" != "echo circo" ; then
6746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747cat >>confdefs.h <<\_ACEOF
6748#define HAVE_CIRCO 1
6749_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006750
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753 fi
6754
6755cat >>confdefs.h <<_ACEOF
6756#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6757_ACEOF
6758
6759fi
Reid Spencera773bd52006-08-04 18:18:08 +00006760for ac_prog in gv gsview32
6761do
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_GV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006768else
6769 case $GV in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006781 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006783 break 2
6784 fi
6785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786done
Reid Spencera773bd52006-08-04 18:18:08 +00006787IFS=$as_save_IFS
6788
6789 ;;
6790esac
6791fi
6792GV=$ac_cv_path_GV
6793if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794 { echo "$as_me:$LINENO: result: $GV" >&5
6795echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 { echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006799fi
6800
6801
6802 test -n "$GV" && break
6803done
6804test -n "$GV" || GV="echo gv"
6805
6806if test "$GV" != "echo gv" ; then
6807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808cat >>confdefs.h <<\_ACEOF
6809#define HAVE_GV 1
6810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006811
Jeff Cohen28783c32007-01-12 18:22:38 +00006812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006813 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 fi
6815
6816cat >>confdefs.h <<_ACEOF
6817#define LLVM_PATH_GV "$GV${EXEEXT}"
6818_ACEOF
6819
6820fi
6821# Extract the first word of "dotty", so it can be a program name with args.
6822set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825if test "${ac_cv_path_DOTTY+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006827else
6828 case $DOTTY in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6831 ;;
6832 *)
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006840 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006842 break 2
6843 fi
6844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845done
Reid Spencera773bd52006-08-04 18:18:08 +00006846IFS=$as_save_IFS
6847
6848 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6849 ;;
6850esac
6851fi
6852DOTTY=$ac_cv_path_DOTTY
6853if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6855echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006859fi
6860
6861
6862if test "$DOTTY" != "echo dotty" ; then
6863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864cat >>confdefs.h <<\_ACEOF
6865#define HAVE_DOTTY 1
6866_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006867
Jeff Cohen28783c32007-01-12 18:22:38 +00006868 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006869 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 fi
6871
6872cat >>confdefs.h <<_ACEOF
6873#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6874_ACEOF
6875
6876fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006877# Extract the first word of "xdot.py", so it can be a program name with args.
6878set dummy xdot.py; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_XDOT_PY+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 case $XDOT_PY in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6905 ;;
6906esac
6907fi
6908XDOT_PY=$ac_cv_path_XDOT_PY
6909if test -n "$XDOT_PY"; then
6910 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6911echo "${ECHO_T}$XDOT_PY" >&6; }
6912else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
6915fi
6916
6917
6918if test "$XDOT_PY" != "echo xdot.py" ; then
6919
6920cat >>confdefs.h <<\_ACEOF
6921#define HAVE_XDOT_PY 1
6922_ACEOF
6923
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 fi
6927
6928cat >>confdefs.h <<_ACEOF
6929#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6930_ACEOF
6931
6932fi
Reid Spencera773bd52006-08-04 18:18:08 +00006933
6934
6935# Extract the first word of "perl", so it can be a program name with args.
6936set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939if test "${ac_cv_path_PERL+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006941else
6942 case $PERL in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6945 ;;
6946 *)
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006954 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006956 break 2
6957 fi
6958done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959done
Reid Spencera773bd52006-08-04 18:18:08 +00006960IFS=$as_save_IFS
6961
6962 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6963 ;;
6964esac
6965fi
6966PERL=$ac_cv_path_PERL
6967if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968 { echo "$as_me:$LINENO: result: $PERL" >&5
6969echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971 { echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006973fi
6974
6975
6976if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006977 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6978echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006979 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 { echo "$as_me:$LINENO: result: yes" >&5
6981echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006982 else
6983 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984 { echo "$as_me:$LINENO: result: not found" >&5
6985echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006986 fi
6987fi
6988
6989
6990if test x"$PERL" = xnone; then
6991 HAVE_PERL=0
6992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6994echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6995 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006996else
6997 HAVE_PERL=1
6998
6999fi
7000
7001# Find a good install program. We prefer a C program (faster),
7002# so one script is as good as another. But avoid the broken or
7003# incompatible versions:
7004# SysV /etc/install, /usr/sbin/install
7005# SunOS /usr/etc/install
7006# IRIX /sbin/install
7007# AIX /bin/install
7008# AmigaOS /C/install, which installs bootblocks on floppy discs
7009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7012# OS/2's system install, which has a completely different semantic
7013# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007016if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017if test "${ac_cv_path_install+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025 # Account for people who put trailing slashes in PATH elements.
7026case $as_dir/ in
7027 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007030 /usr/ucb/* ) ;;
7031 *)
7032 # OSF1 and SCO ODT 3.0 have their own names for install.
7033 # Don't use installbsd from OSF since it installs stuff as root
7034 # by default.
7035 for ac_prog in ginstall scoinst install; do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007038 if test $ac_prog = install &&
7039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7040 # AIX install. It has an incompatible calling convention.
7041 :
7042 elif test $ac_prog = install &&
7043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7044 # program-specific install script used by HP pwplus--don't use.
7045 :
7046 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7048 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007049 fi
7050 fi
7051 done
7052 done
7053 ;;
7054esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007055done
Reid Spencera773bd52006-08-04 18:18:08 +00007056IFS=$as_save_IFS
7057
7058
7059fi
7060 if test "${ac_cv_path_install+set}" = set; then
7061 INSTALL=$ac_cv_path_install
7062 else
7063 # As a last resort, use the slow shell script. Don't cache a
7064 # value for INSTALL within a source directory, because that will
7065 # break other packages using the cache if that directory is
7066 # removed, or if the value is a relative name.
7067 INSTALL=$ac_install_sh
7068 fi
7069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7071echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007072
7073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7074# It thinks the first close brace ends the variable substitution.
7075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7076
7077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7078
7079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7080
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007081case "$INSTALL" in
7082 [\\/$]* | ?:[\\/]* ) ;;
7083 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7084esac
Reid Spencera773bd52006-08-04 18:18:08 +00007085
7086# Extract the first word of "bzip2", so it can be a program name with args.
7087set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_path_BZIP2+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007092else
7093 case $BZIP2 in
7094 [\\/]* | ?:[\\/]*)
7095 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007105 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007107 break 2
7108 fi
7109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110done
Reid Spencera773bd52006-08-04 18:18:08 +00007111IFS=$as_save_IFS
7112
Reid Spencera773bd52006-08-04 18:18:08 +00007113 ;;
7114esac
7115fi
7116BZIP2=$ac_cv_path_BZIP2
7117if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7119echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007123fi
7124
7125
mike-m68cb3192010-05-06 23:45:43 +00007126# Extract the first word of "cat", so it can be a program name with args.
7127set dummy cat; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_CAT+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $CAT in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153 ;;
7154esac
7155fi
7156CAT=$ac_cv_path_CAT
7157if test -n "$CAT"; then
7158 { echo "$as_me:$LINENO: result: $CAT" >&5
7159echo "${ECHO_T}$CAT" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
Reid Spencera773bd52006-08-04 18:18:08 +00007166# Extract the first word of "doxygen", so it can be a program name with args.
7167set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170if test "${ac_cv_path_DOXYGEN+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007172else
7173 case $DOXYGEN in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007185 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007187 break 2
7188 fi
7189done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190done
Reid Spencera773bd52006-08-04 18:18:08 +00007191IFS=$as_save_IFS
7192
Reid Spencera773bd52006-08-04 18:18:08 +00007193 ;;
7194esac
7195fi
7196DOXYGEN=$ac_cv_path_DOXYGEN
7197if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7199echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007203fi
7204
7205
Reid Spencera773bd52006-08-04 18:18:08 +00007206# Extract the first word of "groff", so it can be a program name with args.
7207set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_GROFF+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007212else
7213 case $GROFF in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007225 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007227 break 2
7228 fi
7229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230done
Reid Spencera773bd52006-08-04 18:18:08 +00007231IFS=$as_save_IFS
7232
Reid Spencera773bd52006-08-04 18:18:08 +00007233 ;;
7234esac
7235fi
7236GROFF=$ac_cv_path_GROFF
7237if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: $GROFF" >&5
7239echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 { echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007243fi
7244
7245
7246# Extract the first word of "gzip", so it can be a program name with args.
7247set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007250if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007252else
Eric Christopher031d3072010-12-10 01:31:51 +00007253 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007254 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007255 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007256 ;;
7257 *)
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007265 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007267 break 2
7268 fi
7269done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007270done
Reid Spencera773bd52006-08-04 18:18:08 +00007271IFS=$as_save_IFS
7272
Reid Spencera773bd52006-08-04 18:18:08 +00007273 ;;
7274esac
7275fi
Eric Christopher031d3072010-12-10 01:31:51 +00007276GZIPBIN=$ac_cv_path_GZIPBIN
7277if test -n "$GZIPBIN"; then
7278 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7279echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281 { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007283fi
7284
7285
7286# Extract the first word of "pod2html", so it can be a program name with args.
7287set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_path_POD2HTML+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007292else
7293 case $POD2HTML in
7294 [\\/]* | ?:[\\/]*)
7295 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7296 ;;
7297 *)
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007305 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007307 break 2
7308 fi
7309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310done
Reid Spencera773bd52006-08-04 18:18:08 +00007311IFS=$as_save_IFS
7312
Reid Spencera773bd52006-08-04 18:18:08 +00007313 ;;
7314esac
7315fi
7316POD2HTML=$ac_cv_path_POD2HTML
7317if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7319echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007323fi
7324
7325
7326# Extract the first word of "pod2man", so it can be a program name with args.
7327set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_POD2MAN+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007332else
7333 case $POD2MAN in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007345 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007347 break 2
7348 fi
7349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350done
Reid Spencera773bd52006-08-04 18:18:08 +00007351IFS=$as_save_IFS
7352
Reid Spencera773bd52006-08-04 18:18:08 +00007353 ;;
7354esac
7355fi
7356POD2MAN=$ac_cv_path_POD2MAN
7357if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7359echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007363fi
7364
7365
mike-m68cb3192010-05-06 23:45:43 +00007366# Extract the first word of "pdfroff", so it can be a program name with args.
7367set dummy pdfroff; ac_word=$2
7368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7370if test "${ac_cv_path_PDFROFF+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373 case $PDFROFF in
7374 [\\/]* | ?:[\\/]*)
7375 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7376 ;;
7377 *)
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389done
7390done
7391IFS=$as_save_IFS
7392
7393 ;;
7394esac
7395fi
7396PDFROFF=$ac_cv_path_PDFROFF
7397if test -n "$PDFROFF"; then
7398 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7399echo "${ECHO_T}$PDFROFF" >&6; }
7400else
7401 { echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6; }
7403fi
7404
7405
Reid Spencera773bd52006-08-04 18:18:08 +00007406# Extract the first word of "runtest", so it can be a program name with args.
7407set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410if test "${ac_cv_path_RUNTEST+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007412else
7413 case $RUNTEST in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7416 ;;
7417 *)
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007425 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007427 break 2
7428 fi
7429done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430done
Reid Spencera773bd52006-08-04 18:18:08 +00007431IFS=$as_save_IFS
7432
Reid Spencera773bd52006-08-04 18:18:08 +00007433 ;;
7434esac
7435fi
7436RUNTEST=$ac_cv_path_RUNTEST
7437if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7439echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 { echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007443fi
7444
7445
7446
7447no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7449echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450
7451# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007453 withval=$with_tclinclude; with_tclinclude=${withval}
7454else
7455 with_tclinclude=''
7456fi
7457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458if test "${ac_cv_path_tclsh+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007460else
7461
7462if test x"${with_tclinclude}" != x ; then
7463 if test -f ${with_tclinclude}/tclsh ; then
7464 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7465 elif test -f ${with_tclinclude}/src/tclsh ; then
7466 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7467 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7469echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7470 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007471 fi
7472fi
Torok Edwin871384f2010-01-26 08:50:50 +00007473fi
7474
Reid Spencera773bd52006-08-04 18:18:08 +00007475
7476if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 { echo "$as_me:$LINENO: result: none" >&5
7478echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007479 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
7480do
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485if test "${ac_cv_path_TCLSH+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007487else
7488 case $TCLSH in
7489 [\\/]* | ?:[\\/]*)
7490 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7491 ;;
7492 *)
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007500 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007502 break 2
7503 fi
7504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505done
Reid Spencera773bd52006-08-04 18:18:08 +00007506IFS=$as_save_IFS
7507
7508 ;;
7509esac
7510fi
7511TCLSH=$ac_cv_path_TCLSH
7512if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7514echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007518fi
7519
7520
7521 test -n "$TCLSH" && break
7522done
7523
7524 if test x"${TCLSH}" = x ; then
7525 ac_cv_path_tclsh='';
7526 else
7527 ac_cv_path_tclsh="${TCLSH}";
7528 fi
7529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7531echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007532 TCLSH="${ac_cv_path_tclsh}"
7533
7534fi
7535
Reid Spencera773bd52006-08-04 18:18:08 +00007536# Extract the first word of "zip", so it can be a program name with args.
7537set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_ZIP+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007542else
7543 case $ZIP in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007555 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007557 break 2
7558 fi
7559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560done
Reid Spencera773bd52006-08-04 18:18:08 +00007561IFS=$as_save_IFS
7562
Reid Spencera773bd52006-08-04 18:18:08 +00007563 ;;
7564esac
7565fi
7566ZIP=$ac_cv_path_ZIP
7567if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 { echo "$as_me:$LINENO: result: $ZIP" >&5
7569echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 { echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007573fi
7574
7575
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007576for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007577do
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582if test "${ac_cv_path_OCAMLC+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007584else
7585 case $OCAMLC in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007597 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007599 break 2
7600 fi
7601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007603IFS=$as_save_IFS
7604
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007605 ;;
7606esac
7607fi
7608OCAMLC=$ac_cv_path_OCAMLC
7609if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7611echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007613 { echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615fi
7616
7617
Gordon Henriksene7072162008-03-07 18:20:01 +00007618 test -n "$OCAMLC" && break
7619done
7620
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007621for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007622do
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007629else
7630 case $OCAMLOPT in
7631 [\\/]* | ?:[\\/]*)
7632 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7633 ;;
7634 *)
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007642 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007644 break 2
7645 fi
7646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007648IFS=$as_save_IFS
7649
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007650 ;;
7651esac
7652fi
7653OCAMLOPT=$ac_cv_path_OCAMLOPT
7654if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7656echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 { echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007660fi
7661
7662
Gordon Henriksene7072162008-03-07 18:20:01 +00007663 test -n "$OCAMLOPT" && break
7664done
7665
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007666for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007667do
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007674else
7675 case $OCAMLDEP in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007687 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007689 break 2
7690 fi
7691done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007693IFS=$as_save_IFS
7694
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007695 ;;
7696esac
7697fi
7698OCAMLDEP=$ac_cv_path_OCAMLDEP
7699if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7701echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 { echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007705fi
7706
7707
Gordon Henriksene7072162008-03-07 18:20:01 +00007708 test -n "$OCAMLDEP" && break
7709done
7710
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007711for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007712do
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 Yasskin1611ebb2010-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_OCAMLDOC+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007719else
7720 case $OCAMLDOC in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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 Yasskin1611ebb2010-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
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007732 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007734 break 2
7735 fi
7736done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007738IFS=$as_save_IFS
7739
7740 ;;
7741esac
7742fi
7743OCAMLDOC=$ac_cv_path_OCAMLDOC
7744if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7746echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007750fi
7751
7752
7753 test -n "$OCAMLDOC" && break
7754done
7755
Torok Edwincc499a42008-10-22 09:56:27 +00007756for ac_prog in gas as
7757do
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762if test "${ac_cv_path_GAS+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007764else
7765 case $GAS in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7768 ;;
7769 *)
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007777 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007779 break 2
7780 fi
7781done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782done
Torok Edwincc499a42008-10-22 09:56:27 +00007783IFS=$as_save_IFS
7784
7785 ;;
7786esac
7787fi
7788GAS=$ac_cv_path_GAS
7789if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 { echo "$as_me:$LINENO: result: $GAS" >&5
7791echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 { echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007795fi
7796
7797
7798 test -n "$GAS" && break
7799done
7800
Reid Spencera773bd52006-08-04 18:18:08 +00007801
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007802{ echo "$as_me:$LINENO: checking for linker version" >&5
7803echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7804if test "${llvm_cv_link_version+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807
7808 version_string="$(ld -v 2>&1 | head -1)"
7809
7810 # Check for ld64.
7811 if (echo "$version_string" | grep -q "ld64"); then
7812 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7813 else
7814 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7815 fi
7816
7817fi
7818{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7819echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7820
7821cat >>confdefs.h <<_ACEOF
7822#define HOST_LINK_VERSION "$llvm_cv_link_version"
7823_ACEOF
7824
7825
7826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7828echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7829if test "${llvm_cv_link_use_r+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007831else
7832 ac_ext=c
7833ac_cpp='$CPP $CPPFLAGS'
7834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838 oldcflags="$CFLAGS"
7839 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h. */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007845/* end confdefs.h. */
7846
7847int
7848main ()
7849{
Dan Gohman39ed6782010-04-25 00:12:20 +00007850
Reid Spencera773bd52006-08-04 18:18:08 +00007851 ;
7852 return 0;
7853}
7854_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007855rm -f conftest.$ac_objext conftest$ac_exeext
7856if { (ac_try="$ac_link"
7857case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860esac
7861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_link") 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7870 { (case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_try") 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883esac
7884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007889 llvm_cv_link_use_r=yes
7890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891 echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896
Bill Wendlingebcceee2009-04-18 11:20:33 +00007897rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007899 CFLAGS="$oldcflags"
7900 ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7909echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007910if test "$llvm_cv_link_use_r" = yes ; then
7911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912cat >>confdefs.h <<\_ACEOF
7913#define HAVE_LINK_R 1
7914_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007915
7916 fi
7917
7918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7920echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7921if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007923else
7924 ac_ext=c
7925ac_cpp='$CPP $CPPFLAGS'
7926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930 oldcflags="$CFLAGS"
7931 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932 cat >conftest.$ac_ext <<_ACEOF
7933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007937/* end confdefs.h. */
7938
7939int
7940main ()
7941{
Dan Gohman39ed6782010-04-25 00:12:20 +00007942
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007943 ;
7944 return 0;
7945}
7946_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007947rm -f conftest.$ac_objext conftest$ac_exeext
7948if { (ac_try="$ac_link"
7949case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952esac
7953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_link") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7962 { (case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_try") 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007981 llvm_cv_link_use_export_dynamic=yes
7982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988
Bill Wendlingebcceee2009-04-18 11:20:33 +00007989rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007991 CFLAGS="$oldcflags"
7992 ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998
7999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8001echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008002if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004cat >>confdefs.h <<\_ACEOF
8005#define HAVE_LINK_EXPORT_DYNAMIC 1
8006_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008007
8008 fi
8009
8010
Dan Gohmanda612d62010-06-01 14:56:56 +00008011{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8012echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8013if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022 oldcflags="$CFLAGS"
8023
8024 # The following code is from the autoconf manual,
8025 # "11.13: Limitations of Usual Tools".
8026 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8027 # Use mktemp if possible; otherwise fall back on mkdir,
8028 # with $RANDOM to make collisions less likely.
8029 : ${TMPDIR=/tmp}
8030 {
8031 tmp=`
8032 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8033 ` &&
8034 test -n "$tmp" && test -d "$tmp"
8035 } || {
8036 tmp=$TMPDIR/foo$$-$RANDOM
8037 (umask 077 && mkdir "$tmp")
8038 } || exit $?
8039
Dan Gohmanda612d62010-06-01 14:56:56 +00008040 echo "{" > "$tmp/export.map"
8041 echo " global: main;" >> "$tmp/export.map"
8042 echo " local: *;" >> "$tmp/export.map"
8043 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008044
Dan Gohmanda612d62010-06-01 14:56:56 +00008045 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008046 cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
Dan Gohman39ed6782010-04-25 00:12:20 +00008056
Dan Gohman391569c2010-04-16 22:59:06 +00008057 ;
8058 return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
8062if { (ac_try="$ac_link"
8063case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079esac
8080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_try") 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008095 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008096else
8097 echo "$as_me: failed program was:" >&5
8098sed 's/^/| /' conftest.$ac_ext >&5
8099
Dan Gohman943005e2010-06-01 16:22:27 +00008100 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008101fi
8102
8103rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008105 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008106 rmdir "$tmp"
8107 CFLAGS="$oldcflags"
8108 ac_ext=c
8109ac_cpp='$CPP $CPPFLAGS'
8110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113
8114
8115fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008116{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8117echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8118if test "$llvm_cv_link_use_version_script" = yes ; then
8119 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008120
8121 fi
8122
8123
Reid Spencera773bd52006-08-04 18:18:08 +00008124
8125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8127echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8128if test "${ac_cv_c_const+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008136/* end confdefs.h. */
8137
8138int
8139main ()
8140{
8141/* FIXME: Include the comments suggested by Paul. */
8142#ifndef __cplusplus
8143 /* Ultrix mips cc rejects this. */
8144 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008146 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 char const *const *ccp;
8148 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008149 /* NEC SVR4.0.2 mips cc rejects this. */
8150 struct point {int x, y;};
8151 static struct point const zero = {0,0};
8152 /* AIX XL C 1.02.0.0 rejects this.
8153 It does not let you subtract one const X* pointer from another in
8154 an arm of an if-expression whose if-part is not a constant
8155 expression */
8156 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008158 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 ++ccp;
8160 p = (char**) ccp;
8161 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008162 { /* SCO 3.2v4 cc rejects this. */
8163 char *t;
8164 char const *s = 0 ? (char *) 0 : (char const *) 0;
8165
8166 *t++ = 0;
8167 if (s) return 0;
8168 }
8169 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8170 int x[] = {25, 17};
8171 const int *foo = &x[0];
8172 ++foo;
8173 }
8174 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8175 typedef const int *iptr;
8176 iptr p = 0;
8177 ++p;
8178 }
8179 { /* AIX XL C 1.02.0.0 rejects this saying
8180 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8181 struct s { int j; const int *ap[3]; };
8182 struct s *b; b->j = 5;
8183 }
8184 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8185 const int foo = 10;
8186 if (!foo) return 0;
8187 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008189#endif
8190
8191 ;
8192 return 0;
8193}
8194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195rm -f conftest.$ac_objext
8196if { (ac_try="$ac_compile"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008229 ac_cv_c_const=yes
8230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236
Reid Spencera773bd52006-08-04 18:18:08 +00008237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8240echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008241if test $ac_cv_c_const = no; then
8242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243cat >>confdefs.h <<\_ACEOF
8244#define const
8245_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008246
8247fi
8248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249
8250
8251
8252
8253
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008254ac_header_dirent=no
8255for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8257{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8258echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008267/* end confdefs.h. */
8268#include <sys/types.h>
8269#include <$ac_hdr>
8270
8271int
8272main ()
8273{
8274if ((DIR *) 0)
8275return 0;
8276 ;
8277 return 0;
8278}
8279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280rm -f conftest.$ac_objext
8281if { (ac_try="$ac_compile"
8282case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008314 eval "$as_ac_Header=yes"
8315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321
Reid Spencera773bd52006-08-04 18:18:08 +00008322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324ac_res=`eval echo '${'$as_ac_Header'}'`
8325 { echo "$as_me:$LINENO: result: $ac_res" >&5
8326echo "${ECHO_T}$ac_res" >&6; }
8327if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330_ACEOF
8331
8332ac_header_dirent=$ac_hdr; break
8333fi
8334
8335done
8336# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8337if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8339echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8340if test "${ac_cv_search_opendir+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008342else
8343 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008349/* end confdefs.h. */
8350
Reid Spencera773bd52006-08-04 18:18:08 +00008351/* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354#ifdef __cplusplus
8355extern "C"
8356#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008357char opendir ();
8358int
8359main ()
8360{
Reid Spencera773bd52006-08-04 18:18:08 +00008361return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008362 ;
8363 return 0;
8364}
8365_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008366for ac_lib in '' dir; do
8367 if test -z "$ac_lib"; then
8368 ac_res="none required"
8369 else
8370 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008372 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373 rm -f conftest.$ac_objext conftest$ac_exeext
8374if { (ac_try="$ac_link"
8375case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378esac
8379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_link") 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_try") 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008407 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414
Bill Wendlingebcceee2009-04-18 11:20:33 +00008415rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416 conftest$ac_exeext
8417 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008418 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008419fi
John Criswell7a73b802003-06-30 21:59:07 +00008420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421if test "${ac_cv_search_opendir+set}" = set; then
8422 :
Reid Spencera773bd52006-08-04 18:18:08 +00008423else
8424 ac_cv_search_opendir=no
8425fi
8426rm conftest.$ac_ext
8427LIBS=$ac_func_search_save_LIBS
8428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8430echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008431ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008434
Reid Spencera773bd52006-08-04 18:18:08 +00008435fi
8436
8437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8439echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8440if test "${ac_cv_search_opendir+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008442else
8443 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008449/* end confdefs.h. */
8450
8451/* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454#ifdef __cplusplus
8455extern "C"
8456#endif
8457char opendir ();
8458int
8459main ()
8460{
8461return opendir ();
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466for ac_lib in '' x; do
8467 if test -z "$ac_lib"; then
8468 ac_res="none required"
8469 else
8470 ac_res=-l$ac_lib
8471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8472 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (ac_try="$ac_link"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8488 { (case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_try") 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008507 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508else
8509 echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
Reid Spencera773bd52006-08-04 18:18:08 +00008513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514
Bill Wendlingebcceee2009-04-18 11:20:33 +00008515rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516 conftest$ac_exeext
8517 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008518 break
8519fi
8520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521if test "${ac_cv_search_opendir+set}" = set; then
8522 :
Reid Spencera773bd52006-08-04 18:18:08 +00008523else
8524 ac_cv_search_opendir=no
8525fi
8526rm conftest.$ac_ext
8527LIBS=$ac_func_search_save_LIBS
8528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8530echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008531ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8534
8535fi
8536
8537fi
John Criswell7a73b802003-06-30 21:59:07 +00008538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539
John Criswell7a73b802003-06-30 21:59:07 +00008540for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541do
8542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548fi
8549ac_res=`eval echo '${'$as_ac_Header'}'`
8550 { echo "$as_me:$LINENO: result: $ac_res" >&5
8551echo "${ECHO_T}$ac_res" >&6; }
8552else
8553 # Is the header compilable?
8554{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8556cat >conftest.$ac_ext <<_ACEOF
8557/* confdefs.h. */
8558_ACEOF
8559cat confdefs.h >>conftest.$ac_ext
8560cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */
8562$ac_includes_default
8563#include <$ac_header>
8564_ACEOF
8565rm -f conftest.$ac_objext
8566if { (ac_try="$ac_compile"
8567case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8580 { (case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583esac
8584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_try") 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; } &&
8589 { ac_try='test -s conftest.$ac_objext'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_header_compiler=yes
8600else
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 ac_header_compiler=no
8605fi
8606
8607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609echo "${ECHO_T}$ac_header_compiler" >&6; }
8610
8611# Is the header present?
8612{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8614cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h. */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h. */
8620#include <$ac_header>
8621_ACEOF
8622if { (ac_try="$ac_cpp conftest.$ac_ext"
8623case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626esac
8627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } >/dev/null; then
8635 if test -s conftest.err; then
8636 ac_cpp_err=$ac_c_preproc_warn_flag
8637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8638 else
8639 ac_cpp_err=
8640 fi
8641else
8642 ac_cpp_err=yes
8643fi
8644if test -z "$ac_cpp_err"; then
8645 ac_header_preproc=yes
8646else
8647 echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_header_preproc=no
8651fi
8652
8653rm -f conftest.err conftest.$ac_ext
8654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8655echo "${ECHO_T}$ac_header_preproc" >&6; }
8656
8657# So? What about this header?
8658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659 yes:no: )
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8664 ac_header_preproc=yes
8665 ;;
8666 no:yes:* )
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679 ( cat <<\_ASBOX
8680## ----------------------------------- ##
8681## Report this to llvmbugs@cs.uiuc.edu ##
8682## ----------------------------------- ##
8683_ASBOX
8684 ) | sed "s/^/$as_me: WARNING: /" >&2
8685 ;;
8686esac
8687{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692 eval "$as_ac_Header=\$ac_header_preproc"
8693fi
8694ac_res=`eval echo '${'$as_ac_Header'}'`
8695 { echo "$as_me:$LINENO: result: $ac_res" >&5
8696echo "${ECHO_T}$ac_res" >&6; }
8697
8698fi
8699if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008700 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008702_ACEOF
8703
8704fi
8705
8706done
8707
Reid Spencera773bd52006-08-04 18:18:08 +00008708# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008710 enableval=$enable_ltdl_install;
8711fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008712
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714
8715
8716if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008717 INSTALL_LTDL_TRUE=
8718 INSTALL_LTDL_FALSE='#'
8719else
8720 INSTALL_LTDL_TRUE='#'
8721 INSTALL_LTDL_FALSE=
8722fi
8723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724
8725
8726if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008727 CONVENIENCE_LTDL_TRUE=
8728 CONVENIENCE_LTDL_FALSE='#'
8729else
8730 CONVENIENCE_LTDL_TRUE='#'
8731 CONVENIENCE_LTDL_FALSE=
8732fi
8733
8734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008735{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8736echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008737library_names_spec=
8738libname_spec='lib$name'
8739soname_spec=
8740shrext_cmds=".so"
8741postinstall_cmds=
8742postuninstall_cmds=
8743finish_cmds=
8744finish_eval=
8745shlibpath_var=
8746shlibpath_overrides_runpath=unknown
8747version_type=none
8748dynamic_linker="$host_os ld.so"
8749sys_lib_dlsearch_path_spec="/lib /usr/lib"
8750if test "$GCC" = yes; then
8751 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8752 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8753 # if the path contains ";" then we assume it to be the separator
8754 # otherwise default to the standard path separator (i.e. ":") - it is
8755 # assumed that no part of a normal pathname contains ";" but that should
8756 # okay in the real world where ";" in dirpaths is itself problematic.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 else
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8760 fi
8761else
8762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8763fi
8764need_lib_prefix=unknown
8765hardcode_into_libs=no
8766
8767# when you set need_version to no, make sure it does not cause -set_version
8768# flags to be left without arguments
8769need_version=unknown
8770
8771case $host_os in
8772aix3*)
8773 version_type=linux
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8775 shlibpath_var=LIBPATH
8776
8777 # AIX 3 has no versioning support, so we append a major version to the name.
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 ;;
8780
8781aix4* | aix5*)
8782 version_type=linux
8783 need_lib_prefix=no
8784 need_version=no
8785 hardcode_into_libs=yes
8786 if test "$host_cpu" = ia64; then
8787 # AIX 5 supports IA64
8788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8789 shlibpath_var=LD_LIBRARY_PATH
8790 else
8791 # With GCC up to 2.95.x, collect2 would create an import file
8792 # for dependence libraries. The import file would start with
8793 # the line `#! .'. This would cause the generated library to
8794 # depend on `.', always an invalid library. This was fixed in
8795 # development snapshots of GCC prior to 3.0.
8796 case $host_os in
8797 aix4 | aix4.[01] | aix4.[01].*)
8798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8799 echo ' yes '
8800 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8801 :
8802 else
8803 can_build_shared=no
8804 fi
8805 ;;
8806 esac
8807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8808 # soname into executable. Probably we can add versioning support to
8809 # collect2, so additional links can be useful in future.
8810 if test "$aix_use_runtimelinking" = yes; then
8811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8812 # instead of lib<name>.a to let people know that these are not
8813 # typical AIX shared libraries.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 else
8816 # We preserve .a as extension for shared libraries through AIX4.2
8817 # and later when we are not doing run time linking.
8818 library_names_spec='${libname}${release}.a $libname.a'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 fi
8821 shlibpath_var=LIBPATH
8822 fi
8823 ;;
8824
8825amigaos*)
8826 library_names_spec='$libname.ixlibrary $libname.a'
8827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8828 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'
8829 ;;
8830
8831beos*)
8832 library_names_spec='${libname}${shared_ext}'
8833 dynamic_linker="$host_os ld.so"
8834 shlibpath_var=LIBRARY_PATH
8835 ;;
8836
8837bsdi[45]*)
8838 version_type=linux
8839 need_version=no
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8846 # the default ld.so.conf also contains /usr/contrib/lib and
8847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8848 # libtool to hard-code these into programs
8849 ;;
8850
8851cygwin* | mingw* | pw32*)
8852 version_type=windows
8853 shrext_cmds=".dll"
8854 need_version=no
8855 need_lib_prefix=no
8856
8857 case $GCC,$host_os in
8858 yes,cygwin* | yes,mingw* | yes,pw32*)
8859 library_names_spec='$libname.dll.a'
8860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8861 postinstall_cmds='base_file=`basename \${file}`~
8862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8863 dldir=$destdir/`dirname \$dlpath`~
8864 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008865 $install_prog $dir/$dlname \$dldir/$dlname~
8866 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8869 $rm \$dlpath'
8870 shlibpath_overrides_runpath=yes
8871
8872 case $host_os in
8873 cygwin*)
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877 ;;
8878 mingw*)
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 else
8891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 fi
8893 ;;
8894 pw32*)
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008897 ;;
8898 esac
8899 ;;
8900
8901 *)
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903 ;;
8904 esac
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8907 shlibpath_var=PATH
8908 ;;
8909
8910darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8912 version_type=darwin
8913 need_lib_prefix=no
8914 need_version=no
8915 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008919 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008920 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8921 if test "$GCC" = yes; then
8922 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"`
8923 else
8924 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8925 fi
8926 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8927 ;;
8928
8929dgux*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 ;;
8937
Eric Christopher360fa9a2011-10-26 00:42:12 +00008938freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008939 dynamic_linker=no
8940 ;;
8941
8942kfreebsd*-gnu)
8943 version_type=linux
8944 need_lib_prefix=no
8945 need_version=no
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=no
8950 hardcode_into_libs=yes
8951 dynamic_linker='GNU ld.so'
8952 ;;
8953
Reid Spencera773bd52006-08-04 18:18:08 +00008954freebsd* | dragonfly*)
8955 # DragonFly does not have aout. When/if they implement a new
8956 # versioning mechanism, adjust this.
8957 if test -x /usr/bin/objformat; then
8958 objformat=`/usr/bin/objformat`
8959 else
8960 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008961 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008962 *) objformat=elf ;;
8963 esac
8964 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008965 version_type=freebsd-$objformat
8966 case $version_type in
8967 freebsd-elf*)
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8969 need_version=no
8970 need_lib_prefix=no
8971 ;;
8972 freebsd-*)
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8974 need_version=yes
8975 ;;
8976 esac
8977 shlibpath_var=LD_LIBRARY_PATH
8978 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008979 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008980 shlibpath_overrides_runpath=yes
8981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008982 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008983 shlibpath_overrides_runpath=yes
8984 hardcode_into_libs=yes
8985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008991 freebsd*) # from 4.6 on
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8994 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008995 esac
8996 ;;
8997
8998gnu*)
8999 version_type=linux
9000 need_lib_prefix=no
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 hardcode_into_libs=yes
9006 ;;
9007
9008hpux9* | hpux10* | hpux11*)
9009 # Give a soname corresponding to the major version so that dld.sl refuses to
9010 # link against other versions.
9011 version_type=sunos
9012 need_lib_prefix=no
9013 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009014 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009015 ia64*)
9016 shrext_cmds='.so'
9017 hardcode_into_libs=yes
9018 dynamic_linker="$host_os dld.so"
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 if test "X$HPUX_IA64_MODE" = X32; then
9024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9025 else
9026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9027 fi
9028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9029 ;;
9030 hppa*64*)
9031 shrext_cmds='.sl'
9032 hardcode_into_libs=yes
9033 dynamic_linker="$host_os dld.sl"
9034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9040 ;;
9041 *)
9042 shrext_cmds='.sl'
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=SHLIB_PATH
9045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 ;;
9049 esac
9050 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9051 postinstall_cmds='chmod 555 $lib'
9052 ;;
9053
Reid Spencera773bd52006-08-04 18:18:08 +00009054interix3*)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=no
9063 hardcode_into_libs=yes
9064 ;;
9065
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009066irix5* | irix6* | nonstopux*)
9067 case $host_os in
9068 nonstopux*) version_type=nonstopux ;;
9069 *)
9070 if test "$lt_cv_prog_gnu_ld" = yes; then
9071 version_type=linux
9072 else
9073 version_type=irix
9074 fi ;;
9075 esac
9076 need_lib_prefix=no
9077 need_version=no
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9080 case $host_os in
9081 irix5* | nonstopux*)
9082 libsuff= shlibsuff=
9083 ;;
9084 *)
9085 case $LD in # libtool.m4 will add one of these switches to LD
9086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9087 libsuff= shlibsuff= libmagic=32-bit;;
9088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9089 libsuff=32 shlibsuff=N32 libmagic=N32;;
9090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9092 *) libsuff= shlibsuff= libmagic=never-match;;
9093 esac
9094 ;;
9095 esac
9096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9100 hardcode_into_libs=yes
9101 ;;
9102
9103# No shared lib support for Linux oldld, aout, or coff.
9104linux*oldld* | linux*aout* | linux*coff*)
9105 dynamic_linker=no
9106 ;;
9107
9108# This must be Linux ELF.
9109linux*)
9110 version_type=linux
9111 need_lib_prefix=no
9112 need_version=no
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 # This implies no fast_install, which is unacceptable.
9119 # Some rework will be needed to allow for fast_install
9120 # before this can be enabled.
9121 hardcode_into_libs=yes
9122
9123 # Append ld.so.conf contents to the search path
9124 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009125 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' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9127 fi
9128
9129 # We used to test for /lib/ld.so.1 and disable shared libraries on
9130 # powerpc, because MkLinux only supported shared libraries with the
9131 # GNU dynamic linker. Since this was broken with cross compilers,
9132 # most powerpc-linux boxes support dynamic linking these days and
9133 # people can always --disable-shared, the test was removed, and we
9134 # assume the GNU/Linux dynamic linker is in use.
9135 dynamic_linker='GNU/Linux ld.so'
9136 ;;
9137
9138knetbsd*-gnu)
9139 version_type=linux
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9147 dynamic_linker='GNU ld.so'
9148 ;;
9149
9150netbsd*)
9151 version_type=sunos
9152 need_lib_prefix=no
9153 need_version=no
9154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 dynamic_linker='NetBSD (a.out) ld.so'
9158 else
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 dynamic_linker='NetBSD ld.elf_so'
9162 fi
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes
9165 hardcode_into_libs=yes
9166 ;;
9167
9168newsos6)
9169 version_type=linux
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=yes
9173 ;;
9174
9175nto-qnx*)
9176 version_type=linux
9177 need_lib_prefix=no
9178 need_version=no
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 ;;
9184
9185openbsd*)
9186 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009187 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009188 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9190 case $host_os in
9191 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9192 *) need_version=no ;;
9193 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9198 case $host_os in
9199 openbsd2.[89] | openbsd2.[89].*)
9200 shlibpath_overrides_runpath=no
9201 ;;
9202 *)
9203 shlibpath_overrides_runpath=yes
9204 ;;
9205 esac
9206 else
9207 shlibpath_overrides_runpath=yes
9208 fi
9209 ;;
9210
9211os2*)
9212 libname_spec='$name'
9213 shrext_cmds=".dll"
9214 need_lib_prefix=no
9215 library_names_spec='$libname${shared_ext} $libname.a'
9216 dynamic_linker='OS/2 ld.exe'
9217 shlibpath_var=LIBPATH
9218 ;;
9219
9220osf3* | osf4* | osf5*)
9221 version_type=osf
9222 need_lib_prefix=no
9223 need_version=no
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9229 ;;
9230
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231solaris*)
9232 version_type=linux
9233 need_lib_prefix=no
9234 need_version=no
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=yes
9239 hardcode_into_libs=yes
9240 # ldd complains unless libraries are executable
9241 postinstall_cmds='chmod +x $lib'
9242 ;;
9243
9244sunos4*)
9245 version_type=sunos
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9250 if test "$with_gnu_ld" = yes; then
9251 need_lib_prefix=no
9252 fi
9253 need_version=yes
9254 ;;
9255
Reid Spencera773bd52006-08-04 18:18:08 +00009256sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257 version_type=linux
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 case $host_vendor in
9262 sni)
9263 shlibpath_overrides_runpath=no
9264 need_lib_prefix=no
9265 export_dynamic_flag_spec='${wl}-Blargedynsym'
9266 runpath_var=LD_RUN_PATH
9267 ;;
9268 siemens)
9269 need_lib_prefix=no
9270 ;;
9271 motorola)
9272 need_lib_prefix=no
9273 need_version=no
9274 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9276 ;;
9277 esac
9278 ;;
9279
9280sysv4*MP*)
9281 if test -d /usr/nec ;then
9282 version_type=linux
9283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9284 soname_spec='$libname${shared_ext}.$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 fi
9287 ;;
9288
Reid Spencera773bd52006-08-04 18:18:08 +00009289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9290 version_type=freebsd-elf
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 hardcode_into_libs=yes
9297 if test "$with_gnu_ld" = yes; then
9298 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9299 shlibpath_overrides_runpath=no
9300 else
9301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9302 shlibpath_overrides_runpath=yes
9303 case $host_os in
9304 sco3.2v5*)
9305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9306 ;;
9307 esac
9308 fi
9309 sys_lib_dlsearch_path_spec='/usr/lib'
9310 ;;
9311
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312uts4*)
9313 version_type=linux
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 ;;
9318
9319*)
9320 dynamic_linker=no
9321 ;;
9322esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009323{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9324echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325test "$dynamic_linker" = no && can_build_shared=no
9326
Reid Spencera773bd52006-08-04 18:18:08 +00009327variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9328if test "$GCC" = yes; then
9329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9330fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331
Reid Spencera773bd52006-08-04 18:18:08 +00009332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9334echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9335if test "${libltdl_cv_shlibext+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337else
9338
9339module=yes
9340eval libltdl_cv_shlibext=$shrext_cmds
9341
9342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9344echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009345if test -n "$libltdl_cv_shlibext"; then
9346
9347cat >>confdefs.h <<_ACEOF
9348#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9349_ACEOF
9350
9351fi
9352
9353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009354{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9355echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9356if test "${libltdl_cv_shlibpath_var+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358else
9359 libltdl_cv_shlibpath_var="$shlibpath_var"
9360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9362echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363if test -n "$libltdl_cv_shlibpath_var"; then
9364
9365cat >>confdefs.h <<_ACEOF
9366#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9367_ACEOF
9368
9369fi
9370
9371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009372{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9373echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9374if test "${libltdl_cv_sys_search_path+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376else
9377 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009379{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9380echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381if test -n "$libltdl_cv_sys_search_path"; then
9382 sys_search_path=
9383 for dir in $libltdl_cv_sys_search_path; do
9384 if test -z "$sys_search_path"; then
9385 sys_search_path="$dir"
9386 else
9387 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9388 fi
9389 done
9390
9391cat >>confdefs.h <<_ACEOF
9392#define LTDL_SYSSEARCHPATH "$sys_search_path"
9393_ACEOF
9394
9395fi
9396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397{ echo "$as_me:$LINENO: checking for objdir" >&5
9398echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9399if test "${libltdl_cv_objdir+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401else
9402 libltdl_cv_objdir="$objdir"
9403 if test -n "$objdir"; then
9404 :
9405 else
9406 rm -f .libs 2>/dev/null
9407 mkdir .libs 2>/dev/null
9408 if test -d .libs; then
9409 libltdl_cv_objdir=.libs
9410 else
9411 # MS-DOS does not allow filenames that begin with a dot.
9412 libltdl_cv_objdir=_libs
9413 fi
9414 rmdir .libs 2>/dev/null
9415 fi
9416
9417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009418{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9419echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420
9421cat >>confdefs.h <<_ACEOF
9422#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9423_ACEOF
9424
9425
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426
9427
9428
9429
9430# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009431{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9432echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9433if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435else
9436
9437# These are sane defaults that work on at least a few old systems.
9438# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9439
9440# Character class describing NM global symbol codes.
9441symcode='[BCDEGRST]'
9442
9443# Regexp to match symbols that can be accessed directly from C.
9444sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9445
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446# Transform an extracted symbol line into a proper C declaration
9447lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9448
9449# Transform an extracted symbol line into symbol name and symbol address
9450lt_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'"
9451
9452# Define system-specific variables.
9453case $host_os in
9454aix*)
9455 symcode='[BCDT]'
9456 ;;
9457cygwin* | mingw* | pw32*)
9458 symcode='[ABCDGISTW]'
9459 ;;
9460hpux*) # Its linker distinguishes data from code symbols
9461 if test "$host_cpu" = ia64; then
9462 symcode='[ABCDEGRST]'
9463 fi
9464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9465 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'"
9466 ;;
9467linux*)
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDGIRSTW]'
9470 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9471 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'"
9472 fi
9473 ;;
9474irix* | nonstopux*)
9475 symcode='[BCDEGRST]'
9476 ;;
9477osf*)
9478 symcode='[BCDEGQRST]'
9479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009480solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481 symcode='[BDRT]'
9482 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009483sco3.2v5*)
9484 symcode='[DT]'
9485 ;;
9486sysv4.2uw2*)
9487 symcode='[DT]'
9488 ;;
9489sysv5* | sco5v6* | unixware* | OpenUNIX*)
9490 symcode='[ABDT]'
9491 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492sysv4)
9493 symcode='[DFNSTU]'
9494 ;;
9495esac
9496
9497# Handle CRLF in mingw tool chain
9498opt_cr=
9499case $build_os in
9500mingw*)
9501 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9502 ;;
9503esac
9504
9505# If we're using GNU nm, then use its standard symbol codes.
9506case `$NM -V 2>&1` in
9507*GNU* | *'with BFD'*)
9508 symcode='[ABCDGIRSTW]' ;;
9509esac
9510
9511# Try without a prefix undercore, then with it.
9512for ac_symprfx in "" "_"; do
9513
Reid Spencera773bd52006-08-04 18:18:08 +00009514 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9515 symxfrm="\\1 $ac_symprfx\\2 \\2"
9516
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519
9520 # Check to see that the pipe works correctly.
9521 pipe_works=no
9522
9523 rm -f conftest*
9524 cat > conftest.$ac_ext <<EOF
9525#ifdef __cplusplus
9526extern "C" {
9527#endif
9528char nm_test_var;
9529void nm_test_func(){}
9530#ifdef __cplusplus
9531}
9532#endif
9533int main(){nm_test_var='a';nm_test_func();return(0);}
9534EOF
9535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537 (eval $ac_compile) 2>&5
9538 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541 # Now try to grab the symbols.
9542 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9545 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 # Try sorting and uniquifying the output.
9549 if sort "$nlist" | uniq > "$nlist"T; then
9550 mv -f "$nlist"T "$nlist"
9551 else
9552 rm -f "$nlist"T
9553 fi
9554
9555 # Make sure that we snagged all the symbols we need.
9556 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9557 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9558 cat <<EOF > conftest.$ac_ext
9559#ifdef __cplusplus
9560extern "C" {
9561#endif
9562
9563EOF
9564 # Now generate the symbol file.
9565 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9566
9567 cat <<EOF >> conftest.$ac_ext
9568#if defined (__STDC__) && __STDC__
9569# define lt_ptr_t void *
9570#else
9571# define lt_ptr_t char *
9572# define const
9573#endif
9574
9575/* The mapping between symbol names and symbols. */
9576const struct {
9577 const char *name;
9578 lt_ptr_t address;
9579}
9580lt_preloaded_symbols[] =
9581{
9582EOF
9583 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9584 cat <<\EOF >> conftest.$ac_ext
9585 {0, (lt_ptr_t) 0}
9586};
9587
9588#ifdef __cplusplus
9589}
9590#endif
9591EOF
9592 # Now try linking the two files.
9593 mv conftest.$ac_objext conftstm.$ac_objext
9594 lt_save_LIBS="$LIBS"
9595 lt_save_CFLAGS="$CFLAGS"
9596 LIBS="conftstm.$ac_objext"
9597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599 (eval $ac_link) 2>&5
9600 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603 pipe_works=yes
9604 fi
9605 LIBS="$lt_save_LIBS"
9606 CFLAGS="$lt_save_CFLAGS"
9607 else
9608 echo "cannot find nm_test_func in $nlist" >&5
9609 fi
9610 else
9611 echo "cannot find nm_test_var in $nlist" >&5
9612 fi
9613 else
9614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9615 fi
9616 else
9617 echo "$progname: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 fi
9620 rm -f conftest* conftst*
9621
9622 # Do not use the global_symbol_pipe unless it works.
9623 if test "$pipe_works" = yes; then
9624 break
9625 else
9626 lt_cv_sys_global_symbol_pipe=
9627 fi
9628done
9629
9630fi
9631
9632if test -z "$lt_cv_sys_global_symbol_pipe"; then
9633 lt_cv_sys_global_symbol_to_cdecl=
9634fi
9635if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636 { echo "$as_me:$LINENO: result: failed" >&5
9637echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639 { echo "$as_me:$LINENO: result: ok" >&5
9640echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641fi
9642
9643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9645echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9646if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648else
9649 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9650 libltdl_cv_preloaded_symbols=yes
9651 else
9652 libltdl_cv_preloaded_symbols=no
9653 fi
9654
9655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9657echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660cat >>confdefs.h <<\_ACEOF
9661#define HAVE_PRELOADED_SYMBOLS 1
9662_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663
9664fi
9665
9666LIBADD_DL=
9667
9668ac_ext=c
9669ac_cpp='$CPP $CPPFLAGS'
9670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672ac_compiler_gnu=$ac_cv_c_compiler_gnu
9673
9674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675{ echo "$as_me:$LINENO: checking for shl_load" >&5
9676echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9677if test "${ac_cv_func_shl_load+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680 cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9688#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009690/* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char shl_load (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9694
9695#ifdef __STDC__
9696# include <limits.h>
9697#else
9698# include <assert.h>
9699#endif
9700
9701#undef shl_load
9702
9703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char shl_load ();
9710/* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713#if defined __stub_shl_load || defined __stub___shl_load
9714choke me
9715#endif
9716
9717int
9718main ()
9719{
9720return shl_load ();
9721 ;
9722 return 0;
9723}
9724_ACEOF
9725rm -f conftest.$ac_objext conftest$ac_exeext
9726if { (ac_try="$ac_link"
9727case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730esac
9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_link") 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740 { (case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_try") 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_func_shl_load=yes
9760else
9761 echo "$as_me: failed program was:" >&5
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 ac_cv_func_shl_load=no
9765fi
9766
9767rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769fi
9770{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9771echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9772if test $ac_cv_func_shl_load = yes; then
9773
9774cat >>confdefs.h <<\_ACEOF
9775#define HAVE_SHL_LOAD 1
9776_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777
9778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009779 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9780echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9781if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783else
9784 ac_check_lib_save_LIBS=$LIBS
9785LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791/* end confdefs.h. */
9792
Reid Spencera773bd52006-08-04 18:18:08 +00009793/* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796#ifdef __cplusplus
9797extern "C"
9798#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799char shl_load ();
9800int
9801main ()
9802{
Reid Spencera773bd52006-08-04 18:18:08 +00009803return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804 ;
9805 return 0;
9806}
9807_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (ac_try="$ac_link"
9810case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842 ac_cv_lib_dld_shl_load=yes
9843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009849
Bill Wendlingebcceee2009-04-18 11:20:33 +00009850rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852LIBS=$ac_check_lib_save_LIBS
9853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009854{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9855echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9856if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009858cat >>confdefs.h <<\_ACEOF
9859#define HAVE_SHL_LOAD 1
9860_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861
9862 LIBADD_DL="$LIBADD_DL -ldld"
9863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009864 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9865echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009868else
9869 ac_check_lib_save_LIBS=$LIBS
9870LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009871cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h. */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876/* end confdefs.h. */
9877
Reid Spencera773bd52006-08-04 18:18:08 +00009878/* Override any GCC internal prototype to avoid an error.
9879 Use char because int might match the return type of a GCC
9880 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881#ifdef __cplusplus
9882extern "C"
9883#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884char dlopen ();
9885int
9886main ()
9887{
Reid Spencera773bd52006-08-04 18:18:08 +00009888return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 ;
9890 return 0;
9891}
9892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009893rm -f conftest.$ac_objext conftest$ac_exeext
9894if { (ac_try="$ac_link"
9895case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898esac
9899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_link") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927 ac_cv_lib_dl_dlopen=yes
9928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929 echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009934
Bill Wendlingebcceee2009-04-18 11:20:33 +00009935rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009936 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937LIBS=$ac_check_lib_save_LIBS
9938fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9940echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9941if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009943cat >>confdefs.h <<\_ACEOF
9944#define HAVE_LIBDL 1
9945_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946
9947 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954/* end confdefs.h. */
9955#if HAVE_DLFCN_H
9956# include <dlfcn.h>
9957#endif
9958
9959int
9960main ()
9961{
9962dlopen(0, 0);
9963 ;
9964 return 0;
9965}
9966_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (ac_try="$ac_link"
9969case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
9975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982 { (case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985esac
9986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_try") 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010002cat >>confdefs.h <<\_ACEOF
10003#define HAVE_LIBDL 1
10004_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005 libltdl_cv_func_dlopen="yes"
10006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10011echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10012if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014else
10015 ac_check_lib_save_LIBS=$LIBS
10016LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022/* end confdefs.h. */
10023
Reid Spencera773bd52006-08-04 18:18:08 +000010024/* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027#ifdef __cplusplus
10028extern "C"
10029#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030char dlopen ();
10031int
10032main ()
10033{
Reid Spencera773bd52006-08-04 18:18:08 +000010034return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035 ;
10036 return 0;
10037}
10038_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073 ac_cv_lib_svld_dlopen=yes
10074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010080
Bill Wendlingebcceee2009-04-18 11:20:33 +000010081rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010082 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083LIBS=$ac_check_lib_save_LIBS
10084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010085{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10087if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010089cat >>confdefs.h <<\_ACEOF
10090#define HAVE_LIBDL 1
10091_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092
10093 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010095 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10096echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10097if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099else
10100 ac_check_lib_save_LIBS=$LIBS
10101LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010102cat >conftest.$ac_ext <<_ACEOF
10103/* confdefs.h. */
10104_ACEOF
10105cat confdefs.h >>conftest.$ac_ext
10106cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107/* end confdefs.h. */
10108
Reid Spencera773bd52006-08-04 18:18:08 +000010109/* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112#ifdef __cplusplus
10113extern "C"
10114#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115char dld_link ();
10116int
10117main ()
10118{
Reid Spencera773bd52006-08-04 18:18:08 +000010119return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120 ;
10121 return 0;
10122}
10123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010124rm -f conftest.$ac_objext conftest$ac_exeext
10125if { (ac_try="$ac_link"
10126case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129esac
10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158 ac_cv_lib_dld_dld_link=yes
10159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165
Bill Wendlingebcceee2009-04-18 11:20:33 +000010166rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010167 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168LIBS=$ac_check_lib_save_LIBS
10169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010170{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10172if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174cat >>confdefs.h <<\_ACEOF
10175#define HAVE_DLD 1
10176_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177
10178 LIBADD_DL="$LIBADD_DL -ldld"
10179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010180 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10181echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10182if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10193#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010195/* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char _dyld_func_lookup (); below.
10197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200#ifdef __STDC__
10201# include <limits.h>
10202#else
10203# include <assert.h>
10204#endif
10205
10206#undef _dyld_func_lookup
10207
10208/* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10211#ifdef __cplusplus
10212extern "C"
10213#endif
10214char _dyld_func_lookup ();
10215/* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10219choke me
10220#endif
10221
10222int
10223main ()
10224{
10225return _dyld_func_lookup ();
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_func__dyld_func_lookup=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270fi
Reid Spencera773bd52006-08-04 18:18:08 +000010271
Bill Wendlingebcceee2009-04-18 11:20:33 +000010272rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273 conftest$ac_exeext conftest.$ac_ext
10274fi
10275{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10276echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10277if test $ac_cv_func__dyld_func_lookup = yes; then
10278
10279cat >>confdefs.h <<\_ACEOF
10280#define HAVE_DYLD 1
10281_ACEOF
10282
10283fi
10284
10285
10286fi
10287
10288
10289fi
10290
10291
10292fi
10293
10294rm -f core conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296
10297fi
10298
10299
10300fi
10301
10302
10303fi
10304
10305
10306if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10307then
10308 lt_save_LIBS="$LIBS"
10309 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010310
10311for ac_func in dlerror
10312do
10313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10314{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10327#define $ac_func innocuous_$ac_func
10328
10329/* System header to define __stub macros and hopefully few prototypes,
10330 which can conflict with char $ac_func (); below.
10331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10332 <limits.h> exists even on freestanding compilers. */
10333
10334#ifdef __STDC__
10335# include <limits.h>
10336#else
10337# include <assert.h>
10338#endif
10339
10340#undef $ac_func
10341
10342/* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348char $ac_func ();
10349/* The GNU C library defines this for functions which it implements
10350 to always fail with ENOSYS. Some functions are actually named
10351 something starting with __ and the normal name is an alias. */
10352#if defined __stub_$ac_func || defined __stub___$ac_func
10353choke me
10354#endif
10355
10356int
10357main ()
10358{
10359return $ac_func ();
10360 ;
10361 return 0;
10362}
10363_ACEOF
10364rm -f conftest.$ac_objext conftest$ac_exeext
10365if { (ac_try="$ac_link"
10366case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10369esac
10370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_link") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379 { (case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382esac
10383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_try") 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392esac
10393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 eval "$as_ac_var=yes"
10399else
10400 echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
10402
10403 eval "$as_ac_var=no"
10404fi
10405
10406rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408fi
10409ac_res=`eval echo '${'$as_ac_var'}'`
10410 { echo "$as_me:$LINENO: result: $ac_res" >&5
10411echo "${ECHO_T}$ac_res" >&6; }
10412if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415_ACEOF
10416
10417fi
10418done
10419
10420 LIBS="$lt_save_LIBS"
10421fi
10422ac_ext=c
10423ac_cpp='$CPP $CPPFLAGS'
10424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10426ac_compiler_gnu=$ac_cv_c_compiler_gnu
10427
10428
10429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010430{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10431echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10432if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434else
10435 ac_cv_sys_symbol_underscore=no
10436 cat > conftest.$ac_ext <<EOF
10437void nm_test_func(){}
10438int main(){nm_test_func;return 0;}
10439EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 (eval $ac_compile) 2>&5
10442 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 # Now try to grab the symbols.
10446 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10449 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 # See whether the symbols have a leading underscore.
10453 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10454 ac_cv_sys_symbol_underscore=yes
10455 else
10456 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10457 :
10458 else
10459 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10460 fi
10461 fi
10462 else
10463 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10464 fi
10465 else
10466 echo "configure: failed program was:" >&5
10467 cat conftest.c >&5
10468 fi
10469 rm -rf conftest*
10470
10471fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010472{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10473echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474
10475
10476if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10477 if test x"$libltdl_cv_func_dlopen" = xyes ||
10478 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10480echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10481if test "${libltdl_cv_need_uscore+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483else
10484 libltdl_cv_need_uscore=unknown
10485 save_LIBS="$LIBS"
10486 LIBS="$LIBS $LIBADD_DL"
10487 if test "$cross_compiling" = yes; then :
10488 libltdl_cv_need_uscore=cross
10489else
10490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10491 lt_status=$lt_dlunknown
10492 cat > conftest.$ac_ext <<EOF
Daniel Dunbard45162b2011-12-07 22:07:03 +000010493#line 10493 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494#include "confdefs.h"
10495
10496#if HAVE_DLFCN_H
10497#include <dlfcn.h>
10498#endif
10499
10500#include <stdio.h>
10501
10502#ifdef RTLD_GLOBAL
10503# define LT_DLGLOBAL RTLD_GLOBAL
10504#else
10505# ifdef DL_GLOBAL
10506# define LT_DLGLOBAL DL_GLOBAL
10507# else
10508# define LT_DLGLOBAL 0
10509# endif
10510#endif
10511
10512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10513 find out it does not work in some platform. */
10514#ifndef LT_DLLAZY_OR_NOW
10515# ifdef RTLD_LAZY
10516# define LT_DLLAZY_OR_NOW RTLD_LAZY
10517# else
10518# ifdef DL_LAZY
10519# define LT_DLLAZY_OR_NOW DL_LAZY
10520# else
10521# ifdef RTLD_NOW
10522# define LT_DLLAZY_OR_NOW RTLD_NOW
10523# else
10524# ifdef DL_NOW
10525# define LT_DLLAZY_OR_NOW DL_NOW
10526# else
10527# define LT_DLLAZY_OR_NOW 0
10528# endif
10529# endif
10530# endif
10531# endif
10532#endif
10533
10534#ifdef __cplusplus
10535extern "C" void exit (int);
10536#endif
10537
10538void fnord() { int i=42;}
10539int main ()
10540{
10541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10542 int status = $lt_dlunknown;
10543
10544 if (self)
10545 {
10546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10548 /* dlclose (self); */
10549 }
Reid Spencera773bd52006-08-04 18:18:08 +000010550 else
10551 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552
10553 exit (status);
10554}
10555EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557 (eval $ac_link) 2>&5
10558 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010561 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 lt_status=$?
10563 case x$lt_status in
10564 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10565 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010566 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 esac
10568 else :
10569 # compilation failed
10570
10571 fi
10572fi
10573rm -fr conftest*
10574
10575 LIBS="$save_LIBS"
10576
10577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10579echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 fi
10581fi
10582
10583if test x"$libltdl_cv_need_uscore" = xyes; then
10584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585cat >>confdefs.h <<\_ACEOF
10586#define NEED_USCORE 1
10587_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
10589fi
10590
10591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10593echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10594if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596else
10597 # PORTME does your system automatically load deplibs for dlopen?
10598 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10599 # For now, we just catch OSes we know something about -- in the
10600 # future, we'll try test this programmatically.
10601 libltdl_cv_sys_dlopen_deplibs=unknown
10602 case "$host_os" in
10603 aix3*|aix4.1.*|aix4.2.*)
10604 # Unknown whether this is true for these versions of AIX, but
10605 # we want this `case' here to explicitly catch those versions.
10606 libltdl_cv_sys_dlopen_deplibs=unknown
10607 ;;
10608 aix[45]*)
10609 libltdl_cv_sys_dlopen_deplibs=yes
10610 ;;
10611 darwin*)
10612 # Assuming the user has installed a libdl from somewhere, this is true
10613 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10614 libltdl_cv_sys_dlopen_deplibs=yes
10615 ;;
10616 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10617 # GNU and its variants, using gnu ld.so (Glibc)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10619 ;;
10620 hpux10*|hpux11*)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010623 interix*)
10624 libltdl_cv_sys_dlopen_deplibs=yes
10625 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626 irix[12345]*|irix6.[01]*)
10627 # Catch all versions of IRIX before 6.2, and indicate that we don't
10628 # know how it worked for any of those versions.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10630 ;;
10631 irix*)
10632 # The case above catches anything before 6.2, and it's known that
10633 # at 6.2 and later dlopen does load deplibs.
10634 libltdl_cv_sys_dlopen_deplibs=yes
10635 ;;
10636 netbsd*)
10637 libltdl_cv_sys_dlopen_deplibs=yes
10638 ;;
10639 openbsd*)
10640 libltdl_cv_sys_dlopen_deplibs=yes
10641 ;;
10642 osf[1234]*)
10643 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10644 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010645 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646 libltdl_cv_sys_dlopen_deplibs=no
10647 ;;
10648 osf5.0|osf5.0a|osf5.1)
10649 # dlopen *does* load deplibs and with the right loader patch applied
10650 # it even uses RPATH in a shared library to search for shared objects
10651 # that the library depends on, but there's no easy way to know if that
10652 # patch is installed. Since this is the case, all we can really
10653 # say is unknown -- it depends on the patch being installed. If
10654 # it is, this changes to `yes'. Without it, it would be `no'.
10655 libltdl_cv_sys_dlopen_deplibs=unknown
10656 ;;
10657 osf*)
10658 # the two cases above should catch all versions of osf <= 5.1. Read
10659 # the comments above for what we know about them.
10660 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10661 # is used to find them so we can finally say `yes'.
10662 libltdl_cv_sys_dlopen_deplibs=yes
10663 ;;
10664 solaris*)
10665 libltdl_cv_sys_dlopen_deplibs=yes
10666 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668 libltdl_cv_sys_dlopen_deplibs=yes
10669 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 esac
10671
10672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010673{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10674echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010677cat >>confdefs.h <<\_ACEOF
10678#define LTDL_DLOPEN_DEPLIBS 1
10679_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680
10681fi
10682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010685do
10686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692fi
10693ac_res=`eval echo '${'$as_ac_Header'}'`
10694 { echo "$as_me:$LINENO: result: $ac_res" >&5
10695echo "${ECHO_T}$ac_res" >&6; }
10696else
10697 # Is the header compilable?
10698{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10700cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
10706$ac_includes_default
10707#include <$ac_header>
10708_ACEOF
10709rm -f conftest.$ac_objext
10710if { (ac_try="$ac_compile"
10711case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_compile") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727esac
10728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_header_compiler=yes
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_header_compiler=no
10749fi
10750
10751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10753echo "${ECHO_T}$ac_header_compiler" >&6; }
10754
10755# Is the header present?
10756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10758cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764#include <$ac_header>
10765_ACEOF
10766if { (ac_try="$ac_cpp conftest.$ac_ext"
10767case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770esac
10771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } >/dev/null; then
10779 if test -s conftest.err; then
10780 ac_cpp_err=$ac_c_preproc_warn_flag
10781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10782 else
10783 ac_cpp_err=
10784 fi
10785else
10786 ac_cpp_err=yes
10787fi
10788if test -z "$ac_cpp_err"; then
10789 ac_header_preproc=yes
10790else
10791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 ac_header_preproc=no
10795fi
10796
10797rm -f conftest.err conftest.$ac_ext
10798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799echo "${ECHO_T}$ac_header_preproc" >&6; }
10800
10801# So? What about this header?
10802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803 yes:no: )
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808 ac_header_preproc=yes
10809 ;;
10810 no:yes:* )
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10818echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 ( cat <<\_ASBOX
10824## ----------------------------------- ##
10825## Report this to llvmbugs@cs.uiuc.edu ##
10826## ----------------------------------- ##
10827_ASBOX
10828 ) | sed "s/^/$as_me: WARNING: /" >&2
10829 ;;
10830esac
10831{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 eval "$as_ac_Header=\$ac_header_preproc"
10837fi
10838ac_res=`eval echo '${'$as_ac_Header'}'`
10839 { echo "$as_me:$LINENO: result: $ac_res" >&5
10840echo "${ECHO_T}$ac_res" >&6; }
10841
10842fi
10843if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846_ACEOF
10847
10848fi
10849
10850done
10851
10852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853{ echo "$as_me:$LINENO: checking for error_t" >&5
10854echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10855if test "${ac_cv_type_error_t+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#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865# include <argz.h>
10866#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010867
10868typedef error_t ac__type_new_;
10869int
10870main ()
10871{
10872if ((ac__type_new_ *) 0)
10873 return 0;
10874if (sizeof (ac__type_new_))
10875 return 0;
10876 ;
10877 return 0;
10878}
10879_ACEOF
10880rm -f conftest.$ac_objext
10881if { (ac_try="$ac_compile"
10882case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885esac
10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_compile") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10898esac
10899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (case "(($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_try") 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_cv_type_error_t=yes
10915else
10916 echo "$as_me: failed program was:" >&5
10917sed 's/^/| /' conftest.$ac_ext >&5
10918
10919 ac_cv_type_error_t=no
10920fi
10921
10922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923fi
10924{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10925echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10926if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927
10928cat >>confdefs.h <<_ACEOF
10929#define HAVE_ERROR_T 1
10930_ACEOF
10931
10932
10933else
10934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010935cat >>confdefs.h <<\_ACEOF
10936#define error_t int
10937_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938
10939fi
10940
10941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942
10943
10944
10945
10946
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010948do
10949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10950{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955 cat >conftest.$ac_ext <<_ACEOF
10956/* confdefs.h. */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h. */
10961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10963#define $ac_func innocuous_$ac_func
10964
10965/* System header to define __stub macros and hopefully few prototypes,
10966 which can conflict with char $ac_func (); below.
10967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10968 <limits.h> exists even on freestanding compilers. */
10969
10970#ifdef __STDC__
10971# include <limits.h>
10972#else
10973# include <assert.h>
10974#endif
10975
10976#undef $ac_func
10977
10978/* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981#ifdef __cplusplus
10982extern "C"
10983#endif
10984char $ac_func ();
10985/* The GNU C library defines this for functions which it implements
10986 to always fail with ENOSYS. Some functions are actually named
10987 something starting with __ and the normal name is an alias. */
10988#if defined __stub_$ac_func || defined __stub___$ac_func
10989choke me
10990#endif
10991
10992int
10993main ()
10994{
10995return $ac_func ();
10996 ;
10997 return 0;
10998}
10999_ACEOF
11000rm -f conftest.$ac_objext conftest$ac_exeext
11001if { (ac_try="$ac_link"
11002case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005esac
11006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 eval "$as_ac_var=yes"
11035else
11036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 eval "$as_ac_var=no"
11040fi
11041
11042rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044fi
11045ac_res=`eval echo '${'$as_ac_var'}'`
11046 { echo "$as_me:$LINENO: result: $ac_res" >&5
11047echo "${ECHO_T}$ac_res" >&6; }
11048if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051_ACEOF
11052
11053fi
11054done
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011075
11076
11077
11078
11079
11080
11081
11082
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11084 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011085do
11086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092fi
11093ac_res=`eval echo '${'$as_ac_Header'}'`
11094 { echo "$as_me:$LINENO: result: $ac_res" >&5
11095echo "${ECHO_T}$ac_res" >&6; }
11096else
11097 # Is the header compilable?
11098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11100cat >conftest.$ac_ext <<_ACEOF
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106$ac_includes_default
11107#include <$ac_header>
11108_ACEOF
11109rm -f conftest.$ac_objext
11110if { (ac_try="$ac_compile"
11111case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114esac
11115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_compile") 2>conftest.er1
11117 ac_status=$?
11118 grep -v '^ *+' conftest.er1 >conftest.err
11119 rm -f conftest.er1
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11124 { (case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127esac
11128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_try") 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_header_compiler=yes
11144else
11145 echo "$as_me: failed program was:" >&5
11146sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_header_compiler=no
11149fi
11150
11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11153echo "${ECHO_T}$ac_header_compiler" >&6; }
11154
11155# Is the header present?
11156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11158cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
11164#include <$ac_header>
11165_ACEOF
11166if { (ac_try="$ac_cpp conftest.$ac_ext"
11167case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } >/dev/null; then
11179 if test -s conftest.err; then
11180 ac_cpp_err=$ac_c_preproc_warn_flag
11181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11182 else
11183 ac_cpp_err=
11184 fi
11185else
11186 ac_cpp_err=yes
11187fi
11188if test -z "$ac_cpp_err"; then
11189 ac_header_preproc=yes
11190else
11191 echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 ac_header_preproc=no
11195fi
11196
11197rm -f conftest.err conftest.$ac_ext
11198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11199echo "${ECHO_T}$ac_header_preproc" >&6; }
11200
11201# So? What about this header?
11202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203 yes:no: )
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11208 ac_header_preproc=yes
11209 ;;
11210 no:yes:* )
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223 ( cat <<\_ASBOX
11224## ----------------------------------- ##
11225## Report this to llvmbugs@cs.uiuc.edu ##
11226## ----------------------------------- ##
11227_ASBOX
11228 ) | sed "s/^/$as_me: WARNING: /" >&2
11229 ;;
11230esac
11231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235else
11236 eval "$as_ac_Header=\$ac_header_preproc"
11237fi
11238ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240echo "${ECHO_T}$ac_res" >&6; }
11241
11242fi
11243if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246_ACEOF
11247
11248fi
11249
11250done
11251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252
11253
11254
11255
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011257do
11258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264fi
11265ac_res=`eval echo '${'$as_ac_Header'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267echo "${ECHO_T}$ac_res" >&6; }
11268else
11269 # Is the header compilable?
11270{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11272cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
11278$ac_includes_default
11279#include <$ac_header>
11280_ACEOF
11281rm -f conftest.$ac_objext
11282if { (ac_try="$ac_compile"
11283case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_compile") 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_header_compiler=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_header_compiler=no
11321fi
11322
11323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325echo "${ECHO_T}$ac_header_compiler" >&6; }
11326
11327# Is the header present?
11328{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336#include <$ac_header>
11337_ACEOF
11338if { (ac_try="$ac_cpp conftest.$ac_ext"
11339case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } >/dev/null; then
11351 if test -s conftest.err; then
11352 ac_cpp_err=$ac_c_preproc_warn_flag
11353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11354 else
11355 ac_cpp_err=
11356 fi
11357else
11358 ac_cpp_err=yes
11359fi
11360if test -z "$ac_cpp_err"; then
11361 ac_header_preproc=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366 ac_header_preproc=no
11367fi
11368
11369rm -f conftest.err conftest.$ac_ext
11370{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371echo "${ECHO_T}$ac_header_preproc" >&6; }
11372
11373# So? What about this header?
11374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375 yes:no: )
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380 ac_header_preproc=yes
11381 ;;
11382 no:yes:* )
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 ( cat <<\_ASBOX
11396## ----------------------------------- ##
11397## Report this to llvmbugs@cs.uiuc.edu ##
11398## ----------------------------------- ##
11399_ASBOX
11400 ) | sed "s/^/$as_me: WARNING: /" >&2
11401 ;;
11402esac
11403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408 eval "$as_ac_Header=\$ac_header_preproc"
11409fi
11410ac_res=`eval echo '${'$as_ac_Header'}'`
11411 { echo "$as_me:$LINENO: result: $ac_res" >&5
11412echo "${ECHO_T}$ac_res" >&6; }
11413
11414fi
11415if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011416 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418_ACEOF
11419
11420fi
11421
11422done
11423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011424
11425
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011427do
11428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434fi
11435ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437echo "${ECHO_T}$ac_res" >&6; }
11438else
11439 # Is the header compilable?
11440{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
11449#include <$ac_header>
11450_ACEOF
11451rm -f conftest.$ac_objext
11452if { (ac_try="$ac_compile"
11453case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_header_compiler=yes
11486else
11487 echo "$as_me: failed program was:" >&5
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
11490 ac_header_compiler=no
11491fi
11492
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495echo "${ECHO_T}$ac_header_compiler" >&6; }
11496
11497# Is the header present?
11498{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11500cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506#include <$ac_header>
11507_ACEOF
11508if { (ac_try="$ac_cpp conftest.$ac_ext"
11509case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524 else
11525 ac_cpp_err=
11526 fi
11527else
11528 ac_cpp_err=yes
11529fi
11530if test -z "$ac_cpp_err"; then
11531 ac_header_preproc=yes
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_preproc=no
11537fi
11538
11539rm -f conftest.err conftest.$ac_ext
11540{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541echo "${ECHO_T}$ac_header_preproc" >&6; }
11542
11543# So? What about this header?
11544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 yes:no: )
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11551 ;;
11552 no:yes:* )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 ( cat <<\_ASBOX
11566## ----------------------------------- ##
11567## Report this to llvmbugs@cs.uiuc.edu ##
11568## ----------------------------------- ##
11569_ASBOX
11570 ) | sed "s/^/$as_me: WARNING: /" >&2
11571 ;;
11572esac
11573{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 eval "$as_ac_Header=\$ac_header_preproc"
11579fi
11580ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582echo "${ECHO_T}$ac_res" >&6; }
11583
11584fi
11585if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588_ACEOF
11589 break
11590fi
11591
11592done
11593
11594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011595
11596
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011598do
11599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613#define $ac_func innocuous_$ac_func
11614
11615/* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $ac_func (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11619
11620#ifdef __STDC__
11621# include <limits.h>
11622#else
11623# include <assert.h>
11624#endif
11625
11626#undef $ac_func
11627
11628/* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631#ifdef __cplusplus
11632extern "C"
11633#endif
11634char $ac_func ();
11635/* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638#if defined __stub_$ac_func || defined __stub___$ac_func
11639choke me
11640#endif
11641
11642int
11643main ()
11644{
11645return $ac_func ();
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
11651if { (ac_try="$ac_link"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (case "(($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_try") 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 eval "$as_ac_var=yes"
11685else
11686 echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 eval "$as_ac_var=no"
11690fi
11691
11692rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694fi
11695ac_res=`eval echo '${'$as_ac_var'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697echo "${ECHO_T}$ac_res" >&6; }
11698if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701_ACEOF
11702 break
11703fi
11704done
11705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011706
11707
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011709do
11710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724#define $ac_func innocuous_$ac_func
11725
11726/* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11730
11731#ifdef __STDC__
11732# include <limits.h>
11733#else
11734# include <assert.h>
11735#endif
11736
11737#undef $ac_func
11738
11739/* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char $ac_func ();
11746/* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749#if defined __stub_$ac_func || defined __stub___$ac_func
11750choke me
11751#endif
11752
11753int
11754main ()
11755{
11756return $ac_func ();
11757 ;
11758 return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
11762if { (ac_try="$ac_link"
11763case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 eval "$as_ac_var=yes"
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 eval "$as_ac_var=no"
11801fi
11802
11803rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805fi
11806ac_res=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808echo "${ECHO_T}$ac_res" >&6; }
11809if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812_ACEOF
11813 break
11814fi
11815done
11816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011817
11818
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011820do
11821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11822{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11824if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 cat >conftest.$ac_ext <<_ACEOF
11828/* confdefs.h. */
11829_ACEOF
11830cat confdefs.h >>conftest.$ac_ext
11831cat >>conftest.$ac_ext <<_ACEOF
11832/* end confdefs.h. */
11833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11835#define $ac_func innocuous_$ac_func
11836
11837/* System header to define __stub macros and hopefully few prototypes,
11838 which can conflict with char $ac_func (); below.
11839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 <limits.h> exists even on freestanding compilers. */
11841
11842#ifdef __STDC__
11843# include <limits.h>
11844#else
11845# include <assert.h>
11846#endif
11847
11848#undef $ac_func
11849
11850/* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11853#ifdef __cplusplus
11854extern "C"
11855#endif
11856char $ac_func ();
11857/* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860#if defined __stub_$ac_func || defined __stub___$ac_func
11861choke me
11862#endif
11863
11864int
11865main ()
11866{
11867return $ac_func ();
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext conftest$ac_exeext
11873if { (ac_try="$ac_link"
11874case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_link") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11887 { (case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11890esac
11891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_try") 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest$ac_exeext'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 eval "$as_ac_var=yes"
11907else
11908 echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911 eval "$as_ac_var=no"
11912fi
11913
11914rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916fi
11917ac_res=`eval echo '${'$as_ac_var'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919echo "${ECHO_T}$ac_res" >&6; }
11920if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923_ACEOF
11924 break
11925fi
11926done
11927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011928
11929
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011931do
11932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11933{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
11944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11946#define $ac_func innocuous_$ac_func
11947
11948/* System header to define __stub macros and hopefully few prototypes,
11949 which can conflict with char $ac_func (); below.
11950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951 <limits.h> exists even on freestanding compilers. */
11952
11953#ifdef __STDC__
11954# include <limits.h>
11955#else
11956# include <assert.h>
11957#endif
11958
11959#undef $ac_func
11960
11961/* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967char $ac_func ();
11968/* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971#if defined __stub_$ac_func || defined __stub___$ac_func
11972choke me
11973#endif
11974
11975int
11976main ()
11977{
11978return $ac_func ();
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext conftest$ac_exeext
11984if { (ac_try="$ac_link"
11985case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_link") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11998 { (case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_try") 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 eval "$as_ac_var=yes"
12018else
12019 echo "$as_me: failed program was:" >&5
12020sed 's/^/| /' conftest.$ac_ext >&5
12021
12022 eval "$as_ac_var=no"
12023fi
12024
12025rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027fi
12028ac_res=`eval echo '${'$as_ac_var'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030echo "${ECHO_T}$ac_res" >&6; }
12031if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034_ACEOF
12035
12036fi
12037done
12038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012039
12040
12041
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012043do
12044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12047if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058#define $ac_func innocuous_$ac_func
12059
12060/* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12064
12065#ifdef __STDC__
12066# include <limits.h>
12067#else
12068# include <assert.h>
12069#endif
12070
12071#undef $ac_func
12072
12073/* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076#ifdef __cplusplus
12077extern "C"
12078#endif
12079char $ac_func ();
12080/* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083#if defined __stub_$ac_func || defined __stub___$ac_func
12084choke me
12085#endif
12086
12087int
12088main ()
12089{
12090return $ac_func ();
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (ac_try="$ac_link"
12097case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100esac
12101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113esac
12114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 eval "$as_ac_var=yes"
12130else
12131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 eval "$as_ac_var=no"
12135fi
12136
12137rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139fi
12140ac_res=`eval echo '${'$as_ac_var'}'`
12141 { echo "$as_me:$LINENO: result: $ac_res" >&5
12142echo "${ECHO_T}$ac_res" >&6; }
12143if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146_ACEOF
12147
12148fi
12149done
12150
12151
Douglas Gregor01746742009-05-11 18:05:52 +000012152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12154echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012155
Reid Spencer86901802004-12-08 23:07:27 +000012156ICC=no
12157IXX=no
12158case $CC in
12159 icc*|icpc*)
12160 ICC=yes
12161 IXX=yes
12162 ;;
12163 *)
12164 ;;
12165esac
12166
Duraid Madina937c60a2006-02-15 07:57:42 +000012167if test "$GCC" != "yes" && test "$ICC" != "yes"
12168then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012169 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12170echo "$as_me: error: gcc|icc required but not found" >&2;}
12171 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012172fi
12173
12174if test "$GXX" != "yes" && test "$IXX" != "yes"
12175then
Eric Christopher73e36da2010-12-08 02:02:14 +000012176 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12177echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012179fi
12180
Reid Spencer86901802004-12-08 23:07:27 +000012181if test "$GCC" = "yes"
12182then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012183 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012184#if !defined(__GNUC__) || __GNUC__ < 3
12185#error Unsupported GCC version
12186#endif
12187
12188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012189rm -f conftest.$ac_objext
12190if { (ac_try="$ac_compile"
12191case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194esac
12195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_compile") 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217esac
12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12229echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12230 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232
Chris Lattner399c7c72008-02-05 19:43:53 +000012233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012234fi
12235
12236if test -z "$llvm_cv_gnu_make_command"
12237then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12239echo "$as_me: error: GNU Make required but not found" >&2;}
12240 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012241fi
12242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243{ echo "$as_me:$LINENO: result: ok" >&5
12244echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012246{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12247echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012248NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12249
12250NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012252{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12253echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012254
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256
12257{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12258echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12259if test "${ac_cv_lib_m_sin+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012261else
12262 ac_check_lib_save_LIBS=$LIBS
12263LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012264cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012269/* end confdefs.h. */
12270
Reid Spencera773bd52006-08-04 18:18:08 +000012271/* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012274#ifdef __cplusplus
12275extern "C"
12276#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012277char sin ();
12278int
12279main ()
12280{
Reid Spencera773bd52006-08-04 18:18:08 +000012281return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012282 ;
12283 return 0;
12284}
12285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012286rm -f conftest.$ac_objext conftest$ac_exeext
12287if { (ac_try="$ac_link"
12288case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291esac
12292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012320 ac_cv_lib_m_sin=yes
12321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327
Bill Wendlingebcceee2009-04-18 11:20:33 +000012328rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012330LIBS=$ac_check_lib_save_LIBS
12331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12333echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12334if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_LIBM 1
12337_ACEOF
12338
12339 LIBS="-lm $LIBS"
12340
12341fi
12342
Jeff Cohen28783c32007-01-12 18:22:38 +000012343if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344
12345{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12346echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12347if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012357/* end confdefs.h. */
12358
Reid Spencer48fdf912006-06-01 19:03:21 +000012359
Reid Spencer484fc8e2006-06-01 16:55:59 +000012360int
12361main ()
12362{
Reid Spencera773bd52006-08-04 18:18:08 +000012363return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012364 ;
12365 return 0;
12366}
12367_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012368rm -f conftest.$ac_objext conftest$ac_exeext
12369if { (ac_try="$ac_link"
12370case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012402 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409
Bill Wendlingebcceee2009-04-18 11:20:33 +000012410rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012412LIBS=$ac_check_lib_save_LIBS
12413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12415echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12416if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012417 cat >>confdefs.h <<_ACEOF
12418#define HAVE_LIBIMAGEHLP 1
12419_ACEOF
12420
12421 LIBS="-limagehlp $LIBS"
12422
12423fi
12424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012425
12426{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12427echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12428if test "${ac_cv_lib_psapi_main+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012430else
12431 ac_check_lib_save_LIBS=$LIBS
12432LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012438/* end confdefs.h. */
12439
Reid Spencer48fdf912006-06-01 19:03:21 +000012440
Reid Spencer484fc8e2006-06-01 16:55:59 +000012441int
12442main ()
12443{
Reid Spencera773bd52006-08-04 18:18:08 +000012444return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012445 ;
12446 return 0;
12447}
12448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012449rm -f conftest.$ac_objext conftest$ac_exeext
12450if { (ac_try="$ac_link"
12451case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12454esac
12455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_link") 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477esac
12478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012483 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485 echo "$as_me: failed program was:" >&5
12486sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490
Bill Wendlingebcceee2009-04-18 11:20:33 +000012491rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012493LIBS=$ac_check_lib_save_LIBS
12494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12496echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12497if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012498 cat >>confdefs.h <<_ACEOF
12499#define HAVE_LIBPSAPI 1
12500_ACEOF
12501
12502 LIBS="-lpsapi $LIBS"
12503
12504fi
12505
12506fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12509echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12510if test "${ac_cv_search_dlopen+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012512else
12513 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514cat >conftest.$ac_ext <<_ACEOF
12515/* confdefs.h. */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012520
Reid Spencera773bd52006-08-04 18:18:08 +000012521/* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012524#ifdef __cplusplus
12525extern "C"
12526#endif
John Criswell7a73b802003-06-30 21:59:07 +000012527char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012528int
12529main ()
12530{
Reid Spencera773bd52006-08-04 18:18:08 +000012531return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012532 ;
12533 return 0;
12534}
12535_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012536for ac_lib in '' dl; do
12537 if test -z "$ac_lib"; then
12538 ac_res="none required"
12539 else
12540 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012542 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012543 rm -f conftest.$ac_objext conftest$ac_exeext
12544if { (ac_try="$ac_link"
12545case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548esac
12549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571esac
12572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012577 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578else
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582
John Criswell7a73b802003-06-30 21:59:07 +000012583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584
Bill Wendlingebcceee2009-04-18 11:20:33 +000012585rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586 conftest$ac_exeext
12587 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012588 break
John Criswell7a73b802003-06-30 21:59:07 +000012589fi
Reid Spencera773bd52006-08-04 18:18:08 +000012590done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012591if test "${ac_cv_search_dlopen+set}" = set; then
12592 :
Reid Spencera773bd52006-08-04 18:18:08 +000012593else
12594 ac_cv_search_dlopen=no
12595fi
12596rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012597LIBS=$ac_func_search_save_LIBS
12598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12600echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012601ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012602if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605cat >>confdefs.h <<\_ACEOF
12606#define HAVE_DLOPEN 1
12607_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012608
12609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12611echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012612fi
12613
12614
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012615if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012616 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12617echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12618if test "${ac_cv_search_ffi_call+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012620else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012621 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012622cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012627/* end confdefs.h. */
12628
12629/* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12632#ifdef __cplusplus
12633extern "C"
12634#endif
12635char ffi_call ();
12636int
12637main ()
12638{
12639return ffi_call ();
12640 ;
12641 return 0;
12642}
12643_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012644for ac_lib in '' ffi; do
12645 if test -z "$ac_lib"; then
12646 ac_res="none required"
12647 else
12648 ac_res=-l$ac_lib
12649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12650 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012651 rm -f conftest.$ac_objext conftest$ac_exeext
12652if { (ac_try="$ac_link"
12653case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_link") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012685 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686else
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012692
Bill Wendlingebcceee2009-04-18 11:20:33 +000012693rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694 conftest$ac_exeext
12695 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012696 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012697fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012698done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699if test "${ac_cv_search_ffi_call+set}" = set; then
12700 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012701else
12702 ac_cv_search_ffi_call=no
12703fi
12704rm conftest.$ac_ext
12705LIBS=$ac_func_search_save_LIBS
12706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12708echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012709ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012713cat >>confdefs.h <<\_ACEOF
12714#define HAVE_FFI_CALL 1
12715_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012716
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012717else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012718 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12719echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12720 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012721fi
12722
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012723fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012725{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12726echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12727if test "${ac_cv_search_mallinfo+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012729else
12730 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731cat >conftest.$ac_ext <<_ACEOF
12732/* confdefs.h. */
12733_ACEOF
12734cat confdefs.h >>conftest.$ac_ext
12735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012737
Reid Spencera773bd52006-08-04 18:18:08 +000012738/* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012741#ifdef __cplusplus
12742extern "C"
12743#endif
John Criswell7a73b802003-06-30 21:59:07 +000012744char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012745int
12746main ()
12747{
Reid Spencera773bd52006-08-04 18:18:08 +000012748return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012749 ;
12750 return 0;
12751}
12752_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012753for ac_lib in '' malloc; do
12754 if test -z "$ac_lib"; then
12755 ac_res="none required"
12756 else
12757 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012759 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012760 rm -f conftest.$ac_objext conftest$ac_exeext
12761if { (ac_try="$ac_link"
12762case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765esac
12766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012794 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795else
12796 echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799
John Criswell7a73b802003-06-30 21:59:07 +000012800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801
Bill Wendlingebcceee2009-04-18 11:20:33 +000012802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803 conftest$ac_exeext
12804 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012805 break
John Criswell7a73b802003-06-30 21:59:07 +000012806fi
Reid Spencera773bd52006-08-04 18:18:08 +000012807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808if test "${ac_cv_search_mallinfo+set}" = set; then
12809 :
Reid Spencera773bd52006-08-04 18:18:08 +000012810else
12811 ac_cv_search_mallinfo=no
12812fi
12813rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012814LIBS=$ac_func_search_save_LIBS
12815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012816{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12817echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012818ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822cat >>confdefs.h <<\_ACEOF
12823#define HAVE_MALLINFO 1
12824_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012825
12826fi
12827
12828
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012829if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830
12831{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12832echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12833if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012835else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012836 ac_check_lib_save_LIBS=$LIBS
12837LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012838cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012843/* end confdefs.h. */
12844
Reid Spencera773bd52006-08-04 18:18:08 +000012845/* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012848#ifdef __cplusplus
12849extern "C"
12850#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012851char pthread_mutex_init ();
12852int
12853main ()
12854{
Reid Spencera773bd52006-08-04 18:18:08 +000012855return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012856 ;
12857 return 0;
12858}
12859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860rm -f conftest.$ac_objext conftest$ac_exeext
12861if { (ac_try="$ac_link"
12862case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865esac
12866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_link") 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest$ac_exeext'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012894 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012896 echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901
Bill Wendlingebcceee2009-04-18 11:20:33 +000012902rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012903 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012904LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12907echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12908if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012909 cat >>confdefs.h <<_ACEOF
12910#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012911_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012912
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012913 LIBS="-lpthread $LIBS"
12914
Reid Spencer22177fe2005-07-12 15:24:20 +000012915fi
12916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012917 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12918echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12919if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012921else
12922 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012928/* end confdefs.h. */
12929
Reid Spencera773bd52006-08-04 18:18:08 +000012930/* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012933#ifdef __cplusplus
12934extern "C"
12935#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012936char pthread_mutex_lock ();
12937int
12938main ()
12939{
Reid Spencera773bd52006-08-04 18:18:08 +000012940return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012941 ;
12942 return 0;
12943}
12944_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012945for ac_lib in '' pthread; do
12946 if test -z "$ac_lib"; then
12947 ac_res="none required"
12948 else
12949 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012951 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952 rm -f conftest.$ac_objext conftest$ac_exeext
12953if { (ac_try="$ac_link"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_link") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970esac
12971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest$ac_exeext'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012986 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
12991
Brian Gaeke5f268f72003-12-05 19:29:01 +000012992fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993
Bill Wendlingebcceee2009-04-18 11:20:33 +000012994rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012995 conftest$ac_exeext
12996 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012997 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012998fi
Reid Spencera773bd52006-08-04 18:18:08 +000012999done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13001 :
Reid Spencera773bd52006-08-04 18:18:08 +000013002else
13003 ac_cv_search_pthread_mutex_lock=no
13004fi
13005rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013006LIBS=$ac_func_search_save_LIBS
13007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013008{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13009echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013010ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013011if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014cat >>confdefs.h <<\_ACEOF
13015#define HAVE_PTHREAD_MUTEX_LOCK 1
13016_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013017
13018fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13021echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13022if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013024else
13025 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026cat >conftest.$ac_ext <<_ACEOF
13027/* confdefs.h. */
13028_ACEOF
13029cat confdefs.h >>conftest.$ac_ext
13030cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013031/* end confdefs.h. */
13032
13033/* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036#ifdef __cplusplus
13037extern "C"
13038#endif
13039char pthread_rwlock_init ();
13040int
13041main ()
13042{
13043return pthread_rwlock_init ();
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048for ac_lib in '' pthread; do
13049 if test -z "$ac_lib"; then
13050 ac_res="none required"
13051 else
13052 ac_res=-l$ac_lib
13053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13054 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013055 rm -f conftest.$ac_objext conftest$ac_exeext
13056if { (ac_try="$ac_link"
13057case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013089 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094
Owen Andersonde8aed22009-06-16 18:20:20 +000013095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013096
Owen Andersonde8aed22009-06-16 18:20:20 +000013097rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013098 conftest$ac_exeext
13099 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013100 break
13101fi
13102done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13104 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013105else
13106 ac_cv_search_pthread_rwlock_init=no
13107fi
13108rm conftest.$ac_ext
13109LIBS=$ac_func_search_save_LIBS
13110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13112echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013113ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013117cat >>confdefs.h <<\_ACEOF
13118#define HAVE_PTHREAD_RWLOCK_INIT 1
13119_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013120
13121fi
13122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13124echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13125if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013127else
13128 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013129cat >conftest.$ac_ext <<_ACEOF
13130/* confdefs.h. */
13131_ACEOF
13132cat confdefs.h >>conftest.$ac_ext
13133cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013134/* end confdefs.h. */
13135
13136/* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139#ifdef __cplusplus
13140extern "C"
13141#endif
13142char pthread_getspecific ();
13143int
13144main ()
13145{
13146return pthread_getspecific ();
13147 ;
13148 return 0;
13149}
13150_ACEOF
13151for ac_lib in '' pthread; do
13152 if test -z "$ac_lib"; then
13153 ac_res="none required"
13154 else
13155 ac_res=-l$ac_lib
13156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13157 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013158 rm -f conftest.$ac_objext conftest$ac_exeext
13159if { (ac_try="$ac_link"
13160case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163esac
13164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_link") 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176esac
13177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_try") 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest$ac_exeext'
13183 { (case "(($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_try") 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013192 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193else
13194 echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
13197
Owen Anderson27fcfe12009-06-25 23:10:26 +000013198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013199
Owen Anderson27fcfe12009-06-25 23:10:26 +000013200rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013201 conftest$ac_exeext
13202 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013203 break
13204fi
13205done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13207 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013208else
13209 ac_cv_search_pthread_getspecific=no
13210fi
13211rm conftest.$ac_ext
13212LIBS=$ac_func_search_save_LIBS
13213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13215echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013216ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220cat >>confdefs.h <<\_ACEOF
13221#define HAVE_PTHREAD_GETSPECIFIC 1
13222_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013223
13224fi
13225
Reid Spencer0a262ba2005-08-24 10:07:20 +000013226fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013227
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013228
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013229# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013231 withval=$with_udis86;
13232 USE_UDIS86=1
13233
13234 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013235 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013236 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13237 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238
13239{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13240echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13241if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013243else
13244 ac_check_lib_save_LIBS=$LIBS
13245LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-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
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013251/* end confdefs.h. */
13252
13253/* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256#ifdef __cplusplus
13257extern "C"
13258#endif
13259char ud_init ();
13260int
13261main ()
13262{
13263return ud_init ();
13264 ;
13265 return 0;
13266}
13267_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268rm -f conftest.$ac_objext conftest$ac_exeext
13269if { (ac_try="$ac_link"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013302 ac_cv_lib_udis86_ud_init=yes
13303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304 echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309
Bill Wendlingebcceee2009-04-18 11:20:33 +000013310rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013311 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013312LIBS=$ac_check_lib_save_LIBS
13313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13315echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13316if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013317 cat >>confdefs.h <<_ACEOF
13318#define HAVE_LIBUDIS86 1
13319_ACEOF
13320
13321 LIBS="-ludis86 $LIBS"
13322
13323else
13324
13325 echo "Error! You need to have libudis86 around."
13326 exit -1
13327
13328fi
13329
13330
13331else
13332 USE_UDIS86=0
13333
13334fi
13335
13336
13337cat >>confdefs.h <<_ACEOF
13338#define USE_UDIS86 $USE_UDIS86
13339_ACEOF
13340
13341
13342
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013343# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013345 withval=$with_oprofile;
13346 USE_OPROFILE=1
13347
13348 case "$withval" in
13349 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013350 no) llvm_cv_oppath=
13351 USE_OPROFILE=0
13352 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013353 *) llvm_cv_oppath="${withval}/lib/oprofile"
13354 CPPFLAGS="-I${withval}/include";;
13355 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013356 if test -n "$llvm_cv_oppath" ; then
13357 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13359echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13360if test "${ac_cv_search_bfd_init+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013362else
13363 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013369/* end confdefs.h. */
13370
13371/* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13374#ifdef __cplusplus
13375extern "C"
13376#endif
13377char bfd_init ();
13378int
13379main ()
13380{
13381return bfd_init ();
13382 ;
13383 return 0;
13384}
13385_ACEOF
13386for ac_lib in '' bfd; do
13387 if test -z "$ac_lib"; then
13388 ac_res="none required"
13389 else
13390 ac_res=-l$ac_lib
13391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13392 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393 rm -f conftest.$ac_objext conftest$ac_exeext
13394if { (ac_try="$ac_link"
13395case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398esac
13399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest$ac_exeext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013427 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013435rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436 conftest$ac_exeext
13437 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013438 break
13439fi
13440done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441if test "${ac_cv_search_bfd_init+set}" = set; then
13442 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013443else
13444 ac_cv_search_bfd_init=no
13445fi
13446rm conftest.$ac_ext
13447LIBS=$ac_func_search_save_LIBS
13448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13450echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013451ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13454
13455fi
13456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13458echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13459if test "${ac_cv_search_op_open_agent+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013461else
13462 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013468/* end confdefs.h. */
13469
13470/* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473#ifdef __cplusplus
13474extern "C"
13475#endif
13476char op_open_agent ();
13477int
13478main ()
13479{
13480return op_open_agent ();
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485for ac_lib in '' opagent; do
13486 if test -z "$ac_lib"; then
13487 ac_res="none required"
13488 else
13489 ac_res=-l$ac_lib
13490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13491 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492 rm -f conftest.$ac_objext conftest$ac_exeext
13493if { (ac_try="$ac_link"
13494case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510esac
13511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013526 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013527else
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
13531
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013534rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013535 conftest$ac_exeext
13536 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013537 break
13538fi
13539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540if test "${ac_cv_search_op_open_agent+set}" = set; then
13541 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013542else
13543 ac_cv_search_op_open_agent=no
13544fi
13545rm conftest.$ac_ext
13546LIBS=$ac_func_search_save_LIBS
13547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013548{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13549echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013550ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013551if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13553
13554else
13555
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013556 echo "Error! You need to have libopagent around."
13557 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013558
13559fi
13560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561 if test "${ac_cv_header_opagent_h+set}" = set; then
13562 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13563echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13564if test "${ac_cv_header_opagent_h+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566fi
13567{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13568echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13569else
13570 # Is the header compilable?
13571{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13572echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579$ac_includes_default
13580#include <opagent.h>
13581_ACEOF
13582rm -f conftest.$ac_objext
13583if { (ac_try="$ac_compile"
13584case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
13588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_compile") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600esac
13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest.$ac_objext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_header_compiler=yes
13617else
13618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621 ac_header_compiler=no
13622fi
13623
13624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13626echo "${ECHO_T}$ac_header_compiler" >&6; }
13627
13628# Is the header present?
13629{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13630echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13631cat >conftest.$ac_ext <<_ACEOF
13632/* confdefs.h. */
13633_ACEOF
13634cat confdefs.h >>conftest.$ac_ext
13635cat >>conftest.$ac_ext <<_ACEOF
13636/* end confdefs.h. */
13637#include <opagent.h>
13638_ACEOF
13639if { (ac_try="$ac_cpp conftest.$ac_ext"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } >/dev/null; then
13652 if test -s conftest.err; then
13653 ac_cpp_err=$ac_c_preproc_warn_flag
13654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13655 else
13656 ac_cpp_err=
13657 fi
13658else
13659 ac_cpp_err=yes
13660fi
13661if test -z "$ac_cpp_err"; then
13662 ac_header_preproc=yes
13663else
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 ac_header_preproc=no
13668fi
13669
13670rm -f conftest.err conftest.$ac_ext
13671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672echo "${ECHO_T}$ac_header_preproc" >&6; }
13673
13674# So? What about this header?
13675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13676 yes:no: )
13677 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13678echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13680echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13681 ac_header_preproc=yes
13682 ;;
13683 no:yes:* )
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13685echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13687echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13689echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13691echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13693echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13695echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13696 ( cat <<\_ASBOX
13697## ----------------------------------- ##
13698## Report this to llvmbugs@cs.uiuc.edu ##
13699## ----------------------------------- ##
13700_ASBOX
13701 ) | sed "s/^/$as_me: WARNING: /" >&2
13702 ;;
13703esac
13704{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13705echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13706if test "${ac_cv_header_opagent_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 ac_cv_header_opagent_h=$ac_header_preproc
13710fi
13711{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13712echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13713
13714fi
13715if test $ac_cv_header_opagent_h = yes; then
13716 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013717else
13718
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013719 echo "Error! You need to have opagent.h around."
13720 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013721
13722fi
13723
13724
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013725 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013726
13727else
13728
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013729 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013730
13731
13732fi
13733
13734
13735cat >>confdefs.h <<_ACEOF
13736#define USE_OPROFILE $USE_OPROFILE
13737_ACEOF
13738
13739
13740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013741
13742
13743
13744
13745
Reid Spencer59473af2004-12-25 07:31:29 +000013746ac_header_dirent=no
13747for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13749{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13750echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013759/* end confdefs.h. */
13760#include <sys/types.h>
13761#include <$ac_hdr>
13762
13763int
13764main ()
13765{
13766if ((DIR *) 0)
13767return 0;
13768 ;
13769 return 0;
13770}
13771_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772rm -f conftest.$ac_objext
13773if { (ac_try="$ac_compile"
13774case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_compile") 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790esac
13791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013806 eval "$as_ac_Header=yes"
13807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808 echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813
Reid Spencera773bd52006-08-04 18:18:08 +000013814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816ac_res=`eval echo '${'$as_ac_Header'}'`
13817 { echo "$as_me:$LINENO: result: $ac_res" >&5
13818echo "${ECHO_T}$ac_res" >&6; }
13819if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013820 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013822_ACEOF
13823
13824ac_header_dirent=$ac_hdr; break
13825fi
13826
13827done
13828# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13829if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13831echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13832if test "${ac_cv_search_opendir+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013834else
13835 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836cat >conftest.$ac_ext <<_ACEOF
13837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013841/* end confdefs.h. */
13842
Reid Spencera773bd52006-08-04 18:18:08 +000013843/* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013846#ifdef __cplusplus
13847extern "C"
13848#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013849char opendir ();
13850int
13851main ()
13852{
Reid Spencera773bd52006-08-04 18:18:08 +000013853return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013854 ;
13855 return 0;
13856}
13857_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013858for ac_lib in '' dir; do
13859 if test -z "$ac_lib"; then
13860 ac_res="none required"
13861 else
13862 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013864 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013865 rm -f conftest.$ac_objext conftest$ac_exeext
13866if { (ac_try="$ac_link"
13867case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13870esac
13871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13880 { (case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_try") 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest$ac_exeext'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013899 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900else
13901 echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904
Reid Spencer59473af2004-12-25 07:31:29 +000013905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013906
Bill Wendlingebcceee2009-04-18 11:20:33 +000013907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013908 conftest$ac_exeext
13909 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013910 break
Reid Spencer59473af2004-12-25 07:31:29 +000013911fi
Reid Spencera773bd52006-08-04 18:18:08 +000013912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913if test "${ac_cv_search_opendir+set}" = set; then
13914 :
Reid Spencera773bd52006-08-04 18:18:08 +000013915else
13916 ac_cv_search_opendir=no
13917fi
13918rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013919LIBS=$ac_func_search_save_LIBS
13920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013921{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13922echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013923ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013926
13927fi
13928
13929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13931echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13932if test "${ac_cv_search_opendir+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013934else
13935 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936cat >conftest.$ac_ext <<_ACEOF
13937/* confdefs.h. */
13938_ACEOF
13939cat confdefs.h >>conftest.$ac_ext
13940cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013941/* end confdefs.h. */
13942
Reid Spencera773bd52006-08-04 18:18:08 +000013943/* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013946#ifdef __cplusplus
13947extern "C"
13948#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013949char opendir ();
13950int
13951main ()
13952{
Reid Spencera773bd52006-08-04 18:18:08 +000013953return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013954 ;
13955 return 0;
13956}
13957_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013958for ac_lib in '' x; do
13959 if test -z "$ac_lib"; then
13960 ac_res="none required"
13961 else
13962 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013964 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965 rm -f conftest.$ac_objext conftest$ac_exeext
13966if { (ac_try="$ac_link"
13967case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
13979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13980 { (case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983esac
13984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_try") 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993esac
13994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013999 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000else
14001 echo "$as_me: failed program was:" >&5
14002sed 's/^/| /' conftest.$ac_ext >&5
14003
14004
Reid Spencer59473af2004-12-25 07:31:29 +000014005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006
Bill Wendlingebcceee2009-04-18 11:20:33 +000014007rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014008 conftest$ac_exeext
14009 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014010 break
Reid Spencer59473af2004-12-25 07:31:29 +000014011fi
Reid Spencera773bd52006-08-04 18:18:08 +000014012done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013if test "${ac_cv_search_opendir+set}" = set; then
14014 :
Reid Spencera773bd52006-08-04 18:18:08 +000014015else
14016 ac_cv_search_opendir=no
14017fi
14018rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014019LIBS=$ac_func_search_save_LIBS
14020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14022echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014023ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014026
14027fi
14028
14029fi
14030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014031{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14032echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14033if test "${ac_cv_header_mmap_anon+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014035else
14036 ac_ext=c
14037ac_cpp='$CPP $CPPFLAGS'
14038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040ac_compiler_gnu=$ac_cv_c_compiler_gnu
14041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042 cat >conftest.$ac_ext <<_ACEOF
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014047/* end confdefs.h. */
14048#include <sys/mman.h>
14049#include <unistd.h>
14050#include <fcntl.h>
14051int
14052main ()
14053{
14054mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14055 ;
14056 return 0;
14057}
14058_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059rm -f conftest.$ac_objext
14060if { (ac_try="$ac_compile"
14061case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064esac
14065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_compile") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077esac
14078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014093 ac_cv_header_mmap_anon=yes
14094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100
Reid Spencera773bd52006-08-04 18:18:08 +000014101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014102 ac_ext=c
14103ac_cpp='$CPP $CPPFLAGS'
14104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106ac_compiler_gnu=$ac_cv_c_compiler_gnu
14107
14108
14109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14111echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014112if test "$ac_cv_header_mmap_anon" = yes; then
14113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114cat >>confdefs.h <<\_ACEOF
14115#define HAVE_MMAP_ANONYMOUS 1
14116_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014117
14118fi
14119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14121echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14122if test "${ac_cv_header_stat_broken+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125 cat >conftest.$ac_ext <<_ACEOF
14126/* confdefs.h. */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014130/* end confdefs.h. */
14131#include <sys/types.h>
14132#include <sys/stat.h>
14133
Reid Spencera773bd52006-08-04 18:18:08 +000014134#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135# if S_ISBLK (S_IFDIR)
14136You lose.
14137# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014138#endif
14139
Reid Spencera773bd52006-08-04 18:18:08 +000014140#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141# if S_ISBLK (S_IFCHR)
14142You lose.
14143# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014144#endif
14145
Reid Spencera773bd52006-08-04 18:18:08 +000014146#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147# if S_ISLNK (S_IFREG)
14148You lose.
14149# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014150#endif
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153# if S_ISSOCK (S_IFREG)
14154You lose.
14155# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014156#endif
14157
14158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14160 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014161 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162else
14163 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165rm -f conftest*
14166
Reid Spencer59473af2004-12-25 07:31:29 +000014167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14169echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014170if test $ac_cv_header_stat_broken = yes; then
14171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172cat >>confdefs.h <<\_ACEOF
14173#define STAT_MACROS_BROKEN 1
14174_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014175
14176fi
14177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014178{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14179echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14180if test "${ac_cv_header_sys_wait_h+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183 cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014189#include <sys/types.h>
14190#include <sys/wait.h>
14191#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014192# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014193#endif
14194#ifndef WIFEXITED
14195# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14196#endif
14197
John Criswell7a73b802003-06-30 21:59:07 +000014198int
14199main ()
14200{
14201 int s;
14202 wait (&s);
14203 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14204 ;
14205 return 0;
14206}
14207_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208rm -f conftest.$ac_objext
14209if { (ac_try="$ac_compile"
14210case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236esac
14237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014242 ac_cv_header_sys_wait_h=yes
14243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249
Reid Spencera773bd52006-08-04 18:18:08 +000014250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14253echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014254if test $ac_cv_header_sys_wait_h = yes; then
14255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256cat >>confdefs.h <<\_ACEOF
14257#define HAVE_SYS_WAIT_H 1
14258_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014259
14260fi
14261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14263echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14264if test "${ac_cv_header_time+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267 cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014272/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014273#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014274#include <sys/time.h>
14275#include <time.h>
14276
14277int
14278main ()
14279{
14280if ((struct tm *) 0)
14281return 0;
14282 ;
14283 return 0;
14284}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014286rm -f conftest.$ac_objext
14287if { (ac_try="$ac_compile"
14288case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291esac
14292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304esac
14305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014320 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322 echo "$as_me: failed program was:" >&5
14323sed 's/^/| /' conftest.$ac_ext >&5
14324
14325 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014327
Reid Spencera773bd52006-08-04 18:18:08 +000014328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14331echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014332if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334cat >>confdefs.h <<\_ACEOF
14335#define TIME_WITH_SYS_TIME 1
14336_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014337
14338fi
14339
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341
14342
14343
14344
14345
14346
Reid Spencer59473af2004-12-25 07:31:29 +000014347for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348do
14349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355fi
14356ac_res=`eval echo '${'$as_ac_Header'}'`
14357 { echo "$as_me:$LINENO: result: $ac_res" >&5
14358echo "${ECHO_T}$ac_res" >&6; }
14359else
14360 # Is the header compilable?
14361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369$ac_includes_default
14370#include <$ac_header>
14371_ACEOF
14372rm -f conftest.$ac_objext
14373if { (ac_try="$ac_compile"
14374case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377esac
14378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_compile") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14387 { (case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_try") 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (case "(($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_try") 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_header_compiler=yes
14407else
14408 echo "$as_me: failed program was:" >&5
14409sed 's/^/| /' conftest.$ac_ext >&5
14410
14411 ac_header_compiler=no
14412fi
14413
14414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14416echo "${ECHO_T}$ac_header_compiler" >&6; }
14417
14418# Is the header present?
14419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14421cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h. */
14427#include <$ac_header>
14428_ACEOF
14429if { (ac_try="$ac_cpp conftest.$ac_ext"
14430case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433esac
14434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } >/dev/null; then
14442 if test -s conftest.err; then
14443 ac_cpp_err=$ac_c_preproc_warn_flag
14444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14445 else
14446 ac_cpp_err=
14447 fi
14448else
14449 ac_cpp_err=yes
14450fi
14451if test -z "$ac_cpp_err"; then
14452 ac_header_preproc=yes
14453else
14454 echo "$as_me: failed program was:" >&5
14455sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 ac_header_preproc=no
14458fi
14459
14460rm -f conftest.err conftest.$ac_ext
14461{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462echo "${ECHO_T}$ac_header_preproc" >&6; }
14463
14464# So? What about this header?
14465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 yes:no: )
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
14472 ;;
14473 no:yes:* )
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14486 ( cat <<\_ASBOX
14487## ----------------------------------- ##
14488## Report this to llvmbugs@cs.uiuc.edu ##
14489## ----------------------------------- ##
14490_ASBOX
14491 ) | sed "s/^/$as_me: WARNING: /" >&2
14492 ;;
14493esac
14494{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 eval "$as_ac_Header=\$ac_header_preproc"
14500fi
14501ac_res=`eval echo '${'$as_ac_Header'}'`
14502 { echo "$as_me:$LINENO: result: $ac_res" >&5
14503echo "${ECHO_T}$ac_res" >&6; }
14504
14505fi
14506if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014507 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014509_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014510
14511fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014512
Reid Spencer59473af2004-12-25 07:31:29 +000014513done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515
14516
14517
14518
14519
14520
Douglas Gregor071d73d2009-05-18 17:21:34 +000014521for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522do
14523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529fi
14530ac_res=`eval echo '${'$as_ac_Header'}'`
14531 { echo "$as_me:$LINENO: result: $ac_res" >&5
14532echo "${ECHO_T}$ac_res" >&6; }
14533else
14534 # Is the header compilable?
14535{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14537cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543$ac_includes_default
14544#include <$ac_header>
14545_ACEOF
14546rm -f conftest.$ac_objext
14547if { (ac_try="$ac_compile"
14548case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551esac
14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_compile") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest.$ac_objext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574esac
14575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_header_compiler=yes
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_header_compiler=no
14586fi
14587
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590echo "${ECHO_T}$ac_header_compiler" >&6; }
14591
14592# Is the header present?
14593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14595cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601#include <$ac_header>
14602_ACEOF
14603if { (ac_try="$ac_cpp conftest.$ac_ext"
14604case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607esac
14608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev/null; then
14616 if test -s conftest.err; then
14617 ac_cpp_err=$ac_c_preproc_warn_flag
14618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14619 else
14620 ac_cpp_err=
14621 fi
14622else
14623 ac_cpp_err=yes
14624fi
14625if test -z "$ac_cpp_err"; then
14626 ac_header_preproc=yes
14627else
14628 echo "$as_me: failed program was:" >&5
14629sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 ac_header_preproc=no
14632fi
14633
14634rm -f conftest.err conftest.$ac_ext
14635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14636echo "${ECHO_T}$ac_header_preproc" >&6; }
14637
14638# So? What about this header?
14639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14640 yes:no: )
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14645 ac_header_preproc=yes
14646 ;;
14647 no:yes:* )
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14660 ( cat <<\_ASBOX
14661## ----------------------------------- ##
14662## Report this to llvmbugs@cs.uiuc.edu ##
14663## ----------------------------------- ##
14664_ASBOX
14665 ) | sed "s/^/$as_me: WARNING: /" >&2
14666 ;;
14667esac
14668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672else
14673 eval "$as_ac_Header=\$ac_header_preproc"
14674fi
14675ac_res=`eval echo '${'$as_ac_Header'}'`
14676 { echo "$as_me:$LINENO: result: $ac_res" >&5
14677echo "${ECHO_T}$ac_res" >&6; }
14678
14679fi
14680if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014681 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014683_ACEOF
14684
14685fi
14686
14687done
14688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689
14690
Douglas Gregor071d73d2009-05-18 17:21:34 +000014691for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692do
14693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699fi
14700ac_res=`eval echo '${'$as_ac_Header'}'`
14701 { echo "$as_me:$LINENO: result: $ac_res" >&5
14702echo "${ECHO_T}$ac_res" >&6; }
14703else
14704 # Is the header compilable?
14705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14707cat >conftest.$ac_ext <<_ACEOF
14708/* confdefs.h. */
14709_ACEOF
14710cat confdefs.h >>conftest.$ac_ext
14711cat >>conftest.$ac_ext <<_ACEOF
14712/* end confdefs.h. */
14713$ac_includes_default
14714#include <$ac_header>
14715_ACEOF
14716rm -f conftest.$ac_objext
14717if { (ac_try="$ac_compile"
14718case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721esac
14722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14731 { (case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734esac
14735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_try") 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest.$ac_objext'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_header_compiler=yes
14751else
14752 echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 ac_header_compiler=no
14756fi
14757
14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760echo "${ECHO_T}$ac_header_compiler" >&6; }
14761
14762# Is the header present?
14763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14765cat >conftest.$ac_ext <<_ACEOF
14766/* confdefs.h. */
14767_ACEOF
14768cat confdefs.h >>conftest.$ac_ext
14769cat >>conftest.$ac_ext <<_ACEOF
14770/* end confdefs.h. */
14771#include <$ac_header>
14772_ACEOF
14773if { (ac_try="$ac_cpp conftest.$ac_ext"
14774case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777esac
14778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } >/dev/null; then
14786 if test -s conftest.err; then
14787 ac_cpp_err=$ac_c_preproc_warn_flag
14788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14789 else
14790 ac_cpp_err=
14791 fi
14792else
14793 ac_cpp_err=yes
14794fi
14795if test -z "$ac_cpp_err"; then
14796 ac_header_preproc=yes
14797else
14798 echo "$as_me: failed program was:" >&5
14799sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_header_preproc=no
14802fi
14803
14804rm -f conftest.err conftest.$ac_ext
14805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806echo "${ECHO_T}$ac_header_preproc" >&6; }
14807
14808# So? What about this header?
14809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14810 yes:no: )
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14815 ac_header_preproc=yes
14816 ;;
14817 no:yes:* )
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14830 ( cat <<\_ASBOX
14831## ----------------------------------- ##
14832## Report this to llvmbugs@cs.uiuc.edu ##
14833## ----------------------------------- ##
14834_ASBOX
14835 ) | sed "s/^/$as_me: WARNING: /" >&2
14836 ;;
14837esac
14838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 eval "$as_ac_Header=\$ac_header_preproc"
14844fi
14845ac_res=`eval echo '${'$as_ac_Header'}'`
14846 { echo "$as_me:$LINENO: result: $ac_res" >&5
14847echo "${ECHO_T}$ac_res" >&6; }
14848
14849fi
14850if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014853_ACEOF
14854
14855fi
14856
14857done
Reid Spencer59473af2004-12-25 07:31:29 +000014858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014859
14860
14861
14862
Daniel Dunbar3e462932011-02-03 02:40:02 +000014863
14864for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014865do
14866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872fi
14873ac_res=`eval echo '${'$as_ac_Header'}'`
14874 { echo "$as_me:$LINENO: result: $ac_res" >&5
14875echo "${ECHO_T}$ac_res" >&6; }
14876else
14877 # Is the header compilable?
14878{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14880cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887#include <$ac_header>
14888_ACEOF
14889rm -f conftest.$ac_objext
14890if { (ac_try="$ac_compile"
14891case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_header_compiler=yes
14924else
14925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_header_compiler=no
14929fi
14930
14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933echo "${ECHO_T}$ac_header_compiler" >&6; }
14934
14935# Is the header present?
14936{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14938cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944#include <$ac_header>
14945_ACEOF
14946if { (ac_try="$ac_cpp conftest.$ac_ext"
14947case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950esac
14951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14962 else
14963 ac_cpp_err=
14964 fi
14965else
14966 ac_cpp_err=yes
14967fi
14968if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_header_preproc=no
14975fi
14976
14977rm -f conftest.err conftest.$ac_ext
14978{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14979echo "${ECHO_T}$ac_header_preproc" >&6; }
14980
14981# So? What about this header?
14982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14983 yes:no: )
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14988 ac_header_preproc=yes
14989 ;;
14990 no:yes:* )
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15003 ( cat <<\_ASBOX
15004## ----------------------------------- ##
15005## Report this to llvmbugs@cs.uiuc.edu ##
15006## ----------------------------------- ##
15007_ASBOX
15008 ) | sed "s/^/$as_me: WARNING: /" >&2
15009 ;;
15010esac
15011{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 eval "$as_ac_Header=\$ac_header_preproc"
15017fi
15018ac_res=`eval echo '${'$as_ac_Header'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020echo "${ECHO_T}$ac_res" >&6; }
15021
15022fi
15023if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015024 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015026_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015027
15028fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015029
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015030done
15031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015032
15033
15034
15035
Douglas Gregor01746742009-05-11 18:05:52 +000015036for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037do
15038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044fi
15045ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047echo "${ECHO_T}$ac_res" >&6; }
15048else
15049 # Is the header compilable?
15050{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058$ac_includes_default
15059#include <$ac_header>
15060_ACEOF
15061rm -f conftest.$ac_objext
15062if { (ac_try="$ac_compile"
15063case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
15075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079esac
15080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest.$ac_objext'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_header_compiler=yes
15096else
15097 echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
15100 ac_header_compiler=no
15101fi
15102
15103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15105echo "${ECHO_T}$ac_header_compiler" >&6; }
15106
15107# Is the header present?
15108{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116#include <$ac_header>
15117_ACEOF
15118if { (ac_try="$ac_cpp conftest.$ac_ext"
15119case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122esac
15123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } >/dev/null; then
15131 if test -s conftest.err; then
15132 ac_cpp_err=$ac_c_preproc_warn_flag
15133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15134 else
15135 ac_cpp_err=
15136 fi
15137else
15138 ac_cpp_err=yes
15139fi
15140if test -z "$ac_cpp_err"; then
15141 ac_header_preproc=yes
15142else
15143 echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146 ac_header_preproc=no
15147fi
15148
15149rm -f conftest.err conftest.$ac_ext
15150{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15151echo "${ECHO_T}$ac_header_preproc" >&6; }
15152
15153# So? What about this header?
15154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15155 yes:no: )
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15160 ac_header_preproc=yes
15161 ;;
15162 no:yes:* )
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15175 ( cat <<\_ASBOX
15176## ----------------------------------- ##
15177## Report this to llvmbugs@cs.uiuc.edu ##
15178## ----------------------------------- ##
15179_ASBOX
15180 ) | sed "s/^/$as_me: WARNING: /" >&2
15181 ;;
15182esac
15183{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187else
15188 eval "$as_ac_Header=\$ac_header_preproc"
15189fi
15190ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192echo "${ECHO_T}$ac_res" >&6; }
15193
15194fi
15195if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015196 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015198_ACEOF
15199
15200fi
15201
15202done
15203
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015204
15205for ac_header in valgrind/valgrind.h
15206do
15207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213fi
15214ac_res=`eval echo '${'$as_ac_Header'}'`
15215 { echo "$as_me:$LINENO: result: $ac_res" >&5
15216echo "${ECHO_T}$ac_res" >&6; }
15217else
15218 # Is the header compilable?
15219{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15221cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228#include <$ac_header>
15229_ACEOF
15230rm -f conftest.$ac_objext
15231if { (ac_try="$ac_compile"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_header_compiler=yes
15265else
15266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_header_compiler=no
15270fi
15271
15272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15274echo "${ECHO_T}$ac_header_compiler" >&6; }
15275
15276# Is the header present?
15277{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15279cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285#include <$ac_header>
15286_ACEOF
15287if { (ac_try="$ac_cpp conftest.$ac_ext"
15288case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291esac
15292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } >/dev/null; then
15300 if test -s conftest.err; then
15301 ac_cpp_err=$ac_c_preproc_warn_flag
15302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15303 else
15304 ac_cpp_err=
15305 fi
15306else
15307 ac_cpp_err=yes
15308fi
15309if test -z "$ac_cpp_err"; then
15310 ac_header_preproc=yes
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_header_preproc=no
15316fi
15317
15318rm -f conftest.err conftest.$ac_ext
15319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15320echo "${ECHO_T}$ac_header_preproc" >&6; }
15321
15322# So? What about this header?
15323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 yes:no: )
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15329 ac_header_preproc=yes
15330 ;;
15331 no:yes:* )
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15344 ( cat <<\_ASBOX
15345## ----------------------------------- ##
15346## Report this to llvmbugs@cs.uiuc.edu ##
15347## ----------------------------------- ##
15348_ASBOX
15349 ) | sed "s/^/$as_me: WARNING: /" >&2
15350 ;;
15351esac
15352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357 eval "$as_ac_Header=\$ac_header_preproc"
15358fi
15359ac_res=`eval echo '${'$as_ac_Header'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361echo "${ECHO_T}$ac_res" >&6; }
15362
15363fi
15364if test `eval echo '${'$as_ac_Header'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367_ACEOF
15368
15369fi
15370
15371done
15372
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015373
15374for ac_header in fenv.h
15375do
15376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15382fi
15383ac_res=`eval echo '${'$as_ac_Header'}'`
15384 { echo "$as_me:$LINENO: result: $ac_res" >&5
15385echo "${ECHO_T}$ac_res" >&6; }
15386else
15387 # Is the header compilable?
15388{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15390cat >conftest.$ac_ext <<_ACEOF
15391/* confdefs.h. */
15392_ACEOF
15393cat confdefs.h >>conftest.$ac_ext
15394cat >>conftest.$ac_ext <<_ACEOF
15395/* end confdefs.h. */
15396$ac_includes_default
15397#include <$ac_header>
15398_ACEOF
15399rm -f conftest.$ac_objext
15400if { (ac_try="$ac_compile"
15401case "(($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_compile") 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417esac
15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427esac
15428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_header_compiler=yes
15434else
15435 echo "$as_me: failed program was:" >&5
15436sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 ac_header_compiler=no
15439fi
15440
15441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443echo "${ECHO_T}$ac_header_compiler" >&6; }
15444
15445# Is the header present?
15446{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15448cat >conftest.$ac_ext <<_ACEOF
15449/* confdefs.h. */
15450_ACEOF
15451cat confdefs.h >>conftest.$ac_ext
15452cat >>conftest.$ac_ext <<_ACEOF
15453/* end confdefs.h. */
15454#include <$ac_header>
15455_ACEOF
15456if { (ac_try="$ac_cpp conftest.$ac_ext"
15457case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460esac
15461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } >/dev/null; then
15469 if test -s conftest.err; then
15470 ac_cpp_err=$ac_c_preproc_warn_flag
15471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15472 else
15473 ac_cpp_err=
15474 fi
15475else
15476 ac_cpp_err=yes
15477fi
15478if test -z "$ac_cpp_err"; then
15479 ac_header_preproc=yes
15480else
15481 echo "$as_me: failed program was:" >&5
15482sed 's/^/| /' conftest.$ac_ext >&5
15483
15484 ac_header_preproc=no
15485fi
15486
15487rm -f conftest.err conftest.$ac_ext
15488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489echo "${ECHO_T}$ac_header_preproc" >&6; }
15490
15491# So? What about this header?
15492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15493 yes:no: )
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc=yes
15499 ;;
15500 no:yes:* )
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15513 ( cat <<\_ASBOX
15514## ----------------------------------- ##
15515## Report this to llvmbugs@cs.uiuc.edu ##
15516## ----------------------------------- ##
15517_ASBOX
15518 ) | sed "s/^/$as_me: WARNING: /" >&2
15519 ;;
15520esac
15521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525else
15526 eval "$as_ac_Header=\$ac_header_preproc"
15527fi
15528ac_res=`eval echo '${'$as_ac_Header'}'`
15529 { echo "$as_me:$LINENO: result: $ac_res" >&5
15530echo "${ECHO_T}$ac_res" >&6; }
15531
15532fi
15533if test `eval echo '${'$as_ac_Header'}'` = yes; then
15534 cat >>confdefs.h <<_ACEOF
15535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15536_ACEOF
15537
15538fi
15539
15540done
15541
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015542if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015543
15544for ac_header in pthread.h
15545do
15546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552fi
15553ac_res=`eval echo '${'$as_ac_Header'}'`
15554 { echo "$as_me:$LINENO: result: $ac_res" >&5
15555echo "${ECHO_T}$ac_res" >&6; }
15556else
15557 # Is the header compilable?
15558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15560cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566$ac_includes_default
15567#include <$ac_header>
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (ac_try="$ac_compile"
15571case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15574esac
15575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_compile") 2>conftest.er1
15577 ac_status=$?
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587esac
15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597esac
15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_header_compiler=yes
15604else
15605 echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ac_header_compiler=no
15609fi
15610
15611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613echo "${ECHO_T}$ac_header_compiler" >&6; }
15614
15615# Is the header present?
15616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h. */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h. */
15624#include <$ac_header>
15625_ACEOF
15626if { (ac_try="$ac_cpp conftest.$ac_ext"
15627case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } >/dev/null; then
15639 if test -s conftest.err; then
15640 ac_cpp_err=$ac_c_preproc_warn_flag
15641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15642 else
15643 ac_cpp_err=
15644 fi
15645else
15646 ac_cpp_err=yes
15647fi
15648if test -z "$ac_cpp_err"; then
15649 ac_header_preproc=yes
15650else
15651 echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654 ac_header_preproc=no
15655fi
15656
15657rm -f conftest.err conftest.$ac_ext
15658{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659echo "${ECHO_T}$ac_header_preproc" >&6; }
15660
15661# So? What about this header?
15662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15663 yes:no: )
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668 ac_header_preproc=yes
15669 ;;
15670 no:yes:* )
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15683 ( cat <<\_ASBOX
15684## ----------------------------------- ##
15685## Report this to llvmbugs@cs.uiuc.edu ##
15686## ----------------------------------- ##
15687_ASBOX
15688 ) | sed "s/^/$as_me: WARNING: /" >&2
15689 ;;
15690esac
15691{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695else
15696 eval "$as_ac_Header=\$ac_header_preproc"
15697fi
15698ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701
15702fi
15703if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015704 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015706_ACEOF
15707 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015708
15709else
15710 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015711
15712fi
15713
Reid Spencerbe3e4192007-08-17 05:45:26 +000015714done
Reid Spencer1000b732006-12-01 00:37:14 +000015715
15716else
15717 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015718
15719fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015720
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015721if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015722
15723
15724for ac_header in ffi.h ffi/ffi.h
15725do
15726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732fi
15733ac_res=`eval echo '${'$as_ac_Header'}'`
15734 { echo "$as_me:$LINENO: result: $ac_res" >&5
15735echo "${ECHO_T}$ac_res" >&6; }
15736else
15737 # Is the header compilable?
15738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15740cat >conftest.$ac_ext <<_ACEOF
15741/* confdefs.h. */
15742_ACEOF
15743cat confdefs.h >>conftest.$ac_ext
15744cat >>conftest.$ac_ext <<_ACEOF
15745/* end confdefs.h. */
15746$ac_includes_default
15747#include <$ac_header>
15748_ACEOF
15749rm -f conftest.$ac_objext
15750if { (ac_try="$ac_compile"
15751case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754esac
15755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_compile") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767esac
15768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 ac_header_compiler=yes
15784else
15785 echo "$as_me: failed program was:" >&5
15786sed 's/^/| /' conftest.$ac_ext >&5
15787
15788 ac_header_compiler=no
15789fi
15790
15791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15793echo "${ECHO_T}$ac_header_compiler" >&6; }
15794
15795# Is the header present?
15796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15798cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804#include <$ac_header>
15805_ACEOF
15806if { (ac_try="$ac_cpp conftest.$ac_ext"
15807case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810esac
15811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } >/dev/null; then
15819 if test -s conftest.err; then
15820 ac_cpp_err=$ac_c_preproc_warn_flag
15821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15822 else
15823 ac_cpp_err=
15824 fi
15825else
15826 ac_cpp_err=yes
15827fi
15828if test -z "$ac_cpp_err"; then
15829 ac_header_preproc=yes
15830else
15831 echo "$as_me: failed program was:" >&5
15832sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 ac_header_preproc=no
15835fi
15836
15837rm -f conftest.err conftest.$ac_ext
15838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839echo "${ECHO_T}$ac_header_preproc" >&6; }
15840
15841# So? What about this header?
15842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843 yes:no: )
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15848 ac_header_preproc=yes
15849 ;;
15850 no:yes:* )
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15863 ( cat <<\_ASBOX
15864## ----------------------------------- ##
15865## Report this to llvmbugs@cs.uiuc.edu ##
15866## ----------------------------------- ##
15867_ASBOX
15868 ) | sed "s/^/$as_me: WARNING: /" >&2
15869 ;;
15870esac
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
15875else
15876 eval "$as_ac_Header=\$ac_header_preproc"
15877fi
15878ac_res=`eval echo '${'$as_ac_Header'}'`
15879 { echo "$as_me:$LINENO: result: $ac_res" >&5
15880echo "${ECHO_T}$ac_res" >&6; }
15881
15882fi
15883if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015884 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015886_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015887
15888fi
15889
15890done
15891
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015892fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015893
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015894
Eric Christopher654dee42010-06-22 21:01:04 +000015895for ac_header in CrashReporterClient.h
15896do
15897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903fi
15904ac_res=`eval echo '${'$as_ac_Header'}'`
15905 { echo "$as_me:$LINENO: result: $ac_res" >&5
15906echo "${ECHO_T}$ac_res" >&6; }
15907else
15908 # Is the header compilable?
15909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918#include <$ac_header>
15919_ACEOF
15920rm -f conftest.$ac_objext
15921if { (ac_try="$ac_compile"
15922case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15925esac
15926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_compile") 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15935 { (case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938esac
15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_try") 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948esac
15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_header_compiler=yes
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 ac_header_compiler=no
15960fi
15961
15962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15964echo "${ECHO_T}$ac_header_compiler" >&6; }
15965
15966# Is the header present?
15967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15969cat >conftest.$ac_ext <<_ACEOF
15970/* confdefs.h. */
15971_ACEOF
15972cat confdefs.h >>conftest.$ac_ext
15973cat >>conftest.$ac_ext <<_ACEOF
15974/* end confdefs.h. */
15975#include <$ac_header>
15976_ACEOF
15977if { (ac_try="$ac_cpp conftest.$ac_ext"
15978case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15981esac
15982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } >/dev/null; then
15990 if test -s conftest.err; then
15991 ac_cpp_err=$ac_c_preproc_warn_flag
15992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15993 else
15994 ac_cpp_err=
15995 fi
15996else
15997 ac_cpp_err=yes
15998fi
15999if test -z "$ac_cpp_err"; then
16000 ac_header_preproc=yes
16001else
16002 echo "$as_me: failed program was:" >&5
16003sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_header_preproc=no
16006fi
16007
16008rm -f conftest.err conftest.$ac_ext
16009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16010echo "${ECHO_T}$ac_header_preproc" >&6; }
16011
16012# So? What about this header?
16013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16014 yes:no: )
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16019 ac_header_preproc=yes
16020 ;;
16021 no:yes:* )
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16034 ( cat <<\_ASBOX
16035## ----------------------------------- ##
16036## Report this to llvmbugs@cs.uiuc.edu ##
16037## ----------------------------------- ##
16038_ASBOX
16039 ) | sed "s/^/$as_me: WARNING: /" >&2
16040 ;;
16041esac
16042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else
16047 eval "$as_ac_Header=\$ac_header_preproc"
16048fi
16049ac_res=`eval echo '${'$as_ac_Header'}'`
16050 { echo "$as_me:$LINENO: result: $ac_res" >&5
16051echo "${ECHO_T}$ac_res" >&6; }
16052
16053fi
16054if test `eval echo '${'$as_ac_Header'}'` = yes; then
16055 cat >>confdefs.h <<_ACEOF
16056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057_ACEOF
16058
16059fi
16060
16061done
16062
16063
Eric Christopher51e57132010-12-07 02:05:42 +000016064{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16065echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016066cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016072extern const char *__crashreporter_info__;
16073 int main() {
16074 __crashreporter_info__ = "test";
16075 return 0;
16076 }
Eric Christopher481d4022010-12-03 07:45:22 +000016077
Eric Christopher481d4022010-12-03 07:45:22 +000016078_ACEOF
16079rm -f conftest.$ac_objext conftest$ac_exeext
16080if { (ac_try="$ac_link"
16081case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084esac
16085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_link") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097esac
16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016113 { echo "$as_me:$LINENO: result: yes" >&5
16114echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016115
16116cat >>confdefs.h <<\_ACEOF
16117#define HAVE_CRASHREPORTER_INFO 1
16118_ACEOF
16119
Eric Christopher51e57132010-12-07 02:05:42 +000016120else
16121 echo "$as_me: failed program was:" >&5
16122sed 's/^/| /' conftest.$ac_ext >&5
16123
16124 { echo "$as_me:$LINENO: result: no" >&5
16125echo "${ECHO_T}no" >&6; }
16126
16127cat >>confdefs.h <<\_ACEOF
16128#define HAVE_CRASHREPORTER_INFO 0
16129_ACEOF
16130
Eric Christopher481d4022010-12-03 07:45:22 +000016131fi
Eric Christopher654dee42010-06-22 21:01:04 +000016132
Eric Christopher51e57132010-12-07 02:05:42 +000016133rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16135
16136
Reid Spencer8085cff2005-01-16 02:58:39 +000016137
Torok Edwin871384f2010-01-26 08:50:50 +000016138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016139 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16140echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16141if test "${ac_cv_huge_val_sanity+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016143else
16144
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016145 ac_ext=cpp
16146ac_cpp='$CXXCPP $CPPFLAGS'
16147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016150
Eric Christopherc7718502010-03-02 05:06:54 +000016151 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016152 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016153 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016154 ac_cv_huge_val_sanity=yes
16155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016156 cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016161/* end confdefs.h. */
16162#include <math.h>
16163int
16164main ()
16165{
16166double x = HUGE_VAL; return x != x;
16167 ;
16168 return 0;
16169}
16170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016171rm -f conftest$ac_exeext
16172if { (ac_try="$ac_link"
16173case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176esac
16177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016191 ac_cv_huge_val_sanity=yes
16192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016193 echo "$as_me: program exited with status $ac_status" >&5
16194echo "$as_me: failed program was:" >&5
16195sed 's/^/| /' conftest.$ac_ext >&5
16196
16197( exit $ac_status )
16198ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000016201fi
16202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016203
Eric Christopherc7718502010-03-02 05:06:54 +000016204 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016205 ac_ext=c
16206ac_cpp='$CPP $CPPFLAGS'
16207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209ac_compiler_gnu=$ac_cv_c_compiler_gnu
16210
16211
16212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016213{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16214echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016215 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16216
16217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016218{ echo "$as_me:$LINENO: checking for pid_t" >&5
16219echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16220if test "${ac_cv_type_pid_t+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222else
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
16229$ac_includes_default
16230typedef pid_t ac__type_new_;
16231int
16232main ()
16233{
16234if ((ac__type_new_ *) 0)
16235 return 0;
16236if (sizeof (ac__type_new_))
16237 return 0;
16238 ;
16239 return 0;
16240}
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16257 { (case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260esac
16261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_try") 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_type_pid_t=yes
16277else
16278 echo "$as_me: failed program was:" >&5
16279sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016281 ac_cv_type_pid_t=no
16282fi
16283
16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285fi
16286{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16287echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16288if test $ac_cv_type_pid_t = yes; then
16289 :
John Criswell7a73b802003-06-30 21:59:07 +000016290else
16291
16292cat >>confdefs.h <<_ACEOF
16293#define pid_t int
16294_ACEOF
16295
16296fi
16297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016298{ echo "$as_me:$LINENO: checking for size_t" >&5
16299echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16300if test "${ac_cv_type_size_t+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 cat >conftest.$ac_ext <<_ACEOF
16304/* confdefs.h. */
16305_ACEOF
16306cat confdefs.h >>conftest.$ac_ext
16307cat >>conftest.$ac_ext <<_ACEOF
16308/* end confdefs.h. */
16309$ac_includes_default
16310typedef size_t ac__type_new_;
16311int
16312main ()
16313{
16314if ((ac__type_new_ *) 0)
16315 return 0;
16316if (sizeof (ac__type_new_))
16317 return 0;
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322rm -f conftest.$ac_objext
16323if { (ac_try="$ac_compile"
16324case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327esac
16328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_compile") 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16337 { (case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_try") 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_cv_type_size_t=yes
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016361 ac_cv_type_size_t=no
16362fi
16363
16364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365fi
16366{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16367echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16368if test $ac_cv_type_size_t = yes; then
16369 :
John Criswell7a73b802003-06-30 21:59:07 +000016370else
16371
16372cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016373#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016374_ACEOF
16375
16376fi
16377
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016378
16379cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016380#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016381_ACEOF
16382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016383{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16384echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16385if test "${ac_cv_struct_tm+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016388 cat >conftest.$ac_ext <<_ACEOF
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016393/* end confdefs.h. */
16394#include <sys/types.h>
16395#include <time.h>
16396
16397int
16398main ()
16399{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016400struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016401 ;
16402 return 0;
16403}
16404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405rm -f conftest.$ac_objext
16406if { (ac_try="$ac_compile"
16407case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16410esac
16411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_compile") 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423esac
16424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; } &&
16429 { ac_try='test -s conftest.$ac_objext'
16430 { (case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433esac
16434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_try") 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016439 ac_cv_struct_tm=time.h
16440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016441 echo "$as_me: failed program was:" >&5
16442sed 's/^/| /' conftest.$ac_ext >&5
16443
16444 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016446
Reid Spencera773bd52006-08-04 18:18:08 +000016447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016449{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16450echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016451if test $ac_cv_struct_tm = sys/time.h; then
16452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453cat >>confdefs.h <<\_ACEOF
16454#define TM_IN_SYS_TIME 1
16455_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016456
16457fi
16458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016459{ echo "$as_me:$LINENO: checking for int64_t" >&5
16460echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16461if test "${ac_cv_type_int64_t+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463else
16464 cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471typedef int64_t ac__type_new_;
16472int
16473main ()
16474{
16475if ((ac__type_new_ *) 0)
16476 return 0;
16477if (sizeof (ac__type_new_))
16478 return 0;
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483rm -f conftest.$ac_objext
16484if { (ac_try="$ac_compile"
16485case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_compile") 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_type_int64_t=yes
16518else
16519 echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_cv_type_int64_t=no
16523fi
16524
16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526fi
16527{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16528echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16529if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016530
16531cat >>confdefs.h <<_ACEOF
16532#define HAVE_INT64_T 1
16533_ACEOF
16534
16535
16536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016537 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16538echo "$as_me: error: Type int64_t required but not found" >&2;}
16539 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016540fi
16541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016542{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16543echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16544if test "${ac_cv_type_uint64_t+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547 cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553$ac_includes_default
16554typedef uint64_t ac__type_new_;
16555int
16556main ()
16557{
16558if ((ac__type_new_ *) 0)
16559 return 0;
16560if (sizeof (ac__type_new_))
16561 return 0;
16562 ;
16563 return 0;
16564}
16565_ACEOF
16566rm -f conftest.$ac_objext
16567if { (ac_try="$ac_compile"
16568case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16571esac
16572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594esac
16595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_type_uint64_t=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_cv_type_uint64_t=no
16606fi
16607
16608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609fi
16610{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16611echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16612if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016613
16614cat >>confdefs.h <<_ACEOF
16615#define HAVE_UINT64_T 1
16616_ACEOF
16617
16618
16619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016620 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16621echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16622if test "${ac_cv_type_u_int64_t+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624else
16625 cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631$ac_includes_default
16632typedef u_int64_t ac__type_new_;
16633int
16634main ()
16635{
16636if ((ac__type_new_ *) 0)
16637 return 0;
16638if (sizeof (ac__type_new_))
16639 return 0;
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext
16645if { (ac_try="$ac_compile"
16646case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662esac
16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
16669 { (case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672esac
16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_try") 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_type_u_int64_t=yes
16679else
16680 echo "$as_me: failed program was:" >&5
16681sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_type_u_int64_t=no
16684fi
16685
16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687fi
16688{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16689echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16690if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016691
16692cat >>confdefs.h <<_ACEOF
16693#define HAVE_U_INT64_T 1
16694_ACEOF
16695
16696
Misha Brukmanceca9042004-09-02 23:02:30 +000016697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016698 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16699echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16700 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016701fi
16702
John Criswell679ff312004-09-02 18:44:44 +000016703fi
16704
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016705
16706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016707
16708
16709
16710
16711
16712
16713
Reid Spencerdf3be822006-01-23 08:15:53 +000016714for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016715do
16716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721else
16722 cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
16728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16730#define $ac_func innocuous_$ac_func
16731
16732/* System header to define __stub macros and hopefully few prototypes,
16733 which can conflict with char $ac_func (); below.
16734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16735 <limits.h> exists even on freestanding compilers. */
16736
16737#ifdef __STDC__
16738# include <limits.h>
16739#else
16740# include <assert.h>
16741#endif
16742
16743#undef $ac_func
16744
16745/* Override any GCC internal prototype to avoid an error.
16746 Use char because int might match the return type of a GCC
16747 builtin and then its argument prototype would still apply. */
16748#ifdef __cplusplus
16749extern "C"
16750#endif
16751char $ac_func ();
16752/* The GNU C library defines this for functions which it implements
16753 to always fail with ENOSYS. Some functions are actually named
16754 something starting with __ and the normal name is an alias. */
16755#if defined __stub_$ac_func || defined __stub___$ac_func
16756choke me
16757#endif
16758
16759int
16760main ()
16761{
16762return $ac_func ();
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext conftest$ac_exeext
16768if { (ac_try="$ac_link"
16769case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772esac
16773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_link") 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest$ac_exeext'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 eval "$as_ac_var=yes"
16802else
16803 echo "$as_me: failed program was:" >&5
16804sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 eval "$as_ac_var=no"
16807fi
16808
16809rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811fi
16812ac_res=`eval echo '${'$as_ac_var'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814echo "${ECHO_T}$ac_res" >&6; }
16815if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016816 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016818_ACEOF
16819
16820fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016821done
John Criswell7a73b802003-06-30 21:59:07 +000016822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016823
16824
16825
16826
Reid Spencer96cf5872007-07-13 10:05:30 +000016827for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016828do
16829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834else
16835 cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16843#define $ac_func innocuous_$ac_func
16844
16845/* System header to define __stub macros and hopefully few prototypes,
16846 which can conflict with char $ac_func (); below.
16847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16848 <limits.h> exists even on freestanding compilers. */
16849
16850#ifdef __STDC__
16851# include <limits.h>
16852#else
16853# include <assert.h>
16854#endif
16855
16856#undef $ac_func
16857
16858/* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861#ifdef __cplusplus
16862extern "C"
16863#endif
16864char $ac_func ();
16865/* The GNU C library defines this for functions which it implements
16866 to always fail with ENOSYS. Some functions are actually named
16867 something starting with __ and the normal name is an alias. */
16868#if defined __stub_$ac_func || defined __stub___$ac_func
16869choke me
16870#endif
16871
16872int
16873main ()
16874{
16875return $ac_func ();
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext conftest$ac_exeext
16881if { (ac_try="$ac_link"
16882case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885esac
16886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898esac
16899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 eval "$as_ac_var=yes"
16915else
16916 echo "$as_me: failed program was:" >&5
16917sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 eval "$as_ac_var=no"
16920fi
16921
16922rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16924fi
16925ac_res=`eval echo '${'$as_ac_var'}'`
16926 { echo "$as_me:$LINENO: result: $ac_res" >&5
16927echo "${ECHO_T}$ac_res" >&6; }
16928if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016929 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016931_ACEOF
16932
16933fi
16934done
16935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016936
16937
16938
16939
16940
Reid Spencerb90645c2007-02-16 19:17:20 +000016941for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016942do
16943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948else
16949 cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
16955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16957#define $ac_func innocuous_$ac_func
16958
16959/* System header to define __stub macros and hopefully few prototypes,
16960 which can conflict with char $ac_func (); below.
16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962 <limits.h> exists even on freestanding compilers. */
16963
16964#ifdef __STDC__
16965# include <limits.h>
16966#else
16967# include <assert.h>
16968#endif
16969
16970#undef $ac_func
16971
16972/* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16975#ifdef __cplusplus
16976extern "C"
16977#endif
16978char $ac_func ();
16979/* The GNU C library defines this for functions which it implements
16980 to always fail with ENOSYS. Some functions are actually named
16981 something starting with __ and the normal name is an alias. */
16982#if defined __stub_$ac_func || defined __stub___$ac_func
16983choke me
16984#endif
16985
16986int
16987main ()
16988{
16989return $ac_func ();
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext conftest$ac_exeext
16995if { (ac_try="$ac_link"
16996case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17009 { (case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012esac
17013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_try") 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; } &&
17018 { ac_try='test -s conftest$ac_exeext'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022esac
17023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 eval "$as_ac_var=yes"
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 eval "$as_ac_var=no"
17034fi
17035
17036rm -f core conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17038fi
17039ac_res=`eval echo '${'$as_ac_var'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041echo "${ECHO_T}$ac_res" >&6; }
17042if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017043 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017045_ACEOF
17046
17047fi
17048done
17049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017050
17051
17052
Reid Spencerb90645c2007-02-16 19:17:20 +000017053for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017054do
17055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
17061 cat >conftest.$ac_ext <<_ACEOF
17062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
17067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17069#define $ac_func innocuous_$ac_func
17070
17071/* System header to define __stub macros and hopefully few prototypes,
17072 which can conflict with char $ac_func (); below.
17073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17074 <limits.h> exists even on freestanding compilers. */
17075
17076#ifdef __STDC__
17077# include <limits.h>
17078#else
17079# include <assert.h>
17080#endif
17081
17082#undef $ac_func
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char $ac_func ();
17091/* The GNU C library defines this for functions which it implements
17092 to always fail with ENOSYS. Some functions are actually named
17093 something starting with __ and the normal name is an alias. */
17094#if defined __stub_$ac_func || defined __stub___$ac_func
17095choke me
17096#endif
17097
17098int
17099main ()
17100{
17101return $ac_func ();
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106rm -f conftest.$ac_objext conftest$ac_exeext
17107if { (ac_try="$ac_link"
17108case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_link") 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124esac
17125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_try") 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } &&
17130 { ac_try='test -s conftest$ac_exeext'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17134esac
17135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 eval "$as_ac_var=yes"
17141else
17142 echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 eval "$as_ac_var=no"
17146fi
17147
17148rm -f core conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17150fi
17151ac_res=`eval echo '${'$as_ac_var'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153echo "${ECHO_T}$ac_res" >&6; }
17154if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017157_ACEOF
17158
17159fi
17160done
17161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017162
17163
17164
17165
17166
Eric Christophere4291822010-04-16 05:14:21 +000017167
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017168
17169for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017170do
17171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17172{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176else
17177 cat >conftest.$ac_ext <<_ACEOF
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
17183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17185#define $ac_func innocuous_$ac_func
17186
17187/* System header to define __stub macros and hopefully few prototypes,
17188 which can conflict with char $ac_func (); below.
17189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17190 <limits.h> exists even on freestanding compilers. */
17191
17192#ifdef __STDC__
17193# include <limits.h>
17194#else
17195# include <assert.h>
17196#endif
17197
17198#undef $ac_func
17199
17200/* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17203#ifdef __cplusplus
17204extern "C"
17205#endif
17206char $ac_func ();
17207/* The GNU C library defines this for functions which it implements
17208 to always fail with ENOSYS. Some functions are actually named
17209 something starting with __ and the normal name is an alias. */
17210#if defined __stub_$ac_func || defined __stub___$ac_func
17211choke me
17212#endif
17213
17214int
17215main ()
17216{
17217return $ac_func ();
17218 ;
17219 return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext conftest$ac_exeext
17223if { (ac_try="$ac_link"
17224case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227esac
17228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 eval "$as_ac_var=yes"
17257else
17258 echo "$as_me: failed program was:" >&5
17259sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 eval "$as_ac_var=no"
17262fi
17263
17264rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266fi
17267ac_res=`eval echo '${'$as_ac_var'}'`
17268 { echo "$as_me:$LINENO: result: $ac_res" >&5
17269echo "${ECHO_T}$ac_res" >&6; }
17270if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017271 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017273_ACEOF
17274
17275fi
17276done
Reid Spencerdf3be822006-01-23 08:15:53 +000017277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017278
17279
17280
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017281for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017282do
17283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17286if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297#define $ac_func innocuous_$ac_func
17298
17299/* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17303
17304#ifdef __STDC__
17305# include <limits.h>
17306#else
17307# include <assert.h>
17308#endif
17309
17310#undef $ac_func
17311
17312/* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17315#ifdef __cplusplus
17316extern "C"
17317#endif
17318char $ac_func ();
17319/* The GNU C library defines this for functions which it implements
17320 to always fail with ENOSYS. Some functions are actually named
17321 something starting with __ and the normal name is an alias. */
17322#if defined __stub_$ac_func || defined __stub___$ac_func
17323choke me
17324#endif
17325
17326int
17327main ()
17328{
17329return $ac_func ();
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext conftest$ac_exeext
17335if { (ac_try="$ac_link"
17336case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 eval "$as_ac_var=yes"
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373 eval "$as_ac_var=no"
17374fi
17375
17376rm -f core conftest.err conftest.$ac_objext \
17377 conftest$ac_exeext conftest.$ac_ext
17378fi
17379ac_res=`eval echo '${'$as_ac_var'}'`
17380 { echo "$as_me:$LINENO: result: $ac_res" >&5
17381echo "${ECHO_T}$ac_res" >&6; }
17382if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017383 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017385_ACEOF
17386
17387fi
17388done
17389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017390
17391
17392
17393
Chris Lattner511f11d2005-11-14 07:25:50 +000017394for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017395do
17396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17397{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402 cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
17408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17410#define $ac_func innocuous_$ac_func
17411
17412/* System header to define __stub macros and hopefully few prototypes,
17413 which can conflict with char $ac_func (); below.
17414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17415 <limits.h> exists even on freestanding compilers. */
17416
17417#ifdef __STDC__
17418# include <limits.h>
17419#else
17420# include <assert.h>
17421#endif
17422
17423#undef $ac_func
17424
17425/* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
17428#ifdef __cplusplus
17429extern "C"
17430#endif
17431char $ac_func ();
17432/* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435#if defined __stub_$ac_func || defined __stub___$ac_func
17436choke me
17437#endif
17438
17439int
17440main ()
17441{
17442return $ac_func ();
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext conftest$ac_exeext
17448if { (ac_try="$ac_link"
17449case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17452esac
17453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_link") 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_try") 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest$ac_exeext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 eval "$as_ac_var=yes"
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 eval "$as_ac_var=no"
17487fi
17488
17489rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491fi
17492ac_res=`eval echo '${'$as_ac_var'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494echo "${ECHO_T}$ac_res" >&6; }
17495if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017496 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017498_ACEOF
17499
17500fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017501done
John Criswell7a73b802003-06-30 21:59:07 +000017502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017503
17504
17505
17506
Daniel Dunbar3e462932011-02-03 02:40:02 +000017507
17508for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017509do
17510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17515else
17516 cat >conftest.$ac_ext <<_ACEOF
17517/* confdefs.h. */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h. */
17522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17524#define $ac_func innocuous_$ac_func
17525
17526/* System header to define __stub macros and hopefully few prototypes,
17527 which can conflict with char $ac_func (); below.
17528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529 <limits.h> exists even on freestanding compilers. */
17530
17531#ifdef __STDC__
17532# include <limits.h>
17533#else
17534# include <assert.h>
17535#endif
17536
17537#undef $ac_func
17538
17539/* Override any GCC internal prototype to avoid an error.
17540 Use char because int might match the return type of a GCC
17541 builtin and then its argument prototype would still apply. */
17542#ifdef __cplusplus
17543extern "C"
17544#endif
17545char $ac_func ();
17546/* The GNU C library defines this for functions which it implements
17547 to always fail with ENOSYS. Some functions are actually named
17548 something starting with __ and the normal name is an alias. */
17549#if defined __stub_$ac_func || defined __stub___$ac_func
17550choke me
17551#endif
17552
17553int
17554main ()
17555{
17556return $ac_func ();
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
17562if { (ac_try="$ac_link"
17563case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 eval "$as_ac_var=yes"
17596else
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 eval "$as_ac_var=no"
17601fi
17602
17603rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605fi
17606ac_res=`eval echo '${'$as_ac_var'}'`
17607 { echo "$as_me:$LINENO: result: $ac_res" >&5
17608echo "${ECHO_T}$ac_res" >&6; }
17609if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017610 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017612_ACEOF
17613
17614fi
17615done
17616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017617{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17618echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17619if test "${llvm_cv_c_printf_a+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017621else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017622 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017623ac_cpp='$CPP $CPPFLAGS'
17624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017628 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017629 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017633 /* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017638
John Criswella0137d32003-10-13 16:22:01 +000017639#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640#include <stdlib.h>
17641
John Criswella0137d32003-10-13 16:22:01 +000017642int
17643main ()
17644{
17645
Reid Spencer2706f8c2004-09-19 23:53:36 +000017646volatile double A, B;
17647char Buffer[100];
17648A = 1;
17649A /= 10.0;
17650sprintf(Buffer, "%a", A);
17651B = atof(Buffer);
17652if (A != B)
17653 return (1);
17654if (A != 0x1.999999999999ap-4)
17655 return (1);
17656return (0);
John Criswella0137d32003-10-13 16:22:01 +000017657 ;
17658 return 0;
17659}
17660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017661rm -f conftest$ac_exeext
17662if { (ac_try="$ac_link"
17663case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666esac
17667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_link") 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017681 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683 echo "$as_me: program exited with status $ac_status" >&5
17684echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687( exit $ac_status )
17688llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000017691fi
Reid Spencera773bd52006-08-04 18:18:08 +000017692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017693
Reid Spencer2706f8c2004-09-19 23:53:36 +000017694 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017695ac_cpp='$CPP $CPPFLAGS'
17696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017701{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17702echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017703 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017705cat >>confdefs.h <<\_ACEOF
17706#define HAVE_PRINTF_A 1
17707_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017708
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709 fi
John Criswella0137d32003-10-13 16:22:01 +000017710
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17713echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17714if test "${ac_cv_func_rand48+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017716else
Reid Spencera773bd52006-08-04 18:18:08 +000017717 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017718ac_cpp='$CXXCPP $CPPFLAGS'
17719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017728/* end confdefs.h. */
17729#include <stdlib.h>
17730int
17731main ()
17732{
17733srand48(0);lrand48();drand48();
17734 ;
17735 return 0;
17736}
17737_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017738rm -f conftest.$ac_objext
17739if { (ac_try="$ac_compile"
17740case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743esac
17744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017772 ac_cv_func_rand48=yes
17773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779
Reid Spencera773bd52006-08-04 18:18:08 +000017780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017781 ac_ext=c
17782ac_cpp='$CPP $CPPFLAGS'
17783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785ac_compiler_gnu=$ac_cv_c_compiler_gnu
17786
17787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017788{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17789echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017790
17791if test "$ac_cv_func_rand48" = "yes" ; then
17792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017793cat >>confdefs.h <<\_ACEOF
17794#define HAVE_RAND48 1
17795_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017796
17797fi
John Criswell0021c312004-02-13 21:57:29 +000017798
17799
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017800{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17801echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17802if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17804else
17805 cat >conftest.$ac_ext <<_ACEOF
17806/* confdefs.h. */
17807_ACEOF
17808cat confdefs.h >>conftest.$ac_ext
17809cat >>conftest.$ac_ext <<_ACEOF
17810/* end confdefs.h. */
17811$ac_includes_default
17812int
17813main ()
17814{
17815#ifndef strerror_s
17816 char *p = (char *) strerror_s;
17817 return !p;
17818#endif
17819
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext
17825if { (ac_try="$ac_compile"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_compile") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842esac
17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_have_decl_strerror_s=yes
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 ac_cv_have_decl_strerror_s=no
17864fi
17865
17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867fi
17868{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17869echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17870if test $ac_cv_have_decl_strerror_s = yes; then
17871
17872cat >>confdefs.h <<_ACEOF
17873#define HAVE_DECL_STRERROR_S 1
17874_ACEOF
17875
17876
17877else
17878 cat >>confdefs.h <<_ACEOF
17879#define HAVE_DECL_STRERROR_S 0
17880_ACEOF
17881
17882
17883fi
17884
17885
17886
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017887if test "$llvm_cv_os_type" = "MingW" ; then
17888 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17889echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17890if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892else
17893 ac_check_lib_save_LIBS=$LIBS
17894LIBS="-lgcc $LIBS"
17895cat >conftest.$ac_ext <<_ACEOF
17896/* confdefs.h. */
17897_ACEOF
17898cat confdefs.h >>conftest.$ac_ext
17899cat >>conftest.$ac_ext <<_ACEOF
17900/* end confdefs.h. */
17901
17902/* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17905#ifdef __cplusplus
17906extern "C"
17907#endif
17908char _alloca ();
17909int
17910main ()
17911{
17912return _alloca ();
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext conftest$ac_exeext
17918if { (ac_try="$ac_link"
17919case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17922esac
17923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17932 { (case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17935esac
17936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_try") 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945esac
17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_lib_gcc__alloca=yes
17952else
17953 echo "$as_me: failed program was:" >&5
17954sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 ac_cv_lib_gcc__alloca=no
17957fi
17958
17959rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961LIBS=$ac_check_lib_save_LIBS
17962fi
17963{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17964echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17965if test $ac_cv_lib_gcc__alloca = yes; then
17966
17967cat >>confdefs.h <<\_ACEOF
17968#define HAVE__ALLOCA 1
17969_ACEOF
17970
17971fi
17972
17973 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17974echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17975if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977else
17978 ac_check_lib_save_LIBS=$LIBS
17979LIBS="-lgcc $LIBS"
17980cat >conftest.$ac_ext <<_ACEOF
17981/* confdefs.h. */
17982_ACEOF
17983cat confdefs.h >>conftest.$ac_ext
17984cat >>conftest.$ac_ext <<_ACEOF
17985/* end confdefs.h. */
17986
17987/* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17990#ifdef __cplusplus
17991extern "C"
17992#endif
17993char __alloca ();
17994int
17995main ()
17996{
17997return __alloca ();
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext conftest$ac_exeext
18003if { (ac_try="$ac_link"
18004case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007esac
18008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18020esac
18021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_try") 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_lib_gcc___alloca=yes
18037else
18038 echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_lib_gcc___alloca=no
18042fi
18043
18044rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18046LIBS=$ac_check_lib_save_LIBS
18047fi
18048{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18049echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18050if test $ac_cv_lib_gcc___alloca = yes; then
18051
18052cat >>confdefs.h <<\_ACEOF
18053#define HAVE___ALLOCA 1
18054_ACEOF
18055
18056fi
18057
18058 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18059echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18060if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 ac_check_lib_save_LIBS=$LIBS
18064LIBS="-lgcc $LIBS"
18065cat >conftest.$ac_ext <<_ACEOF
18066/* confdefs.h. */
18067_ACEOF
18068cat confdefs.h >>conftest.$ac_ext
18069cat >>conftest.$ac_ext <<_ACEOF
18070/* end confdefs.h. */
18071
18072/* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18075#ifdef __cplusplus
18076extern "C"
18077#endif
18078char __chkstk ();
18079int
18080main ()
18081{
18082return __chkstk ();
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext conftest$ac_exeext
18088if { (ac_try="$ac_link"
18089case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18092esac
18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_link") 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest$ac_exeext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_lib_gcc___chkstk=yes
18122else
18123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_cv_lib_gcc___chkstk=no
18127fi
18128
18129rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131LIBS=$ac_check_lib_save_LIBS
18132fi
18133{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18134echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18135if test $ac_cv_lib_gcc___chkstk = yes; then
18136
18137cat >>confdefs.h <<\_ACEOF
18138#define HAVE___CHKSTK 1
18139_ACEOF
18140
18141fi
18142
18143 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18144echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18145if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 ac_check_lib_save_LIBS=$LIBS
18149LIBS="-lgcc $LIBS"
18150cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156
18157/* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char ___chkstk ();
18164int
18165main ()
18166{
18167return ___chkstk ();
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext conftest$ac_exeext
18173if { (ac_try="$ac_link"
18174case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177esac
18178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18200esac
18201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc____chkstk=yes
18207else
18208 echo "$as_me: failed program was:" >&5
18209sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 ac_cv_lib_gcc____chkstk=no
18212fi
18213
18214rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216LIBS=$ac_check_lib_save_LIBS
18217fi
18218{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18219echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18220if test $ac_cv_lib_gcc____chkstk = yes; then
18221
18222cat >>confdefs.h <<\_ACEOF
18223#define HAVE____CHKSTK 1
18224_ACEOF
18225
18226fi
18227
18228
18229 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18230echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18231if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233else
18234 ac_check_lib_save_LIBS=$LIBS
18235LIBS="-lgcc $LIBS"
18236cat >conftest.$ac_ext <<_ACEOF
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
18242
18243/* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18246#ifdef __cplusplus
18247extern "C"
18248#endif
18249char __ashldi3 ();
18250int
18251main ()
18252{
18253return __ashldi3 ();
18254 ;
18255 return 0;
18256}
18257_ACEOF
18258rm -f conftest.$ac_objext conftest$ac_exeext
18259if { (ac_try="$ac_link"
18260case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18263esac
18264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_link") 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18273 { (case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18276esac
18277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_try") 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286esac
18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_gcc___ashldi3=yes
18293else
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 ac_cv_lib_gcc___ashldi3=no
18298fi
18299
18300rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302LIBS=$ac_check_lib_save_LIBS
18303fi
18304{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18305echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18306if test $ac_cv_lib_gcc___ashldi3 = yes; then
18307
18308cat >>confdefs.h <<\_ACEOF
18309#define HAVE___ASHLDI3 1
18310_ACEOF
18311
18312fi
18313
18314 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18315echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18316if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318else
18319 ac_check_lib_save_LIBS=$LIBS
18320LIBS="-lgcc $LIBS"
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327
18328/* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331#ifdef __cplusplus
18332extern "C"
18333#endif
18334char __ashrdi3 ();
18335int
18336main ()
18337{
18338return __ashrdi3 ();
18339 ;
18340 return 0;
18341}
18342_ACEOF
18343rm -f conftest.$ac_objext conftest$ac_exeext
18344if { (ac_try="$ac_link"
18345case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348esac
18349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_link") 2>conftest.er1
18351 ac_status=$?
18352 grep -v '^ *+' conftest.er1 >conftest.err
18353 rm -f conftest.er1
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361esac
18362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest$ac_exeext'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18371esac
18372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_cv_lib_gcc___ashrdi3=yes
18378else
18379 echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 ac_cv_lib_gcc___ashrdi3=no
18383fi
18384
18385rm -f core conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387LIBS=$ac_check_lib_save_LIBS
18388fi
18389{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18390echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18391if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18392
18393cat >>confdefs.h <<\_ACEOF
18394#define HAVE___ASHRDI3 1
18395_ACEOF
18396
18397fi
18398
18399 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18400echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18401if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18403else
18404 ac_check_lib_save_LIBS=$LIBS
18405LIBS="-lgcc $LIBS"
18406cat >conftest.$ac_ext <<_ACEOF
18407/* confdefs.h. */
18408_ACEOF
18409cat confdefs.h >>conftest.$ac_ext
18410cat >>conftest.$ac_ext <<_ACEOF
18411/* end confdefs.h. */
18412
18413/* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416#ifdef __cplusplus
18417extern "C"
18418#endif
18419char __divdi3 ();
18420int
18421main ()
18422{
18423return __divdi3 ();
18424 ;
18425 return 0;
18426}
18427_ACEOF
18428rm -f conftest.$ac_objext conftest$ac_exeext
18429if { (ac_try="$ac_link"
18430case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433esac
18434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18443 { (case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446esac
18447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_try") 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; } &&
18452 { ac_try='test -s conftest$ac_exeext'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_cv_lib_gcc___divdi3=yes
18463else
18464 echo "$as_me: failed program was:" >&5
18465sed 's/^/| /' conftest.$ac_ext >&5
18466
18467 ac_cv_lib_gcc___divdi3=no
18468fi
18469
18470rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472LIBS=$ac_check_lib_save_LIBS
18473fi
18474{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18475echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18476if test $ac_cv_lib_gcc___divdi3 = yes; then
18477
18478cat >>confdefs.h <<\_ACEOF
18479#define HAVE___DIVDI3 1
18480_ACEOF
18481
18482fi
18483
18484 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18485echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18486if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 ac_check_lib_save_LIBS=$LIBS
18490LIBS="-lgcc $LIBS"
18491cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497
18498/* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501#ifdef __cplusplus
18502extern "C"
18503#endif
18504char __fixdfdi ();
18505int
18506main ()
18507{
18508return __fixdfdi ();
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext conftest$ac_exeext
18514if { (ac_try="$ac_link"
18515case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518esac
18519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_gcc___fixdfdi=yes
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 ac_cv_lib_gcc___fixdfdi=no
18553fi
18554
18555rm -f core conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18557LIBS=$ac_check_lib_save_LIBS
18558fi
18559{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18560echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18561if test $ac_cv_lib_gcc___fixdfdi = yes; then
18562
18563cat >>confdefs.h <<\_ACEOF
18564#define HAVE___FIXDFDI 1
18565_ACEOF
18566
18567fi
18568
18569 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18570echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18571if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573else
18574 ac_check_lib_save_LIBS=$LIBS
18575LIBS="-lgcc $LIBS"
18576cat >conftest.$ac_ext <<_ACEOF
18577/* confdefs.h. */
18578_ACEOF
18579cat confdefs.h >>conftest.$ac_ext
18580cat >>conftest.$ac_ext <<_ACEOF
18581/* end confdefs.h. */
18582
18583/* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18586#ifdef __cplusplus
18587extern "C"
18588#endif
18589char __fixsfdi ();
18590int
18591main ()
18592{
18593return __fixsfdi ();
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598rm -f conftest.$ac_objext conftest$ac_exeext
18599if { (ac_try="$ac_link"
18600case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616esac
18617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626esac
18627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_lib_gcc___fixsfdi=yes
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_cv_lib_gcc___fixsfdi=no
18638fi
18639
18640rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642LIBS=$ac_check_lib_save_LIBS
18643fi
18644{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18645echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18646if test $ac_cv_lib_gcc___fixsfdi = yes; then
18647
18648cat >>confdefs.h <<\_ACEOF
18649#define HAVE___FIXSFDI 1
18650_ACEOF
18651
18652fi
18653
18654 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18655echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18656if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 ac_check_lib_save_LIBS=$LIBS
18660LIBS="-lgcc $LIBS"
18661cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h. */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h. */
18667
18668/* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18671#ifdef __cplusplus
18672extern "C"
18673#endif
18674char __floatdidf ();
18675int
18676main ()
18677{
18678return __floatdidf ();
18679 ;
18680 return 0;
18681}
18682_ACEOF
18683rm -f conftest.$ac_objext conftest$ac_exeext
18684if { (ac_try="$ac_link"
18685case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688esac
18689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711esac
18712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___floatdidf=yes
18718else
18719 echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 ac_cv_lib_gcc___floatdidf=no
18723fi
18724
18725rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727LIBS=$ac_check_lib_save_LIBS
18728fi
18729{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18730echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18731if test $ac_cv_lib_gcc___floatdidf = yes; then
18732
18733cat >>confdefs.h <<\_ACEOF
18734#define HAVE___FLOATDIDF 1
18735_ACEOF
18736
18737fi
18738
18739 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18740echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18741if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743else
18744 ac_check_lib_save_LIBS=$LIBS
18745LIBS="-lgcc $LIBS"
18746cat >conftest.$ac_ext <<_ACEOF
18747/* confdefs.h. */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h. */
18752
18753/* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18756#ifdef __cplusplus
18757extern "C"
18758#endif
18759char __lshrdi3 ();
18760int
18761main ()
18762{
18763return __lshrdi3 ();
18764 ;
18765 return 0;
18766}
18767_ACEOF
18768rm -f conftest.$ac_objext conftest$ac_exeext
18769if { (ac_try="$ac_link"
18770case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___lshrdi3=yes
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 ac_cv_lib_gcc___lshrdi3=no
18808fi
18809
18810rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812LIBS=$ac_check_lib_save_LIBS
18813fi
18814{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18815echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18816if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18817
18818cat >>confdefs.h <<\_ACEOF
18819#define HAVE___LSHRDI3 1
18820_ACEOF
18821
18822fi
18823
18824 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18825echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18826if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829 ac_check_lib_save_LIBS=$LIBS
18830LIBS="-lgcc $LIBS"
18831cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
18837
18838/* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18841#ifdef __cplusplus
18842extern "C"
18843#endif
18844char __moddi3 ();
18845int
18846main ()
18847{
18848return __moddi3 ();
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest.$ac_objext conftest$ac_exeext
18854if { (ac_try="$ac_link"
18855case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858esac
18859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18871esac
18872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18881esac
18882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___moddi3=yes
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_cv_lib_gcc___moddi3=no
18893fi
18894
18895rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897LIBS=$ac_check_lib_save_LIBS
18898fi
18899{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18900echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18901if test $ac_cv_lib_gcc___moddi3 = yes; then
18902
18903cat >>confdefs.h <<\_ACEOF
18904#define HAVE___MODDI3 1
18905_ACEOF
18906
18907fi
18908
18909 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18910echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18911if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914 ac_check_lib_save_LIBS=$LIBS
18915LIBS="-lgcc $LIBS"
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922
18923/* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18926#ifdef __cplusplus
18927extern "C"
18928#endif
18929char __udivdi3 ();
18930int
18931main ()
18932{
18933return __udivdi3 ();
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext conftest$ac_exeext
18939if { (ac_try="$ac_link"
18940case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956esac
18957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966esac
18967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___udivdi3=yes
18973else
18974 echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977 ac_cv_lib_gcc___udivdi3=no
18978fi
18979
18980rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982LIBS=$ac_check_lib_save_LIBS
18983fi
18984{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18985echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18986if test $ac_cv_lib_gcc___udivdi3 = yes; then
18987
18988cat >>confdefs.h <<\_ACEOF
18989#define HAVE___UDIVDI3 1
18990_ACEOF
18991
18992fi
18993
18994 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18995echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18996if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998else
18999 ac_check_lib_save_LIBS=$LIBS
19000LIBS="-lgcc $LIBS"
19001cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007
19008/* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19011#ifdef __cplusplus
19012extern "C"
19013#endif
19014char __umoddi3 ();
19015int
19016main ()
19017{
19018return __umoddi3 ();
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext conftest$ac_exeext
19024if { (ac_try="$ac_link"
19025case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___umoddi3=yes
19058else
19059 echo "$as_me: failed program was:" >&5
19060sed 's/^/| /' conftest.$ac_ext >&5
19061
19062 ac_cv_lib_gcc___umoddi3=no
19063fi
19064
19065rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067LIBS=$ac_check_lib_save_LIBS
19068fi
19069{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19070echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19071if test $ac_cv_lib_gcc___umoddi3 = yes; then
19072
19073cat >>confdefs.h <<\_ACEOF
19074#define HAVE___UMODDI3 1
19075_ACEOF
19076
19077fi
19078
19079
19080 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19081echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19082if test "${ac_cv_lib_gcc___main+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084else
19085 ac_check_lib_save_LIBS=$LIBS
19086LIBS="-lgcc $LIBS"
19087cat >conftest.$ac_ext <<_ACEOF
19088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
19093
19094/* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19097#ifdef __cplusplus
19098extern "C"
19099#endif
19100char __main ();
19101int
19102main ()
19103{
19104return __main ();
19105 ;
19106 return 0;
19107}
19108_ACEOF
19109rm -f conftest.$ac_objext conftest$ac_exeext
19110if { (ac_try="$ac_link"
19111case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114esac
19115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_link") 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127esac
19128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest$ac_exeext'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137esac
19138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 ac_cv_lib_gcc___main=yes
19144else
19145 echo "$as_me: failed program was:" >&5
19146sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 ac_cv_lib_gcc___main=no
19149fi
19150
19151rm -f core conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153LIBS=$ac_check_lib_save_LIBS
19154fi
19155{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19156echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19157if test $ac_cv_lib_gcc___main = yes; then
19158
19159cat >>confdefs.h <<\_ACEOF
19160#define HAVE___MAIN 1
19161_ACEOF
19162
19163fi
19164
19165 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19166echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19167if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19169else
19170 ac_check_lib_save_LIBS=$LIBS
19171LIBS="-lgcc $LIBS"
19172cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178
19179/* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19182#ifdef __cplusplus
19183extern "C"
19184#endif
19185char __cmpdi2 ();
19186int
19187main ()
19188{
19189return __cmpdi2 ();
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext conftest$ac_exeext
19195if { (ac_try="$ac_link"
19196case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199esac
19200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19209 { (case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212esac
19213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_try") 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest$ac_exeext'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_cv_lib_gcc___cmpdi2=yes
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 ac_cv_lib_gcc___cmpdi2=no
19234fi
19235
19236rm -f core conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238LIBS=$ac_check_lib_save_LIBS
19239fi
19240{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19241echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19242if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19243
19244cat >>confdefs.h <<\_ACEOF
19245#define HAVE___CMPDI2 1
19246_ACEOF
19247
19248fi
19249
19250fi
19251
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019252if test "$llvm_cv_os_type" = "MingW" ; then
19253 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19254echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19255 cat >conftest.$ac_ext <<_ACEOF
19256#include <windows.h>
19257#include <imagehlp.h>
19258extern void foo(PENUMLOADED_MODULES_CALLBACK);
19259extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (ac_try="$ac_compile"
19263case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266esac
19267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279esac
19280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289esac
19290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295
19296 { echo "$as_me:$LINENO: result: yes" >&5
19297echo "${ECHO_T}yes" >&6; }
19298 llvm_cv_win32_elmcb_pcstr="PCSTR"
19299
19300else
19301 echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304
19305 { echo "$as_me:$LINENO: result: no" >&5
19306echo "${ECHO_T}no" >&6; }
19307 llvm_cv_win32_elmcb_pcstr="PSTR"
19308
19309fi
19310
19311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312
19313cat >>confdefs.h <<_ACEOF
19314#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19315_ACEOF
19316
19317fi
19318
Torok Edwin871384f2010-01-26 08:50:50 +000019319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019320{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19321echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19322if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019324else
Reid Spencera773bd52006-08-04 18:18:08 +000019325 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019326ac_cpp='$CXXCPP $CPPFLAGS'
19327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019331 cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019336/* end confdefs.h. */
19337#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019338int
19339main ()
19340{
19341float f; isnan(f);
19342 ;
19343 return 0;
19344}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019346rm -f conftest.$ac_objext
19347if { (ac_try="$ac_compile"
19348case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351esac
19352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
19360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19361 { (case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_try") 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; } &&
19370 { ac_try='test -s conftest.$ac_objext'
19371 { (case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374esac
19375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_try") 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019380 ac_cv_func_isnan_in_math_h=yes
19381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382 echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019387
Reid Spencera773bd52006-08-04 18:18:08 +000019388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019389 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019390ac_cpp='$CPP $CPPFLAGS'
19391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393ac_compiler_gnu=$ac_cv_c_compiler_gnu
19394
19395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019396{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19397echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019398
19399
19400if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019402cat >>confdefs.h <<\_ACEOF
19403#define HAVE_ISNAN_IN_MATH_H 1
19404_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019405
Reid Spencerabec8f92004-10-27 23:03:44 +000019406fi
19407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019408{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19409echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19410if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019412else
Reid Spencera773bd52006-08-04 18:18:08 +000019413 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019414ac_cpp='$CXXCPP $CPPFLAGS'
19415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019424/* end confdefs.h. */
19425#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019426int
19427main ()
19428{
19429float f; isnan(f);
19430 ;
19431 return 0;
19432}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019433_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434rm -f conftest.$ac_objext
19435if { (ac_try="$ac_compile"
19436case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439esac
19440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_compile") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019468 ac_cv_func_isnan_in_cmath=yes
19469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470 echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475
Reid Spencera773bd52006-08-04 18:18:08 +000019476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019477 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019478ac_cpp='$CPP $CPPFLAGS'
19479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482
19483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019484{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19485echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019486
19487if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019489cat >>confdefs.h <<\_ACEOF
19490#define HAVE_ISNAN_IN_CMATH 1
19491_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019492
Reid Spencerabec8f92004-10-27 23:03:44 +000019493fi
19494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019495{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19496echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19497if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019499else
Reid Spencera773bd52006-08-04 18:18:08 +000019500 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019501ac_cpp='$CXXCPP $CPPFLAGS'
19502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019506 cat >conftest.$ac_ext <<_ACEOF
19507/* confdefs.h. */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019511/* end confdefs.h. */
19512#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019513int
19514main ()
19515{
19516float f; std::isnan(f);
19517 ;
19518 return 0;
19519}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019521rm -f conftest.$ac_objext
19522if { (ac_try="$ac_compile"
19523case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526esac
19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_compile") 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549esac
19550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019555 ac_cv_func_std_isnan_in_cmath=yes
19556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019562
Reid Spencera773bd52006-08-04 18:18:08 +000019563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019564 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019565ac_cpp='$CPP $CPPFLAGS'
19566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568ac_compiler_gnu=$ac_cv_c_compiler_gnu
19569
19570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019571{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19572echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019573
19574if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576cat >>confdefs.h <<\_ACEOF
19577#define HAVE_STD_ISNAN_IN_CMATH 1
19578_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019579
Reid Spencerabec8f92004-10-27 23:03:44 +000019580fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019581
19582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019583{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19584echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19585if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019587else
Reid Spencera773bd52006-08-04 18:18:08 +000019588 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019589ac_cpp='$CXXCPP $CPPFLAGS'
19590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594 cat >conftest.$ac_ext <<_ACEOF
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019599/* end confdefs.h. */
19600#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019601int
19602main ()
19603{
19604float f; isinf(f);
19605 ;
19606 return 0;
19607}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019608_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019609rm -f conftest.$ac_objext
19610if { (ac_try="$ac_compile"
19611case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19614esac
19615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019643 ac_cv_func_isinf_in_math_h=yes
19644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645 echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650
Reid Spencera773bd52006-08-04 18:18:08 +000019651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019652 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019653ac_cpp='$CPP $CPPFLAGS'
19654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019659{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19660echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019661
19662if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664cat >>confdefs.h <<\_ACEOF
19665#define HAVE_ISINF_IN_MATH_H 1
19666_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019667
Reid Spencerabec8f92004-10-27 23:03:44 +000019668fi
19669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019670{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19671echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19672if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019674else
Reid Spencera773bd52006-08-04 18:18:08 +000019675 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019676ac_cpp='$CXXCPP $CPPFLAGS'
19677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681 cat >conftest.$ac_ext <<_ACEOF
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019686/* end confdefs.h. */
19687#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019688int
19689main ()
19690{
19691float f; isinf(f);
19692 ;
19693 return 0;
19694}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019696rm -f conftest.$ac_objext
19697if { (ac_try="$ac_compile"
19698case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701esac
19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019730 ac_cv_func_isinf_in_cmath=yes
19731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019732 echo "$as_me: failed program was:" >&5
19733sed 's/^/| /' conftest.$ac_ext >&5
19734
19735 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737
Reid Spencera773bd52006-08-04 18:18:08 +000019738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019739 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019740ac_cpp='$CPP $CPPFLAGS'
19741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744
19745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019746{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19747echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019748
19749if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751cat >>confdefs.h <<\_ACEOF
19752#define HAVE_ISINF_IN_CMATH 1
19753_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019754
Reid Spencerabec8f92004-10-27 23:03:44 +000019755fi
19756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19758echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19759if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019761else
Reid Spencera773bd52006-08-04 18:18:08 +000019762 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019763ac_cpp='$CXXCPP $CPPFLAGS'
19764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019773/* end confdefs.h. */
19774#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019775int
19776main ()
19777{
19778float f; std::isinf(f)}
19779 ;
19780 return 0;
19781}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783rm -f conftest.$ac_objext
19784if { (ac_try="$ac_compile"
19785case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788esac
19789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_compile") 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19798 { (case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801esac
19802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_try") 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; } &&
19807 { ac_try='test -s conftest.$ac_objext'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811esac
19812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019817 ac_cv_func_std_isinf_in_cmath=yes
19818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819 echo "$as_me: failed program was:" >&5
19820sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824
Reid Spencera773bd52006-08-04 18:18:08 +000019825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019826 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019827ac_cpp='$CPP $CPPFLAGS'
19828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830ac_compiler_gnu=$ac_cv_c_compiler_gnu
19831
19832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19834echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019835
19836if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838cat >>confdefs.h <<\_ACEOF
19839#define HAVE_STD_ISINF_IN_CMATH 1
19840_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019841
Reid Spencerabec8f92004-10-27 23:03:44 +000019842fi
19843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19845echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19846if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019848else
Reid Spencera773bd52006-08-04 18:18:08 +000019849 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019850ac_cpp='$CXXCPP $CPPFLAGS'
19851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855 cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019860/* end confdefs.h. */
19861#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019862int
19863main ()
19864{
19865float f; finite(f);
19866 ;
19867 return 0;
19868}
Brian Gaeked59a6472004-07-21 03:33:58 +000019869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870rm -f conftest.$ac_objext
19871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888esac
19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019904 ac_cv_func_finite_in_ieeefp_h=yes
19905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906 echo "$as_me: failed program was:" >&5
19907sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911
Reid Spencera773bd52006-08-04 18:18:08 +000019912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019913 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019914ac_cpp='$CPP $CPPFLAGS'
19915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918
19919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19921echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019922
Brian Gaeke6802b552004-10-28 05:06:45 +000019923if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925cat >>confdefs.h <<\_ACEOF
19926#define HAVE_FINITE_IN_IEEEFP_H 1
19927_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019928
Reid Spencerabec8f92004-10-27 23:03:44 +000019929fi
19930
19931
19932
Reid Spencer30fe5262007-01-20 07:48:49 +000019933if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019934
19935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936for ac_header in stdlib.h unistd.h
19937do
19938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944fi
19945ac_res=`eval echo '${'$as_ac_Header'}'`
19946 { echo "$as_me:$LINENO: result: $ac_res" >&5
19947echo "${ECHO_T}$ac_res" >&6; }
19948else
19949 # Is the header compilable?
19950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19952cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958$ac_includes_default
19959#include <$ac_header>
19960_ACEOF
19961rm -f conftest.$ac_objext
19962if { (ac_try="$ac_compile"
19963case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966esac
19967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_compile") 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
19975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19976 { (case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19979esac
19980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_try") 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_header_compiler=yes
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020000 ac_header_compiler=no
20001fi
20002
20003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005echo "${ECHO_T}$ac_header_compiler" >&6; }
20006
20007# Is the header present?
20008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
20016#include <$ac_header>
20017_ACEOF
20018if { (ac_try="$ac_cpp conftest.$ac_ext"
20019case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } >/dev/null; then
20031 if test -s conftest.err; then
20032 ac_cpp_err=$ac_c_preproc_warn_flag
20033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20034 else
20035 ac_cpp_err=
20036 fi
20037else
20038 ac_cpp_err=yes
20039fi
20040if test -z "$ac_cpp_err"; then
20041 ac_header_preproc=yes
20042else
20043 echo "$as_me: failed program was:" >&5
20044sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_header_preproc=no
20047fi
20048
20049rm -f conftest.err conftest.$ac_ext
20050{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20051echo "${ECHO_T}$ac_header_preproc" >&6; }
20052
20053# So? What about this header?
20054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 yes:no: )
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20060 ac_header_preproc=yes
20061 ;;
20062 no:yes:* )
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20075 ( cat <<\_ASBOX
20076## ----------------------------------- ##
20077## Report this to llvmbugs@cs.uiuc.edu ##
20078## ----------------------------------- ##
20079_ASBOX
20080 ) | sed "s/^/$as_me: WARNING: /" >&2
20081 ;;
20082esac
20083{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20087else
20088 eval "$as_ac_Header=\$ac_header_preproc"
20089fi
20090ac_res=`eval echo '${'$as_ac_Header'}'`
20091 { echo "$as_me:$LINENO: result: $ac_res" >&5
20092echo "${ECHO_T}$ac_res" >&6; }
20093
20094fi
20095if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020096 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020098_ACEOF
20099
20100fi
20101
20102done
20103
20104
20105for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106do
20107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113 cat >conftest.$ac_ext <<_ACEOF
20114/* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
20119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20121#define $ac_func innocuous_$ac_func
20122
20123/* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20127
20128#ifdef __STDC__
20129# include <limits.h>
20130#else
20131# include <assert.h>
20132#endif
20133
20134#undef $ac_func
20135
20136/* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139#ifdef __cplusplus
20140extern "C"
20141#endif
20142char $ac_func ();
20143/* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146#if defined __stub_$ac_func || defined __stub___$ac_func
20147choke me
20148#endif
20149
20150int
20151main ()
20152{
20153return $ac_func ();
20154 ;
20155 return 0;
20156}
20157_ACEOF
20158rm -f conftest.$ac_objext conftest$ac_exeext
20159if { (ac_try="$ac_link"
20160case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163esac
20164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_link") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20173 { (case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176esac
20177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_try") 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 eval "$as_ac_var=yes"
20193else
20194 echo "$as_me: failed program was:" >&5
20195sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 eval "$as_ac_var=no"
20198fi
20199
20200rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20202fi
20203ac_res=`eval echo '${'$as_ac_var'}'`
20204 { echo "$as_me:$LINENO: result: $ac_res" >&5
20205echo "${ECHO_T}$ac_res" >&6; }
20206if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020207 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020209_ACEOF
20210
20211fi
20212done
20213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020214{ echo "$as_me:$LINENO: checking for working mmap" >&5
20215echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20216if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020220 ac_cv_func_mmap_fixed_mapped=no
20221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020222 cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020228$ac_includes_default
20229/* malloc might have been renamed as rpl_malloc. */
20230#undef malloc
20231
20232/* Thanks to Mike Haertel and Jim Avera for this test.
20233 Here is a matrix of mmap possibilities:
20234 mmap private not fixed
20235 mmap private fixed at somewhere currently unmapped
20236 mmap private fixed at somewhere already mapped
20237 mmap shared not fixed
20238 mmap shared fixed at somewhere currently unmapped
20239 mmap shared fixed at somewhere already mapped
20240 For private mappings, we should verify that changes cannot be read()
20241 back from the file, nor mmap's back from the file at a different
20242 address. (There have been systems where private was not correctly
20243 implemented like the infamous i386 svr4.0, and systems where the
20244 VM page cache was not coherent with the file system buffer cache
20245 like early versions of FreeBSD and possibly contemporary NetBSD.)
20246 For shared mappings, we should conversely verify that changes get
20247 propagated back to all the places they're supposed to be.
20248
20249 Grep wants private fixed already mapped.
20250 The main things grep needs to know about mmap are:
20251 * does it exist and is it safe to write into the mmap'd area
20252 * how to use it (BSD variants) */
20253
20254#include <fcntl.h>
20255#include <sys/mman.h>
20256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020258char *malloc ();
20259#endif
20260
20261/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262#if !HAVE_GETPAGESIZE
20263/* Assume that all systems that can run configure have sys/param.h. */
20264# if !HAVE_SYS_PARAM_H
20265# define HAVE_SYS_PARAM_H 1
20266# endif
20267
John Criswell7a73b802003-06-30 21:59:07 +000020268# ifdef _SC_PAGESIZE
20269# define getpagesize() sysconf(_SC_PAGESIZE)
20270# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020271# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020272# include <sys/param.h>
20273# ifdef EXEC_PAGESIZE
20274# define getpagesize() EXEC_PAGESIZE
20275# else /* no EXEC_PAGESIZE */
20276# ifdef NBPG
20277# define getpagesize() NBPG * CLSIZE
20278# ifndef CLSIZE
20279# define CLSIZE 1
20280# endif /* no CLSIZE */
20281# else /* no NBPG */
20282# ifdef NBPC
20283# define getpagesize() NBPC
20284# else /* no NBPC */
20285# ifdef PAGESIZE
20286# define getpagesize() PAGESIZE
20287# endif /* PAGESIZE */
20288# endif /* no NBPC */
20289# endif /* no NBPG */
20290# endif /* no EXEC_PAGESIZE */
20291# else /* no HAVE_SYS_PARAM_H */
20292# define getpagesize() 8192 /* punt totally */
20293# endif /* no HAVE_SYS_PARAM_H */
20294# endif /* no _SC_PAGESIZE */
20295
20296#endif /* no HAVE_GETPAGESIZE */
20297
20298int
20299main ()
20300{
20301 char *data, *data2, *data3;
20302 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020303 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020304
20305 pagesize = getpagesize ();
20306
20307 /* First, make a file with some known garbage in it. */
20308 data = (char *) malloc (pagesize);
20309 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020310 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020311 for (i = 0; i < pagesize; ++i)
20312 *(data + i) = rand ();
20313 umask (0);
20314 fd = creat ("conftest.mmap", 0600);
20315 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020317 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020319 close (fd);
20320
20321 /* Next, try to mmap the file at a fixed address which already has
20322 something else allocated at it. If we can, also make sure that
20323 we see the same garbage. */
20324 fd = open ("conftest.mmap", O_RDWR);
20325 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326 return 1;
20327 data2 = (char *) malloc (2 * pagesize);
20328 if (!data2)
20329 return 1;
20330 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020331 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020332 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020334 for (i = 0; i < pagesize; ++i)
20335 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020337
20338 /* Finally, make sure that changes to the mapped area do not
20339 percolate back to the file as seen by read(). (This is a bug on
20340 some variants of i386 svr4.0.) */
20341 for (i = 0; i < pagesize; ++i)
20342 *(data2 + i) = *(data2 + i) + 1;
20343 data3 = (char *) malloc (pagesize);
20344 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020345 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020346 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020348 for (i = 0; i < pagesize; ++i)
20349 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020351 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020352 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020353}
20354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020355rm -f conftest$ac_exeext
20356if { (ac_try="$ac_link"
20357case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360esac
20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_link") 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20366 { (case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20369esac
20370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_try") 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020375 ac_cv_func_mmap_fixed_mapped=yes
20376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020377 echo "$as_me: program exited with status $ac_status" >&5
20378echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381( exit $ac_status )
20382ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020385fi
Reid Spencera773bd52006-08-04 18:18:08 +000020386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387
John Criswell7a73b802003-06-30 21:59:07 +000020388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20390echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020391if test $ac_cv_func_mmap_fixed_mapped = yes; then
20392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393cat >>confdefs.h <<\_ACEOF
20394#define HAVE_MMAP 1
20395_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020396
20397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020398rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020400 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20401echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20402if test "${ac_cv_func_mmap_file+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020404else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020405 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020406ac_cpp='$CPP $CPPFLAGS'
20407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020411 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020412 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020414 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416 /* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020421
John Criswell7a73b802003-06-30 21:59:07 +000020422#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020423#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020424#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020425
20426int
20427main ()
20428{
John Criswell7a73b802003-06-30 21:59:07 +000020429
20430 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020431 fd = creat ("foo",0777);
20432 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20433 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020434 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020435 ;
20436 return 0;
20437}
John Criswell7a73b802003-06-30 21:59:07 +000020438_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439rm -f conftest$ac_exeext
20440if { (ac_try="$ac_link"
20441case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444esac
20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20450 { (case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453esac
20454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_try") 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020459 ac_cv_func_mmap_file=yes
20460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461 echo "$as_me: program exited with status $ac_status" >&5
20462echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465( exit $ac_status )
20466ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020469fi
Reid Spencera773bd52006-08-04 18:18:08 +000020470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471
John Criswell7a73b802003-06-30 21:59:07 +000020472 ac_ext=c
20473ac_cpp='$CPP $CPPFLAGS'
20474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477
20478
20479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20481echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020482if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484cat >>confdefs.h <<\_ACEOF
20485#define HAVE_MMAP_FILE
20486_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020487
20488 MMAP_FILE=yes
20489
20490fi
20491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20493echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20494if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020496else
Reid Spencer582a23c2004-12-29 07:07:57 +000020497 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020498 ac_cv_need_dev_zero_for_mmap=yes
20499 else
20500 ac_cv_need_dev_zero_for_mmap=no
20501 fi
20502
20503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020504{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20505echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020506if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508cat >>confdefs.h <<\_ACEOF
20509#define NEED_DEV_ZERO_FOR_MMAP 1
20510_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020511
20512fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020513
Reid Spencer30fe5262007-01-20 07:48:49 +000020514 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20515 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20517echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020518 fi
20519 if test "$ac_cv_func_mmap_file" = "no"
20520 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20522echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020523 fi
John Criswellb13092b2003-07-22 21:00:24 +000020524fi
John Criswell7a73b802003-06-30 21:59:07 +000020525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20527echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020528ac_ext=cpp
20529ac_cpp='$CXXCPP $CPPFLAGS'
20530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020534cat >conftest.$ac_ext <<_ACEOF
20535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020539/* end confdefs.h. */
20540int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020541 volatile unsigned long val = 1;
20542 __sync_synchronize();
20543 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020544 __sync_add_and_fetch(&val, 1);
20545 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020546 return 0;
20547 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020548
20549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550rm -f conftest.$ac_objext conftest$ac_exeext
20551if { (ac_try="$ac_link"
20552case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568esac
20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest$ac_exeext'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578esac
20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020584 ac_ext=c
20585ac_cpp='$CPP $CPPFLAGS'
20586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20588ac_compiler_gnu=$ac_cv_c_compiler_gnu
20589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590 { echo "$as_me:$LINENO: result: yes" >&5
20591echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020594#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020595_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020596
Owen Andersond4b272b2009-05-18 23:58:51 +000020597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598 echo "$as_me: failed program was:" >&5
20599sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601 { echo "$as_me:$LINENO: result: no" >&5
20602echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020605#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606_ACEOF
20607
20608 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20609echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611
Owen Andersond4b272b2009-05-18 23:58:51 +000020612rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020614
John Criswell7a73b802003-06-30 21:59:07 +000020615
Nick Lewycky4372e692009-09-29 06:18:23 +000020616if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020617 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20618echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20619if test "${llvm_cv_linux_mixed+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020621else
20622 ac_ext=c
20623ac_cpp='$CPP $CPPFLAGS'
20624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626ac_compiler_gnu=$ac_cv_c_compiler_gnu
20627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628 cat >conftest.$ac_ext <<_ACEOF
20629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020633/* end confdefs.h. */
20634#ifndef __x86_64__
20635 error: Not x86-64 even if uname says so!
20636 #endif
20637
20638int
20639main ()
20640{
20641
20642 ;
20643 return 0;
20644}
20645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020646rm -f conftest.$ac_objext
20647if { (ac_try="$ac_compile"
20648case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651esac
20652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664esac
20665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020680 llvm_cv_linux_mixed=no
20681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682 echo "$as_me: failed program was:" >&5
20683sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687
Nick Lewycky4372e692009-09-29 06:18:23 +000020688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 ac_ext=c
20690ac_cpp='$CPP $CPPFLAGS'
20691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20693ac_compiler_gnu=$ac_cv_c_compiler_gnu
20694
20695
20696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20698echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020699
20700 if test "$llvm_cv_linux_mixed" = "yes"; then
20701 llvm_cv_target_arch="x86"
20702 ARCH="x86"
20703 fi
20704fi
20705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706
Reid Spencer9372f152007-07-30 20:13:24 +000020707for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708do
20709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20714else
20715 cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h. */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h. */
20721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20723#define $ac_func innocuous_$ac_func
20724
20725/* System header to define __stub macros and hopefully few prototypes,
20726 which can conflict with char $ac_func (); below.
20727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20728 <limits.h> exists even on freestanding compilers. */
20729
20730#ifdef __STDC__
20731# include <limits.h>
20732#else
20733# include <assert.h>
20734#endif
20735
20736#undef $ac_func
20737
20738/* Override any GCC internal prototype to avoid an error.
20739 Use char because int might match the return type of a GCC
20740 builtin and then its argument prototype would still apply. */
20741#ifdef __cplusplus
20742extern "C"
20743#endif
20744char $ac_func ();
20745/* The GNU C library defines this for functions which it implements
20746 to always fail with ENOSYS. Some functions are actually named
20747 something starting with __ and the normal name is an alias. */
20748#if defined __stub_$ac_func || defined __stub___$ac_func
20749choke me
20750#endif
20751
20752int
20753main ()
20754{
20755return $ac_func ();
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext conftest$ac_exeext
20761if { (ac_try="$ac_link"
20762case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765esac
20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778esac
20779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest$ac_exeext'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788esac
20789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 eval "$as_ac_var=yes"
20795else
20796 echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 eval "$as_ac_var=no"
20800fi
20801
20802rm -f core conftest.err conftest.$ac_objext \
20803 conftest$ac_exeext conftest.$ac_ext
20804fi
20805ac_res=`eval echo '${'$as_ac_var'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807echo "${ECHO_T}$ac_res" >&6; }
20808if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020811_ACEOF
20812
20813fi
20814done
20815
20816
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020817SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020818
20819
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020820SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20821
20822
Reid Spencere9de0912004-08-20 09:03:57 +000020823# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020824# information into substitutions that will end up in Makefile.config.in
20825# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020826if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020827 prefix="/usr/local"
20828fi
Reid Spencere9de0912004-08-20 09:03:57 +000020829eval LLVM_PREFIX="${prefix}";
20830eval LLVM_BINDIR="${prefix}/bin";
20831eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020832eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020833eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020834eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020835eval LLVM_INCLUDEDIR="${prefix}/include";
20836eval LLVM_INFODIR="${prefix}/info";
20837eval LLVM_MANDIR="${prefix}/man";
20838LLVM_CONFIGTIME=`date`
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020850# Place the various directores into the config.h file as #defines so that we
20851# can know about the installation paths within LLVM.
20852
Reid Spencere9de0912004-08-20 09:03:57 +000020853cat >>confdefs.h <<_ACEOF
20854#define LLVM_PREFIX "$LLVM_PREFIX"
20855_ACEOF
20856
20857
20858cat >>confdefs.h <<_ACEOF
20859#define LLVM_BINDIR "$LLVM_BINDIR"
20860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_LIBDIR "$LLVM_LIBDIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_DATADIR "$LLVM_DATADIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020874#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020879#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020880_ACEOF
20881
20882
20883cat >>confdefs.h <<_ACEOF
20884#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20885_ACEOF
20886
20887
20888cat >>confdefs.h <<_ACEOF
20889#define LLVM_INFODIR "$LLVM_INFODIR"
20890_ACEOF
20891
20892
20893cat >>confdefs.h <<_ACEOF
20894#define LLVM_MANDIR "$LLVM_MANDIR"
20895_ACEOF
20896
20897
20898cat >>confdefs.h <<_ACEOF
20899#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20900_ACEOF
20901
20902
Eric Christopher790e11c2007-12-01 00:34:39 +000020903cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020904#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020905_ACEOF
20906
20907
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020908# Determine which bindings to build.
20909if test "$BINDINGS_TO_BUILD" = auto ; then
20910 BINDINGS_TO_BUILD=""
20911 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20912 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20913 fi
20914fi
20915BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20916
20917
20918# This isn't really configurey, but it avoids having to repeat the list in
20919# other files.
20920ALL_BINDINGS=ocaml
20921
20922
Gordon Henriksenf0915682007-10-02 16:42:22 +000020923# Do any work necessary to ensure that bindings have what they need.
20924binding_prereqs_failed=0
20925for a_binding in $BINDINGS_TO_BUILD ; do
20926 case "$a_binding" in
20927 ocaml)
20928 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020929 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20930echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000020931 binding_prereqs_failed=1
20932 fi
20933 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20935echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000020936 binding_prereqs_failed=1
20937 fi
20938 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20940echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000020941 fi
20942 if test "x$with_ocaml_libdir" != xauto ; then
20943 OCAML_LIBDIR=$with_ocaml_libdir
20944
20945 else
20946 ocaml_stdlib="`"$OCAMLC" -where`"
20947 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20948 then
20949 # ocaml stdlib is beneath our prefix; use stdlib
20950 OCAML_LIBDIR=$ocaml_stdlib
20951
20952 else
20953 # ocaml stdlib is outside our prefix; use libdir/ocaml
20954 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20955
20956 fi
20957 fi
20958 ;;
20959 esac
20960done
20961if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20963echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20964 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020965fi
20966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20968echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20969if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020971else
20972 ac_ext=cpp
20973ac_cpp='$CXXCPP $CPPFLAGS'
20974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977
20978 oldcxxflags="$CXXFLAGS"
20979 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 cat >conftest.$ac_ext <<_ACEOF
20981/* confdefs.h. */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020985/* end confdefs.h. */
20986
20987int
20988main ()
20989{
20990
20991 ;
20992 return 0;
20993}
20994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995rm -f conftest.$ac_objext
20996if { (ac_try="$ac_compile"
20997case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_compile") 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013esac
21014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021029 llvm_cv_cxx_visibility_inlines_hidden=yes
21030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021031 echo "$as_me: failed program was:" >&5
21032sed 's/^/| /' conftest.$ac_ext >&5
21033
21034 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 CXXFLAGS="$oldcxxflags"
21039 ac_ext=c
21040ac_cpp='$CPP $CPPFLAGS'
21041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044
21045
21046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021047{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21048echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021049if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21050 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21051
21052else
21053 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21054
21055fi
21056
Gordon Henriksenf0915682007-10-02 16:42:22 +000021057
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021058if test "$llvm_cv_link_use_r" = "yes" ; then
21059 RPATH="-Wl,-R"
21060else
21061 RPATH="-Wl,-rpath"
21062fi
21063
21064
21065if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21066 RDYNAMIC="-Wl,-export-dynamic"
21067else
21068 RDYNAMIC=""
21069fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021070
21071
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021072
Eric Christophera1cba682010-08-08 02:44:25 +000021073ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021074
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021075
21076
21077
21078
21079
Douglas Gregor1555a232009-06-16 20:12:29 +000021080ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21081
21082ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21083
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021084ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21085
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021086ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21087
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021088ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021090
Reid Spencera773bd52006-08-04 18:18:08 +000021091ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021092
Eric Christopher360fa9a2011-10-26 00:42:12 +000021093
Reid Spencerea949cf2006-08-16 00:45:38 +000021094ac_config_files="$ac_config_files llvm.spec"
21095
21096
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021097ac_config_files="$ac_config_files docs/doxygen.cfg"
21098
21099if test -f ${srcdir}/tools/clang/README.txt; then
21100 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21101
21102fi
21103
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021104ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021105
Eric Christopher360fa9a2011-10-26 00:42:12 +000021106
Reid Spencera773bd52006-08-04 18:18:08 +000021107ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021108
Reid Spencera773bd52006-08-04 18:18:08 +000021109ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021110
21111
Reid Spencera773bd52006-08-04 18:18:08 +000021112ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021113
21114
Reid Spencera773bd52006-08-04 18:18:08 +000021115ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021116
21117
Reid Spencera773bd52006-08-04 18:18:08 +000021118ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021119
21120
Reid Spencer8b2e1412006-11-17 03:32:33 +000021121ac_config_commands="$ac_config_commands runtime/Makefile"
21122
21123
Reid Spencera773bd52006-08-04 18:18:08 +000021124ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021125
21126
Reid Spencera773bd52006-08-04 18:18:08 +000021127ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021128
21129
Bill Wendlingf24eb392009-01-04 23:12:30 +000021130ac_config_commands="$ac_config_commands unittests/Makefile"
21131
21132
Reid Spencera773bd52006-08-04 18:18:08 +000021133ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021134
21135
Reid Spencera773bd52006-08-04 18:18:08 +000021136ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021137
21138
Reid Spencera773bd52006-08-04 18:18:08 +000021139ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021140
21141
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021142ac_config_commands="$ac_config_commands bindings/Makefile"
21143
21144
21145ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21146
21147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021148
John Criswell7a73b802003-06-30 21:59:07 +000021149cat >confcache <<\_ACEOF
21150# This file is a shell script that caches the results of configure
21151# tests run on this system so they can be shared between configure
21152# scripts and configure runs, see configure's option --config-cache.
21153# It is not useful on other systems. If it contains results you don't
21154# want to keep, you may remove or edit it.
21155#
21156# config.status only pays attention to the cache file if you give it
21157# the --recheck option to rerun configure.
21158#
John Criswell0c38eaf2003-09-10 15:17:25 +000021159# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021160# loading this file, other *unset* `ac_cv_foo' will be assigned the
21161# following values.
21162
21163_ACEOF
21164
21165# The following way of writing the cache mishandles newlines in values,
21166# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021167# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021168# Ultrix sh set writes to stderr and can't be redirected directly,
21169# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021170(
21171 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21172 eval ac_val=\$$ac_var
21173 case $ac_val in #(
21174 *${as_nl}*)
21175 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21177echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021178 esac
21179 case $ac_var in #(
21180 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021182 esac ;;
21183 esac
21184 done
21185
John Criswell7a73b802003-06-30 21:59:07 +000021186 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21188 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 # `set' does not quote correctly, so add quotes (double-quote
21190 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021191 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021192 "s/'/'\\\\''/g;
21193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021194 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021195 *)
21196 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021198 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021199 esac |
21200 sort
21201) |
John Criswell7a73b802003-06-30 21:59:07 +000021202 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021203 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021204 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021205 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21207 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21209 :end' >>confcache
21210if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21211 if test -w "$cache_file"; then
21212 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21214echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021215 cat confcache >$cache_file
21216 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21218echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021219 fi
21220fi
21221rm -f confcache
21222
21223test "x$prefix" = xNONE && prefix=$ac_default_prefix
21224# Let make expand exec_prefix.
21225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21226
John Criswell7a73b802003-06-30 21:59:07 +000021227DEFS=-DHAVE_CONFIG_H
21228
John Criswell0c38eaf2003-09-10 15:17:25 +000021229ac_libobjs=
21230ac_ltlibobjs=
21231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21232 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021234 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21236 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21238 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021239done
21240LIBOBJS=$ac_libobjs
21241
21242LTLIBOBJS=$ac_ltlibobjs
21243
21244
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021245if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21247Usually this means the macro was only invoked conditionally." >&5
21248echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21249Usually this means the macro was only invoked conditionally." >&2;}
21250 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021251fi
21252if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21254Usually this means the macro was only invoked conditionally." >&5
21255echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256Usually this means the macro was only invoked conditionally." >&2;}
21257 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021258fi
John Criswell7a73b802003-06-30 21:59:07 +000021259
21260: ${CONFIG_STATUS=./config.status}
21261ac_clean_files_save=$ac_clean_files
21262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21264echo "$as_me: creating $CONFIG_STATUS" >&6;}
21265cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021266#! $SHELL
21267# Generated by $as_me.
21268# Run this file to recreate the current configuration.
21269# Compiler output produced by configure, useful for debugging
21270# configure, is in config.log if it exists.
21271
21272debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021273ac_cs_recheck=false
21274ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021275SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278cat >>$CONFIG_STATUS <<\_ACEOF
21279## --------------------- ##
21280## M4sh Initialization. ##
21281## --------------------- ##
21282
21283# Be Bourne compatible
21284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021285 emulate sh
21286 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021288 # is contrary to our usage. Disable this feature.
21289 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021290 setopt NO_GLOB_SUBST
21291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021294BIN_SH=xpg4; export BIN_SH # for Tru64
21295DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021296
John Criswell7a73b802003-06-30 21:59:07 +000021297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298# PATH needs CR
21299# Avoid depending upon Character Ranges.
21300as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21301as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21302as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21303as_cr_digits='0123456789'
21304as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021305
21306# The user is always right.
21307if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308 echo "#! /bin/sh" >conf$$.sh
21309 echo "exit 0" >>conf$$.sh
21310 chmod +x conf$$.sh
21311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21312 PATH_SEPARATOR=';'
21313 else
21314 PATH_SEPARATOR=:
21315 fi
21316 rm -f conf$$.sh
21317fi
21318
21319# Support unset when possible.
21320if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21321 as_unset=unset
21322else
21323 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021324fi
John Criswell7a73b802003-06-30 21:59:07 +000021325
Reid Spencera773bd52006-08-04 18:18:08 +000021326
21327# IFS
21328# We need space, tab and new line, in precisely that order. Quoting is
21329# there to prevent editors from complaining about space-tab.
21330# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21331# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332as_nl='
21333'
Reid Spencera773bd52006-08-04 18:18:08 +000021334IFS=" "" $as_nl"
21335
21336# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021337case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021338 *[\\/]* ) as_myself=$0 ;;
21339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021340for as_dir in $PATH
21341do
21342 IFS=$as_save_IFS
21343 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21345done
Reid Spencera773bd52006-08-04 18:18:08 +000021346IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021347
Reid Spencera773bd52006-08-04 18:18:08 +000021348 ;;
21349esac
21350# We did not find ourselves, most probably we were run as `sh COMMAND'
21351# in which case we are not to be found in the path.
21352if test "x$as_myself" = x; then
21353 as_myself=$0
21354fi
21355if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21357 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021358fi
21359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360# Work around bugs in pre-3.0 UWIN ksh.
21361for as_var in ENV MAIL MAILPATH
21362do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021363done
21364PS1='$ '
21365PS2='> '
21366PS4='+ '
21367
21368# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369for as_var in \
21370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21372 LC_TELEPHONE LC_TIME
21373do
21374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21375 eval $as_var=C; export $as_var
21376 else
21377 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021378 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379done
Torok Edwin871384f2010-01-26 08:50:50 +000021380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021382if expr a : '\(a\)' >/dev/null 2>&1 &&
21383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21384 as_expr=expr
21385else
21386 as_expr=false
21387fi
21388
21389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21390 as_basename=basename
21391else
21392 as_basename=false
21393fi
21394
21395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021397as_me=`$as_basename -- "$0" ||
21398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21399 X"$0" : 'X\(//\)$' \| \
21400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021402 sed '/^.*\/\([^/][^/]*\)\/*$/{
21403 s//\1/
21404 q
21405 }
21406 /^X\/\(\/\/\)$/{
21407 s//\1/
21408 q
21409 }
21410 /^X\/\(\/\).*/{
21411 s//\1/
21412 q
21413 }
21414 s/.*/./; q'`
21415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416# CDPATH.
21417$as_unset CDPATH
21418
21419
21420
21421 as_lineno_1=$LINENO
21422 as_lineno_2=$LINENO
21423 test "x$as_lineno_1" != "x$as_lineno_2" &&
21424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21425
21426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21427 # uniformly replaced by the line number. The first 'sed' inserts a
21428 # line-number line after each line using $LINENO; the second 'sed'
21429 # does the real work. The second script uses 'N' to pair each
21430 # line-number line with the line containing $LINENO, and appends
21431 # trailing '-' during substitution so that $LINENO is not a special
21432 # case at line end.
21433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21434 # scripts with optimization help from Paolo Bonzini. Blame Lee
21435 # E. McMahon (1931-1989) for sed's syntax. :-)
21436 sed -n '
21437 p
21438 /[$]LINENO/=
21439 ' <$as_myself |
21440 sed '
21441 s/[$]LINENO.*/&-/
21442 t lineno
21443 b
21444 :lineno
21445 N
21446 :loop
21447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21448 t loop
21449 s/-\n.*//
21450 ' >$as_me.lineno &&
21451 chmod +x "$as_me.lineno" ||
21452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21453 { (exit 1); exit 1; }; }
21454
21455 # Don't try to exec as it changes $[0], causing all sort of problems
21456 # (the dirname of $[0] is not the place where we might find the
21457 # original and so on. Autoconf is especially sensitive to this).
21458 . "./$as_me.lineno"
21459 # Exit status is that of the last command.
21460 exit
21461}
21462
21463
21464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21465 as_dirname=dirname
21466else
21467 as_dirname=false
21468fi
Reid Spencera773bd52006-08-04 18:18:08 +000021469
21470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021476 esac;;
21477*)
21478 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021479esac
21480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481if expr a : '\(a\)' >/dev/null 2>&1 &&
21482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21483 as_expr=expr
21484else
21485 as_expr=false
21486fi
21487
John Criswell7a73b802003-06-30 21:59:07 +000021488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021489if test -d conf$$.dir; then
21490 rm -f conf$$.dir/conf$$.file
21491else
21492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495echo >conf$$.file
21496if ln -s conf$$.file conf$$ 2>/dev/null; then
21497 as_ln_s='ln -s'
21498 # ... but there are two gotchas:
21499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21501 # In both cases, we have to default to `cp -p'.
21502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504elif ln conf$$.file conf$$ 2>/dev/null; then
21505 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021506else
21507 as_ln_s='cp -p'
21508fi
Reid Spencera773bd52006-08-04 18:18:08 +000021509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21510rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021511
John Criswell0c38eaf2003-09-10 15:17:25 +000021512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021514else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021516 as_mkdir_p=false
21517fi
21518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21520# systems may use methods other than mode bits to determine executability.
21521cat >conf$$.file <<_ASEOF
21522#! /bin/sh
21523exit 0
21524_ASEOF
21525chmod +x conf$$.file
21526if test -x conf$$.file >/dev/null 2>&1; then
21527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021532
21533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021535
21536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021538
21539
John Criswell7a73b802003-06-30 21:59:07 +000021540exec 6>&1
21541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021543# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021544# values after options handling.
21545ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021546This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021548
21549 CONFIG_FILES = $CONFIG_FILES
21550 CONFIG_HEADERS = $CONFIG_HEADERS
21551 CONFIG_LINKS = $CONFIG_LINKS
21552 CONFIG_COMMANDS = $CONFIG_COMMANDS
21553 $ $0 $@
21554
Reid Spencera773bd52006-08-04 18:18:08 +000021555on `(hostname || uname -n) 2>/dev/null | sed 1q`
21556"
21557
John Criswell7a73b802003-06-30 21:59:07 +000021558_ACEOF
21559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021561# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021562config_files="$ac_config_files"
21563config_headers="$ac_config_headers"
21564config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021565
Reid Spencera773bd52006-08-04 18:18:08 +000021566_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021568cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021569ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570\`$as_me' instantiates files from templates according to the
21571current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021574
21575 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576 -V, --version print version number, then exit
21577 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021578 -d, --debug don't remove temporary files
21579 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580 --file=FILE[:TEMPLATE]
21581 instantiate the configuration file FILE
21582 --header=FILE[:TEMPLATE]
21583 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021584
21585Configuration files:
21586$config_files
21587
21588Configuration headers:
21589$config_headers
21590
John Criswellc764fbc2003-09-06 15:17:13 +000021591Configuration commands:
21592$config_commands
21593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021594Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021595
Reid Spencera773bd52006-08-04 18:18:08 +000021596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021598ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021599llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021600configured by $0, generated by GNU Autoconf 2.60,
21601 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021604This config.status script is free software; the Free Software Foundation
21605gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021606
21607ac_pwd='$ac_pwd'
21608srcdir='$srcdir'
21609INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021610_ACEOF
21611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021612cat >>$CONFIG_STATUS <<\_ACEOF
21613# If no file are specified by the user, then we need to provide default
21614# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021615ac_need_defaults=:
21616while test $# != 0
21617do
21618 case $1 in
21619 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021622 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021624 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021625 ac_option=$1
21626 ac_optarg=$2
21627 ac_shift=shift
21628 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021629 esac
21630
John Criswell0c38eaf2003-09-10 15:17:25 +000021631 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021632 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21634 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021637 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021638 debug=: ;;
21639 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021640 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021642 ac_need_defaults=false;;
21643 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021644 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021646 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021647 --he | --h)
21648 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649 { echo "$as_me: error: ambiguous option: $1
21650Try \`$0 --help' for more information." >&2
21651 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021652 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21656 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021657
21658 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659 -*) { echo "$as_me: error: unrecognized option: $1
21660Try \`$0 --help' for more information." >&2
21661 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021664 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021665
21666 esac
21667 shift
21668done
21669
John Criswell0c38eaf2003-09-10 15:17:25 +000021670ac_configure_extra_args=
21671
21672if $ac_cs_silent; then
21673 exec 6>/dev/null
21674 ac_configure_extra_args="$ac_configure_extra_args --silent"
21675fi
21676
21677_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021679if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21681 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021682 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021683 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021684fi
21685
John Criswell7a73b802003-06-30 21:59:07 +000021686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021688exec 5>>config.log
21689{
21690 echo
21691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21692## Running $as_me. ##
21693_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021694 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021695} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021696
Reid Spencera773bd52006-08-04 18:18:08 +000021697_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021699#
Reid Spencera773bd52006-08-04 18:18:08 +000021700# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021701#
Reid Spencerc0682832005-02-24 19:05:19 +000021702llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021703
21704_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021707
21708# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021709for ac_config_target in $ac_config_targets
21710do
Reid Spencera773bd52006-08-04 18:18:08 +000021711 case $ac_config_target in
21712 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021713 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021714 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21715 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021716 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021717 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021718 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021719 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021720 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021721 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21722 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021723 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021724 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21725 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21726 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21727 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21728 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021729 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021730 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21731 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021732 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021733 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21734 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21735 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021736 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21737 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21740echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21741 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021742 esac
21743done
21744
Reid Spencera773bd52006-08-04 18:18:08 +000021745
John Criswell7a73b802003-06-30 21:59:07 +000021746# If the user did not use the arguments to specify the items to instantiate,
21747# then the envvar interface is used. Set only those that are not.
21748# We use the long form for the default assignment because of an extremely
21749# bizarre bug on SunOS 4.1.3.
21750if $ac_need_defaults; then
21751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021754fi
21755
John Criswell0c38eaf2003-09-10 15:17:25 +000021756# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021757# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021758# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021759# Hook for its removal unless debugging.
21760# Note that there is a small window in which the directory will not be cleaned:
21761# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021762$debug ||
21763{
Reid Spencera773bd52006-08-04 18:18:08 +000021764 tmp=
21765 trap 'exit_status=$?
21766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21767' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021769}
John Criswell7a73b802003-06-30 21:59:07 +000021770# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021771
John Criswell7a73b802003-06-30 21:59:07 +000021772{
Reid Spencera773bd52006-08-04 18:18:08 +000021773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021774 test -n "$tmp" && test -d "$tmp"
21775} ||
21776{
Reid Spencera773bd52006-08-04 18:18:08 +000021777 tmp=./conf$$-$RANDOM
21778 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779} ||
21780{
21781 echo "$me: cannot create a temporary directory in ." >&2
21782 { (exit 1); exit 1; }
21783}
John Criswell7a73b802003-06-30 21:59:07 +000021784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785#
21786# Set up the sed scripts for CONFIG_FILES section.
21787#
21788
21789# No need to generate the scripts if there are no CONFIG_FILES.
21790# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021791if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021792
21793_ACEOF
21794
Reid Spencera773bd52006-08-04 18:18:08 +000021795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021796
Reid Spencera773bd52006-08-04 18:18:08 +000021797ac_delim='%!_!# '
21798for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799 cat >conf$$subs.sed <<_ACEOF
21800SHELL!$SHELL$ac_delim
21801PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21802PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21803PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21804PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21805PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21806PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21807exec_prefix!$exec_prefix$ac_delim
21808prefix!$prefix$ac_delim
21809program_transform_name!$program_transform_name$ac_delim
21810bindir!$bindir$ac_delim
21811sbindir!$sbindir$ac_delim
21812libexecdir!$libexecdir$ac_delim
21813datarootdir!$datarootdir$ac_delim
21814datadir!$datadir$ac_delim
21815sysconfdir!$sysconfdir$ac_delim
21816sharedstatedir!$sharedstatedir$ac_delim
21817localstatedir!$localstatedir$ac_delim
21818includedir!$includedir$ac_delim
21819oldincludedir!$oldincludedir$ac_delim
21820docdir!$docdir$ac_delim
21821infodir!$infodir$ac_delim
21822htmldir!$htmldir$ac_delim
21823dvidir!$dvidir$ac_delim
21824pdfdir!$pdfdir$ac_delim
21825psdir!$psdir$ac_delim
21826libdir!$libdir$ac_delim
21827localedir!$localedir$ac_delim
21828mandir!$mandir$ac_delim
21829DEFS!$DEFS$ac_delim
21830ECHO_C!$ECHO_C$ac_delim
21831ECHO_N!$ECHO_N$ac_delim
21832ECHO_T!$ECHO_T$ac_delim
21833LIBS!$LIBS$ac_delim
21834build_alias!$build_alias$ac_delim
21835host_alias!$host_alias$ac_delim
21836target_alias!$target_alias$ac_delim
21837LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021838CC!$CC$ac_delim
21839CFLAGS!$CFLAGS$ac_delim
21840LDFLAGS!$LDFLAGS$ac_delim
21841CPPFLAGS!$CPPFLAGS$ac_delim
21842ac_ct_CC!$ac_ct_CC$ac_delim
21843EXEEXT!$EXEEXT$ac_delim
21844OBJEXT!$OBJEXT$ac_delim
21845CXX!$CXX$ac_delim
21846CXXFLAGS!$CXXFLAGS$ac_delim
21847ac_ct_CXX!$ac_ct_CXX$ac_delim
21848CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021850ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21851LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852build!$build$ac_delim
21853build_cpu!$build_cpu$ac_delim
21854build_vendor!$build_vendor$ac_delim
21855build_os!$build_os$ac_delim
21856host!$host$ac_delim
21857host_cpu!$host_cpu$ac_delim
21858host_vendor!$host_vendor$ac_delim
21859host_os!$host_os$ac_delim
21860target!$target$ac_delim
21861target_cpu!$target_cpu$ac_delim
21862target_vendor!$target_vendor$ac_delim
21863target_os!$target_os$ac_delim
21864OS!$OS$ac_delim
21865HOST_OS!$HOST_OS$ac_delim
21866TARGET_OS!$TARGET_OS$ac_delim
21867LINKALL!$LINKALL$ac_delim
21868NOLINKALL!$NOLINKALL$ac_delim
21869LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21870LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21871ARCH!$ARCH$ac_delim
21872ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873GREP!$GREP$ac_delim
21874EGREP!$EGREP$ac_delim
21875LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21876BUILD_CC!$BUILD_CC$ac_delim
21877BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21878BUILD_CXX!$BUILD_CXX$ac_delim
21879CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021880ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21882ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21883DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21884ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21885EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21886DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21887DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21888JIT!$JIT$ac_delim
21889TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021890ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021892LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021893ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021894ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021895ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021896ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021900 break
21901 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21903echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21904 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021905 else
21906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021907 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021908done
21909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21911if test -n "$ac_eof"; then
21912 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21913 ac_eof=`expr $ac_eof + 1`
21914fi
21915
21916cat >>$CONFIG_STATUS <<_ACEOF
21917cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920sed '
21921s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21922s/^/s,@/; s/!/@,|#_!!_#|/
21923:n
21924t n
21925s/'"$ac_delim"'$/,g/; t
21926s/$/\\/; p
21927N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21928' >>$CONFIG_STATUS <conf$$subs.sed
21929rm -f conf$$subs.sed
21930cat >>$CONFIG_STATUS <<_ACEOF
21931CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933
21934
21935ac_delim='%!_!# '
21936for ac_last_try in false false false false false :; do
21937 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021938ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021939TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21940LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21941LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021942LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021943LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021944ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021945OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021946EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021947EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021948CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021949BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021950INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951NM!$NM$ac_delim
21952ifGNUmake!$ifGNUmake$ac_delim
21953LN_S!$LN_S$ac_delim
21954CMP!$CMP$ac_delim
21955CP!$CP$ac_delim
21956DATE!$DATE$ac_delim
21957FIND!$FIND$ac_delim
21958MKDIR!$MKDIR$ac_delim
21959MV!$MV$ac_delim
21960RANLIB!$RANLIB$ac_delim
21961AR!$AR$ac_delim
21962RM!$RM$ac_delim
21963SED!$SED$ac_delim
21964TAR!$TAR$ac_delim
21965BINPWD!$BINPWD$ac_delim
21966GRAPHVIZ!$GRAPHVIZ$ac_delim
21967DOT!$DOT$ac_delim
21968FDP!$FDP$ac_delim
21969NEATO!$NEATO$ac_delim
21970TWOPI!$TWOPI$ac_delim
21971CIRCO!$CIRCO$ac_delim
21972GV!$GV$ac_delim
21973DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021974XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975PERL!$PERL$ac_delim
21976HAVE_PERL!$HAVE_PERL$ac_delim
21977INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21978INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21979INSTALL_DATA!$INSTALL_DATA$ac_delim
21980BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021981CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982DOXYGEN!$DOXYGEN$ac_delim
21983GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021984GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985POD2HTML!$POD2HTML$ac_delim
21986POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021987PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988RUNTEST!$RUNTEST$ac_delim
21989TCLSH!$TCLSH$ac_delim
21990ZIP!$ZIP$ac_delim
21991OCAMLC!$OCAMLC$ac_delim
21992OCAMLOPT!$OCAMLOPT$ac_delim
21993OCAMLDEP!$OCAMLDEP$ac_delim
21994OCAMLDOC!$OCAMLDOC$ac_delim
21995GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021996HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21998INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21999CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22000CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22001LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22003NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22004USE_UDIS86!$USE_UDIS86$ac_delim
22005USE_OPROFILE!$USE_OPROFILE$ac_delim
22006HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22007HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22008MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022010SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022011LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22012LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22013LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22014LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22015LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22016LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22017LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22018LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22019LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22020LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22021BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22022ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022023OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22024ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22025RPATH!$RPATH$ac_delim
22026RDYNAMIC!$RDYNAMIC$ac_delim
22027LIBOBJS!$LIBOBJS$ac_delim
22028LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022029_ACEOF
22030
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022031 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032 break
22033 elif $ac_last_try; then
22034 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22035echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22036 { (exit 1); exit 1; }; }
22037 else
22038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22039 fi
22040done
22041
22042ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22043if test -n "$ac_eof"; then
22044 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22045 ac_eof=`expr $ac_eof + 1`
22046fi
22047
22048cat >>$CONFIG_STATUS <<_ACEOF
22049cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22051_ACEOF
22052sed '
22053s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22054s/^/s,@/; s/!/@,|#_!!_#|/
22055:n
22056t n
22057s/'"$ac_delim"'$/,g/; t
22058s/$/\\/; p
22059N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22060' >>$CONFIG_STATUS <conf$$subs.sed
22061rm -f conf$$subs.sed
22062cat >>$CONFIG_STATUS <<_ACEOF
22063:end
22064s/|#_!!_#|//g
22065CEOF$ac_eof
22066_ACEOF
22067
22068
Reid Spencera773bd52006-08-04 18:18:08 +000022069# VPATH may cause trouble with some makes, so we remove $(srcdir),
22070# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22071# trailing colons and then remove the whole line if VPATH becomes empty
22072# (actually we leave an empty line to preserve line numbers).
22073if test "x$srcdir" = x.; then
22074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22075s/:*\$(srcdir):*/:/
22076s/:*\${srcdir}:*/:/
22077s/:*@srcdir@:*/:/
22078s/^\([^=]*=[ ]*\):*/\1/
22079s/:*$//
22080s/^[^=]*=[ ]*$//
22081}'
22082fi
22083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022085fi # test -n "$CONFIG_FILES"
22086
Reid Spencera773bd52006-08-04 18:18:08 +000022087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022088for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022089do
22090 case $ac_tag in
22091 :[FHLC]) ac_mode=$ac_tag; continue;;
22092 esac
22093 case $ac_mode$ac_tag in
22094 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022095 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22096echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22097 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022098 :[FH]-) ac_tag=-:-;;
22099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22100 esac
22101 ac_save_IFS=$IFS
22102 IFS=:
22103 set x $ac_tag
22104 IFS=$ac_save_IFS
22105 shift
22106 ac_file=$1
22107 shift
22108
22109 case $ac_mode in
22110 :L) ac_source=$1;;
22111 :[FH])
22112 ac_file_inputs=
22113 for ac_f
22114 do
22115 case $ac_f in
22116 -) ac_f="$tmp/stdin";;
22117 *) # Look for the file first in the build tree, then in the source tree
22118 # (if the path is not absolute). The absolute path cannot be DOS-style,
22119 # because $ac_f cannot contain `:'.
22120 test -f "$ac_f" ||
22121 case $ac_f in
22122 [\\/$]*) false;;
22123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22124 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22126echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22127 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022128 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022129 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022130 done
22131
22132 # Let's still pretend it is `configure' which instantiates (i.e., don't
22133 # use $as_me), people would be surprised to read:
22134 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135 configure_input="Generated from "`IFS=:
22136 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022137 if test x"$ac_file" != x-; then
22138 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139 { echo "$as_me:$LINENO: creating $ac_file" >&5
22140echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022141 fi
22142
22143 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022145 esac
22146 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022147 esac
22148
Reid Spencera773bd52006-08-04 18:18:08 +000022149 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022151 X"$ac_file" : 'X\(//\)[^/]' \| \
22152 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022154echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22156 s//\1/
22157 q
22158 }
22159 /^X\(\/\/\)[^/].*/{
22160 s//\1/
22161 q
22162 }
22163 /^X\(\/\/\)$/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\).*/{
22168 s//\1/
22169 q
22170 }
22171 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 { as_dir="$ac_dir"
22173 case $as_dir in #(
22174 -*) as_dir=./$as_dir;;
22175 esac
22176 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22177 as_dirs=
22178 while :; do
22179 case $as_dir in #(
22180 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22181 *) as_qdir=$as_dir;;
22182 esac
22183 as_dirs="'$as_qdir' $as_dirs"
22184 as_dir=`$as_dirname -- "$as_dir" ||
22185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22186 X"$as_dir" : 'X\(//\)[^/]' \| \
22187 X"$as_dir" : 'X\(//\)$' \| \
22188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22189echo X"$as_dir" |
22190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22191 s//\1/
22192 q
22193 }
22194 /^X\(\/\/\)[^/].*/{
22195 s//\1/
22196 q
22197 }
22198 /^X\(\/\/\)$/{
22199 s//\1/
22200 q
22201 }
22202 /^X\(\/\).*/{
22203 s//\1/
22204 q
22205 }
22206 s/.*/./; q'`
22207 test -d "$as_dir" && break
22208 done
22209 test -z "$as_dirs" || eval "mkdir $as_dirs"
22210 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22211echo "$as_me: error: cannot create directory $as_dir" >&2;}
22212 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022213 ac_builddir=.
22214
Reid Spencera773bd52006-08-04 18:18:08 +000022215case "$ac_dir" in
22216.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22217*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022219 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022220 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022221 case $ac_top_builddir_sub in
22222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22224 esac ;;
22225esac
22226ac_abs_top_builddir=$ac_pwd
22227ac_abs_builddir=$ac_pwd$ac_dir_suffix
22228# for backward compatibility:
22229ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022230
22231case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022232 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022233 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022234 ac_top_srcdir=$ac_top_builddir_sub
22235 ac_abs_top_srcdir=$ac_pwd ;;
22236 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022237 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022238 ac_top_srcdir=$srcdir
22239 ac_abs_top_srcdir=$srcdir ;;
22240 *) # Relative name.
22241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22242 ac_top_srcdir=$ac_top_build_prefix$srcdir
22243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022244esac
Reid Spencera773bd52006-08-04 18:18:08 +000022245ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022246
John Criswell7a73b802003-06-30 21:59:07 +000022247
Reid Spencera773bd52006-08-04 18:18:08 +000022248 case $ac_mode in
22249 :F)
22250 #
22251 # CONFIG_FILE
22252 #
John Criswell7a73b802003-06-30 21:59:07 +000022253
22254 case $INSTALL in
22255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022256 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022257 esac
John Criswell7a73b802003-06-30 21:59:07 +000022258_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022261# If the template does not know about datarootdir, expand it.
22262# FIXME: This hack should be removed a few years after 2.60.
22263ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022264
22265case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022266 p
22267 q
22268}
22269/@datadir@/p
22270/@docdir@/p
22271/@infodir@/p
22272/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022273/@mandir@/p
22274' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022275*datarootdir*) ac_datarootdir_seen=yes;;
22276*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022277 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22278echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022281 ac_datarootdir_hack='
22282 s&@datadir@&$datadir&g
22283 s&@docdir@&$docdir&g
22284 s&@infodir@&$infodir&g
22285 s&@localedir@&$localedir&g
22286 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022288esac
22289_ACEOF
22290
22291# Neutralize VPATH when `$srcdir' = `.'.
22292# Shell code in configure.ac might set extrasub.
22293# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294cat >>$CONFIG_STATUS <<_ACEOF
22295 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022296$extrasub
22297_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022299:t
22300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022302s&@top_builddir@&$ac_top_builddir_sub&;t t
22303s&@srcdir@&$ac_srcdir&;t t
22304s&@abs_srcdir@&$ac_abs_srcdir&;t t
22305s&@top_srcdir@&$ac_top_srcdir&;t t
22306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22307s&@builddir@&$ac_builddir&;t t
22308s&@abs_builddir@&$ac_abs_builddir&;t t
22309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22310s&@INSTALL@&$ac_INSTALL&;t t
22311$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022312" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022313
Reid Spencera773bd52006-08-04 18:18:08 +000022314test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22315 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022318which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022320which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022321
Reid Spencera773bd52006-08-04 18:18:08 +000022322 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022323 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324 -) cat "$tmp/out"; rm -f "$tmp/out";;
22325 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22326 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022327 ;;
22328 :H)
22329 #
22330 # CONFIG_HEADER
22331 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332_ACEOF
22333
22334# Transform confdefs.h into a sed script `conftest.defines', that
22335# substitutes the proper values into config.h.in to produce config.h.
22336rm -f conftest.defines conftest.tail
22337# First, append a space to every undef/define line, to ease matching.
22338echo 's/$/ /' >conftest.defines
22339# Then, protect against being on the right side of a sed subst, or in
22340# an unquoted here document, in config.status. If some macros were
22341# called several times there might be several #defines for the same
22342# symbol, which is useless. But do not sort them, since the last
22343# AC_DEFINE must be honored.
22344ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22345# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22346# NAME is the cpp macro being defined, VALUE is the value it is being given.
22347# PARAMS is the parameter list in the macro definition--in most cases, it's
22348# just an empty string.
22349ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22350ac_dB='\\)[ (].*,\\1define\\2'
22351ac_dC=' '
22352ac_dD=' ,'
22353
22354uniq confdefs.h |
22355 sed -n '
22356 t rset
22357 :rset
22358 s/^[ ]*#[ ]*define[ ][ ]*//
22359 t ok
22360 d
22361 :ok
22362 s/[\\&,]/\\&/g
22363 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22364 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22365 ' >>conftest.defines
22366
22367# Remove the space that was appended to ease matching.
22368# Then replace #undef with comments. This is necessary, for
22369# example, in the case of _POSIX_SOURCE, which is predefined and required
22370# on some systems where configure will not decide to define it.
22371# (The regexp can be short, since the line contains either #define or #undef.)
22372echo 's/ $//
22373s,^[ #]*u.*,/* & */,' >>conftest.defines
22374
22375# Break up conftest.defines:
22376ac_max_sed_lines=50
22377
22378# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22379# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22380# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22381# et cetera.
22382ac_in='$ac_file_inputs'
22383ac_out='"$tmp/out1"'
22384ac_nxt='"$tmp/out2"'
22385
22386while :
22387do
22388 # Write a here document:
22389 cat >>$CONFIG_STATUS <<_ACEOF
22390 # First, check the format of the line:
22391 cat >"\$tmp/defines.sed" <<\\CEOF
22392/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22393/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22394b
22395:def
22396_ACEOF
22397 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22398 echo 'CEOF
22399 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22400 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22401 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22402 grep . conftest.tail >/dev/null || break
22403 rm -f conftest.defines
22404 mv conftest.tail conftest.defines
22405done
22406rm -f conftest.defines conftest.tail
22407
22408echo "ac_result=$ac_in" >>$CONFIG_STATUS
22409cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022410 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022411 echo "/* $configure_input */" >"$tmp/config.h"
22412 cat "$ac_result" >>"$tmp/config.h"
22413 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22414 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22415echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022416 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022417 rm -f $ac_file
22418 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022419 fi
22420 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022421 echo "/* $configure_input */"
22422 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022423 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022424 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022425 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022427 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22428echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022429 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022430 esac
John Criswell7a73b802003-06-30 21:59:07 +000022431
Reid Spencera773bd52006-08-04 18:18:08 +000022432
22433 case $ac_file$ac_mode in
22434 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022435 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022436 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022437 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022438 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022439 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022440 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022441 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022442 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022443 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022444 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022445 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022446 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022448 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022450 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022452 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022454 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022456 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022458 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022460
22461 esac
22462done # for ac_tag
22463
John Criswell7a73b802003-06-30 21:59:07 +000022464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022465{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022468ac_clean_files=$ac_clean_files_save
22469
22470
22471# configure is writing to config.log, and then calls config.status.
22472# config.status does its own redirection, appending to config.log.
22473# Unfortunately, on DOS this fails, as config.log is still kept open
22474# by configure, so config.status won't be able to write to it; its
22475# output is simply discarded. So we exec the FD to /dev/null,
22476# effectively closing config.log, so it can be properly (re)opened and
22477# appended to by config.status. When coming back to configure, we
22478# need to make the FD available again.
22479if test "$no_create" != yes; then
22480 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022481 ac_config_status_args=
22482 test "$silent" = yes &&
22483 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022484 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022486 exec 5>>config.log
22487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22488 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022490fi
22491
John Criswell12399a12003-09-30 15:55:44 +000022492#
22493# CONFIG_SUBDIRS section.
22494#
22495if test "$no_recursion" != yes; then
22496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022497 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022498 ac_sub_configure_args=
22499 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022500 eval "set x $ac_configure_args"
22501 shift
22502 for ac_arg
22503 do
John Criswell12399a12003-09-30 15:55:44 +000022504 if test -n "$ac_prev"; then
22505 ac_prev=
22506 continue
22507 fi
22508 case $ac_arg in
22509 -cache-file | --cache-file | --cache-fil | --cache-fi \
22510 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22511 ac_prev=cache_file ;;
22512 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22513 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22514 | --c=*)
22515 ;;
22516 --config-cache | -C)
22517 ;;
22518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22519 ac_prev=srcdir ;;
22520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22521 ;;
22522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22523 ac_prev=prefix ;;
22524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022526 *)
22527 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022528 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022529 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022531 esac
22532 done
22533
22534 # Always prepend --prefix to ensure using the same prefix
22535 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022536 ac_arg="--prefix=$prefix"
22537 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022538 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022539 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022540 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022541
22542 ac_popdir=`pwd`
22543 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22544
22545 # Do not complain, so a configure script can configure whichever
22546 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022547 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022548
Reid Spencera773bd52006-08-04 18:18:08 +000022549 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 echo "$as_me:$LINENO: $ac_msg" >&5
22551 echo "$ac_msg" >&6
22552 { as_dir="$ac_dir"
22553 case $as_dir in #(
22554 -*) as_dir=./$as_dir;;
22555 esac
22556 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22557 as_dirs=
22558 while :; do
22559 case $as_dir in #(
22560 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22561 *) as_qdir=$as_dir;;
22562 esac
22563 as_dirs="'$as_qdir' $as_dirs"
22564 as_dir=`$as_dirname -- "$as_dir" ||
22565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$as_dir" : 'X\(//\)[^/]' \| \
22567 X"$as_dir" : 'X\(//\)$' \| \
22568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22569echo X"$as_dir" |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22571 s//\1/
22572 q
22573 }
22574 /^X\(\/\/\)[^/].*/{
22575 s//\1/
22576 q
22577 }
22578 /^X\(\/\/\)$/{
22579 s//\1/
22580 q
22581 }
22582 /^X\(\/\).*/{
22583 s//\1/
22584 q
22585 }
22586 s/.*/./; q'`
22587 test -d "$as_dir" && break
22588 done
22589 test -z "$as_dirs" || eval "mkdir $as_dirs"
22590 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22591echo "$as_me: error: cannot create directory $as_dir" >&2;}
22592 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022593 ac_builddir=.
22594
Reid Spencera773bd52006-08-04 18:18:08 +000022595case "$ac_dir" in
22596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022599 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022600 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022601 case $ac_top_builddir_sub in
22602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22604 esac ;;
22605esac
22606ac_abs_top_builddir=$ac_pwd
22607ac_abs_builddir=$ac_pwd$ac_dir_suffix
22608# for backward compatibility:
22609ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022610
22611case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022612 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022613 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022614 ac_top_srcdir=$ac_top_builddir_sub
22615 ac_abs_top_srcdir=$ac_pwd ;;
22616 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022617 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022618 ac_top_srcdir=$srcdir
22619 ac_abs_top_srcdir=$srcdir ;;
22620 *) # Relative name.
22621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22622 ac_top_srcdir=$ac_top_build_prefix$srcdir
22623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022624esac
Reid Spencera773bd52006-08-04 18:18:08 +000022625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022626
22627
Reid Spencera773bd52006-08-04 18:18:08 +000022628 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022629
22630 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022631 if test -f "$ac_srcdir/configure.gnu"; then
22632 ac_sub_configure=$ac_srcdir/configure.gnu
22633 elif test -f "$ac_srcdir/configure"; then
22634 ac_sub_configure=$ac_srcdir/configure
22635 elif test -f "$ac_srcdir/configure.in"; then
22636 # This should be Cygnus configure.
22637 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022638 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022639 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22640echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022641 ac_sub_configure=
22642 fi
22643
22644 # The recursion is here.
22645 if test -n "$ac_sub_configure"; then
22646 # Make the cache file name correct relative to the subdirectory.
22647 case $cache_file in
22648 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022649 *) # Relative name.
22650 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022651 esac
22652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022653 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22654echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000022655 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022656 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22657 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22659echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22660 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022661 fi
22662
Reid Spencera773bd52006-08-04 18:18:08 +000022663 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022664 done
22665fi
22666