blob: 2bce1ec0ac6d3fdd43d5a92f1b73c63b00d83912 [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
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000736XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000737PERL
738HAVE_PERL
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000772SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000799CXX
800CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000801CCC
802CPP'
John Criswell0157f502010-03-19 21:31:39 +0000803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000810projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-java
813projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000815projects/llvm-kernel
816tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001318\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001391 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001404 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001405 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001406 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001407 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001413 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Dan Gohman3e6157d2011-10-25 00:05:42 +00001419 xcore, msp430, ptx, cbe, and cpp
Eric Christopher14074e82010-10-12 02:42:05 +00001420 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001451 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001452 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001453 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001454 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001459 CC C compiler command
1460 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001464 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001467 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to <llvmbugs@cs.uiuc.edu>.
1473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001474ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001481 ac_builddir=.
1482
Reid Spencera773bd52006-08-04 18:18:08 +00001483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001512esac
Reid Spencera773bd52006-08-04 18:18:08 +00001513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001514
Reid Spencera773bd52006-08-04 18:18:08 +00001515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001527 done
1528fi
1529
Reid Spencera773bd52006-08-04 18:18:08 +00001530test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001531if $ac_init_version; then
1532 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001533llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001541Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543 exit
John Criswell7a73b802003-06-30 21:59:07 +00001544fi
Reid Spencera773bd52006-08-04 18:18:08 +00001545cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001549It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552 $ $0 $@
1553
1554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001586 echo "PATH: $as_dir"
1587done
Reid Spencera773bd52006-08-04 18:18:08 +00001588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001605# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001607ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_configure_args0=
1609ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_must_keep_next=false
1611for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001612do
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001620 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 esac
1623 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ;;
1644 esac
1645 done
John Criswell7a73b802003-06-30 21:59:07 +00001646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$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 +00001649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001659
John Criswell7a73b802003-06-30 21:59:07 +00001660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac ;;
1680 esac
1681 done
John Criswell7a73b802003-06-30 21:59:07 +00001682 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001685 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001689 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac |
1693 sort
1694)
John Criswell7a73b802003-06-30 21:59:07 +00001695 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001696
1697 cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1704 do
Reid Spencera773bd52006-08-04 18:18:08 +00001705 eval ac_val=\$$ac_var
1706 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 done | sort
1711 echo
1712
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1721 do
Reid Spencera773bd52006-08-04 18:18:08 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 done | sort
1728 echo
1729 fi
1730
John Criswell7a73b802003-06-30 21:59:07 +00001731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001738 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001739 echo
1740 fi
1741 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001744 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001747 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001748' 0
John Criswell7a73b802003-06-30 21:59:07 +00001749for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001755rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001786if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001788elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794shift
1795for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001796do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1802 fi
1803done
1804
1805if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001814 esac
1815 fi
1816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001825for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001830 case $ac_old_set,$ac_new_set in
1831 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 ac_cache_corrupted=: ;;
1835 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,);;
1840 *)
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 esac
1861 fi
1862done
1863if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
Reid Spencera773bd52006-08-04 18:18:08 +00001894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001903LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001904
1905
1906
1907
1908
1909
1910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001912for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001913 if test -f "$ac_dir/install-sh"; then
1914 ac_aux_dir=$ac_dir
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 break
1917 elif test -f "$ac_dir/install.sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 break
1921 elif test -f "$ac_dir/shtool"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 break
1925 fi
John Criswell7a73b802003-06-30 21:59:07 +00001926done
1927if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001931fi
Reid Spencera773bd52006-08-04 18:18:08 +00001932
1933# These three variables are undocumented and unsupported,
1934# and are intended to be withdrawn in a future Autoconf release.
1935# They can cause serious problems if a builder's source tree is in a directory
1936# whose full name contains unusual characters.
1937ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940
John Criswell7a73b802003-06-30 21:59:07 +00001941
John Criswell392aaa32003-07-22 19:18:09 +00001942
Reid Spencer2706f8c2004-09-19 23:53:36 +00001943if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 fi
John Criswell93e1c722003-09-15 17:04:06 +00001949fi
1950
Nick Lewycky83fc4472009-09-29 05:48:51 +00001951ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001956if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001957 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001958 do
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001965else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 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 +00001976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978 break 2
1979 fi
1980done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981done
Reid Spencera773bd52006-08-04 18:18:08 +00001982IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001983
1984fi
1985fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986CC=$ac_cv_prog_CC
1987if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 { echo "$as_me:$LINENO: result: $CC" >&5
1989echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993fi
1994
Reid Spencera773bd52006-08-04 18:18:08 +00001995
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001997 done
1998fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999if test -z "$CC"; then
2000 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002001 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002002do
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002009else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 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 +00002020 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002022 break 2
2023 fi
2024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025done
Reid Spencera773bd52006-08-04 18:18:08 +00002026IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002027
2028fi
2029fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037fi
2038
Reid Spencera773bd52006-08-04 18:18:08 +00002039
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002041done
John Criswell7a73b802003-06-30 21:59:07 +00002042
Reid Spencera773bd52006-08-04 18:18:08 +00002043 if test "x$ac_ct_CC" = x; then
2044 CC=""
2045 else
2046 case $cross_compiling:$ac_tool_warned in
2047yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049whose name does not start with the host triplet. If you think this
2050configuration is useful to you, please write to autoconf@gnu.org." >&5
2051echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002054ac_tool_warned=yes ;;
2055esac
2056 CC=$ac_ct_CC
2057 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058fi
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066
John Criswell7a73b802003-06-30 21:59:07 +00002067# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068echo "$as_me:$LINENO: checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002071case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002077 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080{ (ac_try="$ac_compiler -v >&5"
2081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
2085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (ac_try="$ac_compiler -V >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002107
John Criswell7a73b802003-06-30 21:59:07 +00002108int
2109main ()
2110{
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002118# Try to create an executable without -o first, disregard a.out.
2119# It will help us diagnose broken compilers, and finding out an intuition
2120# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124#
2125# List of possible output files, starting from the most likely.
2126# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127# only as a last resort. b.out is created by i960 compilers.
2128ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129#
2130# The IRIX 6 linker writes into existing files which may not be
2131# executable, retaining their permissions. Remove them first so a
2132# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002133ac_rmfiles=
2134for ac_file in $ac_files
2135do
2136 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139 esac
2140done
2141rm -f $ac_rmfiles
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002149 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002150 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155# in a Makefile. We should not override ac_cv_exeext if it was cached,
2156# so that the user can short-circuit this test for compilers unknown to
2157# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002159do
2160 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002161 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002163 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002164 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002165 # We found the default executable, but exeext='' is most
2166 # certainly right.
2167 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002168 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002170 then :; else
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 fi
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2177 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002181 esac
2182done
Reid Spencera773bd52006-08-04 18:18:08 +00002183test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
John Criswell7a73b802003-06-30 21:59:07 +00002185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002187sed 's/^/| /' conftest.$ac_ext >&5
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: C compiler cannot create executables
2192See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002194fi
John Criswell7a73b802003-06-30 21:59:07 +00002195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196ac_exeext=$ac_cv_exeext
2197{ echo "$as_me:$LINENO: result: $ac_file" >&5
2198echo "${ECHO_T}$ac_file" >&6; }
2199
2200# Check that the compiler produces executables we can run. If not, either
2201# the compiler is broken, or we cross compile.
2202{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205# If not cross compiling, check that we can run a simple program.
2206if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2229 fi
2230 fi
2231fi
2232{ echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6; }
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002236ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002237# Check that the compiler produces executables we can run. If not, either
2238# the compiler is broken, or we cross compile.
2239{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002247case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002252 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002253 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002260for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002262 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002266 * ) break;;
2267 esac
2268done
2269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276
2277rm -f conftest$ac_cv_exeext
2278{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002280
2281rm -f conftest.$ac_ext
2282EXEEXT=$ac_cv_exeext
2283ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002289 cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002295
John Criswell7a73b802003-06-30 21:59:07 +00002296int
2297main ()
2298{
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002311 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002312 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002317 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 break;;
2321 esac
2322done
2323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002325sed 's/^/| /' conftest.$ac_ext >&5
2326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333
John Criswell7a73b802003-06-30 21:59:07 +00002334rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338OBJEXT=$ac_cv_objext
2339ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345 cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352int
2353main ()
2354{
2355#ifndef __GNUC__
2356 choke me
2357#endif
2358
2359 ;
2360 return 0;
2361}
2362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363rm -f conftest.$ac_objext
2364if { (ac_try="$ac_compile"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002397 ac_compiler_gnu=yes
2398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002404
Reid Spencera773bd52006-08-04 18:18:08 +00002405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002407
2408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412ac_test_CFLAGS=${CFLAGS+set}
2413ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002418else
Reid Spencera773bd52006-08-04 18:18:08 +00002419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2421 ac_cv_prog_cc_g=no
2422 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswell7a73b802003-06-30 21:59:07 +00002430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438rm -f conftest.$ac_objext
2439if { (ac_try="$ac_compile"
2440case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443esac
2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 CFLAGS=""
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493rm -f conftest.$ac_objext
2494if { (ac_try="$ac_compile"
2495case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 :
Torok Edwin871384f2010-01-26 08:50:50 +00002528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002533 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002539/* end confdefs.h. */
2540
2541int
2542main ()
2543{
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549rm -f conftest.$ac_objext
2550if { (ac_try="$ac_compile"
2551case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002583 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
John Criswell7a73b802003-06-30 21:59:07 +00002589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590
Reid Spencera773bd52006-08-04 18:18:08 +00002591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
2595fi
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
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2606 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002607 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002609 fi
2610else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 if test "$GCC" = yes; then
2612 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002613 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002615 fi
2616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Reid Spencera773bd52006-08-04 18:18:08 +00002622 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h. */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629/* end confdefs.h. */
2630#include <stdarg.h>
2631#include <stdio.h>
2632#include <sys/types.h>
2633#include <sys/stat.h>
2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635struct buf { int x; };
2636FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637static char *e (p, i)
2638 char **p;
2639 int i;
2640{
2641 return p[i];
2642}
2643static char *f (char * (*g) (char **, int), char **p, ...)
2644{
2645 char *s;
2646 va_list v;
2647 va_start (v,p);
2648 s = g (p, va_arg (v,int));
2649 va_end (v);
2650 return s;
2651}
2652
2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002656 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002659 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
Reid Spencera773bd52006-08-04 18:18:08 +00002662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2664#define FOO(x) 'x'
2665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667int test (int i, double x);
2668struct s1 {int (*f) (int a);};
2669struct s2 {int (*f) (double a);};
2670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671int argc;
2672char **argv;
2673int
2674main ()
2675{
2676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2677 ;
2678 return 0;
2679}
2680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683do
2684 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002685 rm -f conftest.$ac_objext
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002719 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002726
Reid Spencera773bd52006-08-04 18:18:08 +00002727rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729done
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731CC=$ac_save_CC
2732
2733fi
Reid Spencera773bd52006-08-04 18:18:08 +00002734# AC_CACHE_VAL
2735case "x$ac_cv_prog_cc_c89" in
2736 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737 { echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002739 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002743 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746esac
2747
John Criswell0c38eaf2003-09-10 15:17:25 +00002748
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
Eric Christopherffee5722011-09-16 20:36:25 +00002755ac_ext=cpp
2756ac_cpp='$CXXCPP $CPPFLAGS'
2757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2762 CXX=$CCC
2763 else
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CXX=$ac_cv_prog_CXX
2795if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797echo "${ECHO_T}$CXX" >&6; }
2798else
2799 { echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6; }
2801fi
2802
2803
2804 test -n "$CXX" && break
2805 done
2806fi
2807if test -z "$CXX"; then
2808 ac_ct_CXX=$CXX
2809 for ac_prog in clang++ llvm-g++ g++
2810do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6; }
2845fi
2846
2847
2848 test -n "$ac_ct_CXX" && break
2849done
2850
2851 if test "x$ac_ct_CXX" = x; then
2852 CXX="g++"
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855yes:)
2856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet. If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&5
2859echo "$as_me: 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." >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864 CXX=$ac_ct_CXX
2865 fi
2866fi
2867
2868 fi
2869fi
2870# Provide some information about the compiler.
2871echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872ac_compiler=`set X $ac_compile; echo $2`
2873{ (ac_try="$ac_compiler --version >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883{ (ac_try="$ac_compiler -v >&5"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (ac_try="$ac_compiler -V >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903
2904{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920 choke me
2921#endif
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_compiler_gnu=yes
2962else
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 ac_compiler_gnu=no
2967fi
2968
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972fi
2973{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975GXX=`test $ac_compiler_gnu = yes && echo yes`
2976ac_test_CXXFLAGS=${CXXFLAGS+set}
2977ac_save_CXXFLAGS=$CXXFLAGS
2978{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2985 ac_cv_prog_cxx_g=no
2986 CXXFLAGS="-g"
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 CXXFLAGS=""
3042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
3048
3049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 :
3092else
3093 echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 CXXFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3170 CXXFLAGS="-g -O2"
3171 else
3172 CXXFLAGS="-g"
3173 fi
3174else
3175 if test "$GXX" = yes; then
3176 CXXFLAGS="-O2"
3177 else
3178 CXXFLAGS=
3179 fi
3180fi
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003186
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003192{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3197fi
3198if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 do
3205 ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219/* end confdefs.h. */
3220#ifdef __STDC__
3221# include <limits.h>
3222#else
3223# include <assert.h>
3224#endif
3225 Syntax error
3226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227if { (ac_try="$ac_cpp conftest.$ac_ext"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3245 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247 ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
3250 :
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 # Broken: fails on valid input.
3256continue
3257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259rm -f conftest.err conftest.$ac_ext
3260
Reid Spencera773bd52006-08-04 18:18:08 +00003261 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263 cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h. */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268/* end confdefs.h. */
3269#include <ac_nonexistent.h>
3270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 else
3288 ac_cpp_err=
3289 fi
3290else
3291 ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 # Broken: success on invalid input.
3295continue
3296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003304
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305rm -f conftest.err conftest.$ac_ext
3306
3307done
3308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003310if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 break
3312fi
3313
3314 done
3315 ac_cv_prog_CPP=$CPP
3316
3317fi
3318 CPP=$ac_cv_prog_CPP
3319else
3320 ac_cv_prog_CPP=$CPP
3321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322{ echo "$as_me:$LINENO: result: $CPP" >&5
3323echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324ac_preproc_ok=false
3325for ac_c_preproc_warn_flag in '' yes
3326do
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338/* end confdefs.h. */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
3344 Syntax error
3345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003346if { (ac_try="$ac_cpp conftest.$ac_ext"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366 ac_cpp_err=yes
3367fi
3368if test -z "$ac_cpp_err"; then
3369 :
3370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 # Broken: fails on valid input.
3375continue
3376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378rm -f conftest.err conftest.$ac_ext
3379
Reid Spencera773bd52006-08-04 18:18:08 +00003380 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387/* end confdefs.h. */
3388#include <ac_nonexistent.h>
3389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390if { (ac_try="$ac_cpp conftest.$ac_ext"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409else
3410 ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413 # Broken: success on invalid input.
3414continue
3415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429if $ac_preproc_ok; then
3430 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437fi
3438
John Criswell7a73b802003-06-30 21:59:07 +00003439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
John Criswell7a73b802003-06-30 21:59:07 +00003445
Eric Christopherffee5722011-09-16 20:36:25 +00003446
3447
3448if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3450
3451fi
3452
3453if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3455
3456fi
3457
3458if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3470
3471fi
3472
3473for i in `ls ${srcdir}/projects`
3474do
3475 if test -d ${srcdir}/projects/${i} ; then
3476 case ${i} in
3477 sample) subdirs="$subdirs projects/sample"
3478 ;;
3479 privbracket) subdirs="$subdirs projects/privbracket"
3480 ;;
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 ;;
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3484;;
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3486 ;;
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3488 ;;
3489 safecode) subdirs="$subdirs projects/safecode"
3490 ;;
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3492 ;;
3493 llvm-gcc) ;;
3494 test-suite) ;;
3495 llvm-test) ;;
3496 poolalloc) ;;
3497 llvm-poolalloc) ;;
3498 *)
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501 ;;
3502 esac
3503 fi
3504done
3505
3506# Check whether --enable-polly was given.
3507if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3509else
3510 enableval=default
3511fi
3512
3513case "$enableval" in
3514 yes) ENABLE_POLLY=1
3515 ;;
3516 no) ENABLE_POLLY=0
3517 ;;
3518 default) ENABLE_POLLY=1
3519 ;;
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3523esac
3524
3525
3526if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527 LLVM_HAS_POLLY=1
3528
3529 subdirs="$subdirs tools/polly"
3530
3531fi
3532
3533
3534# Make sure we can run config.sub.
3535$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3539
3540{ echo "$as_me:$LINENO: checking build system type" >&5
3541echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545 ac_build_alias=$build_alias
3546test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3556
3557fi
3558{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559echo "${ECHO_T}$ac_cv_build" >&6; }
3560case $ac_cv_build in
3561*-*-*) ;;
3562*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3565esac
3566build=$ac_cv_build
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_build
3569shift
3570build_cpu=$1
3571build_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575build_os=$*
3576IFS=$ac_save_IFS
3577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580{ echo "$as_me:$LINENO: checking host system type" >&5
3581echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3587else
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3592fi
3593
3594fi
3595{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596echo "${ECHO_T}$ac_cv_host" >&6; }
3597case $ac_cv_host in
3598*-*-*) ;;
3599*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3602esac
3603host=$ac_cv_host
3604ac_save_IFS=$IFS; IFS='-'
3605set x $ac_cv_host
3606shift
3607host_cpu=$1
3608host_vendor=$2
3609shift; shift
3610# Remember, the first character of IFS is used to create $*,
3611# except with old shells:
3612host_os=$*
3613IFS=$ac_save_IFS
3614case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617{ echo "$as_me:$LINENO: checking target system type" >&5
3618echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3624else
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3629fi
3630
3631fi
3632{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633echo "${ECHO_T}$ac_cv_target" >&6; }
3634case $ac_cv_target in
3635*-*-*) ;;
3636*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3660
3661{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 case $host in
3667 *-*-aix*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-irix*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-cygwin*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-darwin*)
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-minix*)
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-freebsd*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-openbsd*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-netbsd*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-dragonfly*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-hpux*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-interix*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-linux*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-solaris*)
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-auroraux*)
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-win32*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3742 *-*-mingw*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3747 *-*-haiku*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-unknown-eabi*)
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-unknown-elf*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3762 *)
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3767esac
3768fi
3769{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 case $target in
3778 *-*-aix*)
3779 llvm_cv_target_os_type="AIX" ;;
3780 *-*-irix*)
3781 llvm_cv_target_os_type="IRIX" ;;
3782 *-*-cygwin*)
3783 llvm_cv_target_os_type="Cygwin" ;;
3784 *-*-darwin*)
3785 llvm_cv_target_os_type="Darwin" ;;
3786 *-*-minix*)
3787 llvm_cv_target_os_type="Minix" ;;
3788 *-*-freebsd*)
3789 llvm_cv_target_os_type="FreeBSD" ;;
3790 *-*-openbsd*)
3791 llvm_cv_target_os_type="OpenBSD" ;;
3792 *-*-netbsd*)
3793 llvm_cv_target_os_type="NetBSD" ;;
3794 *-*-dragonfly*)
3795 llvm_cv_target_os_type="DragonFly" ;;
3796 *-*-hpux*)
3797 llvm_cv_target_os_type="HP-UX" ;;
3798 *-*-interix*)
3799 llvm_cv_target_os_type="Interix" ;;
3800 *-*-linux*)
3801 llvm_cv_target_os_type="Linux" ;;
3802 *-*-solaris*)
3803 llvm_cv_target_os_type="SunOS" ;;
3804 *-*-auroraux*)
3805 llvm_cv_target_os_type="AuroraUX" ;;
3806 *-*-win32*)
3807 llvm_cv_target_os_type="Win32" ;;
3808 *-*-mingw*)
3809 llvm_cv_target_os_type="MingW" ;;
3810 *-*-haiku*)
3811 llvm_cv_target_os_type="Haiku" ;;
3812 *-*-rtems*)
3813 llvm_cv_target_os_type="RTEMS" ;;
3814 *-*-nacl*)
3815 llvm_cv_target_os_type="NativeClient" ;;
3816 *-unknown-eabi*)
3817 llvm_cv_target_os_type="Freestanding" ;;
3818 *)
3819 llvm_cv_target_os_type="Unknown" ;;
3820esac
3821fi
3822{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3829fi
3830
3831OS=$llvm_cv_os_type
3832
3833HOST_OS=$llvm_cv_os_type
3834
3835TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838LINKALL=$llvm_cv_link_all_option
3839
3840NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843case $llvm_cv_platform_type in
3844 Unix)
3845
3846cat >>confdefs.h <<\_ACEOF
3847#define LLVM_ON_UNIX 1
3848_ACEOF
3849
3850 LLVM_ON_UNIX=1
3851
3852 LLVM_ON_WIN32=0
3853
3854 ;;
3855 Win32)
3856
3857cat >>confdefs.h <<\_ACEOF
3858#define LLVM_ON_WIN32 1
3859_ACEOF
3860
3861 LLVM_ON_UNIX=0
3862
3863 LLVM_ON_WIN32=1
3864
3865 ;;
3866esac
3867
3868{ echo "$as_me:$LINENO: checking target architecture" >&5
3869echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 case $target in
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3886esac
3887fi
3888{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894fi
3895
3896# Determine the LLVM native architecture for the target
3897case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901esac
3902
3903ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 # Extract the first word of "grep ggrep" to use in msg output
3914if test -z "$GREP"; then
3915set dummy grep ggrep; ac_prog_name=$2
3916if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencera773bd52006-08-04 18:18:08 +00003919 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920# Loop through the user's path and test for each of PROGNAME-LIST
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003931 # Check for GNU $ac_path_GREP
3932case `"$ac_path_GREP" --version 2>&1` in
3933*GNU*)
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935*)
3936 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956esac
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003960 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961done
3962
3963done
Reid Spencera773bd52006-08-04 18:18:08 +00003964IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965
3966
3967fi
3968
3969GREP="$ac_cv_path_GREP"
3970if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976else
3977 ac_cv_path_GREP=$GREP
3978fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
Reid Spencera773bd52006-08-04 18:18:08 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003984 GREP="$ac_cv_path_GREP"
3985
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987{ echo "$as_me:$LINENO: checking for egrep" >&5
3988echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 # Extract the first word of "egrep" to use in msg output
3996if test -z "$EGREP"; then
3997set dummy egrep; ac_prog_name=$2
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
Reid Spencera773bd52006-08-04 18:18:08 +00004001 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002# Loop through the user's path and test for each of PROGNAME-LIST
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040
4041 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004042 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043done
4044
4045done
Reid Spencera773bd52006-08-04 18:18:08 +00004046IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047
4048
4049fi
4050
4051EGREP="$ac_cv_path_EGREP"
4052if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056fi
4057
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
4059 ac_cv_path_EGREP=$EGREP
4060fi
4061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
Reid Spencera773bd52006-08-04 18:18:08 +00004063 fi
4064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004067 EGREP="$ac_cv_path_EGREP"
4068
4069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
4085
John Criswell0c38eaf2003-09-10 15:17:25 +00004086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
John Criswell7a73b802003-06-30 21:59:07 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004128 ac_cv_header_stdc=yes
4129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135
Reid Spencera773bd52006-08-04 18:18:08 +00004136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
John Criswell7a73b802003-06-30 21:59:07 +00004152else
4153 ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "free" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004183 :
4184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004191#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004192#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004197# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
4203
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004212 return 2;
4213 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest$ac_exeext
4217if { (ac_try="$ac_link"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
John Criswell7a73b802003-06-30 21:59:07 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -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 +00004246fi
4247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248
John Criswell7a73b802003-06-30 21:59:07 +00004249fi
4250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004253if test $ac_cv_header_stdc = yes; then
4254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255cat >>confdefs.h <<\_ACEOF
4256#define STDC_HEADERS 1
4257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004258
4259fi
4260
Reid Spencera773bd52006-08-04 18:18:08 +00004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
4263
4264
4265
4266
4267
4268
4269
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273do
4274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h. */
4286$ac_includes_default
4287
4288#include <$ac_header>
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336echo "${ECHO_T}$ac_res" >&6; }
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004340_ACEOF
4341
4342fi
4343
4344done
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 # See if sys/param.h defines the BYTE_ORDER macro.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004358/* end confdefs.h. */
4359#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362int
4363main ()
4364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366 bogus endian macros
4367#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369 ;
4370 return 0;
4371}
4372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373rm -f conftest.$ac_objext
4374if { (ac_try="$ac_compile"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417int
4418main ()
4419{
4420#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 not big endian
4422#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004423
4424 ;
4425 return 0;
4426}
4427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428rm -f conftest.$ac_objext
4429if { (ac_try="$ac_compile"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004462 ac_cv_c_bigendian=yes
4463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 ac_cv_c_bigendian=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 # It does not; compile a test program.
4476if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004491int
4492main ()
4493{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004495 ;
4496 return 0;
4497}
4498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535fi
4536if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4539 else
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4542 fi
4543fi
Reid Spencera773bd52006-08-04 18:18:08 +00004544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Torok Edwin871384f2010-01-26 08:50:50 +00004549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Reid Spencera773bd52006-08-04 18:18:08 +00004551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004558/* end confdefs.h. */
4559$ac_includes_default
4560int
4561main ()
4562{
4563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long int l;
4568 char c[sizeof (long int)];
4569 } u;
4570 u.l = 1;
4571 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004572
4573 ;
4574 return 0;
4575}
4576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577rm -f conftest$ac_exeext
4578if { (ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004597 ac_cv_c_bigendian=no
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606rm -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 +00004607fi
4608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616case $ac_cv_c_bigendian in
4617 yes)
4618 ENDIAN=big
4619 ;;
4620 no)
4621 ENDIAN=little
4622 ;;
4623 *)
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626echo "$as_me: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
Reid Spencera773bd52006-08-04 18:18:08 +00004630
4631
4632if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4634
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004640else
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4643else
4644 ac_build_prefix=${build_alias}-
4645
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 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 +00004663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004665 break 2
4666 fi
4667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668done
Reid Spencera773bd52006-08-04 18:18:08 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673BUILD_CC=$ac_cv_prog_BUILD_CC
4674if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 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 +00004701 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Reid Spencera773bd52006-08-04 18:18:08 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711BUILD_CC=$ac_cv_prog_BUILD_CC
4712if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718fi
4719
4720
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731else
4732 ac_prog_rejected=no
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 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 +00004740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4743 fi
4744 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004746 break 2
4747 fi
4748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749done
Reid Spencera773bd52006-08-04 18:18:08 +00004750IFS=$as_save_IFS
4751
4752if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762 fi
4763fi
4764fi
4765fi
4766BUILD_CC=$ac_cv_prog_BUILD_CC
4767if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773fi
4774
4775
4776 fi
4777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 rm -f conftest*
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 (eval $ac_build_link) 2>&5
4787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004790 for file in conftest.*; do
4791 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004792 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794 esac
4795 done
4796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 fi
4801 rm -f conftest*
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803fi
4804fi
4805
4806BUILD_EXEEXT=""
4807test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810ac_build_exeext=$BUILD_EXEEXT
4811
Jim Grosbach673612e2008-10-02 22:56:44 +00004812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004819else
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 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 +00004830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835done
Jim Grosbach673612e2008-10-02 22:56:44 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847fi
4848
4849
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 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 +00004868 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873done
Jim Grosbach673612e2008-10-02 22:56:44 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885fi
4886
4887
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 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 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916done
Jim Grosbach673612e2008-10-02 22:56:44 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940fi
4941
4942
4943 fi
4944 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004945else
4946 LLVM_CROSS_COMPILING=0
4947
4948fi
4949
Dan Gohman56fb5f92010-08-04 16:25:01 +00004950if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 cvsbuild="yes"
4952 optimize="no"
4953 CVSBUILD=CVSBUILD=1
4954
4955else
4956 cvsbuild="no"
4957 optimize="yes"
4958fi
4959
4960
4961# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004963 enableval=$enable_optimized;
4964else
4965 enableval=$optimize
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_OPTIMIZED=
4970
4971else
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974fi
4975
David Greene2a5a12c2009-04-17 14:50:39 +00004976# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004978 enableval=$enable_profiling;
4979else
4980 enableval="no"
4981fi
4982
4983if test ${enableval} = "no" ; then
4984 ENABLE_PROFILING=
4985
4986else
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989fi
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004993 enableval=$enable_assertions;
4994else
4995 enableval="yes"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 DISABLE_ASSERTIONS=
5000
5001else
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004fi
5005
David Greenea696d242007-06-28 19:36:08 +00005006# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005008 enableval=$enable_expensive_checks;
5009else
5010 enableval="no"
5011fi
5012
5013if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016 EXPENSIVE_CHECKS=yes
5017
5018else
5019 ENABLE_EXPENSIVE_CHECKS=
5020
5021 EXPENSIVE_CHECKS=no
5022
5023fi
5024
Reid Spencer8b2e1412006-11-17 03:32:33 +00005025# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005027 enableval=$enable_debug_runtime;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_RUNTIME=
5034
5035else
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038fi
5039
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005040# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005042 enableval=$enable_debug_symbols;
5043else
5044 enableval=no
5045fi
5046
5047if test ${enableval} = "no" ; then
5048 DEBUG_SYMBOLS=
5049
5050else
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053fi
5054
Reid Spencera773bd52006-08-04 18:18:08 +00005055# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_jit;
5058else
5059 enableval=default
5060fi
5061
5062if test ${enableval} = "no"
5063then
5064 JIT=
5065
5066else
5067 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005068 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005069 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005074 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005075 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005076 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005077 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005078 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005079 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005080 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005081 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005085 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005086 MBlaze) TARGET_HAS_JIT=0
5087 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005088 PTX) TARGET_HAS_JIT=0
5089 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005090 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005091 ;;
5092 esac
5093fi
5094
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005095# Check whether --enable-docs was given.
5096if test "${enable_docs+set}" = set; then
5097 enableval=$enable_docs;
5098else
5099 enableval=default
5100fi
5101
5102case "$enableval" in
5103 yes) ENABLE_DOCS=1
5104 ;;
5105 no) ENABLE_DOCS=0
5106 ;;
5107 default) ENABLE_DOCS=1
5108 ;;
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112esac
5113
Reid Spencera773bd52006-08-04 18:18:08 +00005114# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005116 enableval=$enable_doxygen;
5117else
5118 enableval=default
5119fi
5120
5121case "$enableval" in
5122 yes) ENABLE_DOXYGEN=1
5123 ;;
5124 no) ENABLE_DOXYGEN=0
5125 ;;
5126 default) ENABLE_DOXYGEN=0
5127 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005131esac
5132
5133# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005135 enableval=$enable_threads;
5136else
Reid Spencer65c5d752006-11-05 17:08:18 +00005137 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_THREADS=1
5142 ;;
5143 no) ENABLE_THREADS=0
5144 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005145 default) ENABLE_THREADS=1
5146 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005150esac
5151
Owen Andersona8603702009-05-19 22:18:56 +00005152cat >>confdefs.h <<_ACEOF
5153#define ENABLE_THREADS $ENABLE_THREADS
5154_ACEOF
5155
5156
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005157# Check whether --enable-pthreads was given.
5158if test "${enable_pthreads+set}" = set; then
5159 enableval=$enable_pthreads;
5160else
5161 enableval=default
5162fi
5163
5164case "$enableval" in
5165 yes) ENABLE_PTHREADS=1
5166 ;;
5167 no) ENABLE_PTHREADS=0
5168 ;;
5169 default) ENABLE_PTHREADS=1
5170 ;;
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5174esac
5175
Reid Spencer89b0d992006-12-16 22:07:52 +00005176# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005177if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005178 enableval=$enable_pic;
5179else
5180 enableval=default
5181fi
5182
5183case "$enableval" in
5184 yes) ENABLE_PIC=1
5185 ;;
5186 no) ENABLE_PIC=0
5187 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005188 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005189 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005193esac
5194
5195cat >>confdefs.h <<_ACEOF
5196#define ENABLE_PIC $ENABLE_PIC
5197_ACEOF
5198
5199
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005200# Check whether --enable-shared was given.
5201if test "${enable_shared+set}" = set; then
5202 enableval=$enable_shared;
5203else
5204 enableval=default
5205fi
5206
5207case "$enableval" in
5208 yes) ENABLE_SHARED=1
5209 ;;
5210 no) ENABLE_SHARED=0
5211 ;;
5212 default) ENABLE_SHARED=0
5213 ;;
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5217esac
5218
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005219# Check whether --enable-embed-stdcxx was given.
5220if test "${enable_embed_stdcxx+set}" = set; then
5221 enableval=$enable_embed_stdcxx;
5222else
5223 enableval=default
5224fi
5225
5226case "$enableval" in
5227 yes) ENABLE_EMBED_STDCXX=1
5228 ;;
5229 no) ENABLE_EMBED_STDCXX=0
5230 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005231 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005232 ;;
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5236esac
5237
Daniel Dunbardd464df2010-05-10 20:11:56 +00005238# Check whether --enable-timestamps was given.
5239if test "${enable_timestamps+set}" = set; then
5240 enableval=$enable_timestamps;
5241else
5242 enableval=default
5243fi
5244
5245case "$enableval" in
5246 yes) ENABLE_TIMESTAMPS=1
5247 ;;
5248 no) ENABLE_TIMESTAMPS=0
5249 ;;
5250 default) ENABLE_TIMESTAMPS=1
5251 ;;
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255esac
5256
5257cat >>confdefs.h <<_ACEOF
5258#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5259_ACEOF
5260
5261
Reid Spencera773bd52006-08-04 18:18:08 +00005262TARGETS_TO_BUILD=""
5263# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005264if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005265 enableval=$enable_targets;
5266else
5267 enableval=all
5268fi
5269
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005270if test "$enableval" = host-only ; then
5271 enableval=host
5272fi
Reid Spencera773bd52006-08-04 18:18:08 +00005273case "$enableval" in
Dan Gohmanfef5ff02011-10-25 00:36:31 +00005274 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005275 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5276 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005285 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005287 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005288 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005289 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005290 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005291 host) case "$llvm_cv_target_arch" in
5292 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005299 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005300 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005301 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005303 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305echo "$as_me: error: Can not set target to build" >&2;}
5306 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005311 esac
5312 done
5313 ;;
5314esac
Reid Spencera773bd52006-08-04 18:18:08 +00005315TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5316
5317
Douglas Gregor0711c302009-06-17 00:43:20 +00005318# Determine whether we are building LLVM support for the native architecture.
5319# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320for a_target in $TARGETS_TO_BUILD; do
5321 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5322
5323cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005324#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5325_ACEOF
5326
5327 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005329 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005330 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005331 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5333 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005334
5335cat >>confdefs.h <<_ACEOF
5336#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005337_ACEOF
5338
5339
5340cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005341#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5342_ACEOF
5343
5344
5345cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005346#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005347_ACEOF
5348
5349
5350cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005351#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005352_ACEOF
5353
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005355
5356cat >>confdefs.h <<_ACEOF
5357#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5358_ACEOF
5359
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005360 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005361 fi
5362done
5363
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005364# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005366LLVM_ENUM_TARGETS=""
5367LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005368LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005369LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005370for target_to_build in $TARGETS_TO_BUILD; do
5371 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005372 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005373 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5374 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005375 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5377 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005378 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5380 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005381done
5382
5383
5384
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005385
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005386
Reid Spencer65c5d752006-11-05 17:08:18 +00005387# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005389 enableval=$enable_cbe_printf_a;
5390else
5391 enableval=default
5392fi
5393
5394case "$enableval" in
5395 yes) ENABLE_CBE_PRINTF_A=1
5396 ;;
5397 no) ENABLE_CBE_PRINTF_A=0
5398 ;;
5399 default) ENABLE_CBE_PRINTF_A=1
5400 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005404esac
5405
5406cat >>confdefs.h <<_ACEOF
5407#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5408_ACEOF
5409
5410
Reid Spencera773bd52006-08-04 18:18:08 +00005411
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005412# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005414 withval=$with_optimize_option;
5415else
5416 withval=default
5417fi
5418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419{ echo "$as_me:$LINENO: checking optimization flags" >&5
5420echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005421case "$withval" in
5422 default)
5423 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005424 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005425 MingW) optimize_option=-O2 ;;
5426 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005427 esac ;;
5428 *) optimize_option="$withval" ;;
5429esac
5430OPTIMIZE_OPTION=$optimize_option
5431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5433echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005434
5435
Reid Spencera773bd52006-08-04 18:18:08 +00005436# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005438 withval=$with_extra_options;
5439else
5440 withval=default
5441fi
5442
5443case "$withval" in
5444 default) EXTRA_OPTIONS= ;;
5445 *) EXTRA_OPTIONS=$withval ;;
5446esac
5447EXTRA_OPTIONS=$EXTRA_OPTIONS
5448
5449
Daniel Dunbared344d22011-06-16 22:30:41 +00005450
5451# Check whether --with-extra-ld-options was given.
5452if test "${with_extra_ld_options+set}" = set; then
5453 withval=$with_extra_ld_options;
5454else
5455 withval=default
5456fi
5457
5458case "$withval" in
5459 default) EXTRA_LD_OPTIONS= ;;
5460 *) EXTRA_LD_OPTIONS=$withval ;;
5461esac
5462EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5463
5464
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005465# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005466if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005467 enableval=$enable_bindings;
5468else
5469 enableval=default
5470fi
5471
5472BINDINGS_TO_BUILD=""
5473case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005474 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005475 all ) BINDINGS_TO_BUILD="ocaml" ;;
5476 none | no) BINDINGS_TO_BUILD="" ;;
5477 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478 case "$a_binding" in
5479 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005483 esac
5484 done
5485 ;;
5486esac
5487
Reid Spencera773bd52006-08-04 18:18:08 +00005488
Gordon Henriksenf0915682007-10-02 16:42:22 +00005489# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005490if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005491 withval=$with_ocaml_libdir;
5492else
5493 withval=auto
5494fi
5495
5496case "$withval" in
5497 auto) with_ocaml_libdir="$withval" ;;
5498 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005502esac
5503
5504
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005505# Check whether --with-clang-srcdir was given.
5506if test "${with_clang_srcdir+set}" = set; then
5507 withval=$with_clang_srcdir;
5508else
5509 withval="-"
5510fi
5511
5512case "$withval" in
5513 -) clang_src_root="" ;;
5514 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515 *) clang_src_root="$ac_pwd/$withval" ;;
5516esac
5517CLANG_SRC_ROOT=$clang_src_root
5518
5519
5520
Chandler Carruth6b241162010-10-19 08:21:25 +00005521# Check whether --with-clang-resource-dir was given.
5522if test "${with_clang_resource_dir+set}" = set; then
5523 withval=$with_clang_resource_dir;
5524else
5525 withval=""
5526fi
5527
5528
5529cat >>confdefs.h <<_ACEOF
5530#define CLANG_RESOURCE_DIR "$withval"
5531_ACEOF
5532
5533
5534
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005535# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005537 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005538else
5539 withval=""
5540fi
5541
5542
5543cat >>confdefs.h <<_ACEOF
5544#define C_INCLUDE_DIRS "$withval"
5545_ACEOF
5546
5547
5548
Rafael Espindola420d23c2009-11-16 19:46:55 +00005549# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005551 withval=$with_cxx_include_root;
5552else
5553 withval=""
5554fi
5555
5556
5557cat >>confdefs.h <<_ACEOF
5558#define CXX_INCLUDE_ROOT "$withval"
5559_ACEOF
5560
5561
5562
5563# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005565 withval=$with_cxx_include_arch;
5566else
5567 withval=""
5568fi
5569
5570
5571cat >>confdefs.h <<_ACEOF
5572#define CXX_INCLUDE_ARCH "$withval"
5573_ACEOF
5574
5575
5576
5577# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005579 withval=$with_cxx_include_32bit_dir;
5580else
5581 withval=""
5582fi
5583
5584
5585cat >>confdefs.h <<_ACEOF
5586#define CXX_INCLUDE_32BIT_DIR "$withval"
5587_ACEOF
5588
5589
5590
5591# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005593 withval=$with_cxx_include_64bit_dir;
5594else
5595 withval=""
5596fi
5597
5598
5599cat >>confdefs.h <<_ACEOF
5600#define CXX_INCLUDE_64BIT_DIR "$withval"
5601_ACEOF
5602
5603
5604
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005605# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005606if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005607 withval=$with_binutils_include;
5608else
5609 withval=default
5610fi
5611
5612case "$withval" in
5613 default) WITH_BINUTILS_INCDIR=default ;;
5614 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005618esac
5619if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621
5622 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005627 fi
5628fi
5629
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005630
5631# Check whether --with-bug-report-url was given.
5632if test "${with_bug_report_url+set}" = set; then
5633 withval=$with_bug_report_url;
5634else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005635 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005636fi
5637
5638
5639cat >>confdefs.h <<_ACEOF
5640#define BUG_REPORT_URL "$withval"
5641_ACEOF
5642
5643
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005644# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005646 enableval=$enable_libffi; case "$enableval" in
5647 yes) llvm_cv_enable_libffi="yes" ;;
5648 no) llvm_cv_enable_libffi="no" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005652 esac
5653else
5654 llvm_cv_enable_libffi=no
5655fi
5656
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005657
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661if test "${lt_cv_path_NM+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005663else
5664 if test -n "$NM"; then
5665 # Let the user override the test.
5666 lt_cv_path_NM="$NM"
5667else
5668 lt_nm_to_check="${ac_tool_prefix}nm"
5669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670 lt_nm_to_check="$lt_nm_to_check nm"
5671 fi
5672 for lt_tmp_nm in $lt_nm_to_check; do
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675 IFS="$lt_save_ifs"
5676 test -z "$ac_dir" && ac_dir=.
5677 tmp_nm="$ac_dir/$lt_tmp_nm"
5678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679 # Check to see if the nm accepts a BSD-compat flag.
5680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681 # nm: unknown option "B" ignored
5682 # Tru64's nm complains that /dev/null is an invalid object file
5683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684 */dev/null* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5686 break
5687 ;;
5688 *)
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690 */dev/null*)
5691 lt_cv_path_NM="$tmp_nm -p"
5692 break
5693 ;;
5694 *)
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5697 ;;
5698 esac
5699 ;;
5700 esac
5701 fi
5702 done
5703 IFS="$lt_save_ifs"
5704 done
5705 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5706fi
5707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005710NM="$lt_cv_path_NM"
5711
5712
5713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005714{ echo "$as_me:$LINENO: checking for GNU make" >&5
5715echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716if test "${llvm_cv_gnu_make_command+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005718else
5719 llvm_cv_gnu_make_command=''
5720 for a in "$MAKE" make gmake gnumake ; do
5721 if test -z "$a" ; then continue ; fi ;
5722 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723 then
5724 llvm_cv_gnu_make_command=$a ;
5725 break;
5726 fi
5727 done
5728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005731 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5732 ifGNUmake='' ;
5733 else
5734 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005737 fi
5738
5739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005742LN_S=$as_ln_s
5743if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744 { echo "$as_me:$LINENO: result: yes" >&5
5745echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749fi
5750
5751# Extract the first word of "cmp", so it can be a program name with args.
5752set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755if test "${ac_cv_path_CMP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005757else
5758 case $CMP in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5761 ;;
5762 *)
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005770 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005772 break 2
5773 fi
5774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775done
Reid Spencera773bd52006-08-04 18:18:08 +00005776IFS=$as_save_IFS
5777
5778 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5779 ;;
5780esac
5781fi
5782CMP=$ac_cv_path_CMP
5783if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784 { echo "$as_me:$LINENO: result: $CMP" >&5
5785echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 { echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005789fi
5790
5791
5792# Extract the first word of "cp", so it can be a program name with args.
5793set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_CP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
5799 case $CP in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5802 ;;
5803 *)
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005811 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005813 break 2
5814 fi
5815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816done
Reid Spencera773bd52006-08-04 18:18:08 +00005817IFS=$as_save_IFS
5818
5819 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5820 ;;
5821esac
5822fi
5823CP=$ac_cv_path_CP
5824if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 { echo "$as_me:$LINENO: result: $CP" >&5
5826echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830fi
5831
5832
5833# Extract the first word of "date", so it can be a program name with args.
5834set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_DATE+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005839else
5840 case $DATE in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005852 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005854 break 2
5855 fi
5856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857done
Reid Spencera773bd52006-08-04 18:18:08 +00005858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861 ;;
5862esac
5863fi
5864DATE=$ac_cv_path_DATE
5865if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 { echo "$as_me:$LINENO: result: $DATE" >&5
5867echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871fi
5872
5873
5874# Extract the first word of "find", so it can be a program name with args.
5875set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_FIND+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005880else
5881 case $FIND in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5884 ;;
5885 *)
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005893 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005895 break 2
5896 fi
5897done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898done
Reid Spencera773bd52006-08-04 18:18:08 +00005899IFS=$as_save_IFS
5900
5901 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902 ;;
5903esac
5904fi
5905FIND=$ac_cv_path_FIND
5906if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907 { echo "$as_me:$LINENO: result: $FIND" >&5
5908echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912fi
5913
5914
5915# Extract the first word of "grep", so it can be a program name with args.
5916set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_GREP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
5922 case $GREP in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5925 ;;
5926 *)
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005934 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005936 break 2
5937 fi
5938done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939done
Reid Spencera773bd52006-08-04 18:18:08 +00005940IFS=$as_save_IFS
5941
5942 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943 ;;
5944esac
5945fi
5946GREP=$ac_cv_path_GREP
5947if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948 { echo "$as_me:$LINENO: result: $GREP" >&5
5949echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005953fi
5954
5955
5956# Extract the first word of "mkdir", so it can be a program name with args.
5957set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_MKDIR+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005962else
5963 case $MKDIR in
5964 [\\/]* | ?:[\\/]*)
5965 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5966 ;;
5967 *)
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005975 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005977 break 2
5978 fi
5979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980done
Reid Spencera773bd52006-08-04 18:18:08 +00005981IFS=$as_save_IFS
5982
5983 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984 ;;
5985esac
5986fi
5987MKDIR=$ac_cv_path_MKDIR
5988if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992 { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005994fi
5995
5996
5997# Extract the first word of "mv", so it can be a program name with args.
5998set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_path_MV+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006003else
6004 case $MV in
6005 [\\/]* | ?:[\\/]*)
6006 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6007 ;;
6008 *)
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 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 +00006016 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006018 break 2
6019 fi
6020done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021done
Reid Spencera773bd52006-08-04 18:18:08 +00006022IFS=$as_save_IFS
6023
6024 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6025 ;;
6026esac
6027fi
6028MV=$ac_cv_path_MV
6029if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030 { echo "$as_me:$LINENO: result: $MV" >&5
6031echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006035fi
6036
6037
6038if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043if test "${ac_cv_prog_RANLIB+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006045else
6046 if test -n "$RANLIB"; then
6047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 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 +00006056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006058 break 2
6059 fi
6060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061done
Reid Spencera773bd52006-08-04 18:18:08 +00006062IFS=$as_save_IFS
6063
6064fi
6065fi
6066RANLIB=$ac_cv_prog_RANLIB
6067if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 { echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_RANLIB"; then
6078 ac_ct_RANLIB=$RANLIB
6079 # Extract the first word of "ranlib", so it can be a program name with args.
6080set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006085else
6086 if test -n "$ac_ct_RANLIB"; then
6087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 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 +00006096 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006098 break 2
6099 fi
6100done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101done
Reid Spencera773bd52006-08-04 18:18:08 +00006102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006113fi
6114
6115 if test "x$ac_ct_RANLIB" = x; then
6116 RANLIB=":"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121whose name does not start with the host triplet. If you think this
6122configuration is useful to you, please write to autoconf@gnu.org." >&5
6123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet. If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006126ac_tool_warned=yes ;;
6127esac
6128 RANLIB=$ac_ct_RANLIB
6129 fi
6130else
6131 RANLIB="$ac_cv_prog_RANLIB"
6132fi
6133
Torok Edwin871384f2010-01-26 08:50:50 +00006134if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006141else
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 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 +00006152 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006154 break 2
6155 fi
6156done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157done
Torok Edwin871384f2010-01-26 08:50:50 +00006158IFS=$as_save_IFS
6159
6160fi
6161fi
6162AR=$ac_cv_prog_AR
6163if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: $AR" >&5
6165echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006169fi
6170
6171
6172fi
6173if test -z "$ac_cv_prog_AR"; then
6174 ac_ct_AR=$AR
6175 # Extract the first word of "ar", so it can be a program name with args.
6176set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006181else
6182 if test -n "$ac_ct_AR"; then
6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 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 +00006192 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006194 break 2
6195 fi
6196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197done
Torok Edwin871384f2010-01-26 08:50:50 +00006198IFS=$as_save_IFS
6199
6200fi
6201fi
6202ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207 { echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006209fi
6210
6211 if test "x$ac_ct_AR" = x; then
6212 AR="false"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217whose name does not start with the host triplet. If you think this
6218configuration is useful to you, please write to autoconf@gnu.org." >&5
6219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet. If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006222ac_tool_warned=yes ;;
6223esac
6224 AR=$ac_ct_AR
6225 fi
6226else
6227 AR="$ac_cv_prog_AR"
6228fi
6229
Reid Spencera773bd52006-08-04 18:18:08 +00006230# Extract the first word of "rm", so it can be a program name with args.
6231set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_RM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006236else
6237 case $RM in
6238 [\\/]* | ?:[\\/]*)
6239 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6240 ;;
6241 *)
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006249 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006251 break 2
6252 fi
6253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254done
Reid Spencera773bd52006-08-04 18:18:08 +00006255IFS=$as_save_IFS
6256
6257 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6258 ;;
6259esac
6260fi
6261RM=$ac_cv_path_RM
6262if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006263 { echo "$as_me:$LINENO: result: $RM" >&5
6264echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006268fi
6269
6270
6271# Extract the first word of "sed", so it can be a program name with args.
6272set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_SED+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
6278 case $SED in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006290 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006292 break 2
6293 fi
6294done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295done
Reid Spencera773bd52006-08-04 18:18:08 +00006296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6299 ;;
6300esac
6301fi
6302SED=$ac_cv_path_SED
6303if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: $SED" >&5
6305echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309fi
6310
6311
6312# Extract the first word of "tar", so it can be a program name with args.
6313set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_TAR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006318else
6319 case $TAR in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006331 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006333 break 2
6334 fi
6335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336done
Reid Spencera773bd52006-08-04 18:18:08 +00006337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6340 ;;
6341esac
6342fi
6343TAR=$ac_cv_path_TAR
6344if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345 { echo "$as_me:$LINENO: result: $TAR" >&5
6346echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350fi
6351
6352
6353# Extract the first word of "pwd", so it can be a program name with args.
6354set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_BINPWD+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
6360 case $BINPWD in
6361 [\\/]* | ?:[\\/]*)
6362 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6363 ;;
6364 *)
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 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 +00006372 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006374 break 2
6375 fi
6376done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377done
Reid Spencera773bd52006-08-04 18:18:08 +00006378IFS=$as_save_IFS
6379
6380 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6381 ;;
6382esac
6383fi
6384BINPWD=$ac_cv_path_BINPWD
6385if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6387echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391fi
6392
6393
6394
6395# Extract the first word of "Graphviz", so it can be a program name with args.
6396set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006401else
6402 case $GRAPHVIZ in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 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 +00006414 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006416 break 2
6417 fi
6418done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419done
Reid Spencera773bd52006-08-04 18:18:08 +00006420IFS=$as_save_IFS
6421
6422 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6423 ;;
6424esac
6425fi
6426GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6427if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6429echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 { echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006433fi
6434
6435
6436if test "$GRAPHVIZ" != "echo Graphviz" ; then
6437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438cat >>confdefs.h <<\_ACEOF
6439#define HAVE_GRAPHVIZ 1
6440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006441
Jeff Cohen28783c32007-01-12 18:22:38 +00006442 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006443 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6444 fi
6445
6446cat >>confdefs.h <<_ACEOF
6447#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6448_ACEOF
6449
6450fi
6451# Extract the first word of "dot", so it can be a program name with args.
6452set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455if test "${ac_cv_path_DOT+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006457else
6458 case $DOT in
6459 [\\/]* | ?:[\\/]*)
6460 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6461 ;;
6462 *)
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 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 +00006470 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006472 break 2
6473 fi
6474done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475done
Reid Spencera773bd52006-08-04 18:18:08 +00006476IFS=$as_save_IFS
6477
6478 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6479 ;;
6480esac
6481fi
6482DOT=$ac_cv_path_DOT
6483if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484 { echo "$as_me:$LINENO: result: $DOT" >&5
6485echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487 { echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006489fi
6490
6491
6492if test "$DOT" != "echo dot" ; then
6493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494cat >>confdefs.h <<\_ACEOF
6495#define HAVE_DOT 1
6496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006497
Jeff Cohen28783c32007-01-12 18:22:38 +00006498 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006499 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6500 fi
6501
6502cat >>confdefs.h <<_ACEOF
6503#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6504_ACEOF
6505
6506fi
David Greenef0b9eff2009-07-09 17:16:26 +00006507# Extract the first word of "fdp", so it can be a program name with args.
6508set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511if test "${ac_cv_path_FDP+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006513else
6514 case $FDP in
6515 [\\/]* | ?:[\\/]*)
6516 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6517 ;;
6518 *)
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 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 +00006526 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006528 break 2
6529 fi
6530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006531done
David Greenef0b9eff2009-07-09 17:16:26 +00006532IFS=$as_save_IFS
6533
6534 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6535 ;;
6536esac
6537fi
6538FDP=$ac_cv_path_FDP
6539if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006540 { echo "$as_me:$LINENO: result: $FDP" >&5
6541echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543 { echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006545fi
6546
6547
6548if test "$FDP" != "echo fdp" ; then
6549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550cat >>confdefs.h <<\_ACEOF
6551#define HAVE_FDP 1
6552_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006553
6554 if test "$llvm_cv_os_type" = "MingW" ; then
6555 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6556 fi
6557
6558cat >>confdefs.h <<_ACEOF
6559#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6560_ACEOF
6561
6562fi
6563# Extract the first word of "neato", so it can be a program name with args.
6564set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_NEATO+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006569else
6570 case $NEATO in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 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 +00006582 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006584 break 2
6585 fi
6586done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587done
David Greenef0b9eff2009-07-09 17:16:26 +00006588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6591 ;;
6592esac
6593fi
6594NEATO=$ac_cv_path_NEATO
6595if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596 { echo "$as_me:$LINENO: result: $NEATO" >&5
6597echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006601fi
6602
6603
6604if test "$NEATO" != "echo neato" ; then
6605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606cat >>confdefs.h <<\_ACEOF
6607#define HAVE_NEATO 1
6608_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006609
6610 if test "$llvm_cv_os_type" = "MingW" ; then
6611 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6612 fi
6613
6614cat >>confdefs.h <<_ACEOF
6615#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6616_ACEOF
6617
6618fi
6619# Extract the first word of "twopi", so it can be a program name with args.
6620set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623if test "${ac_cv_path_TWOPI+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006625else
6626 case $TWOPI in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6629 ;;
6630 *)
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 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 +00006638 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006640 break 2
6641 fi
6642done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643done
David Greenef0b9eff2009-07-09 17:16:26 +00006644IFS=$as_save_IFS
6645
6646 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6647 ;;
6648esac
6649fi
6650TWOPI=$ac_cv_path_TWOPI
6651if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006652 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6653echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655 { echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006657fi
6658
6659
6660if test "$TWOPI" != "echo twopi" ; then
6661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662cat >>confdefs.h <<\_ACEOF
6663#define HAVE_TWOPI 1
6664_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006665
6666 if test "$llvm_cv_os_type" = "MingW" ; then
6667 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6668 fi
6669
6670cat >>confdefs.h <<_ACEOF
6671#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6672_ACEOF
6673
6674fi
6675# Extract the first word of "circo", so it can be a program name with args.
6676set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679if test "${ac_cv_path_CIRCO+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006681else
6682 case $CIRCO in
6683 [\\/]* | ?:[\\/]*)
6684 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6685 ;;
6686 *)
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 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 +00006694 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006696 break 2
6697 fi
6698done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699done
David Greenef0b9eff2009-07-09 17:16:26 +00006700IFS=$as_save_IFS
6701
6702 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6703 ;;
6704esac
6705fi
6706CIRCO=$ac_cv_path_CIRCO
6707if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6709echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 { echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006713fi
6714
6715
6716if test "$CIRCO" != "echo circo" ; then
6717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718cat >>confdefs.h <<\_ACEOF
6719#define HAVE_CIRCO 1
6720_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006721
6722 if test "$llvm_cv_os_type" = "MingW" ; then
6723 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6724 fi
6725
6726cat >>confdefs.h <<_ACEOF
6727#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6728_ACEOF
6729
6730fi
Reid Spencera773bd52006-08-04 18:18:08 +00006731for ac_prog in gv gsview32
6732do
6733 # Extract the first word of "$ac_prog", so it can be a program name with args.
6734set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737if test "${ac_cv_path_GV+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006739else
6740 case $GV in
6741 [\\/]* | ?:[\\/]*)
6742 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6743 ;;
6744 *)
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 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 +00006752 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006754 break 2
6755 fi
6756done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757done
Reid Spencera773bd52006-08-04 18:18:08 +00006758IFS=$as_save_IFS
6759
6760 ;;
6761esac
6762fi
6763GV=$ac_cv_path_GV
6764if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 { echo "$as_me:$LINENO: result: $GV" >&5
6766echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006770fi
6771
6772
6773 test -n "$GV" && break
6774done
6775test -n "$GV" || GV="echo gv"
6776
6777if test "$GV" != "echo gv" ; then
6778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779cat >>confdefs.h <<\_ACEOF
6780#define HAVE_GV 1
6781_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006782
Jeff Cohen28783c32007-01-12 18:22:38 +00006783 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006784 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6785 fi
6786
6787cat >>confdefs.h <<_ACEOF
6788#define LLVM_PATH_GV "$GV${EXEEXT}"
6789_ACEOF
6790
6791fi
6792# Extract the first word of "dotty", so it can be a program name with args.
6793set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796if test "${ac_cv_path_DOTTY+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006798else
6799 case $DOTTY in
6800 [\\/]* | ?:[\\/]*)
6801 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6802 ;;
6803 *)
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 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 +00006811 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006813 break 2
6814 fi
6815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816done
Reid Spencera773bd52006-08-04 18:18:08 +00006817IFS=$as_save_IFS
6818
6819 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6820 ;;
6821esac
6822fi
6823DOTTY=$ac_cv_path_DOTTY
6824if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6826echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 { echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006830fi
6831
6832
6833if test "$DOTTY" != "echo dotty" ; then
6834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835cat >>confdefs.h <<\_ACEOF
6836#define HAVE_DOTTY 1
6837_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006838
Jeff Cohen28783c32007-01-12 18:22:38 +00006839 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006840 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841 fi
6842
6843cat >>confdefs.h <<_ACEOF
6844#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6845_ACEOF
6846
6847fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006848# Extract the first word of "xdot.py", so it can be a program name with args.
6849set dummy xdot.py; ac_word=$2
6850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_XDOT_PY+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855 case $XDOT_PY in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6858 ;;
6859 *)
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872done
6873IFS=$as_save_IFS
6874
6875 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6876 ;;
6877esac
6878fi
6879XDOT_PY=$ac_cv_path_XDOT_PY
6880if test -n "$XDOT_PY"; then
6881 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6882echo "${ECHO_T}$XDOT_PY" >&6; }
6883else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
6886fi
6887
6888
6889if test "$XDOT_PY" != "echo xdot.py" ; then
6890
6891cat >>confdefs.h <<\_ACEOF
6892#define HAVE_XDOT_PY 1
6893_ACEOF
6894
6895 if test "$llvm_cv_os_type" = "MingW" ; then
6896 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6897 fi
6898
6899cat >>confdefs.h <<_ACEOF
6900#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6901_ACEOF
6902
6903fi
Reid Spencera773bd52006-08-04 18:18:08 +00006904
6905
6906# Extract the first word of "perl", so it can be a program name with args.
6907set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910if test "${ac_cv_path_PERL+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006912else
6913 case $PERL in
6914 [\\/]* | ?:[\\/]*)
6915 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6916 ;;
6917 *)
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 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 +00006925 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006927 break 2
6928 fi
6929done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930done
Reid Spencera773bd52006-08-04 18:18:08 +00006931IFS=$as_save_IFS
6932
6933 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6934 ;;
6935esac
6936fi
6937PERL=$ac_cv_path_PERL
6938if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 { echo "$as_me:$LINENO: result: $PERL" >&5
6940echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944fi
6945
6946
6947if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6949echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006950 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 { echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006953 else
6954 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 { echo "$as_me:$LINENO: result: not found" >&5
6956echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006957 fi
6958fi
6959
6960
6961if test x"$PERL" = xnone; then
6962 HAVE_PERL=0
6963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6965echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6966 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967else
6968 HAVE_PERL=1
6969
6970fi
6971
6972# Find a good install program. We prefer a C program (faster),
6973# so one script is as good as another. But avoid the broken or
6974# incompatible versions:
6975# SysV /etc/install, /usr/sbin/install
6976# SunOS /usr/etc/install
6977# IRIX /sbin/install
6978# AIX /bin/install
6979# AmigaOS /C/install, which installs bootblocks on floppy discs
6980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6981# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6983# OS/2's system install, which has a completely different semantic
6984# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988if test "${ac_cv_path_install+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006990else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 # Account for people who put trailing slashes in PATH elements.
6997case $as_dir/ in
6998 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007001 /usr/ucb/* ) ;;
7002 *)
7003 # OSF1 and SCO ODT 3.0 have their own names for install.
7004 # Don't use installbsd from OSF since it installs stuff as root
7005 # by default.
7006 for ac_prog in ginstall scoinst install; do
7007 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008 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 +00007009 if test $ac_prog = install &&
7010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7011 # AIX install. It has an incompatible calling convention.
7012 :
7013 elif test $ac_prog = install &&
7014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # program-specific install script used by HP pwplus--don't use.
7016 :
7017 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7019 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007020 fi
7021 fi
7022 done
7023 done
7024 ;;
7025esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026done
Reid Spencera773bd52006-08-04 18:18:08 +00007027IFS=$as_save_IFS
7028
7029
7030fi
7031 if test "${ac_cv_path_install+set}" = set; then
7032 INSTALL=$ac_cv_path_install
7033 else
7034 # As a last resort, use the slow shell script. Don't cache a
7035 # value for INSTALL within a source directory, because that will
7036 # break other packages using the cache if that directory is
7037 # removed, or if the value is a relative name.
7038 INSTALL=$ac_install_sh
7039 fi
7040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7042echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007043
7044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7045# It thinks the first close brace ends the variable substitution.
7046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7047
7048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7049
7050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7051
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007052case "$INSTALL" in
7053 [\\/$]* | ?:[\\/]* ) ;;
7054 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7055esac
Reid Spencera773bd52006-08-04 18:18:08 +00007056
7057# Extract the first word of "bzip2", so it can be a program name with args.
7058set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_path_BZIP2+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007063else
7064 case $BZIP2 in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007076 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007078 break 2
7079 fi
7080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081done
Reid Spencera773bd52006-08-04 18:18:08 +00007082IFS=$as_save_IFS
7083
Reid Spencera773bd52006-08-04 18:18:08 +00007084 ;;
7085esac
7086fi
7087BZIP2=$ac_cv_path_BZIP2
7088if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7090echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094fi
7095
7096
mike-m68cb3192010-05-06 23:45:43 +00007097# Extract the first word of "cat", so it can be a program name with args.
7098set dummy cat; ac_word=$2
7099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_CAT+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104 case $CAT in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120done
7121done
7122IFS=$as_save_IFS
7123
7124 ;;
7125esac
7126fi
7127CAT=$ac_cv_path_CAT
7128if test -n "$CAT"; then
7129 { echo "$as_me:$LINENO: result: $CAT" >&5
7130echo "${ECHO_T}$CAT" >&6; }
7131else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136
Reid Spencera773bd52006-08-04 18:18:08 +00007137# Extract the first word of "doxygen", so it can be a program name with args.
7138set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_DOXYGEN+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007143else
7144 case $DOXYGEN in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 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 +00007156 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007158 break 2
7159 fi
7160done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161done
Reid Spencera773bd52006-08-04 18:18:08 +00007162IFS=$as_save_IFS
7163
Reid Spencera773bd52006-08-04 18:18:08 +00007164 ;;
7165esac
7166fi
7167DOXYGEN=$ac_cv_path_DOXYGEN
7168if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7170echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007174fi
7175
7176
Reid Spencera773bd52006-08-04 18:18:08 +00007177# Extract the first word of "groff", so it can be a program name with args.
7178set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181if test "${ac_cv_path_GROFF+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007183else
7184 case $GROFF in
7185 [\\/]* | ?:[\\/]*)
7186 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 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 +00007196 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007198 break 2
7199 fi
7200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201done
Reid Spencera773bd52006-08-04 18:18:08 +00007202IFS=$as_save_IFS
7203
Reid Spencera773bd52006-08-04 18:18:08 +00007204 ;;
7205esac
7206fi
7207GROFF=$ac_cv_path_GROFF
7208if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007209 { echo "$as_me:$LINENO: result: $GROFF" >&5
7210echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214fi
7215
7216
7217# Extract the first word of "gzip", so it can be a program name with args.
7218set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007221if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007223else
Eric Christopher031d3072010-12-10 01:31:51 +00007224 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007225 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007226 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007227 ;;
7228 *)
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 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 +00007236 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007238 break 2
7239 fi
7240done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241done
Reid Spencera773bd52006-08-04 18:18:08 +00007242IFS=$as_save_IFS
7243
Reid Spencera773bd52006-08-04 18:18:08 +00007244 ;;
7245esac
7246fi
Eric Christopher031d3072010-12-10 01:31:51 +00007247GZIPBIN=$ac_cv_path_GZIPBIN
7248if test -n "$GZIPBIN"; then
7249 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7250echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 { echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254fi
7255
7256
7257# Extract the first word of "pod2html", so it can be a program name with args.
7258set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261if test "${ac_cv_path_POD2HTML+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007263else
7264 case $POD2HTML in
7265 [\\/]* | ?:[\\/]*)
7266 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7267 ;;
7268 *)
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 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 +00007276 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007278 break 2
7279 fi
7280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281done
Reid Spencera773bd52006-08-04 18:18:08 +00007282IFS=$as_save_IFS
7283
Reid Spencera773bd52006-08-04 18:18:08 +00007284 ;;
7285esac
7286fi
7287POD2HTML=$ac_cv_path_POD2HTML
7288if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7290echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007294fi
7295
7296
7297# Extract the first word of "pod2man", so it can be a program name with args.
7298set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301if test "${ac_cv_path_POD2MAN+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007303else
7304 case $POD2MAN in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7307 ;;
7308 *)
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 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 +00007316 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007318 break 2
7319 fi
7320done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321done
Reid Spencera773bd52006-08-04 18:18:08 +00007322IFS=$as_save_IFS
7323
Reid Spencera773bd52006-08-04 18:18:08 +00007324 ;;
7325esac
7326fi
7327POD2MAN=$ac_cv_path_POD2MAN
7328if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7330echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007334fi
7335
7336
mike-m68cb3192010-05-06 23:45:43 +00007337# Extract the first word of "pdfroff", so it can be a program name with args.
7338set dummy pdfroff; ac_word=$2
7339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341if test "${ac_cv_path_PDFROFF+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344 case $PDFROFF in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360done
7361done
7362IFS=$as_save_IFS
7363
7364 ;;
7365esac
7366fi
7367PDFROFF=$ac_cv_path_PDFROFF
7368if test -n "$PDFROFF"; then
7369 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7370echo "${ECHO_T}$PDFROFF" >&6; }
7371else
7372 { echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6; }
7374fi
7375
7376
Reid Spencera773bd52006-08-04 18:18:08 +00007377# Extract the first word of "runtest", so it can be a program name with args.
7378set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_RUNTEST+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
7384 case $RUNTEST in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 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 +00007396 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007398 break 2
7399 fi
7400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401done
Reid Spencera773bd52006-08-04 18:18:08 +00007402IFS=$as_save_IFS
7403
Reid Spencera773bd52006-08-04 18:18:08 +00007404 ;;
7405esac
7406fi
7407RUNTEST=$ac_cv_path_RUNTEST
7408if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7410echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414fi
7415
7416
7417
7418no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7420echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007421
7422# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007424 withval=$with_tclinclude; with_tclinclude=${withval}
7425else
7426 with_tclinclude=''
7427fi
7428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429if test "${ac_cv_path_tclsh+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007431else
7432
7433if test x"${with_tclinclude}" != x ; then
7434 if test -f ${with_tclinclude}/tclsh ; then
7435 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7436 elif test -f ${with_tclinclude}/src/tclsh ; then
7437 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7438 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7440echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7441 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007442 fi
7443fi
Torok Edwin871384f2010-01-26 08:50:50 +00007444fi
7445
Reid Spencera773bd52006-08-04 18:18:08 +00007446
7447if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: none" >&5
7449echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450 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
7451do
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_TCLSH+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007458else
7459 case $TCLSH in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 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 +00007471 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007473 break 2
7474 fi
7475done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476done
Reid Spencera773bd52006-08-04 18:18:08 +00007477IFS=$as_save_IFS
7478
7479 ;;
7480esac
7481fi
7482TCLSH=$ac_cv_path_TCLSH
7483if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7485echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007489fi
7490
7491
7492 test -n "$TCLSH" && break
7493done
7494
7495 if test x"${TCLSH}" = x ; then
7496 ac_cv_path_tclsh='';
7497 else
7498 ac_cv_path_tclsh="${TCLSH}";
7499 fi
7500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7502echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007503 TCLSH="${ac_cv_path_tclsh}"
7504
7505fi
7506
Reid Spencera773bd52006-08-04 18:18:08 +00007507# Extract the first word of "zip", so it can be a program name with args.
7508set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511if test "${ac_cv_path_ZIP+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007513else
7514 case $ZIP in
7515 [\\/]* | ?:[\\/]*)
7516 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7517 ;;
7518 *)
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 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 +00007526 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007528 break 2
7529 fi
7530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531done
Reid Spencera773bd52006-08-04 18:18:08 +00007532IFS=$as_save_IFS
7533
Reid Spencera773bd52006-08-04 18:18:08 +00007534 ;;
7535esac
7536fi
7537ZIP=$ac_cv_path_ZIP
7538if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 { echo "$as_me:$LINENO: result: $ZIP" >&5
7540echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007544fi
7545
7546
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007547for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007548do
7549 # Extract the first word of "$ac_prog", so it can be a program name with args.
7550set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553if test "${ac_cv_path_OCAMLC+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007555else
7556 case $OCAMLC in
7557 [\\/]* | ?:[\\/]*)
7558 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7559 ;;
7560 *)
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 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 +00007568 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007570 break 2
7571 fi
7572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007574IFS=$as_save_IFS
7575
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007576 ;;
7577esac
7578fi
7579OCAMLC=$ac_cv_path_OCAMLC
7580if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7582echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007586fi
7587
7588
Gordon Henriksene7072162008-03-07 18:20:01 +00007589 test -n "$OCAMLC" && break
7590done
7591
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007592for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007593do
7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
7595set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007600else
7601 case $OCAMLOPT in
7602 [\\/]* | ?:[\\/]*)
7603 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7604 ;;
7605 *)
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 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 +00007613 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615 break 2
7616 fi
7617done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007619IFS=$as_save_IFS
7620
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007621 ;;
7622esac
7623fi
7624OCAMLOPT=$ac_cv_path_OCAMLOPT
7625if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7627echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 { echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007631fi
7632
7633
Gordon Henriksene7072162008-03-07 18:20:01 +00007634 test -n "$OCAMLOPT" && break
7635done
7636
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007637for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007638do
7639 # Extract the first word of "$ac_prog", so it can be a program name with args.
7640set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007645else
7646 case $OCAMLDEP in
7647 [\\/]* | ?:[\\/]*)
7648 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7649 ;;
7650 *)
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 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 +00007658 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007660 break 2
7661 fi
7662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007664IFS=$as_save_IFS
7665
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007666 ;;
7667esac
7668fi
7669OCAMLDEP=$ac_cv_path_OCAMLDEP
7670if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7672echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007676fi
7677
7678
Gordon Henriksene7072162008-03-07 18:20:01 +00007679 test -n "$OCAMLDEP" && break
7680done
7681
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007682for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007683do
7684 # Extract the first word of "$ac_prog", so it can be a program name with args.
7685set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007690else
7691 case $OCAMLDOC in
7692 [\\/]* | ?:[\\/]*)
7693 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7694 ;;
7695 *)
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 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 +00007703 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007705 break 2
7706 fi
7707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007709IFS=$as_save_IFS
7710
7711 ;;
7712esac
7713fi
7714OCAMLDOC=$ac_cv_path_OCAMLDOC
7715if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7717echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 { echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007721fi
7722
7723
7724 test -n "$OCAMLDOC" && break
7725done
7726
Torok Edwincc499a42008-10-22 09:56:27 +00007727for ac_prog in gas as
7728do
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733if test "${ac_cv_path_GAS+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007735else
7736 case $GAS in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 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 +00007748 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007750 break 2
7751 fi
7752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753done
Torok Edwincc499a42008-10-22 09:56:27 +00007754IFS=$as_save_IFS
7755
7756 ;;
7757esac
7758fi
7759GAS=$ac_cv_path_GAS
7760if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 { echo "$as_me:$LINENO: result: $GAS" >&5
7762echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007763else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 { echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007766fi
7767
7768
7769 test -n "$GAS" && break
7770done
7771
Reid Spencera773bd52006-08-04 18:18:08 +00007772
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007773{ echo "$as_me:$LINENO: checking for linker version" >&5
7774echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7775if test "${llvm_cv_link_version+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777else
7778
7779 version_string="$(ld -v 2>&1 | head -1)"
7780
7781 # Check for ld64.
7782 if (echo "$version_string" | grep -q "ld64"); then
7783 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7784 else
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7786 fi
7787
7788fi
7789{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7790echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7791
7792cat >>confdefs.h <<_ACEOF
7793#define HOST_LINK_VERSION "$llvm_cv_link_version"
7794_ACEOF
7795
7796
7797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7799echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7800if test "${llvm_cv_link_use_r+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007802else
7803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 oldcflags="$CFLAGS"
7810 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h. */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007816/* end confdefs.h. */
7817
7818int
7819main ()
7820{
Dan Gohman39ed6782010-04-25 00:12:20 +00007821
Reid Spencera773bd52006-08-04 18:18:08 +00007822 ;
7823 return 0;
7824}
7825_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (ac_try="$ac_link"
7828case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841 { (case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_try") 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007860 llvm_cv_link_use_r=yes
7861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007862 echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007866fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867
Bill Wendlingebcceee2009-04-18 11:20:33 +00007868rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007869 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007870 CFLAGS="$oldcflags"
7871 ac_ext=c
7872ac_cpp='$CPP $CPPFLAGS'
7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877
7878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7880echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007881if test "$llvm_cv_link_use_r" = yes ; then
7882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007883cat >>confdefs.h <<\_ACEOF
7884#define HAVE_LINK_R 1
7885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007886
7887 fi
7888
7889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007890{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7891echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7892if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007894else
7895 ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 oldcflags="$CFLAGS"
7902 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007908/* end confdefs.h. */
7909
7910int
7911main ()
7912{
Dan Gohman39ed6782010-04-25 00:12:20 +00007913
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007914 ;
7915 return 0;
7916}
7917_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918rm -f conftest.$ac_objext conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_link") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_try") 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest$ac_exeext'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946esac
7947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007952 llvm_cv_link_use_export_dynamic=yes
7953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954 echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959
Bill Wendlingebcceee2009-04-18 11:20:33 +00007960rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007962 CFLAGS="$oldcflags"
7963 ac_ext=c
7964ac_cpp='$CPP $CPPFLAGS'
7965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968
7969
7970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7972echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007973if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975cat >>confdefs.h <<\_ACEOF
7976#define HAVE_LINK_EXPORT_DYNAMIC 1
7977_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007978
7979 fi
7980
7981
Dan Gohmanda612d62010-06-01 14:56:56 +00007982{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7983echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7984if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987 ac_ext=c
7988ac_cpp='$CPP $CPPFLAGS'
7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993 oldcflags="$CFLAGS"
7994
7995 # The following code is from the autoconf manual,
7996 # "11.13: Limitations of Usual Tools".
7997 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7998 # Use mktemp if possible; otherwise fall back on mkdir,
7999 # with $RANDOM to make collisions less likely.
8000 : ${TMPDIR=/tmp}
8001 {
8002 tmp=`
8003 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8004 ` &&
8005 test -n "$tmp" && test -d "$tmp"
8006 } || {
8007 tmp=$TMPDIR/foo$$-$RANDOM
8008 (umask 077 && mkdir "$tmp")
8009 } || exit $?
8010
Dan Gohmanda612d62010-06-01 14:56:56 +00008011 echo "{" > "$tmp/export.map"
8012 echo " global: main;" >> "$tmp/export.map"
8013 echo " local: *;" >> "$tmp/export.map"
8014 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008015
Dan Gohmanda612d62010-06-01 14:56:56 +00008016 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008017 cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
8023
8024int
8025main ()
8026{
Dan Gohman39ed6782010-04-25 00:12:20 +00008027
Dan Gohman391569c2010-04-16 22:59:06 +00008028 ;
8029 return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext conftest$ac_exeext
8033if { (ac_try="$ac_link"
8034case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_link") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008066 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
Dan Gohman943005e2010-06-01 16:22:27 +00008071 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008072fi
8073
8074rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008076 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008077 rmdir "$tmp"
8078 CFLAGS="$oldcflags"
8079 ac_ext=c
8080ac_cpp='$CPP $CPPFLAGS'
8081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083ac_compiler_gnu=$ac_cv_c_compiler_gnu
8084
8085
8086fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008087{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8088echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8089if test "$llvm_cv_link_use_version_script" = yes ; then
8090 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008091
8092 fi
8093
8094
Reid Spencera773bd52006-08-04 18:18:08 +00008095
8096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008097{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8098echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8099if test "${ac_cv_c_const+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008107/* end confdefs.h. */
8108
8109int
8110main ()
8111{
8112/* FIXME: Include the comments suggested by Paul. */
8113#ifndef __cplusplus
8114 /* Ultrix mips cc rejects this. */
8115 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008117 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 char const *const *ccp;
8119 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008120 /* NEC SVR4.0.2 mips cc rejects this. */
8121 struct point {int x, y;};
8122 static struct point const zero = {0,0};
8123 /* AIX XL C 1.02.0.0 rejects this.
8124 It does not let you subtract one const X* pointer from another in
8125 an arm of an if-expression whose if-part is not a constant
8126 expression */
8127 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008129 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 ++ccp;
8131 p = (char**) ccp;
8132 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008133 { /* SCO 3.2v4 cc rejects this. */
8134 char *t;
8135 char const *s = 0 ? (char *) 0 : (char const *) 0;
8136
8137 *t++ = 0;
8138 if (s) return 0;
8139 }
8140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8141 int x[] = {25, 17};
8142 const int *foo = &x[0];
8143 ++foo;
8144 }
8145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8146 typedef const int *iptr;
8147 iptr p = 0;
8148 ++p;
8149 }
8150 { /* AIX XL C 1.02.0.0 rejects this saying
8151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8152 struct s { int j; const int *ap[3]; };
8153 struct s *b; b->j = 5;
8154 }
8155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8156 const int foo = 10;
8157 if (!foo) return 0;
8158 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008160#endif
8161
8162 ;
8163 return 0;
8164}
8165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166rm -f conftest.$ac_objext
8167if { (ac_try="$ac_compile"
8168case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171esac
8172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008200 ac_cv_c_const=yes
8201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207
Reid Spencera773bd52006-08-04 18:18:08 +00008208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8211echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008212if test $ac_cv_c_const = no; then
8213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214cat >>confdefs.h <<\_ACEOF
8215#define const
8216_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008217
8218fi
8219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220
8221
8222
8223
8224
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008225ac_header_dirent=no
8226for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8228{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8229echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 cat >conftest.$ac_ext <<_ACEOF
8234/* confdefs.h. */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238/* end confdefs.h. */
8239#include <sys/types.h>
8240#include <$ac_hdr>
8241
8242int
8243main ()
8244{
8245if ((DIR *) 0)
8246return 0;
8247 ;
8248 return 0;
8249}
8250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251rm -f conftest.$ac_objext
8252if { (ac_try="$ac_compile"
8253case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008285 eval "$as_ac_Header=yes"
8286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287 echo "$as_me: failed program was:" >&5
8288sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292
Reid Spencera773bd52006-08-04 18:18:08 +00008293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295ac_res=`eval echo '${'$as_ac_Header'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297echo "${ECHO_T}$ac_res" >&6; }
8298if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008299 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008301_ACEOF
8302
8303ac_header_dirent=$ac_hdr; break
8304fi
8305
8306done
8307# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8308if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8310echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8311if test "${ac_cv_search_opendir+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008313else
8314 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008320/* end confdefs.h. */
8321
Reid Spencera773bd52006-08-04 18:18:08 +00008322/* Override any GCC internal prototype to avoid an error.
8323 Use char because int might match the return type of a GCC
8324 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325#ifdef __cplusplus
8326extern "C"
8327#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328char opendir ();
8329int
8330main ()
8331{
Reid Spencera773bd52006-08-04 18:18:08 +00008332return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008333 ;
8334 return 0;
8335}
8336_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008337for ac_lib in '' dir; do
8338 if test -z "$ac_lib"; then
8339 ac_res="none required"
8340 else
8341 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008343 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344 rm -f conftest.$ac_objext conftest$ac_exeext
8345if { (ac_try="$ac_link"
8346case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_link") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008378 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385
Bill Wendlingebcceee2009-04-18 11:20:33 +00008386rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387 conftest$ac_exeext
8388 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008389 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008390fi
John Criswell7a73b802003-06-30 21:59:07 +00008391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392if test "${ac_cv_search_opendir+set}" = set; then
8393 :
Reid Spencera773bd52006-08-04 18:18:08 +00008394else
8395 ac_cv_search_opendir=no
8396fi
8397rm conftest.$ac_ext
8398LIBS=$ac_func_search_save_LIBS
8399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8401echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008402ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008405
Reid Spencera773bd52006-08-04 18:18:08 +00008406fi
8407
8408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8410echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8411if test "${ac_cv_search_opendir+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008413else
8414 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008420/* end confdefs.h. */
8421
8422/* Override any GCC internal prototype to avoid an error.
8423 Use char because int might match the return type of a GCC
8424 builtin and then its argument prototype would still apply. */
8425#ifdef __cplusplus
8426extern "C"
8427#endif
8428char opendir ();
8429int
8430main ()
8431{
8432return opendir ();
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437for ac_lib in '' x; do
8438 if test -z "$ac_lib"; then
8439 ac_res="none required"
8440 else
8441 ac_res=-l$ac_lib
8442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8443 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 rm -f conftest.$ac_objext conftest$ac_exeext
8445if { (ac_try="$ac_link"
8446case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_link") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_try") 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472esac
8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008478 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479else
8480 echo "$as_me: failed program was:" >&5
8481sed 's/^/| /' conftest.$ac_ext >&5
8482
8483
Reid Spencera773bd52006-08-04 18:18:08 +00008484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485
Bill Wendlingebcceee2009-04-18 11:20:33 +00008486rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487 conftest$ac_exeext
8488 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008489 break
8490fi
8491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008492if test "${ac_cv_search_opendir+set}" = set; then
8493 :
Reid Spencera773bd52006-08-04 18:18:08 +00008494else
8495 ac_cv_search_opendir=no
8496fi
8497rm conftest.$ac_ext
8498LIBS=$ac_func_search_save_LIBS
8499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8501echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008502ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505
8506fi
8507
8508fi
John Criswell7a73b802003-06-30 21:59:07 +00008509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510
John Criswell7a73b802003-06-30 21:59:07 +00008511for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512do
8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519fi
8520ac_res=`eval echo '${'$as_ac_Header'}'`
8521 { echo "$as_me:$LINENO: result: $ac_res" >&5
8522echo "${ECHO_T}$ac_res" >&6; }
8523else
8524 # Is the header compilable?
8525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8527cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533$ac_includes_default
8534#include <$ac_header>
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (ac_try="$ac_compile"
8538case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_header_compiler=yes
8571else
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_header_compiler=no
8576fi
8577
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8580echo "${ECHO_T}$ac_header_compiler" >&6; }
8581
8582# Is the header present?
8583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591#include <$ac_header>
8592_ACEOF
8593if { (ac_try="$ac_cpp conftest.$ac_ext"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } >/dev/null; then
8606 if test -s conftest.err; then
8607 ac_cpp_err=$ac_c_preproc_warn_flag
8608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8609 else
8610 ac_cpp_err=
8611 fi
8612else
8613 ac_cpp_err=yes
8614fi
8615if test -z "$ac_cpp_err"; then
8616 ac_header_preproc=yes
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_header_preproc=no
8622fi
8623
8624rm -f conftest.err conftest.$ac_ext
8625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8626echo "${ECHO_T}$ac_header_preproc" >&6; }
8627
8628# So? What about this header?
8629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8630 yes:no: )
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8635 ac_header_preproc=yes
8636 ;;
8637 no:yes:* )
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8650 ( cat <<\_ASBOX
8651## ----------------------------------- ##
8652## Report this to llvmbugs@cs.uiuc.edu ##
8653## ----------------------------------- ##
8654_ASBOX
8655 ) | sed "s/^/$as_me: WARNING: /" >&2
8656 ;;
8657esac
8658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663 eval "$as_ac_Header=\$ac_header_preproc"
8664fi
8665ac_res=`eval echo '${'$as_ac_Header'}'`
8666 { echo "$as_me:$LINENO: result: $ac_res" >&5
8667echo "${ECHO_T}$ac_res" >&6; }
8668
8669fi
8670if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008671 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008673_ACEOF
8674
8675fi
8676
8677done
8678
Reid Spencera773bd52006-08-04 18:18:08 +00008679# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008681 enableval=$enable_ltdl_install;
8682fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008683
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008685
8686
8687if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008688 INSTALL_LTDL_TRUE=
8689 INSTALL_LTDL_FALSE='#'
8690else
8691 INSTALL_LTDL_TRUE='#'
8692 INSTALL_LTDL_FALSE=
8693fi
8694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695
8696
8697if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698 CONVENIENCE_LTDL_TRUE=
8699 CONVENIENCE_LTDL_FALSE='#'
8700else
8701 CONVENIENCE_LTDL_TRUE='#'
8702 CONVENIENCE_LTDL_FALSE=
8703fi
8704
8705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008708library_names_spec=
8709libname_spec='lib$name'
8710soname_spec=
8711shrext_cmds=".so"
8712postinstall_cmds=
8713postuninstall_cmds=
8714finish_cmds=
8715finish_eval=
8716shlibpath_var=
8717shlibpath_overrides_runpath=unknown
8718version_type=none
8719dynamic_linker="$host_os ld.so"
8720sys_lib_dlsearch_path_spec="/lib /usr/lib"
8721if test "$GCC" = yes; then
8722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8724 # if the path contains ";" then we assume it to be the separator
8725 # otherwise default to the standard path separator (i.e. ":") - it is
8726 # assumed that no part of a normal pathname contains ";" but that should
8727 # okay in the real world where ";" in dirpaths is itself problematic.
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729 else
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8731 fi
8732else
8733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8734fi
8735need_lib_prefix=unknown
8736hardcode_into_libs=no
8737
8738# when you set need_version to no, make sure it does not cause -set_version
8739# flags to be left without arguments
8740need_version=unknown
8741
8742case $host_os in
8743aix3*)
8744 version_type=linux
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8746 shlibpath_var=LIBPATH
8747
8748 # AIX 3 has no versioning support, so we append a major version to the name.
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 ;;
8751
8752aix4* | aix5*)
8753 version_type=linux
8754 need_lib_prefix=no
8755 need_version=no
8756 hardcode_into_libs=yes
8757 if test "$host_cpu" = ia64; then
8758 # AIX 5 supports IA64
8759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8760 shlibpath_var=LD_LIBRARY_PATH
8761 else
8762 # With GCC up to 2.95.x, collect2 would create an import file
8763 # for dependence libraries. The import file would start with
8764 # the line `#! .'. This would cause the generated library to
8765 # depend on `.', always an invalid library. This was fixed in
8766 # development snapshots of GCC prior to 3.0.
8767 case $host_os in
8768 aix4 | aix4.[01] | aix4.[01].*)
8769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8770 echo ' yes '
8771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8772 :
8773 else
8774 can_build_shared=no
8775 fi
8776 ;;
8777 esac
8778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8779 # soname into executable. Probably we can add versioning support to
8780 # collect2, so additional links can be useful in future.
8781 if test "$aix_use_runtimelinking" = yes; then
8782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8783 # instead of lib<name>.a to let people know that these are not
8784 # typical AIX shared libraries.
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 else
8787 # We preserve .a as extension for shared libraries through AIX4.2
8788 # and later when we are not doing run time linking.
8789 library_names_spec='${libname}${release}.a $libname.a'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 fi
8792 shlibpath_var=LIBPATH
8793 fi
8794 ;;
8795
8796amigaos*)
8797 library_names_spec='$libname.ixlibrary $libname.a'
8798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8799 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'
8800 ;;
8801
8802beos*)
8803 library_names_spec='${libname}${shared_ext}'
8804 dynamic_linker="$host_os ld.so"
8805 shlibpath_var=LIBRARY_PATH
8806 ;;
8807
8808bsdi[45]*)
8809 version_type=linux
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8817 # the default ld.so.conf also contains /usr/contrib/lib and
8818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8819 # libtool to hard-code these into programs
8820 ;;
8821
8822cygwin* | mingw* | pw32*)
8823 version_type=windows
8824 shrext_cmds=".dll"
8825 need_version=no
8826 need_lib_prefix=no
8827
8828 case $GCC,$host_os in
8829 yes,cygwin* | yes,mingw* | yes,pw32*)
8830 library_names_spec='$libname.dll.a'
8831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8832 postinstall_cmds='base_file=`basename \${file}`~
8833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8834 dldir=$destdir/`dirname \$dlpath`~
8835 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008836 $install_prog $dir/$dlname \$dldir/$dlname~
8837 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8839 dlpath=$dir/\$dldll~
8840 $rm \$dlpath'
8841 shlibpath_overrides_runpath=yes
8842
8843 case $host_os in
8844 cygwin*)
8845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8848 ;;
8849 mingw*)
8850 # MinGW DLLs use traditional 'lib' prefix
8851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8854 # It is most probably a Windows format PATH printed by
8855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8856 # path with ; separators, and with drive letters. We can handle the
8857 # drive letters (cygwin fileutils understands them), so leave them,
8858 # especially as we might pass files found there to a mingw objdump,
8859 # which wouldn't understand a cygwinified path. Ahh.
8860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8861 else
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8863 fi
8864 ;;
8865 pw32*)
8866 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008867 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 +00008868 ;;
8869 esac
8870 ;;
8871
8872 *)
8873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8874 ;;
8875 esac
8876 dynamic_linker='Win32 ld.exe'
8877 # FIXME: first we should search . and the directory the executable is in
8878 shlibpath_var=PATH
8879 ;;
8880
8881darwin* | rhapsody*)
8882 dynamic_linker="$host_os dyld"
8883 version_type=darwin
8884 need_lib_prefix=no
8885 need_version=no
8886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8887 soname_spec='${libname}${release}${major}$shared_ext'
8888 shlibpath_overrides_runpath=yes
8889 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008890 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8892 if test "$GCC" = yes; then
8893 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"`
8894 else
8895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8896 fi
8897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8898 ;;
8899
8900dgux*)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 ;;
8908
8909freebsd1*)
8910 dynamic_linker=no
8911 ;;
8912
8913kfreebsd*-gnu)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8922 dynamic_linker='GNU ld.so'
8923 ;;
8924
Reid Spencera773bd52006-08-04 18:18:08 +00008925freebsd* | dragonfly*)
8926 # DragonFly does not have aout. When/if they implement a new
8927 # versioning mechanism, adjust this.
8928 if test -x /usr/bin/objformat; then
8929 objformat=`/usr/bin/objformat`
8930 else
8931 case $host_os in
8932 freebsd[123]*) objformat=aout ;;
8933 *) objformat=elf ;;
8934 esac
8935 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008936 version_type=freebsd-$objformat
8937 case $version_type in
8938 freebsd-elf*)
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 need_version=no
8941 need_lib_prefix=no
8942 ;;
8943 freebsd-*)
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945 need_version=yes
8946 ;;
8947 esac
8948 shlibpath_var=LD_LIBRARY_PATH
8949 case $host_os in
8950 freebsd2*)
8951 shlibpath_overrides_runpath=yes
8952 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008953 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008954 shlibpath_overrides_runpath=yes
8955 hardcode_into_libs=yes
8956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008962 freebsd*) # from 4.6 on
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8965 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008966 esac
8967 ;;
8968
8969gnu*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 hardcode_into_libs=yes
8977 ;;
8978
8979hpux9* | hpux10* | hpux11*)
8980 # Give a soname corresponding to the major version so that dld.sl refuses to
8981 # link against other versions.
8982 version_type=sunos
8983 need_lib_prefix=no
8984 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008985 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986 ia64*)
8987 shrext_cmds='.so'
8988 hardcode_into_libs=yes
8989 dynamic_linker="$host_os dld.so"
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 if test "X$HPUX_IA64_MODE" = X32; then
8995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996 else
8997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998 fi
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 hppa*64*)
9002 shrext_cmds='.sl'
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 ;;
9012 *)
9013 shrext_cmds='.sl'
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=SHLIB_PATH
9016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 ;;
9020 esac
9021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022 postinstall_cmds='chmod 555 $lib'
9023 ;;
9024
Reid Spencera773bd52006-08-04 18:18:08 +00009025interix3*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9035 ;;
9036
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009037irix5* | irix6* | nonstopux*)
9038 case $host_os in
9039 nonstopux*) version_type=nonstopux ;;
9040 *)
9041 if test "$lt_cv_prog_gnu_ld" = yes; then
9042 version_type=linux
9043 else
9044 version_type=irix
9045 fi ;;
9046 esac
9047 need_lib_prefix=no
9048 need_version=no
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 case $host_os in
9052 irix5* | nonstopux*)
9053 libsuff= shlibsuff=
9054 ;;
9055 *)
9056 case $LD in # libtool.m4 will add one of these switches to LD
9057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058 libsuff= shlibsuff= libmagic=32-bit;;
9059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060 libsuff=32 shlibsuff=N32 libmagic=N32;;
9061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063 *) libsuff= shlibsuff= libmagic=never-match;;
9064 esac
9065 ;;
9066 esac
9067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068 shlibpath_overrides_runpath=no
9069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071 hardcode_into_libs=yes
9072 ;;
9073
9074# No shared lib support for Linux oldld, aout, or coff.
9075linux*oldld* | linux*aout* | linux*coff*)
9076 dynamic_linker=no
9077 ;;
9078
9079# This must be Linux ELF.
9080linux*)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 # This implies no fast_install, which is unacceptable.
9090 # Some rework will be needed to allow for fast_install
9091 # before this can be enabled.
9092 hardcode_into_libs=yes
9093
9094 # Append ld.so.conf contents to the search path
9095 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009096 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 +00009097 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9098 fi
9099
9100 # We used to test for /lib/ld.so.1 and disable shared libraries on
9101 # powerpc, because MkLinux only supported shared libraries with the
9102 # GNU dynamic linker. Since this was broken with cross compilers,
9103 # most powerpc-linux boxes support dynamic linking these days and
9104 # people can always --disable-shared, the test was removed, and we
9105 # assume the GNU/Linux dynamic linker is in use.
9106 dynamic_linker='GNU/Linux ld.so'
9107 ;;
9108
9109knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9118 dynamic_linker='GNU ld.so'
9119 ;;
9120
9121netbsd*)
9122 version_type=sunos
9123 need_lib_prefix=no
9124 need_version=no
9125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128 dynamic_linker='NetBSD (a.out) ld.so'
9129 else
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 dynamic_linker='NetBSD ld.elf_so'
9133 fi
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9137 ;;
9138
9139newsos6)
9140 version_type=linux
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 ;;
9145
9146nto-qnx*)
9147 version_type=linux
9148 need_lib_prefix=no
9149 need_version=no
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 ;;
9155
9156openbsd*)
9157 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009158 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009159 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9161 case $host_os in
9162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9163 *) need_version=no ;;
9164 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9169 case $host_os in
9170 openbsd2.[89] | openbsd2.[89].*)
9171 shlibpath_overrides_runpath=no
9172 ;;
9173 *)
9174 shlibpath_overrides_runpath=yes
9175 ;;
9176 esac
9177 else
9178 shlibpath_overrides_runpath=yes
9179 fi
9180 ;;
9181
9182os2*)
9183 libname_spec='$name'
9184 shrext_cmds=".dll"
9185 need_lib_prefix=no
9186 library_names_spec='$libname${shared_ext} $libname.a'
9187 dynamic_linker='OS/2 ld.exe'
9188 shlibpath_var=LIBPATH
9189 ;;
9190
9191osf3* | osf4* | osf5*)
9192 version_type=osf
9193 need_lib_prefix=no
9194 need_version=no
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9200 ;;
9201
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202solaris*)
9203 version_type=linux
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 hardcode_into_libs=yes
9211 # ldd complains unless libraries are executable
9212 postinstall_cmds='chmod +x $lib'
9213 ;;
9214
9215sunos4*)
9216 version_type=sunos
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9221 if test "$with_gnu_ld" = yes; then
9222 need_lib_prefix=no
9223 fi
9224 need_version=yes
9225 ;;
9226
Reid Spencera773bd52006-08-04 18:18:08 +00009227sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228 version_type=linux
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 case $host_vendor in
9233 sni)
9234 shlibpath_overrides_runpath=no
9235 need_lib_prefix=no
9236 export_dynamic_flag_spec='${wl}-Blargedynsym'
9237 runpath_var=LD_RUN_PATH
9238 ;;
9239 siemens)
9240 need_lib_prefix=no
9241 ;;
9242 motorola)
9243 need_lib_prefix=no
9244 need_version=no
9245 shlibpath_overrides_runpath=no
9246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9247 ;;
9248 esac
9249 ;;
9250
9251sysv4*MP*)
9252 if test -d /usr/nec ;then
9253 version_type=linux
9254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9255 soname_spec='$libname${shared_ext}.$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 fi
9258 ;;
9259
Reid Spencera773bd52006-08-04 18:18:08 +00009260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9261 version_type=freebsd-elf
9262 need_lib_prefix=no
9263 need_version=no
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 hardcode_into_libs=yes
9268 if test "$with_gnu_ld" = yes; then
9269 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9270 shlibpath_overrides_runpath=no
9271 else
9272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9273 shlibpath_overrides_runpath=yes
9274 case $host_os in
9275 sco3.2v5*)
9276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9277 ;;
9278 esac
9279 fi
9280 sys_lib_dlsearch_path_spec='/usr/lib'
9281 ;;
9282
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283uts4*)
9284 version_type=linux
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 ;;
9289
9290*)
9291 dynamic_linker=no
9292 ;;
9293esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009294{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9295echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296test "$dynamic_linker" = no && can_build_shared=no
9297
Reid Spencera773bd52006-08-04 18:18:08 +00009298variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9299if test "$GCC" = yes; then
9300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9301fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302
Reid Spencera773bd52006-08-04 18:18:08 +00009303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9305echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9306if test "${libltdl_cv_shlibext+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009308else
9309
9310module=yes
9311eval libltdl_cv_shlibext=$shrext_cmds
9312
9313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9315echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316if test -n "$libltdl_cv_shlibext"; then
9317
9318cat >>confdefs.h <<_ACEOF
9319#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9320_ACEOF
9321
9322fi
9323
9324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009325{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9326echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9327if test "${libltdl_cv_shlibpath_var+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329else
9330 libltdl_cv_shlibpath_var="$shlibpath_var"
9331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9333echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334if test -n "$libltdl_cv_shlibpath_var"; then
9335
9336cat >>confdefs.h <<_ACEOF
9337#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9338_ACEOF
9339
9340fi
9341
9342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9344echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9345if test "${libltdl_cv_sys_search_path+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347else
9348 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009350{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9351echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352if test -n "$libltdl_cv_sys_search_path"; then
9353 sys_search_path=
9354 for dir in $libltdl_cv_sys_search_path; do
9355 if test -z "$sys_search_path"; then
9356 sys_search_path="$dir"
9357 else
9358 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9359 fi
9360 done
9361
9362cat >>confdefs.h <<_ACEOF
9363#define LTDL_SYSSEARCHPATH "$sys_search_path"
9364_ACEOF
9365
9366fi
9367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368{ echo "$as_me:$LINENO: checking for objdir" >&5
9369echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9370if test "${libltdl_cv_objdir+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009372else
9373 libltdl_cv_objdir="$objdir"
9374 if test -n "$objdir"; then
9375 :
9376 else
9377 rm -f .libs 2>/dev/null
9378 mkdir .libs 2>/dev/null
9379 if test -d .libs; then
9380 libltdl_cv_objdir=.libs
9381 else
9382 # MS-DOS does not allow filenames that begin with a dot.
9383 libltdl_cv_objdir=_libs
9384 fi
9385 rmdir .libs 2>/dev/null
9386 fi
9387
9388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009389{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9390echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391
9392cat >>confdefs.h <<_ACEOF
9393#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9394_ACEOF
9395
9396
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397
9398
9399
9400
9401# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9403echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9404if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406else
9407
9408# These are sane defaults that work on at least a few old systems.
9409# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9410
9411# Character class describing NM global symbol codes.
9412symcode='[BCDEGRST]'
9413
9414# Regexp to match symbols that can be accessed directly from C.
9415sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9416
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417# Transform an extracted symbol line into a proper C declaration
9418lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9419
9420# Transform an extracted symbol line into symbol name and symbol address
9421lt_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'"
9422
9423# Define system-specific variables.
9424case $host_os in
9425aix*)
9426 symcode='[BCDT]'
9427 ;;
9428cygwin* | mingw* | pw32*)
9429 symcode='[ABCDGISTW]'
9430 ;;
9431hpux*) # Its linker distinguishes data from code symbols
9432 if test "$host_cpu" = ia64; then
9433 symcode='[ABCDEGRST]'
9434 fi
9435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9436 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'"
9437 ;;
9438linux*)
9439 if test "$host_cpu" = ia64; then
9440 symcode='[ABCDGIRSTW]'
9441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9442 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'"
9443 fi
9444 ;;
9445irix* | nonstopux*)
9446 symcode='[BCDEGRST]'
9447 ;;
9448osf*)
9449 symcode='[BCDEGQRST]'
9450 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009451solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452 symcode='[BDRT]'
9453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009454sco3.2v5*)
9455 symcode='[DT]'
9456 ;;
9457sysv4.2uw2*)
9458 symcode='[DT]'
9459 ;;
9460sysv5* | sco5v6* | unixware* | OpenUNIX*)
9461 symcode='[ABDT]'
9462 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463sysv4)
9464 symcode='[DFNSTU]'
9465 ;;
9466esac
9467
9468# Handle CRLF in mingw tool chain
9469opt_cr=
9470case $build_os in
9471mingw*)
9472 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9473 ;;
9474esac
9475
9476# If we're using GNU nm, then use its standard symbol codes.
9477case `$NM -V 2>&1` in
9478*GNU* | *'with BFD'*)
9479 symcode='[ABCDGIRSTW]' ;;
9480esac
9481
9482# Try without a prefix undercore, then with it.
9483for ac_symprfx in "" "_"; do
9484
Reid Spencera773bd52006-08-04 18:18:08 +00009485 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9486 symxfrm="\\1 $ac_symprfx\\2 \\2"
9487
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009489 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 +00009490
9491 # Check to see that the pipe works correctly.
9492 pipe_works=no
9493
9494 rm -f conftest*
9495 cat > conftest.$ac_ext <<EOF
9496#ifdef __cplusplus
9497extern "C" {
9498#endif
9499char nm_test_var;
9500void nm_test_func(){}
9501#ifdef __cplusplus
9502}
9503#endif
9504int main(){nm_test_var='a';nm_test_func();return(0);}
9505EOF
9506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009508 (eval $ac_compile) 2>&5
9509 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 # Now try to grab the symbols.
9513 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514 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 +00009515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9516 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519 # Try sorting and uniquifying the output.
9520 if sort "$nlist" | uniq > "$nlist"T; then
9521 mv -f "$nlist"T "$nlist"
9522 else
9523 rm -f "$nlist"T
9524 fi
9525
9526 # Make sure that we snagged all the symbols we need.
9527 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9528 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9529 cat <<EOF > conftest.$ac_ext
9530#ifdef __cplusplus
9531extern "C" {
9532#endif
9533
9534EOF
9535 # Now generate the symbol file.
9536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9537
9538 cat <<EOF >> conftest.$ac_ext
9539#if defined (__STDC__) && __STDC__
9540# define lt_ptr_t void *
9541#else
9542# define lt_ptr_t char *
9543# define const
9544#endif
9545
9546/* The mapping between symbol names and symbols. */
9547const struct {
9548 const char *name;
9549 lt_ptr_t address;
9550}
9551lt_preloaded_symbols[] =
9552{
9553EOF
9554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9555 cat <<\EOF >> conftest.$ac_ext
9556 {0, (lt_ptr_t) 0}
9557};
9558
9559#ifdef __cplusplus
9560}
9561#endif
9562EOF
9563 # Now try linking the two files.
9564 mv conftest.$ac_objext conftstm.$ac_objext
9565 lt_save_LIBS="$LIBS"
9566 lt_save_CFLAGS="$CFLAGS"
9567 LIBS="conftstm.$ac_objext"
9568 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570 (eval $ac_link) 2>&5
9571 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009574 pipe_works=yes
9575 fi
9576 LIBS="$lt_save_LIBS"
9577 CFLAGS="$lt_save_CFLAGS"
9578 else
9579 echo "cannot find nm_test_func in $nlist" >&5
9580 fi
9581 else
9582 echo "cannot find nm_test_var in $nlist" >&5
9583 fi
9584 else
9585 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9586 fi
9587 else
9588 echo "$progname: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9590 fi
9591 rm -f conftest* conftst*
9592
9593 # Do not use the global_symbol_pipe unless it works.
9594 if test "$pipe_works" = yes; then
9595 break
9596 else
9597 lt_cv_sys_global_symbol_pipe=
9598 fi
9599done
9600
9601fi
9602
9603if test -z "$lt_cv_sys_global_symbol_pipe"; then
9604 lt_cv_sys_global_symbol_to_cdecl=
9605fi
9606if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009607 { echo "$as_me:$LINENO: result: failed" >&5
9608echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610 { echo "$as_me:$LINENO: result: ok" >&5
9611echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612fi
9613
9614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009615{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9616echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9617if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619else
9620 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9621 libltdl_cv_preloaded_symbols=yes
9622 else
9623 libltdl_cv_preloaded_symbols=no
9624 fi
9625
9626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009627{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9628echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009631cat >>confdefs.h <<\_ACEOF
9632#define HAVE_PRELOADED_SYMBOLS 1
9633_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634
9635fi
9636
9637LIBADD_DL=
9638
9639ac_ext=c
9640ac_cpp='$CPP $CPPFLAGS'
9641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644
9645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646{ echo "$as_me:$LINENO: checking for shl_load" >&5
9647echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9648if test "${ac_cv_func_shl_load+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661/* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char shl_load (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9665
9666#ifdef __STDC__
9667# include <limits.h>
9668#else
9669# include <assert.h>
9670#endif
9671
9672#undef shl_load
9673
9674/* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9677#ifdef __cplusplus
9678extern "C"
9679#endif
9680char shl_load ();
9681/* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684#if defined __stub_shl_load || defined __stub___shl_load
9685choke me
9686#endif
9687
9688int
9689main ()
9690{
9691return shl_load ();
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (ac_try="$ac_link"
9698case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714esac
9715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_try") 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_func_shl_load=yes
9731else
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 ac_cv_func_shl_load=no
9736fi
9737
9738rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
9740fi
9741{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9743if test $ac_cv_func_shl_load = yes; then
9744
9745cat >>confdefs.h <<\_ACEOF
9746#define HAVE_SHL_LOAD 1
9747_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748
9749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009750 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9751echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9752if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754else
9755 ac_check_lib_save_LIBS=$LIBS
9756LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009757cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762/* end confdefs.h. */
9763
Reid Spencera773bd52006-08-04 18:18:08 +00009764/* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767#ifdef __cplusplus
9768extern "C"
9769#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770char shl_load ();
9771int
9772main ()
9773{
Reid Spencera773bd52006-08-04 18:18:08 +00009774return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775 ;
9776 return 0;
9777}
9778_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (ac_try="$ac_link"
9781case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813 ac_cv_lib_dld_shl_load=yes
9814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820
Bill Wendlingebcceee2009-04-18 11:20:33 +00009821rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009822 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823LIBS=$ac_check_lib_save_LIBS
9824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9826echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9827if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829cat >>confdefs.h <<\_ACEOF
9830#define HAVE_SHL_LOAD 1
9831_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832
9833 LIBADD_DL="$LIBADD_DL -ldld"
9834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009835 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9836echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9837if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839else
9840 ac_check_lib_save_LIBS=$LIBS
9841LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847/* end confdefs.h. */
9848
Reid Spencera773bd52006-08-04 18:18:08 +00009849/* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852#ifdef __cplusplus
9853extern "C"
9854#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855char dlopen ();
9856int
9857main ()
9858{
Reid Spencera773bd52006-08-04 18:18:08 +00009859return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860 ;
9861 return 0;
9862}
9863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009864rm -f conftest.$ac_objext conftest$ac_exeext
9865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 ac_cv_lib_dl_dlopen=yes
9899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009905
Bill Wendlingebcceee2009-04-18 11:20:33 +00009906rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908LIBS=$ac_check_lib_save_LIBS
9909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9911echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9912if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914cat >>confdefs.h <<\_ACEOF
9915#define HAVE_LIBDL 1
9916_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917
9918 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920 cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925/* end confdefs.h. */
9926#if HAVE_DLFCN_H
9927# include <dlfcn.h>
9928#endif
9929
9930int
9931main ()
9932{
9933dlopen(0, 0);
9934 ;
9935 return 0;
9936}
9937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (ac_try="$ac_link"
9940case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009973cat >>confdefs.h <<\_ACEOF
9974#define HAVE_LIBDL 1
9975_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 libltdl_cv_func_dlopen="yes"
9977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9982echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9983if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985else
9986 ac_check_lib_save_LIBS=$LIBS
9987LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009988cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993/* end confdefs.h. */
9994
Reid Spencera773bd52006-08-04 18:18:08 +00009995/* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998#ifdef __cplusplus
9999extern "C"
10000#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001char dlopen ();
10002int
10003main ()
10004{
Reid Spencera773bd52006-08-04 18:18:08 +000010005return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006 ;
10007 return 0;
10008}
10009_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (ac_try="$ac_link"
10012case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_link") 2>conftest.er1
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044 ac_cv_lib_svld_dlopen=yes
10045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010046 echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051
Bill Wendlingebcceee2009-04-18 11:20:33 +000010052rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010053 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054LIBS=$ac_check_lib_save_LIBS
10055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10057echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10058if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010060cat >>confdefs.h <<\_ACEOF
10061#define HAVE_LIBDL 1
10062_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063
10064 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010066 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10067echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10068if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070else
10071 ac_check_lib_save_LIBS=$LIBS
10072LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010073cat >conftest.$ac_ext <<_ACEOF
10074/* confdefs.h. */
10075_ACEOF
10076cat confdefs.h >>conftest.$ac_ext
10077cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078/* end confdefs.h. */
10079
Reid Spencera773bd52006-08-04 18:18:08 +000010080/* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083#ifdef __cplusplus
10084extern "C"
10085#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086char dld_link ();
10087int
10088main ()
10089{
Reid Spencera773bd52006-08-04 18:18:08 +000010090return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091 ;
10092 return 0;
10093}
10094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010095rm -f conftest.$ac_objext conftest$ac_exeext
10096if { (ac_try="$ac_link"
10097case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100esac
10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129 ac_cv_lib_dld_dld_link=yes
10130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010136
Bill Wendlingebcceee2009-04-18 11:20:33 +000010137rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010138 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139LIBS=$ac_check_lib_save_LIBS
10140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010141{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10142echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10143if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_DLD 1
10147_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148
10149 LIBADD_DL="$LIBADD_DL -ldld"
10150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010151 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10152echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10153if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156 cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h. */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h. */
10162/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10164#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010166/* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char _dyld_func_lookup (); below.
10168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171#ifdef __STDC__
10172# include <limits.h>
10173#else
10174# include <assert.h>
10175#endif
10176
10177#undef _dyld_func_lookup
10178
10179/* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182#ifdef __cplusplus
10183extern "C"
10184#endif
10185char _dyld_func_lookup ();
10186/* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10190choke me
10191#endif
10192
10193int
10194main ()
10195{
10196return _dyld_func_lookup ();
10197 ;
10198 return 0;
10199}
10200_ACEOF
10201rm -f conftest.$ac_objext conftest$ac_exeext
10202if { (ac_try="$ac_link"
10203case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_func__dyld_func_lookup=yes
10236else
10237 echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241fi
Reid Spencera773bd52006-08-04 18:18:08 +000010242
Bill Wendlingebcceee2009-04-18 11:20:33 +000010243rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010244 conftest$ac_exeext conftest.$ac_ext
10245fi
10246{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10247echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10248if test $ac_cv_func__dyld_func_lookup = yes; then
10249
10250cat >>confdefs.h <<\_ACEOF
10251#define HAVE_DYLD 1
10252_ACEOF
10253
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267
10268fi
10269
10270
10271fi
10272
10273
10274fi
10275
10276
10277if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10278then
10279 lt_save_LIBS="$LIBS"
10280 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010281
10282for ac_func in dlerror
10283do
10284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10285{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10287if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290 cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10298#define $ac_func innocuous_$ac_func
10299
10300/* System header to define __stub macros and hopefully few prototypes,
10301 which can conflict with char $ac_func (); below.
10302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303 <limits.h> exists even on freestanding compilers. */
10304
10305#ifdef __STDC__
10306# include <limits.h>
10307#else
10308# include <assert.h>
10309#endif
10310
10311#undef $ac_func
10312
10313/* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316#ifdef __cplusplus
10317extern "C"
10318#endif
10319char $ac_func ();
10320/* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323#if defined __stub_$ac_func || defined __stub___$ac_func
10324choke me
10325#endif
10326
10327int
10328main ()
10329{
10330return $ac_func ();
10331 ;
10332 return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (ac_try="$ac_link"
10337case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 eval "$as_ac_var=yes"
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 eval "$as_ac_var=no"
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379fi
10380ac_res=`eval echo '${'$as_ac_var'}'`
10381 { echo "$as_me:$LINENO: result: $ac_res" >&5
10382echo "${ECHO_T}$ac_res" >&6; }
10383if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386_ACEOF
10387
10388fi
10389done
10390
10391 LIBS="$lt_save_LIBS"
10392fi
10393ac_ext=c
10394ac_cpp='$CPP $CPPFLAGS'
10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398
10399
10400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010401{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10402echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10403if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405else
10406 ac_cv_sys_symbol_underscore=no
10407 cat > conftest.$ac_ext <<EOF
10408void nm_test_func(){}
10409int main(){nm_test_func;return 0;}
10410EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412 (eval $ac_compile) 2>&5
10413 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 # Now try to grab the symbols.
10417 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418 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 +000010419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10420 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423 # See whether the symbols have a leading underscore.
10424 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10425 ac_cv_sys_symbol_underscore=yes
10426 else
10427 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10428 :
10429 else
10430 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10431 fi
10432 fi
10433 else
10434 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10435 fi
10436 else
10437 echo "configure: failed program was:" >&5
10438 cat conftest.c >&5
10439 fi
10440 rm -rf conftest*
10441
10442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10444echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445
10446
10447if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10448 if test x"$libltdl_cv_func_dlopen" = xyes ||
10449 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10451echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10452if test "${libltdl_cv_need_uscore+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454else
10455 libltdl_cv_need_uscore=unknown
10456 save_LIBS="$LIBS"
10457 LIBS="$LIBS $LIBADD_DL"
10458 if test "$cross_compiling" = yes; then :
10459 libltdl_cv_need_uscore=cross
10460else
10461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462 lt_status=$lt_dlunknown
10463 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000010464#line 10474 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465#include "confdefs.h"
10466
10467#if HAVE_DLFCN_H
10468#include <dlfcn.h>
10469#endif
10470
10471#include <stdio.h>
10472
10473#ifdef RTLD_GLOBAL
10474# define LT_DLGLOBAL RTLD_GLOBAL
10475#else
10476# ifdef DL_GLOBAL
10477# define LT_DLGLOBAL DL_GLOBAL
10478# else
10479# define LT_DLGLOBAL 0
10480# endif
10481#endif
10482
10483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484 find out it does not work in some platform. */
10485#ifndef LT_DLLAZY_OR_NOW
10486# ifdef RTLD_LAZY
10487# define LT_DLLAZY_OR_NOW RTLD_LAZY
10488# else
10489# ifdef DL_LAZY
10490# define LT_DLLAZY_OR_NOW DL_LAZY
10491# else
10492# ifdef RTLD_NOW
10493# define LT_DLLAZY_OR_NOW RTLD_NOW
10494# else
10495# ifdef DL_NOW
10496# define LT_DLLAZY_OR_NOW DL_NOW
10497# else
10498# define LT_DLLAZY_OR_NOW 0
10499# endif
10500# endif
10501# endif
10502# endif
10503#endif
10504
10505#ifdef __cplusplus
10506extern "C" void exit (int);
10507#endif
10508
10509void fnord() { int i=42;}
10510int main ()
10511{
10512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10513 int status = $lt_dlunknown;
10514
10515 if (self)
10516 {
10517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519 /* dlclose (self); */
10520 }
Reid Spencera773bd52006-08-04 18:18:08 +000010521 else
10522 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523
10524 exit (status);
10525}
10526EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528 (eval $ac_link) 2>&5
10529 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010532 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533 lt_status=$?
10534 case x$lt_status in
10535 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10536 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010537 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 esac
10539 else :
10540 # compilation failed
10541
10542 fi
10543fi
10544rm -fr conftest*
10545
10546 LIBS="$save_LIBS"
10547
10548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010549{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10550echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 fi
10552fi
10553
10554if test x"$libltdl_cv_need_uscore" = xyes; then
10555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010556cat >>confdefs.h <<\_ACEOF
10557#define NEED_USCORE 1
10558_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559
10560fi
10561
10562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10564echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10565if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567else
10568 # PORTME does your system automatically load deplibs for dlopen?
10569 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10570 # For now, we just catch OSes we know something about -- in the
10571 # future, we'll try test this programmatically.
10572 libltdl_cv_sys_dlopen_deplibs=unknown
10573 case "$host_os" in
10574 aix3*|aix4.1.*|aix4.2.*)
10575 # Unknown whether this is true for these versions of AIX, but
10576 # we want this `case' here to explicitly catch those versions.
10577 libltdl_cv_sys_dlopen_deplibs=unknown
10578 ;;
10579 aix[45]*)
10580 libltdl_cv_sys_dlopen_deplibs=yes
10581 ;;
10582 darwin*)
10583 # Assuming the user has installed a libdl from somewhere, this is true
10584 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10585 libltdl_cv_sys_dlopen_deplibs=yes
10586 ;;
10587 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10588 # GNU and its variants, using gnu ld.so (Glibc)
10589 libltdl_cv_sys_dlopen_deplibs=yes
10590 ;;
10591 hpux10*|hpux11*)
10592 libltdl_cv_sys_dlopen_deplibs=yes
10593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010594 interix*)
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597 irix[12345]*|irix6.[01]*)
10598 # Catch all versions of IRIX before 6.2, and indicate that we don't
10599 # know how it worked for any of those versions.
10600 libltdl_cv_sys_dlopen_deplibs=unknown
10601 ;;
10602 irix*)
10603 # The case above catches anything before 6.2, and it's known that
10604 # at 6.2 and later dlopen does load deplibs.
10605 libltdl_cv_sys_dlopen_deplibs=yes
10606 ;;
10607 netbsd*)
10608 libltdl_cv_sys_dlopen_deplibs=yes
10609 ;;
10610 openbsd*)
10611 libltdl_cv_sys_dlopen_deplibs=yes
10612 ;;
10613 osf[1234]*)
10614 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10615 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010616 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617 libltdl_cv_sys_dlopen_deplibs=no
10618 ;;
10619 osf5.0|osf5.0a|osf5.1)
10620 # dlopen *does* load deplibs and with the right loader patch applied
10621 # it even uses RPATH in a shared library to search for shared objects
10622 # that the library depends on, but there's no easy way to know if that
10623 # patch is installed. Since this is the case, all we can really
10624 # say is unknown -- it depends on the patch being installed. If
10625 # it is, this changes to `yes'. Without it, it would be `no'.
10626 libltdl_cv_sys_dlopen_deplibs=unknown
10627 ;;
10628 osf*)
10629 # the two cases above should catch all versions of osf <= 5.1. Read
10630 # the comments above for what we know about them.
10631 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10632 # is used to find them so we can finally say `yes'.
10633 libltdl_cv_sys_dlopen_deplibs=yes
10634 ;;
10635 solaris*)
10636 libltdl_cv_sys_dlopen_deplibs=yes
10637 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639 libltdl_cv_sys_dlopen_deplibs=yes
10640 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641 esac
10642
10643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10645echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648cat >>confdefs.h <<\_ACEOF
10649#define LTDL_DLOPEN_DEPLIBS 1
10650_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651
10652fi
10653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010654
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656do
10657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663fi
10664ac_res=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666echo "${ECHO_T}$ac_res" >&6; }
10667else
10668 # Is the header compilable?
10669{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10671cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
10677$ac_includes_default
10678#include <$ac_header>
10679_ACEOF
10680rm -f conftest.$ac_objext
10681if { (ac_try="$ac_compile"
10682case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685esac
10686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698esac
10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_header_compiler=yes
10715else
10716 echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ac_header_compiler=no
10720fi
10721
10722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724echo "${ECHO_T}$ac_header_compiler" >&6; }
10725
10726# Is the header present?
10727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10729cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
10735#include <$ac_header>
10736_ACEOF
10737if { (ac_try="$ac_cpp conftest.$ac_ext"
10738case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null; then
10750 if test -s conftest.err; then
10751 ac_cpp_err=$ac_c_preproc_warn_flag
10752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753 else
10754 ac_cpp_err=
10755 fi
10756else
10757 ac_cpp_err=yes
10758fi
10759if test -z "$ac_cpp_err"; then
10760 ac_header_preproc=yes
10761else
10762 echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ac_header_preproc=no
10766fi
10767
10768rm -f conftest.err conftest.$ac_ext
10769{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770echo "${ECHO_T}$ac_header_preproc" >&6; }
10771
10772# So? What about this header?
10773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 yes:no: )
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779 ac_header_preproc=yes
10780 ;;
10781 no:yes:* )
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10789echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794 ( cat <<\_ASBOX
10795## ----------------------------------- ##
10796## Report this to llvmbugs@cs.uiuc.edu ##
10797## ----------------------------------- ##
10798_ASBOX
10799 ) | sed "s/^/$as_me: WARNING: /" >&2
10800 ;;
10801esac
10802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 eval "$as_ac_Header=\$ac_header_preproc"
10808fi
10809ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811echo "${ECHO_T}$ac_res" >&6; }
10812
10813fi
10814if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817_ACEOF
10818
10819fi
10820
10821done
10822
10823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824{ echo "$as_me:$LINENO: checking for error_t" >&5
10825echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10826if test "${ac_cv_type_error_t+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 cat >conftest.$ac_ext <<_ACEOF
10830/* confdefs.h. */
10831_ACEOF
10832cat confdefs.h >>conftest.$ac_ext
10833cat >>conftest.$ac_ext <<_ACEOF
10834/* end confdefs.h. */
10835#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836# include <argz.h>
10837#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838
10839typedef error_t ac__type_new_;
10840int
10841main ()
10842{
10843if ((ac__type_new_ *) 0)
10844 return 0;
10845if (sizeof (ac__type_new_))
10846 return 0;
10847 ;
10848 return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext
10852if { (ac_try="$ac_compile"
10853case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856esac
10857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_try") 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_cv_type_error_t=yes
10886else
10887 echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_cv_type_error_t=no
10891fi
10892
10893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894fi
10895{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10896echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10897if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898
10899cat >>confdefs.h <<_ACEOF
10900#define HAVE_ERROR_T 1
10901_ACEOF
10902
10903
10904else
10905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906cat >>confdefs.h <<\_ACEOF
10907#define error_t int
10908_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909
10910fi
10911
10912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010913
10914
10915
10916
10917
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010919do
10920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10934#define $ac_func innocuous_$ac_func
10935
10936/* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char $ac_func (); below.
10938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939 <limits.h> exists even on freestanding compilers. */
10940
10941#ifdef __STDC__
10942# include <limits.h>
10943#else
10944# include <assert.h>
10945#endif
10946
10947#undef $ac_func
10948
10949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952#ifdef __cplusplus
10953extern "C"
10954#endif
10955char $ac_func ();
10956/* The GNU C library defines this for functions which it implements
10957 to always fail with ENOSYS. Some functions are actually named
10958 something starting with __ and the normal name is an alias. */
10959#if defined __stub_$ac_func || defined __stub___$ac_func
10960choke me
10961#endif
10962
10963int
10964main ()
10965{
10966return $ac_func ();
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971rm -f conftest.$ac_objext conftest$ac_exeext
10972if { (ac_try="$ac_link"
10973case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_link") 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10986 { (case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989esac
10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_try") 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999esac
11000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 eval "$as_ac_var=yes"
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 eval "$as_ac_var=no"
11011fi
11012
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015fi
11016ac_res=`eval echo '${'$as_ac_var'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018echo "${ECHO_T}$ac_res" >&6; }
11019if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022_ACEOF
11023
11024fi
11025done
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011046
11047
11048
11049
11050
11051
11052
11053
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11055 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056do
11057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063fi
11064ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066echo "${ECHO_T}$ac_res" >&6; }
11067else
11068 # Is the header compilable?
11069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077$ac_includes_default
11078#include <$ac_header>
11079_ACEOF
11080rm -f conftest.$ac_objext
11081if { (ac_try="$ac_compile"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_header_compiler=yes
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 ac_header_compiler=no
11120fi
11121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124echo "${ECHO_T}$ac_header_compiler" >&6; }
11125
11126# Is the header present?
11127{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */
11135#include <$ac_header>
11136_ACEOF
11137if { (ac_try="$ac_cpp conftest.$ac_ext"
11138case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141esac
11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153 else
11154 ac_cpp_err=
11155 fi
11156else
11157 ac_cpp_err=yes
11158fi
11159if test -z "$ac_cpp_err"; then
11160 ac_header_preproc=yes
11161else
11162 echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_header_preproc=no
11166fi
11167
11168rm -f conftest.err conftest.$ac_ext
11169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170echo "${ECHO_T}$ac_header_preproc" >&6; }
11171
11172# So? What about this header?
11173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174 yes:no: )
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11180 ;;
11181 no:yes:* )
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194 ( cat <<\_ASBOX
11195## ----------------------------------- ##
11196## Report this to llvmbugs@cs.uiuc.edu ##
11197## ----------------------------------- ##
11198_ASBOX
11199 ) | sed "s/^/$as_me: WARNING: /" >&2
11200 ;;
11201esac
11202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 eval "$as_ac_Header=\$ac_header_preproc"
11208fi
11209ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211echo "${ECHO_T}$ac_res" >&6; }
11212
11213fi
11214if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217_ACEOF
11218
11219fi
11220
11221done
11222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223
11224
11225
11226
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228do
11229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
11235fi
11236ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238echo "${ECHO_T}$ac_res" >&6; }
11239else
11240 # Is the header compilable?
11241{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249$ac_includes_default
11250#include <$ac_header>
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_header_compiler=no
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298# Is the header present?
11299{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307#include <$ac_header>
11308_ACEOF
11309if { (ac_try="$ac_cpp conftest.$ac_ext"
11310case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 else
11326 ac_cpp_err=
11327 fi
11328else
11329 ac_cpp_err=yes
11330fi
11331if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_preproc=no
11338fi
11339
11340rm -f conftest.err conftest.$ac_ext
11341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344# So? What about this header?
11345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 yes:no: )
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11352 ;;
11353 no:yes:* )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 ( cat <<\_ASBOX
11367## ----------------------------------- ##
11368## Report this to llvmbugs@cs.uiuc.edu ##
11369## ----------------------------------- ##
11370_ASBOX
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11372 ;;
11373esac
11374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379 eval "$as_ac_Header=\$ac_header_preproc"
11380fi
11381ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383echo "${ECHO_T}$ac_res" >&6; }
11384
11385fi
11386if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389_ACEOF
11390
11391fi
11392
11393done
11394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011395
11396
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011397for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011398do
11399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405fi
11406ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408echo "${ECHO_T}$ac_res" >&6; }
11409else
11410 # Is the header compilable?
11411{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419$ac_includes_default
11420#include <$ac_header>
11421_ACEOF
11422rm -f conftest.$ac_objext
11423if { (ac_try="$ac_compile"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_header_compiler=yes
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 ac_header_compiler=no
11462fi
11463
11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466echo "${ECHO_T}$ac_header_compiler" >&6; }
11467
11468# Is the header present?
11469{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477#include <$ac_header>
11478_ACEOF
11479if { (ac_try="$ac_cpp conftest.$ac_ext"
11480case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483esac
11484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_c_preproc_warn_flag
11494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495 else
11496 ac_cpp_err=
11497 fi
11498else
11499 ac_cpp_err=yes
11500fi
11501if test -z "$ac_cpp_err"; then
11502 ac_header_preproc=yes
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 ac_header_preproc=no
11508fi
11509
11510rm -f conftest.err conftest.$ac_ext
11511{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512echo "${ECHO_T}$ac_header_preproc" >&6; }
11513
11514# So? What about this header?
11515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516 yes:no: )
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521 ac_header_preproc=yes
11522 ;;
11523 no:yes:* )
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536 ( cat <<\_ASBOX
11537## ----------------------------------- ##
11538## Report this to llvmbugs@cs.uiuc.edu ##
11539## ----------------------------------- ##
11540_ASBOX
11541 ) | sed "s/^/$as_me: WARNING: /" >&2
11542 ;;
11543esac
11544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 eval "$as_ac_Header=\$ac_header_preproc"
11550fi
11551ac_res=`eval echo '${'$as_ac_Header'}'`
11552 { echo "$as_me:$LINENO: result: $ac_res" >&5
11553echo "${ECHO_T}$ac_res" >&6; }
11554
11555fi
11556if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559_ACEOF
11560 break
11561fi
11562
11563done
11564
11565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011566
11567
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011569do
11570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11584#define $ac_func innocuous_$ac_func
11585
11586/* System header to define __stub macros and hopefully few prototypes,
11587 which can conflict with char $ac_func (); below.
11588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589 <limits.h> exists even on freestanding compilers. */
11590
11591#ifdef __STDC__
11592# include <limits.h>
11593#else
11594# include <assert.h>
11595#endif
11596
11597#undef $ac_func
11598
11599/* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char $ac_func ();
11606/* The GNU C library defines this for functions which it implements
11607 to always fail with ENOSYS. Some functions are actually named
11608 something starting with __ and the normal name is an alias. */
11609#if defined __stub_$ac_func || defined __stub___$ac_func
11610choke me
11611#endif
11612
11613int
11614main ()
11615{
11616return $ac_func ();
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (ac_try="$ac_link"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_link") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649esac
11650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 eval "$as_ac_var=yes"
11656else
11657 echo "$as_me: failed program was:" >&5
11658sed 's/^/| /' conftest.$ac_ext >&5
11659
11660 eval "$as_ac_var=no"
11661fi
11662
11663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665fi
11666ac_res=`eval echo '${'$as_ac_var'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668echo "${ECHO_T}$ac_res" >&6; }
11669if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672_ACEOF
11673 break
11674fi
11675done
11676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011677
11678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011680do
11681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695#define $ac_func innocuous_$ac_func
11696
11697/* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below.
11699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 <limits.h> exists even on freestanding compilers. */
11701
11702#ifdef __STDC__
11703# include <limits.h>
11704#else
11705# include <assert.h>
11706#endif
11707
11708#undef $ac_func
11709
11710/* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713#ifdef __cplusplus
11714extern "C"
11715#endif
11716char $ac_func ();
11717/* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720#if defined __stub_$ac_func || defined __stub___$ac_func
11721choke me
11722#endif
11723
11724int
11725main ()
11726{
11727return $ac_func ();
11728 ;
11729 return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext conftest$ac_exeext
11733if { (ac_try="$ac_link"
11734case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 eval "$as_ac_var=yes"
11767else
11768 echo "$as_me: failed program was:" >&5
11769sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 eval "$as_ac_var=no"
11772fi
11773
11774rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776fi
11777ac_res=`eval echo '${'$as_ac_var'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779echo "${ECHO_T}$ac_res" >&6; }
11780if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783_ACEOF
11784 break
11785fi
11786done
11787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011788
11789
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011791do
11792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11795if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806#define $ac_func innocuous_$ac_func
11807
11808/* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11812
11813#ifdef __STDC__
11814# include <limits.h>
11815#else
11816# include <assert.h>
11817#endif
11818
11819#undef $ac_func
11820
11821/* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824#ifdef __cplusplus
11825extern "C"
11826#endif
11827char $ac_func ();
11828/* The GNU C library defines this for functions which it implements
11829 to always fail with ENOSYS. Some functions are actually named
11830 something starting with __ and the normal name is an alias. */
11831#if defined __stub_$ac_func || defined __stub___$ac_func
11832choke me
11833#endif
11834
11835int
11836main ()
11837{
11838return $ac_func ();
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext conftest$ac_exeext
11844if { (ac_try="$ac_link"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_link") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 eval "$as_ac_var=yes"
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 eval "$as_ac_var=no"
11883fi
11884
11885rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887fi
11888ac_res=`eval echo '${'$as_ac_var'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890echo "${ECHO_T}$ac_res" >&6; }
11891if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894_ACEOF
11895 break
11896fi
11897done
11898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011899
11900
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011901for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902do
11903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
11915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11917#define $ac_func innocuous_$ac_func
11918
11919/* System header to define __stub macros and hopefully few prototypes,
11920 which can conflict with char $ac_func (); below.
11921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922 <limits.h> exists even on freestanding compilers. */
11923
11924#ifdef __STDC__
11925# include <limits.h>
11926#else
11927# include <assert.h>
11928#endif
11929
11930#undef $ac_func
11931
11932/* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char $ac_func ();
11939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined __stub_$ac_func || defined __stub___$ac_func
11943choke me
11944#endif
11945
11946int
11947main ()
11948{
11949return $ac_func ();
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext conftest$ac_exeext
11955if { (ac_try="$ac_link"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_var=yes"
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 eval "$as_ac_var=no"
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998fi
11999ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001echo "${ECHO_T}$ac_res" >&6; }
12002if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005_ACEOF
12006
12007fi
12008done
12009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012010
12011
12012
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012014do
12015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12029#define $ac_func innocuous_$ac_func
12030
12031/* System header to define __stub macros and hopefully few prototypes,
12032 which can conflict with char $ac_func (); below.
12033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 <limits.h> exists even on freestanding compilers. */
12035
12036#ifdef __STDC__
12037# include <limits.h>
12038#else
12039# include <assert.h>
12040#endif
12041
12042#undef $ac_func
12043
12044/* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char $ac_func ();
12051/* The GNU C library defines this for functions which it implements
12052 to always fail with ENOSYS. Some functions are actually named
12053 something starting with __ and the normal name is an alias. */
12054#if defined __stub_$ac_func || defined __stub___$ac_func
12055choke me
12056#endif
12057
12058int
12059main ()
12060{
12061return $ac_func ();
12062 ;
12063 return 0;
12064}
12065_ACEOF
12066rm -f conftest.$ac_objext conftest$ac_exeext
12067if { (ac_try="$ac_link"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_link") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 eval "$as_ac_var=yes"
12101else
12102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 eval "$as_ac_var=no"
12106fi
12107
12108rm -f core conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110fi
12111ac_res=`eval echo '${'$as_ac_var'}'`
12112 { echo "$as_me:$LINENO: result: $ac_res" >&5
12113echo "${ECHO_T}$ac_res" >&6; }
12114if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117_ACEOF
12118
12119fi
12120done
12121
12122
Douglas Gregor01746742009-05-11 18:05:52 +000012123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012124{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12125echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012126
Reid Spencer86901802004-12-08 23:07:27 +000012127ICC=no
12128IXX=no
12129case $CC in
12130 icc*|icpc*)
12131 ICC=yes
12132 IXX=yes
12133 ;;
12134 *)
12135 ;;
12136esac
12137
Duraid Madina937c60a2006-02-15 07:57:42 +000012138if test "$GCC" != "yes" && test "$ICC" != "yes"
12139then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12141echo "$as_me: error: gcc|icc required but not found" >&2;}
12142 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012143fi
12144
12145if test "$GXX" != "yes" && test "$IXX" != "yes"
12146then
Eric Christopher73e36da2010-12-08 02:02:14 +000012147 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12148echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012150fi
12151
Reid Spencer86901802004-12-08 23:07:27 +000012152if test "$GCC" = "yes"
12153then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012155#if !defined(__GNUC__) || __GNUC__ < 3
12156#error Unsupported GCC version
12157#endif
12158
12159_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012160rm -f conftest.$ac_objext
12161if { (ac_try="$ac_compile"
12162case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165esac
12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_compile") 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188esac
12189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12200echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12201 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012203
Chris Lattner399c7c72008-02-05 19:43:53 +000012204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012205fi
12206
12207if test -z "$llvm_cv_gnu_make_command"
12208then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012209 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12210echo "$as_me: error: GNU Make required but not found" >&2;}
12211 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012212fi
12213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012214{ echo "$as_me:$LINENO: result: ok" >&5
12215echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12218echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012219NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12220
12221NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012223{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12224echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012225
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227
12228{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12229echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12230if test "${ac_cv_lib_m_sin+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012232else
12233 ac_check_lib_save_LIBS=$LIBS
12234LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012240/* end confdefs.h. */
12241
Reid Spencera773bd52006-08-04 18:18:08 +000012242/* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012245#ifdef __cplusplus
12246extern "C"
12247#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012248char sin ();
12249int
12250main ()
12251{
Reid Spencera773bd52006-08-04 18:18:08 +000012252return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012253 ;
12254 return 0;
12255}
12256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012257rm -f conftest.$ac_objext conftest$ac_exeext
12258if { (ac_try="$ac_link"
12259case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_link") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest$ac_exeext'
12282 { (case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285esac
12286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_try") 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012291 ac_cv_lib_m_sin=yes
12292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012298
Bill Wendlingebcceee2009-04-18 11:20:33 +000012299rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012300 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012301LIBS=$ac_check_lib_save_LIBS
12302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12304echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12305if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012306 cat >>confdefs.h <<_ACEOF
12307#define HAVE_LIBM 1
12308_ACEOF
12309
12310 LIBS="-lm $LIBS"
12311
12312fi
12313
Jeff Cohen28783c32007-01-12 18:22:38 +000012314if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315
12316{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12317echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12318if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012320else
12321 ac_check_lib_save_LIBS=$LIBS
12322LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012328/* end confdefs.h. */
12329
Reid Spencer48fdf912006-06-01 19:03:21 +000012330
Reid Spencer484fc8e2006-06-01 16:55:59 +000012331int
12332main ()
12333{
Reid Spencera773bd52006-08-04 18:18:08 +000012334return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012335 ;
12336 return 0;
12337}
12338_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339rm -f conftest.$ac_objext conftest$ac_exeext
12340if { (ac_try="$ac_link"
12341case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_link") 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012373 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012380
Bill Wendlingebcceee2009-04-18 11:20:33 +000012381rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012382 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012383LIBS=$ac_check_lib_save_LIBS
12384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12386echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12387if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012388 cat >>confdefs.h <<_ACEOF
12389#define HAVE_LIBIMAGEHLP 1
12390_ACEOF
12391
12392 LIBS="-limagehlp $LIBS"
12393
12394fi
12395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012396
12397{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12398echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12399if test "${ac_cv_lib_psapi_main+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012401else
12402 ac_check_lib_save_LIBS=$LIBS
12403LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012409/* end confdefs.h. */
12410
Reid Spencer48fdf912006-06-01 19:03:21 +000012411
Reid Spencer484fc8e2006-06-01 16:55:59 +000012412int
12413main ()
12414{
Reid Spencera773bd52006-08-04 18:18:08 +000012415return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012416 ;
12417 return 0;
12418}
12419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012420rm -f conftest.$ac_objext conftest$ac_exeext
12421if { (ac_try="$ac_link"
12422case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425esac
12426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_link") 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438esac
12439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_try") 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012454 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012456 echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012461
Bill Wendlingebcceee2009-04-18 11:20:33 +000012462rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012463 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012464LIBS=$ac_check_lib_save_LIBS
12465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12467echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12468if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012469 cat >>confdefs.h <<_ACEOF
12470#define HAVE_LIBPSAPI 1
12471_ACEOF
12472
12473 LIBS="-lpsapi $LIBS"
12474
12475fi
12476
12477fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012479{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12480echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12481if test "${ac_cv_search_dlopen+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012483else
12484 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485cat >conftest.$ac_ext <<_ACEOF
12486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012490/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012491
Reid Spencera773bd52006-08-04 18:18:08 +000012492/* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012495#ifdef __cplusplus
12496extern "C"
12497#endif
John Criswell7a73b802003-06-30 21:59:07 +000012498char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012499int
12500main ()
12501{
Reid Spencera773bd52006-08-04 18:18:08 +000012502return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012503 ;
12504 return 0;
12505}
12506_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012507for ac_lib in '' dl; do
12508 if test -z "$ac_lib"; then
12509 ac_res="none required"
12510 else
12511 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012513 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514 rm -f conftest.$ac_objext conftest$ac_exeext
12515if { (ac_try="$ac_link"
12516case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012548 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553
John Criswell7a73b802003-06-30 21:59:07 +000012554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555
Bill Wendlingebcceee2009-04-18 11:20:33 +000012556rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012557 conftest$ac_exeext
12558 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012559 break
John Criswell7a73b802003-06-30 21:59:07 +000012560fi
Reid Spencera773bd52006-08-04 18:18:08 +000012561done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562if test "${ac_cv_search_dlopen+set}" = set; then
12563 :
Reid Spencera773bd52006-08-04 18:18:08 +000012564else
12565 ac_cv_search_dlopen=no
12566fi
12567rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012568LIBS=$ac_func_search_save_LIBS
12569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12571echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012572ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012576cat >>confdefs.h <<\_ACEOF
12577#define HAVE_DLOPEN 1
12578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012579
12580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12582echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012583fi
12584
12585
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012586if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012587 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12588echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12589if test "${ac_cv_search_ffi_call+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012591else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012592 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012593cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012598/* end confdefs.h. */
12599
12600/* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603#ifdef __cplusplus
12604extern "C"
12605#endif
12606char ffi_call ();
12607int
12608main ()
12609{
12610return ffi_call ();
12611 ;
12612 return 0;
12613}
12614_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012615for ac_lib in '' ffi; do
12616 if test -z "$ac_lib"; then
12617 ac_res="none required"
12618 else
12619 ac_res=-l$ac_lib
12620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012622 rm -f conftest.$ac_objext conftest$ac_exeext
12623if { (ac_try="$ac_link"
12624case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012656 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663
Bill Wendlingebcceee2009-04-18 11:20:33 +000012664rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012665 conftest$ac_exeext
12666 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012667 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012668fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670if test "${ac_cv_search_ffi_call+set}" = set; then
12671 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012672else
12673 ac_cv_search_ffi_call=no
12674fi
12675rm conftest.$ac_ext
12676LIBS=$ac_func_search_save_LIBS
12677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12679echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012680ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012681if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012684cat >>confdefs.h <<\_ACEOF
12685#define HAVE_FFI_CALL 1
12686_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012687
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012688else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012689 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12690echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12691 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012692fi
12693
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012694fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12697echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12698if test "${ac_cv_search_mallinfo+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012700else
12701 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012702cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012708
Reid Spencera773bd52006-08-04 18:18:08 +000012709/* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012712#ifdef __cplusplus
12713extern "C"
12714#endif
John Criswell7a73b802003-06-30 21:59:07 +000012715char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012716int
12717main ()
12718{
Reid Spencera773bd52006-08-04 18:18:08 +000012719return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012720 ;
12721 return 0;
12722}
12723_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012724for ac_lib in '' malloc; do
12725 if test -z "$ac_lib"; then
12726 ac_res="none required"
12727 else
12728 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012730 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731 rm -f conftest.$ac_objext conftest$ac_exeext
12732if { (ac_try="$ac_link"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012765 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770
John Criswell7a73b802003-06-30 21:59:07 +000012771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772
Bill Wendlingebcceee2009-04-18 11:20:33 +000012773rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012774 conftest$ac_exeext
12775 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012776 break
John Criswell7a73b802003-06-30 21:59:07 +000012777fi
Reid Spencera773bd52006-08-04 18:18:08 +000012778done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779if test "${ac_cv_search_mallinfo+set}" = set; then
12780 :
Reid Spencera773bd52006-08-04 18:18:08 +000012781else
12782 ac_cv_search_mallinfo=no
12783fi
12784rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012785LIBS=$ac_func_search_save_LIBS
12786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12788echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012789ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012790if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012793cat >>confdefs.h <<\_ACEOF
12794#define HAVE_MALLINFO 1
12795_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012796
12797fi
12798
12799
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012800if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801
12802{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12803echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12804if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012806else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012807 ac_check_lib_save_LIBS=$LIBS
12808LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012809cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012814/* end confdefs.h. */
12815
Reid Spencera773bd52006-08-04 18:18:08 +000012816/* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012819#ifdef __cplusplus
12820extern "C"
12821#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012822char pthread_mutex_init ();
12823int
12824main ()
12825{
Reid Spencera773bd52006-08-04 18:18:08 +000012826return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012827 ;
12828 return 0;
12829}
12830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831rm -f conftest.$ac_objext conftest$ac_exeext
12832if { (ac_try="$ac_link"
12833case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836esac
12837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846 { (case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849esac
12850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_try") 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012865 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872
Bill Wendlingebcceee2009-04-18 11:20:33 +000012873rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012874 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012875LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12878echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12879if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012880 cat >>confdefs.h <<_ACEOF
12881#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012882_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012883
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012884 LIBS="-lpthread $LIBS"
12885
Reid Spencer22177fe2005-07-12 15:24:20 +000012886fi
12887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12889echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12890if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012892else
12893 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012899/* end confdefs.h. */
12900
Reid Spencera773bd52006-08-04 18:18:08 +000012901/* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012904#ifdef __cplusplus
12905extern "C"
12906#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012907char pthread_mutex_lock ();
12908int
12909main ()
12910{
Reid Spencera773bd52006-08-04 18:18:08 +000012911return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012912 ;
12913 return 0;
12914}
12915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012916for ac_lib in '' pthread; do
12917 if test -z "$ac_lib"; then
12918 ac_res="none required"
12919 else
12920 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012922 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923 rm -f conftest.$ac_objext conftest$ac_exeext
12924if { (ac_try="$ac_link"
12925case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951esac
12952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012957 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962
Brian Gaeke5f268f72003-12-05 19:29:01 +000012963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012964
Bill Wendlingebcceee2009-04-18 11:20:33 +000012965rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966 conftest$ac_exeext
12967 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012968 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012969fi
Reid Spencera773bd52006-08-04 18:18:08 +000012970done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12972 :
Reid Spencera773bd52006-08-04 18:18:08 +000012973else
12974 ac_cv_search_pthread_mutex_lock=no
12975fi
12976rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012977LIBS=$ac_func_search_save_LIBS
12978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012979{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12980echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012981ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985cat >>confdefs.h <<\_ACEOF
12986#define HAVE_PTHREAD_MUTEX_LOCK 1
12987_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012988
12989fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012991 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12992echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12993if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012995else
12996 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997cat >conftest.$ac_ext <<_ACEOF
12998/* confdefs.h. */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013002/* end confdefs.h. */
13003
13004/* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007#ifdef __cplusplus
13008extern "C"
13009#endif
13010char pthread_rwlock_init ();
13011int
13012main ()
13013{
13014return pthread_rwlock_init ();
13015 ;
13016 return 0;
13017}
13018_ACEOF
13019for ac_lib in '' pthread; do
13020 if test -z "$ac_lib"; then
13021 ac_res="none required"
13022 else
13023 ac_res=-l$ac_lib
13024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13025 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026 rm -f conftest.$ac_objext conftest$ac_exeext
13027if { (ac_try="$ac_link"
13028case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031esac
13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_link") 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_try") 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest$ac_exeext'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013060 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061else
13062 echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
13064
13065
Owen Andersonde8aed22009-06-16 18:20:20 +000013066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067
Owen Andersonde8aed22009-06-16 18:20:20 +000013068rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069 conftest$ac_exeext
13070 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013071 break
13072fi
13073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13075 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013076else
13077 ac_cv_search_pthread_rwlock_init=no
13078fi
13079rm conftest.$ac_ext
13080LIBS=$ac_func_search_save_LIBS
13081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13083echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013084ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088cat >>confdefs.h <<\_ACEOF
13089#define HAVE_PTHREAD_RWLOCK_INIT 1
13090_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013091
13092fi
13093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13095echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13096if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013098else
13099 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013105/* end confdefs.h. */
13106
13107/* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13110#ifdef __cplusplus
13111extern "C"
13112#endif
13113char pthread_getspecific ();
13114int
13115main ()
13116{
13117return pthread_getspecific ();
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122for ac_lib in '' pthread; do
13123 if test -z "$ac_lib"; then
13124 ac_res="none required"
13125 else
13126 ac_res=-l$ac_lib
13127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13128 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013129 rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_link") 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013163 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164else
13165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168
Owen Anderson27fcfe12009-06-25 23:10:26 +000013169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170
Owen Anderson27fcfe12009-06-25 23:10:26 +000013171rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172 conftest$ac_exeext
13173 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013174 break
13175fi
13176done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13178 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013179else
13180 ac_cv_search_pthread_getspecific=no
13181fi
13182rm conftest.$ac_ext
13183LIBS=$ac_func_search_save_LIBS
13184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13186echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013187ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013191cat >>confdefs.h <<\_ACEOF
13192#define HAVE_PTHREAD_GETSPECIFIC 1
13193_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013194
13195fi
13196
Reid Spencer0a262ba2005-08-24 10:07:20 +000013197fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013198
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013199
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013200# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013201if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013202 withval=$with_udis86;
13203 USE_UDIS86=1
13204
13205 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013206 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013207 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13208 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013209
13210{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13211echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13212if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013214else
13215 ac_check_lib_save_LIBS=$LIBS
13216LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217cat >conftest.$ac_ext <<_ACEOF
13218/* confdefs.h. */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013222/* end confdefs.h. */
13223
13224/* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13227#ifdef __cplusplus
13228extern "C"
13229#endif
13230char ud_init ();
13231int
13232main ()
13233{
13234return ud_init ();
13235 ;
13236 return 0;
13237}
13238_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239rm -f conftest.$ac_objext conftest$ac_exeext
13240if { (ac_try="$ac_link"
13241case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254 { (case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257esac
13258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_try") 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try='test -s conftest$ac_exeext'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267esac
13268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013273 ac_cv_lib_udis86_ud_init=yes
13274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275 echo "$as_me: failed program was:" >&5
13276sed 's/^/| /' conftest.$ac_ext >&5
13277
13278 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280
Bill Wendlingebcceee2009-04-18 11:20:33 +000013281rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013283LIBS=$ac_check_lib_save_LIBS
13284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13286echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13287if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013288 cat >>confdefs.h <<_ACEOF
13289#define HAVE_LIBUDIS86 1
13290_ACEOF
13291
13292 LIBS="-ludis86 $LIBS"
13293
13294else
13295
13296 echo "Error! You need to have libudis86 around."
13297 exit -1
13298
13299fi
13300
13301
13302else
13303 USE_UDIS86=0
13304
13305fi
13306
13307
13308cat >>confdefs.h <<_ACEOF
13309#define USE_UDIS86 $USE_UDIS86
13310_ACEOF
13311
13312
13313
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013314# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013315if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013316 withval=$with_oprofile;
13317 USE_OPROFILE=1
13318
13319 case "$withval" in
13320 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013321 no) llvm_cv_oppath=
13322 USE_OPROFILE=0
13323 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013324 *) llvm_cv_oppath="${withval}/lib/oprofile"
13325 CPPFLAGS="-I${withval}/include";;
13326 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013327 if test -n "$llvm_cv_oppath" ; then
13328 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13330echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13331if test "${ac_cv_search_bfd_init+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013333else
13334 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335cat >conftest.$ac_ext <<_ACEOF
13336/* confdefs.h. */
13337_ACEOF
13338cat confdefs.h >>conftest.$ac_ext
13339cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013340/* end confdefs.h. */
13341
13342/* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13345#ifdef __cplusplus
13346extern "C"
13347#endif
13348char bfd_init ();
13349int
13350main ()
13351{
13352return bfd_init ();
13353 ;
13354 return 0;
13355}
13356_ACEOF
13357for ac_lib in '' bfd; do
13358 if test -z "$ac_lib"; then
13359 ac_res="none required"
13360 else
13361 ac_res=-l$ac_lib
13362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13363 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364 rm -f conftest.$ac_objext conftest$ac_exeext
13365if { (ac_try="$ac_link"
13366case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_link") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest$ac_exeext'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013398 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399else
13400 echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013406rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407 conftest$ac_exeext
13408 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013409 break
13410fi
13411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412if test "${ac_cv_search_bfd_init+set}" = set; then
13413 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013414else
13415 ac_cv_search_bfd_init=no
13416fi
13417rm conftest.$ac_ext
13418LIBS=$ac_func_search_save_LIBS
13419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013420{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13421echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013422ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13425
13426fi
13427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13429echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13430if test "${ac_cv_search_op_open_agent+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013432else
13433 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013439/* end confdefs.h. */
13440
13441/* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444#ifdef __cplusplus
13445extern "C"
13446#endif
13447char op_open_agent ();
13448int
13449main ()
13450{
13451return op_open_agent ();
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456for ac_lib in '' opagent; do
13457 if test -z "$ac_lib"; then
13458 ac_res="none required"
13459 else
13460 ac_res=-l$ac_lib
13461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13462 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463 rm -f conftest.$ac_objext conftest$ac_exeext
13464if { (ac_try="$ac_link"
13465case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13468esac
13469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_link") 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13478 { (case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_try") 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest$ac_exeext'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491esac
13492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013497 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013505rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013506 conftest$ac_exeext
13507 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013508 break
13509fi
13510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511if test "${ac_cv_search_op_open_agent+set}" = set; then
13512 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013513else
13514 ac_cv_search_op_open_agent=no
13515fi
13516rm conftest.$ac_ext
13517LIBS=$ac_func_search_save_LIBS
13518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13520echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013521ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13524
13525else
13526
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013527 echo "Error! You need to have libopagent around."
13528 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013529
13530fi
13531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532 if test "${ac_cv_header_opagent_h+set}" = set; then
13533 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13534echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535if test "${ac_cv_header_opagent_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537fi
13538{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540else
13541 # Is the header compilable?
13542{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13543echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13544cat >conftest.$ac_ext <<_ACEOF
13545/* confdefs.h. */
13546_ACEOF
13547cat confdefs.h >>conftest.$ac_ext
13548cat >>conftest.$ac_ext <<_ACEOF
13549/* end confdefs.h. */
13550$ac_includes_default
13551#include <opagent.h>
13552_ACEOF
13553rm -f conftest.$ac_objext
13554if { (ac_try="$ac_compile"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_header_compiler=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013592 ac_header_compiler=no
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13597echo "${ECHO_T}$ac_header_compiler" >&6; }
13598
13599# Is the header present?
13600{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13601echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13602cat >conftest.$ac_ext <<_ACEOF
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608#include <opagent.h>
13609_ACEOF
13610if { (ac_try="$ac_cpp conftest.$ac_ext"
13611case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614esac
13615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } >/dev/null; then
13623 if test -s conftest.err; then
13624 ac_cpp_err=$ac_c_preproc_warn_flag
13625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13626 else
13627 ac_cpp_err=
13628 fi
13629else
13630 ac_cpp_err=yes
13631fi
13632if test -z "$ac_cpp_err"; then
13633 ac_header_preproc=yes
13634else
13635 echo "$as_me: failed program was:" >&5
13636sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_header_preproc=no
13639fi
13640
13641rm -f conftest.err conftest.$ac_ext
13642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643echo "${ECHO_T}$ac_header_preproc" >&6; }
13644
13645# So? What about this header?
13646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647 yes:no: )
13648 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13649echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13651echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13652 ac_header_preproc=yes
13653 ;;
13654 no:yes:* )
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13656echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13658echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13660echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13662echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13664echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13666echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13667 ( cat <<\_ASBOX
13668## ----------------------------------- ##
13669## Report this to llvmbugs@cs.uiuc.edu ##
13670## ----------------------------------- ##
13671_ASBOX
13672 ) | sed "s/^/$as_me: WARNING: /" >&2
13673 ;;
13674esac
13675{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13676echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13677if test "${ac_cv_header_opagent_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 ac_cv_header_opagent_h=$ac_header_preproc
13681fi
13682{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13683echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13684
13685fi
13686if test $ac_cv_header_opagent_h = yes; then
13687 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013688else
13689
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013690 echo "Error! You need to have opagent.h around."
13691 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013692
13693fi
13694
13695
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013696 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013697
13698else
13699
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013700 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013701
13702
13703fi
13704
13705
13706cat >>confdefs.h <<_ACEOF
13707#define USE_OPROFILE $USE_OPROFILE
13708_ACEOF
13709
13710
13711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013712
13713
13714
13715
13716
Reid Spencer59473af2004-12-25 07:31:29 +000013717ac_header_dirent=no
13718for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13720{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13721echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725 cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013730/* end confdefs.h. */
13731#include <sys/types.h>
13732#include <$ac_hdr>
13733
13734int
13735main ()
13736{
13737if ((DIR *) 0)
13738return 0;
13739 ;
13740 return 0;
13741}
13742_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013743rm -f conftest.$ac_objext
13744if { (ac_try="$ac_compile"
13745case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_compile") 2>conftest.er1
13751 ac_status=$?
13752 grep -v '^ *+' conftest.er1 >conftest.err
13753 rm -f conftest.er1
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761esac
13762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013777 eval "$as_ac_Header=yes"
13778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784
Reid Spencera773bd52006-08-04 18:18:08 +000013785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013787ac_res=`eval echo '${'$as_ac_Header'}'`
13788 { echo "$as_me:$LINENO: result: $ac_res" >&5
13789echo "${ECHO_T}$ac_res" >&6; }
13790if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013791 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013792#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013793_ACEOF
13794
13795ac_header_dirent=$ac_hdr; break
13796fi
13797
13798done
13799# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13800if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13802echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13803if test "${ac_cv_search_opendir+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013805else
13806 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807cat >conftest.$ac_ext <<_ACEOF
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013812/* end confdefs.h. */
13813
Reid Spencera773bd52006-08-04 18:18:08 +000013814/* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013817#ifdef __cplusplus
13818extern "C"
13819#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013820char opendir ();
13821int
13822main ()
13823{
Reid Spencera773bd52006-08-04 18:18:08 +000013824return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013825 ;
13826 return 0;
13827}
13828_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013829for ac_lib in '' dir; do
13830 if test -z "$ac_lib"; then
13831 ac_res="none required"
13832 else
13833 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013835 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836 rm -f conftest.$ac_objext conftest$ac_exeext
13837if { (ac_try="$ac_link"
13838case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_link") 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13851 { (case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854esac
13855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_try") 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013870 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871else
13872 echo "$as_me: failed program was:" >&5
13873sed 's/^/| /' conftest.$ac_ext >&5
13874
13875
Reid Spencer59473af2004-12-25 07:31:29 +000013876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877
Bill Wendlingebcceee2009-04-18 11:20:33 +000013878rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879 conftest$ac_exeext
13880 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013881 break
Reid Spencer59473af2004-12-25 07:31:29 +000013882fi
Reid Spencera773bd52006-08-04 18:18:08 +000013883done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884if test "${ac_cv_search_opendir+set}" = set; then
13885 :
Reid Spencera773bd52006-08-04 18:18:08 +000013886else
13887 ac_cv_search_opendir=no
13888fi
13889rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013890LIBS=$ac_func_search_save_LIBS
13891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013892{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13893echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013894ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013895if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013897
13898fi
13899
13900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13902echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13903if test "${ac_cv_search_opendir+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013905else
13906 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013912/* end confdefs.h. */
13913
Reid Spencera773bd52006-08-04 18:18:08 +000013914/* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013917#ifdef __cplusplus
13918extern "C"
13919#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013920char opendir ();
13921int
13922main ()
13923{
Reid Spencera773bd52006-08-04 18:18:08 +000013924return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013925 ;
13926 return 0;
13927}
13928_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013929for ac_lib in '' x; do
13930 if test -z "$ac_lib"; then
13931 ac_res="none required"
13932 else
13933 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013935 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936 rm -f conftest.$ac_objext conftest$ac_exeext
13937if { (ac_try="$ac_link"
13938case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_link") 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13951 { (case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954esac
13955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_try") 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest$ac_exeext'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013970 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971else
13972 echo "$as_me: failed program was:" >&5
13973sed 's/^/| /' conftest.$ac_ext >&5
13974
13975
Reid Spencer59473af2004-12-25 07:31:29 +000013976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977
Bill Wendlingebcceee2009-04-18 11:20:33 +000013978rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979 conftest$ac_exeext
13980 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013981 break
Reid Spencer59473af2004-12-25 07:31:29 +000013982fi
Reid Spencera773bd52006-08-04 18:18:08 +000013983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984if test "${ac_cv_search_opendir+set}" = set; then
13985 :
Reid Spencera773bd52006-08-04 18:18:08 +000013986else
13987 ac_cv_search_opendir=no
13988fi
13989rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013990LIBS=$ac_func_search_save_LIBS
13991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13993echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013994ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013997
13998fi
13999
14000fi
14001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14003echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14004if test "${ac_cv_header_mmap_anon+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014006else
14007 ac_ext=c
14008ac_cpp='$CPP $CPPFLAGS'
14009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013 cat >conftest.$ac_ext <<_ACEOF
14014/* confdefs.h. */
14015_ACEOF
14016cat confdefs.h >>conftest.$ac_ext
14017cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014018/* end confdefs.h. */
14019#include <sys/mman.h>
14020#include <unistd.h>
14021#include <fcntl.h>
14022int
14023main ()
14024{
14025mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14026 ;
14027 return 0;
14028}
14029_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030rm -f conftest.$ac_objext
14031if { (ac_try="$ac_compile"
14032case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048esac
14049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058esac
14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014064 ac_cv_header_mmap_anon=yes
14065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071
Reid Spencera773bd52006-08-04 18:18:08 +000014072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014073 ac_ext=c
14074ac_cpp='$CPP $CPPFLAGS'
14075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078
14079
14080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14082echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014083if test "$ac_cv_header_mmap_anon" = yes; then
14084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085cat >>confdefs.h <<\_ACEOF
14086#define HAVE_MMAP_ANONYMOUS 1
14087_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014088
14089fi
14090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14092echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14093if test "${ac_cv_header_stat_broken+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014101/* end confdefs.h. */
14102#include <sys/types.h>
14103#include <sys/stat.h>
14104
Reid Spencera773bd52006-08-04 18:18:08 +000014105#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106# if S_ISBLK (S_IFDIR)
14107You lose.
14108# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014109#endif
14110
Reid Spencera773bd52006-08-04 18:18:08 +000014111#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112# if S_ISBLK (S_IFCHR)
14113You lose.
14114# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014115#endif
14116
Reid Spencera773bd52006-08-04 18:18:08 +000014117#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118# if S_ISLNK (S_IFREG)
14119You lose.
14120# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014121#endif
14122
Reid Spencera773bd52006-08-04 18:18:08 +000014123#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124# if S_ISSOCK (S_IFREG)
14125You lose.
14126# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014127#endif
14128
14129_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014132 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133else
14134 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136rm -f conftest*
14137
Reid Spencer59473af2004-12-25 07:31:29 +000014138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14140echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014141if test $ac_cv_header_stat_broken = yes; then
14142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143cat >>confdefs.h <<\_ACEOF
14144#define STAT_MACROS_BROKEN 1
14145_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014146
14147fi
14148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014149{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14150echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14151if test "${ac_cv_header_sys_wait_h+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014153else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154 cat >conftest.$ac_ext <<_ACEOF
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014160#include <sys/types.h>
14161#include <sys/wait.h>
14162#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014163# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014164#endif
14165#ifndef WIFEXITED
14166# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14167#endif
14168
John Criswell7a73b802003-06-30 21:59:07 +000014169int
14170main ()
14171{
14172 int s;
14173 wait (&s);
14174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14175 ;
14176 return 0;
14177}
14178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179rm -f conftest.$ac_objext
14180if { (ac_try="$ac_compile"
14181case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_compile") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014213 ac_cv_header_sys_wait_h=yes
14214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220
Reid Spencera773bd52006-08-04 18:18:08 +000014221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14224echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014225if test $ac_cv_header_sys_wait_h = yes; then
14226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227cat >>confdefs.h <<\_ACEOF
14228#define HAVE_SYS_WAIT_H 1
14229_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014230
14231fi
14232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14234echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14235if test "${ac_cv_header_time+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238 cat >conftest.$ac_ext <<_ACEOF
14239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014243/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014244#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014245#include <sys/time.h>
14246#include <time.h>
14247
14248int
14249main ()
14250{
14251if ((struct tm *) 0)
14252return 0;
14253 ;
14254 return 0;
14255}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257rm -f conftest.$ac_objext
14258if { (ac_try="$ac_compile"
14259case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_compile") 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275esac
14276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285esac
14286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014291 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014298
Reid Spencera773bd52006-08-04 18:18:08 +000014299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14302echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014303if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305cat >>confdefs.h <<\_ACEOF
14306#define TIME_WITH_SYS_TIME 1
14307_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014308
14309fi
14310
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312
14313
14314
14315
14316
14317
Reid Spencer59473af2004-12-25 07:31:29 +000014318for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319do
14320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326fi
14327ac_res=`eval echo '${'$as_ac_Header'}'`
14328 { echo "$as_me:$LINENO: result: $ac_res" >&5
14329echo "${ECHO_T}$ac_res" >&6; }
14330else
14331 # Is the header compilable?
14332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14334cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340$ac_includes_default
14341#include <$ac_header>
14342_ACEOF
14343rm -f conftest.$ac_objext
14344if { (ac_try="$ac_compile"
14345case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14358 { (case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14361esac
14362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_try") 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler=yes
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_header_compiler=no
14383fi
14384
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14387echo "${ECHO_T}$ac_header_compiler" >&6; }
14388
14389# Is the header present?
14390{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398#include <$ac_header>
14399_ACEOF
14400if { (ac_try="$ac_cpp conftest.$ac_ext"
14401case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404esac
14405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } >/dev/null; then
14413 if test -s conftest.err; then
14414 ac_cpp_err=$ac_c_preproc_warn_flag
14415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14416 else
14417 ac_cpp_err=
14418 fi
14419else
14420 ac_cpp_err=yes
14421fi
14422if test -z "$ac_cpp_err"; then
14423 ac_header_preproc=yes
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_header_preproc=no
14429fi
14430
14431rm -f conftest.err conftest.$ac_ext
14432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433echo "${ECHO_T}$ac_header_preproc" >&6; }
14434
14435# So? What about this header?
14436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 yes:no: )
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14443 ;;
14444 no:yes:* )
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14457 ( cat <<\_ASBOX
14458## ----------------------------------- ##
14459## Report this to llvmbugs@cs.uiuc.edu ##
14460## ----------------------------------- ##
14461_ASBOX
14462 ) | sed "s/^/$as_me: WARNING: /" >&2
14463 ;;
14464esac
14465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469else
14470 eval "$as_ac_Header=\$ac_header_preproc"
14471fi
14472ac_res=`eval echo '${'$as_ac_Header'}'`
14473 { echo "$as_me:$LINENO: result: $ac_res" >&5
14474echo "${ECHO_T}$ac_res" >&6; }
14475
14476fi
14477if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014478 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014480_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014481
14482fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014483
Reid Spencer59473af2004-12-25 07:31:29 +000014484done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486
14487
14488
14489
14490
14491
Douglas Gregor071d73d2009-05-18 17:21:34 +000014492for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493do
14494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500fi
14501ac_res=`eval echo '${'$as_ac_Header'}'`
14502 { echo "$as_me:$LINENO: result: $ac_res" >&5
14503echo "${ECHO_T}$ac_res" >&6; }
14504else
14505 # Is the header compilable?
14506{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14508cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
14514$ac_includes_default
14515#include <$ac_header>
14516_ACEOF
14517rm -f conftest.$ac_objext
14518if { (ac_try="$ac_compile"
14519case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_compile") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_header_compiler=yes
14552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_header_compiler=no
14557fi
14558
14559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14561echo "${ECHO_T}$ac_header_compiler" >&6; }
14562
14563# Is the header present?
14564{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14566cat >conftest.$ac_ext <<_ACEOF
14567/* confdefs.h. */
14568_ACEOF
14569cat confdefs.h >>conftest.$ac_ext
14570cat >>conftest.$ac_ext <<_ACEOF
14571/* end confdefs.h. */
14572#include <$ac_header>
14573_ACEOF
14574if { (ac_try="$ac_cpp conftest.$ac_ext"
14575case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578esac
14579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } >/dev/null; then
14587 if test -s conftest.err; then
14588 ac_cpp_err=$ac_c_preproc_warn_flag
14589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14590 else
14591 ac_cpp_err=
14592 fi
14593else
14594 ac_cpp_err=yes
14595fi
14596if test -z "$ac_cpp_err"; then
14597 ac_header_preproc=yes
14598else
14599 echo "$as_me: failed program was:" >&5
14600sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 ac_header_preproc=no
14603fi
14604
14605rm -f conftest.err conftest.$ac_ext
14606{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14607echo "${ECHO_T}$ac_header_preproc" >&6; }
14608
14609# So? What about this header?
14610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14611 yes:no: )
14612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14616 ac_header_preproc=yes
14617 ;;
14618 no:yes:* )
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14631 ( cat <<\_ASBOX
14632## ----------------------------------- ##
14633## Report this to llvmbugs@cs.uiuc.edu ##
14634## ----------------------------------- ##
14635_ASBOX
14636 ) | sed "s/^/$as_me: WARNING: /" >&2
14637 ;;
14638esac
14639{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643else
14644 eval "$as_ac_Header=\$ac_header_preproc"
14645fi
14646ac_res=`eval echo '${'$as_ac_Header'}'`
14647 { echo "$as_me:$LINENO: result: $ac_res" >&5
14648echo "${ECHO_T}$ac_res" >&6; }
14649
14650fi
14651if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014652 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014654_ACEOF
14655
14656fi
14657
14658done
14659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660
14661
Douglas Gregor071d73d2009-05-18 17:21:34 +000014662for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663do
14664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670fi
14671ac_res=`eval echo '${'$as_ac_Header'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673echo "${ECHO_T}$ac_res" >&6; }
14674else
14675 # Is the header compilable?
14676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
14684$ac_includes_default
14685#include <$ac_header>
14686_ACEOF
14687rm -f conftest.$ac_objext
14688if { (ac_try="$ac_compile"
14689case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692esac
14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14702 { (case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705esac
14706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_try") 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest.$ac_objext'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715esac
14716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_header_compiler=yes
14722else
14723 echo "$as_me: failed program was:" >&5
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_header_compiler=no
14727fi
14728
14729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14731echo "${ECHO_T}$ac_header_compiler" >&6; }
14732
14733# Is the header present?
14734{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14736cat >conftest.$ac_ext <<_ACEOF
14737/* confdefs.h. */
14738_ACEOF
14739cat confdefs.h >>conftest.$ac_ext
14740cat >>conftest.$ac_ext <<_ACEOF
14741/* end confdefs.h. */
14742#include <$ac_header>
14743_ACEOF
14744if { (ac_try="$ac_cpp conftest.$ac_ext"
14745case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748esac
14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } >/dev/null; then
14757 if test -s conftest.err; then
14758 ac_cpp_err=$ac_c_preproc_warn_flag
14759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14760 else
14761 ac_cpp_err=
14762 fi
14763else
14764 ac_cpp_err=yes
14765fi
14766if test -z "$ac_cpp_err"; then
14767 ac_header_preproc=yes
14768else
14769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_preproc=no
14773fi
14774
14775rm -f conftest.err conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777echo "${ECHO_T}$ac_header_preproc" >&6; }
14778
14779# So? What about this header?
14780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 yes:no: )
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14786 ac_header_preproc=yes
14787 ;;
14788 no:yes:* )
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14801 ( cat <<\_ASBOX
14802## ----------------------------------- ##
14803## Report this to llvmbugs@cs.uiuc.edu ##
14804## ----------------------------------- ##
14805_ASBOX
14806 ) | sed "s/^/$as_me: WARNING: /" >&2
14807 ;;
14808esac
14809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813else
14814 eval "$as_ac_Header=\$ac_header_preproc"
14815fi
14816ac_res=`eval echo '${'$as_ac_Header'}'`
14817 { echo "$as_me:$LINENO: result: $ac_res" >&5
14818echo "${ECHO_T}$ac_res" >&6; }
14819
14820fi
14821if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014824_ACEOF
14825
14826fi
14827
14828done
Reid Spencer59473af2004-12-25 07:31:29 +000014829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830
14831
14832
14833
Daniel Dunbar3e462932011-02-03 02:40:02 +000014834
14835for 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 +000014836do
14837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843fi
14844ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846echo "${ECHO_T}$ac_res" >&6; }
14847else
14848 # Is the header compilable?
14849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14851cat >conftest.$ac_ext <<_ACEOF
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h. */
14857$ac_includes_default
14858#include <$ac_header>
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (ac_try="$ac_compile"
14862case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865esac
14866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_header_compiler=yes
14895else
14896 echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_header_compiler=no
14900fi
14901
14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14904echo "${ECHO_T}$ac_header_compiler" >&6; }
14905
14906# Is the header present?
14907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14909cat >conftest.$ac_ext <<_ACEOF
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
14915#include <$ac_header>
14916_ACEOF
14917if { (ac_try="$ac_cpp conftest.$ac_ext"
14918case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } >/dev/null; then
14930 if test -s conftest.err; then
14931 ac_cpp_err=$ac_c_preproc_warn_flag
14932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14933 else
14934 ac_cpp_err=
14935 fi
14936else
14937 ac_cpp_err=yes
14938fi
14939if test -z "$ac_cpp_err"; then
14940 ac_header_preproc=yes
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_header_preproc=no
14946fi
14947
14948rm -f conftest.err conftest.$ac_ext
14949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950echo "${ECHO_T}$ac_header_preproc" >&6; }
14951
14952# So? What about this header?
14953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14960 ;;
14961 no:yes:* )
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974 ( cat <<\_ASBOX
14975## ----------------------------------- ##
14976## Report this to llvmbugs@cs.uiuc.edu ##
14977## ----------------------------------- ##
14978_ASBOX
14979 ) | sed "s/^/$as_me: WARNING: /" >&2
14980 ;;
14981esac
14982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986else
14987 eval "$as_ac_Header=\$ac_header_preproc"
14988fi
14989ac_res=`eval echo '${'$as_ac_Header'}'`
14990 { echo "$as_me:$LINENO: result: $ac_res" >&5
14991echo "${ECHO_T}$ac_res" >&6; }
14992
14993fi
14994if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014995 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000014997_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000014998
14999fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015000
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015001done
15002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015003
15004
15005
15006
Douglas Gregor01746742009-05-11 18:05:52 +000015007for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008do
15009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
15015fi
15016ac_res=`eval echo '${'$as_ac_Header'}'`
15017 { echo "$as_me:$LINENO: result: $ac_res" >&5
15018echo "${ECHO_T}$ac_res" >&6; }
15019else
15020 # Is the header compilable?
15021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030#include <$ac_header>
15031_ACEOF
15032rm -f conftest.$ac_objext
15033if { (ac_try="$ac_compile"
15034case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047 { (case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050esac
15051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_try") 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_header_compiler=yes
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_header_compiler=no
15072fi
15073
15074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076echo "${ECHO_T}$ac_header_compiler" >&6; }
15077
15078# Is the header present?
15079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h. */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
15086/* end confdefs.h. */
15087#include <$ac_header>
15088_ACEOF
15089if { (ac_try="$ac_cpp conftest.$ac_ext"
15090case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null; then
15102 if test -s conftest.err; then
15103 ac_cpp_err=$ac_c_preproc_warn_flag
15104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15105 else
15106 ac_cpp_err=
15107 fi
15108else
15109 ac_cpp_err=yes
15110fi
15111if test -z "$ac_cpp_err"; then
15112 ac_header_preproc=yes
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_header_preproc=no
15118fi
15119
15120rm -f conftest.err conftest.$ac_ext
15121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15122echo "${ECHO_T}$ac_header_preproc" >&6; }
15123
15124# So? What about this header?
15125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126 yes:no: )
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15131 ac_header_preproc=yes
15132 ;;
15133 no:yes:* )
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146 ( cat <<\_ASBOX
15147## ----------------------------------- ##
15148## Report this to llvmbugs@cs.uiuc.edu ##
15149## ----------------------------------- ##
15150_ASBOX
15151 ) | sed "s/^/$as_me: WARNING: /" >&2
15152 ;;
15153esac
15154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 eval "$as_ac_Header=\$ac_header_preproc"
15160fi
15161ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163echo "${ECHO_T}$ac_res" >&6; }
15164
15165fi
15166if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015167 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015169_ACEOF
15170
15171fi
15172
15173done
15174
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015175
15176for ac_header in valgrind/valgrind.h
15177do
15178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184fi
15185ac_res=`eval echo '${'$as_ac_Header'}'`
15186 { echo "$as_me:$LINENO: result: $ac_res" >&5
15187echo "${ECHO_T}$ac_res" >&6; }
15188else
15189 # Is the header compilable?
15190{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15192cat >conftest.$ac_ext <<_ACEOF
15193/* confdefs.h. */
15194_ACEOF
15195cat confdefs.h >>conftest.$ac_ext
15196cat >>conftest.$ac_ext <<_ACEOF
15197/* end confdefs.h. */
15198$ac_includes_default
15199#include <$ac_header>
15200_ACEOF
15201rm -f conftest.$ac_objext
15202if { (ac_try="$ac_compile"
15203case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206esac
15207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_compile") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15216 { (case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_try") 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest.$ac_objext'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_header_compiler=yes
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_header_compiler=no
15241fi
15242
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245echo "${ECHO_T}$ac_header_compiler" >&6; }
15246
15247# Is the header present?
15248{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256#include <$ac_header>
15257_ACEOF
15258if { (ac_try="$ac_cpp conftest.$ac_ext"
15259case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262esac
15263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
15273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15274 else
15275 ac_cpp_err=
15276 fi
15277else
15278 ac_cpp_err=yes
15279fi
15280if test -z "$ac_cpp_err"; then
15281 ac_header_preproc=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_header_preproc=no
15287fi
15288
15289rm -f conftest.err conftest.$ac_ext
15290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291echo "${ECHO_T}$ac_header_preproc" >&6; }
15292
15293# So? What about this header?
15294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
15301 ;;
15302 no:yes:* )
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15315 ( cat <<\_ASBOX
15316## ----------------------------------- ##
15317## Report this to llvmbugs@cs.uiuc.edu ##
15318## ----------------------------------- ##
15319_ASBOX
15320 ) | sed "s/^/$as_me: WARNING: /" >&2
15321 ;;
15322esac
15323{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327else
15328 eval "$as_ac_Header=\$ac_header_preproc"
15329fi
15330ac_res=`eval echo '${'$as_ac_Header'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332echo "${ECHO_T}$ac_res" >&6; }
15333
15334fi
15335if test `eval echo '${'$as_ac_Header'}'` = yes; then
15336 cat >>confdefs.h <<_ACEOF
15337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15338_ACEOF
15339
15340fi
15341
15342done
15343
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015344
15345for ac_header in fenv.h
15346do
15347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353fi
15354ac_res=`eval echo '${'$as_ac_Header'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356echo "${ECHO_T}$ac_res" >&6; }
15357else
15358 # Is the header compilable?
15359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15361cat >conftest.$ac_ext <<_ACEOF
15362/* confdefs.h. */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367$ac_includes_default
15368#include <$ac_header>
15369_ACEOF
15370rm -f conftest.$ac_objext
15371if { (ac_try="$ac_compile"
15372case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375esac
15376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15385 { (case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388esac
15389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390 (eval "$ac_try") 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398esac
15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_header_compiler=yes
15405else
15406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_header_compiler=no
15410fi
15411
15412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15414echo "${ECHO_T}$ac_header_compiler" >&6; }
15415
15416# Is the header present?
15417{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15419cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425#include <$ac_header>
15426_ACEOF
15427if { (ac_try="$ac_cpp conftest.$ac_ext"
15428case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } >/dev/null; then
15440 if test -s conftest.err; then
15441 ac_cpp_err=$ac_c_preproc_warn_flag
15442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15443 else
15444 ac_cpp_err=
15445 fi
15446else
15447 ac_cpp_err=yes
15448fi
15449if test -z "$ac_cpp_err"; then
15450 ac_header_preproc=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455 ac_header_preproc=no
15456fi
15457
15458rm -f conftest.err conftest.$ac_ext
15459{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15460echo "${ECHO_T}$ac_header_preproc" >&6; }
15461
15462# So? What about this header?
15463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15464 yes:no: )
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15469 ac_header_preproc=yes
15470 ;;
15471 no:yes:* )
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15484 ( cat <<\_ASBOX
15485## ----------------------------------- ##
15486## Report this to llvmbugs@cs.uiuc.edu ##
15487## ----------------------------------- ##
15488_ASBOX
15489 ) | sed "s/^/$as_me: WARNING: /" >&2
15490 ;;
15491esac
15492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496else
15497 eval "$as_ac_Header=\$ac_header_preproc"
15498fi
15499ac_res=`eval echo '${'$as_ac_Header'}'`
15500 { echo "$as_me:$LINENO: result: $ac_res" >&5
15501echo "${ECHO_T}$ac_res" >&6; }
15502
15503fi
15504if test `eval echo '${'$as_ac_Header'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15507_ACEOF
15508
15509fi
15510
15511done
15512
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015513if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514
15515for ac_header in pthread.h
15516do
15517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523fi
15524ac_res=`eval echo '${'$as_ac_Header'}'`
15525 { echo "$as_me:$LINENO: result: $ac_res" >&5
15526echo "${ECHO_T}$ac_res" >&6; }
15527else
15528 # Is the header compilable?
15529{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15531cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
15536/* end confdefs.h. */
15537$ac_includes_default
15538#include <$ac_header>
15539_ACEOF
15540rm -f conftest.$ac_objext
15541if { (ac_try="$ac_compile"
15542case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545esac
15546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_compile") 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_header_compiler=yes
15575else
15576 echo "$as_me: failed program was:" >&5
15577sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ac_header_compiler=no
15580fi
15581
15582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15584echo "${ECHO_T}$ac_header_compiler" >&6; }
15585
15586# Is the header present?
15587{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15589cat >conftest.$ac_ext <<_ACEOF
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595#include <$ac_header>
15596_ACEOF
15597if { (ac_try="$ac_cpp conftest.$ac_ext"
15598case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } >/dev/null; then
15610 if test -s conftest.err; then
15611 ac_cpp_err=$ac_c_preproc_warn_flag
15612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15613 else
15614 ac_cpp_err=
15615 fi
15616else
15617 ac_cpp_err=yes
15618fi
15619if test -z "$ac_cpp_err"; then
15620 ac_header_preproc=yes
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625 ac_header_preproc=no
15626fi
15627
15628rm -f conftest.err conftest.$ac_ext
15629{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15630echo "${ECHO_T}$ac_header_preproc" >&6; }
15631
15632# So? What about this header?
15633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15634 yes:no: )
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15636echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15638echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15639 ac_header_preproc=yes
15640 ;;
15641 no:yes:* )
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15645echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15647echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15649echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15653echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15654 ( cat <<\_ASBOX
15655## ----------------------------------- ##
15656## Report this to llvmbugs@cs.uiuc.edu ##
15657## ----------------------------------- ##
15658_ASBOX
15659 ) | sed "s/^/$as_me: WARNING: /" >&2
15660 ;;
15661esac
15662{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15666else
15667 eval "$as_ac_Header=\$ac_header_preproc"
15668fi
15669ac_res=`eval echo '${'$as_ac_Header'}'`
15670 { echo "$as_me:$LINENO: result: $ac_res" >&5
15671echo "${ECHO_T}$ac_res" >&6; }
15672
15673fi
15674if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015675 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015677_ACEOF
15678 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015679
15680else
15681 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015682
15683fi
15684
Reid Spencerbe3e4192007-08-17 05:45:26 +000015685done
Reid Spencer1000b732006-12-01 00:37:14 +000015686
15687else
15688 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015689
15690fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015691
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015692if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693
15694
15695for ac_header in ffi.h ffi/ffi.h
15696do
15697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703fi
15704ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706echo "${ECHO_T}$ac_res" >&6; }
15707else
15708 # Is the header compilable?
15709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718#include <$ac_header>
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (ac_try="$ac_compile"
15722case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725esac
15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738esac
15739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748esac
15749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_header_compiler=no
15760fi
15761
15762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764echo "${ECHO_T}$ac_header_compiler" >&6; }
15765
15766# Is the header present?
15767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775#include <$ac_header>
15776_ACEOF
15777if { (ac_try="$ac_cpp conftest.$ac_ext"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 else
15794 ac_cpp_err=
15795 fi
15796else
15797 ac_cpp_err=yes
15798fi
15799if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_header_preproc=no
15806fi
15807
15808rm -f conftest.err conftest.$ac_ext
15809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810echo "${ECHO_T}$ac_header_preproc" >&6; }
15811
15812# So? What about this header?
15813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 yes:no: )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15820 ;;
15821 no:yes:* )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834 ( cat <<\_ASBOX
15835## ----------------------------------- ##
15836## Report this to llvmbugs@cs.uiuc.edu ##
15837## ----------------------------------- ##
15838_ASBOX
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15840 ;;
15841esac
15842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 eval "$as_ac_Header=\$ac_header_preproc"
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852
15853fi
15854if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015855 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015857_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015858
15859fi
15860
15861done
15862
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015863fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015864
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015865
Eric Christopher654dee42010-06-22 21:01:04 +000015866for ac_header in CrashReporterClient.h
15867do
15868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874fi
15875ac_res=`eval echo '${'$as_ac_Header'}'`
15876 { echo "$as_me:$LINENO: result: $ac_res" >&5
15877echo "${ECHO_T}$ac_res" >&6; }
15878else
15879 # Is the header compilable?
15880{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15882cat >conftest.$ac_ext <<_ACEOF
15883/* confdefs.h. */
15884_ACEOF
15885cat confdefs.h >>conftest.$ac_ext
15886cat >>conftest.$ac_ext <<_ACEOF
15887/* end confdefs.h. */
15888$ac_includes_default
15889#include <$ac_header>
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (ac_try="$ac_compile"
15893case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896esac
15897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_compile") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest.$ac_objext'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_header_compiler=yes
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930 ac_header_compiler=no
15931fi
15932
15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15935echo "${ECHO_T}$ac_header_compiler" >&6; }
15936
15937# Is the header present?
15938{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15940cat >conftest.$ac_ext <<_ACEOF
15941/* confdefs.h. */
15942_ACEOF
15943cat confdefs.h >>conftest.$ac_ext
15944cat >>conftest.$ac_ext <<_ACEOF
15945/* end confdefs.h. */
15946#include <$ac_header>
15947_ACEOF
15948if { (ac_try="$ac_cpp conftest.$ac_ext"
15949case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } >/dev/null; then
15961 if test -s conftest.err; then
15962 ac_cpp_err=$ac_c_preproc_warn_flag
15963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15964 else
15965 ac_cpp_err=
15966 fi
15967else
15968 ac_cpp_err=yes
15969fi
15970if test -z "$ac_cpp_err"; then
15971 ac_header_preproc=yes
15972else
15973 echo "$as_me: failed program was:" >&5
15974sed 's/^/| /' conftest.$ac_ext >&5
15975
15976 ac_header_preproc=no
15977fi
15978
15979rm -f conftest.err conftest.$ac_ext
15980{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15981echo "${ECHO_T}$ac_header_preproc" >&6; }
15982
15983# So? What about this header?
15984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15985 yes:no: )
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15990 ac_header_preproc=yes
15991 ;;
15992 no:yes:* )
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16005 ( cat <<\_ASBOX
16006## ----------------------------------- ##
16007## Report this to llvmbugs@cs.uiuc.edu ##
16008## ----------------------------------- ##
16009_ASBOX
16010 ) | sed "s/^/$as_me: WARNING: /" >&2
16011 ;;
16012esac
16013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017else
16018 eval "$as_ac_Header=\$ac_header_preproc"
16019fi
16020ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022echo "${ECHO_T}$ac_res" >&6; }
16023
16024fi
16025if test `eval echo '${'$as_ac_Header'}'` = yes; then
16026 cat >>confdefs.h <<_ACEOF
16027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16028_ACEOF
16029
16030fi
16031
16032done
16033
16034
Eric Christopher51e57132010-12-07 02:05:42 +000016035{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16036echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016037cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016043extern const char *__crashreporter_info__;
16044 int main() {
16045 __crashreporter_info__ = "test";
16046 return 0;
16047 }
Eric Christopher481d4022010-12-03 07:45:22 +000016048
Eric Christopher481d4022010-12-03 07:45:22 +000016049_ACEOF
16050rm -f conftest.$ac_objext conftest$ac_exeext
16051if { (ac_try="$ac_link"
16052case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055esac
16056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_link") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16068esac
16069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest$ac_exeext'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078esac
16079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016084 { echo "$as_me:$LINENO: result: yes" >&5
16085echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016086
16087cat >>confdefs.h <<\_ACEOF
16088#define HAVE_CRASHREPORTER_INFO 1
16089_ACEOF
16090
Eric Christopher51e57132010-12-07 02:05:42 +000016091else
16092 echo "$as_me: failed program was:" >&5
16093sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 { echo "$as_me:$LINENO: result: no" >&5
16096echo "${ECHO_T}no" >&6; }
16097
16098cat >>confdefs.h <<\_ACEOF
16099#define HAVE_CRASHREPORTER_INFO 0
16100_ACEOF
16101
Eric Christopher481d4022010-12-03 07:45:22 +000016102fi
Eric Christopher654dee42010-06-22 21:01:04 +000016103
Eric Christopher51e57132010-12-07 02:05:42 +000016104rm -f core conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16106
16107
Reid Spencer8085cff2005-01-16 02:58:39 +000016108
Torok Edwin871384f2010-01-26 08:50:50 +000016109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016110 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16111echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16112if test "${ac_cv_huge_val_sanity+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016114else
16115
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016116 ac_ext=cpp
16117ac_cpp='$CXXCPP $CPPFLAGS'
16118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016121
Eric Christopherc7718502010-03-02 05:06:54 +000016122 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016123 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016124 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016125 ac_cv_huge_val_sanity=yes
16126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016127 cat >conftest.$ac_ext <<_ACEOF
16128/* confdefs.h. */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016132/* end confdefs.h. */
16133#include <math.h>
16134int
16135main ()
16136{
16137double x = HUGE_VAL; return x != x;
16138 ;
16139 return 0;
16140}
16141_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016142rm -f conftest$ac_exeext
16143if { (ac_try="$ac_link"
16144case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153 { (case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156esac
16157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_try") 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016162 ac_cv_huge_val_sanity=yes
16163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016164 echo "$as_me: program exited with status $ac_status" >&5
16165echo "$as_me: failed program was:" >&5
16166sed 's/^/| /' conftest.$ac_ext >&5
16167
16168( exit $ac_status )
16169ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016170fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016171rm -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 +000016172fi
16173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016174
Eric Christopherc7718502010-03-02 05:06:54 +000016175 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016176 ac_ext=c
16177ac_cpp='$CPP $CPPFLAGS'
16178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16180ac_compiler_gnu=$ac_cv_c_compiler_gnu
16181
16182
16183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016184{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16185echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016186 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16187
16188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016189{ echo "$as_me:$LINENO: checking for pid_t" >&5
16190echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16191if test "${ac_cv_type_pid_t+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194 cat >conftest.$ac_ext <<_ACEOF
16195/* confdefs.h. */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h. */
16200$ac_includes_default
16201typedef pid_t ac__type_new_;
16202int
16203main ()
16204{
16205if ((ac__type_new_ *) 0)
16206 return 0;
16207if (sizeof (ac__type_new_))
16208 return 0;
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213rm -f conftest.$ac_objext
16214if { (ac_try="$ac_compile"
16215case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16218esac
16219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_type_pid_t=yes
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016252 ac_cv_type_pid_t=no
16253fi
16254
16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256fi
16257{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16258echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16259if test $ac_cv_type_pid_t = yes; then
16260 :
John Criswell7a73b802003-06-30 21:59:07 +000016261else
16262
16263cat >>confdefs.h <<_ACEOF
16264#define pid_t int
16265_ACEOF
16266
16267fi
16268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016269{ echo "$as_me:$LINENO: checking for size_t" >&5
16270echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16271if test "${ac_cv_type_size_t+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280$ac_includes_default
16281typedef size_t ac__type_new_;
16282int
16283main ()
16284{
16285if ((ac__type_new_ *) 0)
16286 return 0;
16287if (sizeof (ac__type_new_))
16288 return 0;
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (ac_try="$ac_compile"
16295case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311esac
16312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_type_size_t=yes
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016332 ac_cv_type_size_t=no
16333fi
16334
16335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336fi
16337{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16338echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16339if test $ac_cv_type_size_t = yes; then
16340 :
John Criswell7a73b802003-06-30 21:59:07 +000016341else
16342
16343cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016344#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016345_ACEOF
16346
16347fi
16348
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016349
16350cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016351#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016352_ACEOF
16353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016354{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16355echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16356if test "${ac_cv_struct_tm+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016359 cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016364/* end confdefs.h. */
16365#include <sys/types.h>
16366#include <time.h>
16367
16368int
16369main ()
16370{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016371struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016372 ;
16373 return 0;
16374}
16375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016376rm -f conftest.$ac_objext
16377if { (ac_try="$ac_compile"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016410 ac_cv_struct_tm=time.h
16411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417
Reid Spencera773bd52006-08-04 18:18:08 +000016418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016420{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16421echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016422if test $ac_cv_struct_tm = sys/time.h; then
16423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016424cat >>confdefs.h <<\_ACEOF
16425#define TM_IN_SYS_TIME 1
16426_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016427
16428fi
16429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016430{ echo "$as_me:$LINENO: checking for int64_t" >&5
16431echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16432if test "${ac_cv_type_int64_t+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434else
16435 cat >conftest.$ac_ext <<_ACEOF
16436/* confdefs.h. */
16437_ACEOF
16438cat confdefs.h >>conftest.$ac_ext
16439cat >>conftest.$ac_ext <<_ACEOF
16440/* end confdefs.h. */
16441$ac_includes_default
16442typedef int64_t ac__type_new_;
16443int
16444main ()
16445{
16446if ((ac__type_new_ *) 0)
16447 return 0;
16448if (sizeof (ac__type_new_))
16449 return 0;
16450 ;
16451 return 0;
16452}
16453_ACEOF
16454rm -f conftest.$ac_objext
16455if { (ac_try="$ac_compile"
16456case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16472esac
16473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_type_int64_t=yes
16489else
16490 echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 ac_cv_type_int64_t=no
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497fi
16498{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16499echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16500if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016501
16502cat >>confdefs.h <<_ACEOF
16503#define HAVE_INT64_T 1
16504_ACEOF
16505
16506
16507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016508 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16509echo "$as_me: error: Type int64_t required but not found" >&2;}
16510 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016511fi
16512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016513{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16514echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16515if test "${ac_cv_type_uint64_t+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517else
16518 cat >conftest.$ac_ext <<_ACEOF
16519/* confdefs.h. */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h. */
16524$ac_includes_default
16525typedef uint64_t ac__type_new_;
16526int
16527main ()
16528{
16529if ((ac__type_new_ *) 0)
16530 return 0;
16531if (sizeof (ac__type_new_))
16532 return 0;
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext
16538if { (ac_try="$ac_compile"
16539case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565esac
16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_type_uint64_t=yes
16572else
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_cv_type_uint64_t=no
16577fi
16578
16579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580fi
16581{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16582echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16583if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016584
16585cat >>confdefs.h <<_ACEOF
16586#define HAVE_UINT64_T 1
16587_ACEOF
16588
16589
16590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016591 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16592echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16593if test "${ac_cv_type_u_int64_t+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595else
16596 cat >conftest.$ac_ext <<_ACEOF
16597/* confdefs.h. */
16598_ACEOF
16599cat confdefs.h >>conftest.$ac_ext
16600cat >>conftest.$ac_ext <<_ACEOF
16601/* end confdefs.h. */
16602$ac_includes_default
16603typedef u_int64_t ac__type_new_;
16604int
16605main ()
16606{
16607if ((ac__type_new_ *) 0)
16608 return 0;
16609if (sizeof (ac__type_new_))
16610 return 0;
16611 ;
16612 return 0;
16613}
16614_ACEOF
16615rm -f conftest.$ac_objext
16616if { (ac_try="$ac_compile"
16617case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633esac
16634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_type_u_int64_t=yes
16650else
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 ac_cv_type_u_int64_t=no
16655fi
16656
16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658fi
16659{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16660echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16661if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016662
16663cat >>confdefs.h <<_ACEOF
16664#define HAVE_U_INT64_T 1
16665_ACEOF
16666
16667
Misha Brukmanceca9042004-09-02 23:02:30 +000016668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016669 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16670echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16671 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016672fi
16673
John Criswell679ff312004-09-02 18:44:44 +000016674fi
16675
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016676
16677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016678
16679
16680
16681
16682
16683
16684
Reid Spencerdf3be822006-01-23 08:15:53 +000016685for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016686do
16687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16688{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16690if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
16699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16701#define $ac_func innocuous_$ac_func
16702
16703/* System header to define __stub macros and hopefully few prototypes,
16704 which can conflict with char $ac_func (); below.
16705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16706 <limits.h> exists even on freestanding compilers. */
16707
16708#ifdef __STDC__
16709# include <limits.h>
16710#else
16711# include <assert.h>
16712#endif
16713
16714#undef $ac_func
16715
16716/* Override any GCC internal prototype to avoid an error.
16717 Use char because int might match the return type of a GCC
16718 builtin and then its argument prototype would still apply. */
16719#ifdef __cplusplus
16720extern "C"
16721#endif
16722char $ac_func ();
16723/* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726#if defined __stub_$ac_func || defined __stub___$ac_func
16727choke me
16728#endif
16729
16730int
16731main ()
16732{
16733return $ac_func ();
16734 ;
16735 return 0;
16736}
16737_ACEOF
16738rm -f conftest.$ac_objext conftest$ac_exeext
16739if { (ac_try="$ac_link"
16740case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_link") 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766esac
16767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 eval "$as_ac_var=yes"
16773else
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 eval "$as_ac_var=no"
16778fi
16779
16780rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782fi
16783ac_res=`eval echo '${'$as_ac_var'}'`
16784 { echo "$as_me:$LINENO: result: $ac_res" >&5
16785echo "${ECHO_T}$ac_res" >&6; }
16786if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016787 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016789_ACEOF
16790
16791fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016792done
John Criswell7a73b802003-06-30 21:59:07 +000016793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016794
16795
16796
16797
Reid Spencer96cf5872007-07-13 10:05:30 +000016798for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016799do
16800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805else
16806 cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814#define $ac_func innocuous_$ac_func
16815
16816/* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char $ac_func (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16820
16821#ifdef __STDC__
16822# include <limits.h>
16823#else
16824# include <assert.h>
16825#endif
16826
16827#undef $ac_func
16828
16829/* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16832#ifdef __cplusplus
16833extern "C"
16834#endif
16835char $ac_func ();
16836/* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839#if defined __stub_$ac_func || defined __stub___$ac_func
16840choke me
16841#endif
16842
16843int
16844main ()
16845{
16846return $ac_func ();
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
16852if { (ac_try="$ac_link"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 eval "$as_ac_var=yes"
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 eval "$as_ac_var=no"
16891fi
16892
16893rm -f core conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895fi
16896ac_res=`eval echo '${'$as_ac_var'}'`
16897 { echo "$as_me:$LINENO: result: $ac_res" >&5
16898echo "${ECHO_T}$ac_res" >&6; }
16899if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016900 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016902_ACEOF
16903
16904fi
16905done
16906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016907
16908
16909
16910
16911
Reid Spencerb90645c2007-02-16 19:17:20 +000016912for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016913do
16914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16919else
16920 cat >conftest.$ac_ext <<_ACEOF
16921/* confdefs.h. */
16922_ACEOF
16923cat confdefs.h >>conftest.$ac_ext
16924cat >>conftest.$ac_ext <<_ACEOF
16925/* end confdefs.h. */
16926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16928#define $ac_func innocuous_$ac_func
16929
16930/* System header to define __stub macros and hopefully few prototypes,
16931 which can conflict with char $ac_func (); below.
16932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933 <limits.h> exists even on freestanding compilers. */
16934
16935#ifdef __STDC__
16936# include <limits.h>
16937#else
16938# include <assert.h>
16939#endif
16940
16941#undef $ac_func
16942
16943/* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16946#ifdef __cplusplus
16947extern "C"
16948#endif
16949char $ac_func ();
16950/* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953#if defined __stub_$ac_func || defined __stub___$ac_func
16954choke me
16955#endif
16956
16957int
16958main ()
16959{
16960return $ac_func ();
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext conftest$ac_exeext
16966if { (ac_try="$ac_link"
16967case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970esac
16971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980 { (case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16983esac
16984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_try") 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 eval "$as_ac_var=yes"
17000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 eval "$as_ac_var=no"
17005fi
17006
17007rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009fi
17010ac_res=`eval echo '${'$as_ac_var'}'`
17011 { echo "$as_me:$LINENO: result: $ac_res" >&5
17012echo "${ECHO_T}$ac_res" >&6; }
17013if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017014 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017016_ACEOF
17017
17018fi
17019done
17020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017021
17022
17023
Reid Spencerb90645c2007-02-16 19:17:20 +000017024for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017025do
17026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17040#define $ac_func innocuous_$ac_func
17041
17042/* System header to define __stub macros and hopefully few prototypes,
17043 which can conflict with char $ac_func (); below.
17044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17045 <limits.h> exists even on freestanding compilers. */
17046
17047#ifdef __STDC__
17048# include <limits.h>
17049#else
17050# include <assert.h>
17051#endif
17052
17053#undef $ac_func
17054
17055/* Override any GCC internal prototype to avoid an error.
17056 Use char because int might match the return type of a GCC
17057 builtin and then its argument prototype would still apply. */
17058#ifdef __cplusplus
17059extern "C"
17060#endif
17061char $ac_func ();
17062/* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065#if defined __stub_$ac_func || defined __stub___$ac_func
17066choke me
17067#endif
17068
17069int
17070main ()
17071{
17072return $ac_func ();
17073 ;
17074 return 0;
17075}
17076_ACEOF
17077rm -f conftest.$ac_objext conftest$ac_exeext
17078if { (ac_try="$ac_link"
17079case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest$ac_exeext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105esac
17106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 eval "$as_ac_var=yes"
17112else
17113 echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 eval "$as_ac_var=no"
17117fi
17118
17119rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17121fi
17122ac_res=`eval echo '${'$as_ac_var'}'`
17123 { echo "$as_me:$LINENO: result: $ac_res" >&5
17124echo "${ECHO_T}$ac_res" >&6; }
17125if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017128_ACEOF
17129
17130fi
17131done
17132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017133
17134
17135
17136
17137
Eric Christophere4291822010-04-16 05:14:21 +000017138
17139for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017140do
17141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17144if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146else
17147 cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17155#define $ac_func innocuous_$ac_func
17156
17157/* System header to define __stub macros and hopefully few prototypes,
17158 which can conflict with char $ac_func (); below.
17159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17160 <limits.h> exists even on freestanding compilers. */
17161
17162#ifdef __STDC__
17163# include <limits.h>
17164#else
17165# include <assert.h>
17166#endif
17167
17168#undef $ac_func
17169
17170/* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17173#ifdef __cplusplus
17174extern "C"
17175#endif
17176char $ac_func ();
17177/* The GNU C library defines this for functions which it implements
17178 to always fail with ENOSYS. Some functions are actually named
17179 something starting with __ and the normal name is an alias. */
17180#if defined __stub_$ac_func || defined __stub___$ac_func
17181choke me
17182#endif
17183
17184int
17185main ()
17186{
17187return $ac_func ();
17188 ;
17189 return 0;
17190}
17191_ACEOF
17192rm -f conftest.$ac_objext conftest$ac_exeext
17193if { (ac_try="$ac_link"
17194case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197esac
17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210esac
17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest$ac_exeext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220esac
17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 eval "$as_ac_var=yes"
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 eval "$as_ac_var=no"
17232fi
17233
17234rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17236fi
17237ac_res=`eval echo '${'$as_ac_var'}'`
17238 { echo "$as_me:$LINENO: result: $ac_res" >&5
17239echo "${ECHO_T}$ac_res" >&6; }
17240if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017241 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017243_ACEOF
17244
17245fi
17246done
Reid Spencerdf3be822006-01-23 08:15:53 +000017247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017248
17249
17250
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017251for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017252do
17253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17254{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258else
17259 cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267#define $ac_func innocuous_$ac_func
17268
17269/* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17273
17274#ifdef __STDC__
17275# include <limits.h>
17276#else
17277# include <assert.h>
17278#endif
17279
17280#undef $ac_func
17281
17282/* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285#ifdef __cplusplus
17286extern "C"
17287#endif
17288char $ac_func ();
17289/* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292#if defined __stub_$ac_func || defined __stub___$ac_func
17293choke me
17294#endif
17295
17296int
17297main ()
17298{
17299return $ac_func ();
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext conftest$ac_exeext
17305if { (ac_try="$ac_link"
17306case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332esac
17333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 eval "$as_ac_var=yes"
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 eval "$as_ac_var=no"
17344fi
17345
17346rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348fi
17349ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351echo "${ECHO_T}$ac_res" >&6; }
17352if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017353 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017355_ACEOF
17356
17357fi
17358done
17359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360
17361
17362
17363
Chris Lattner511f11d2005-11-14 07:25:50 +000017364for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017365do
17366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17371else
17372 cat >conftest.$ac_ext <<_ACEOF
17373/* confdefs.h. */
17374_ACEOF
17375cat confdefs.h >>conftest.$ac_ext
17376cat >>conftest.$ac_ext <<_ACEOF
17377/* end confdefs.h. */
17378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380#define $ac_func innocuous_$ac_func
17381
17382/* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17386
17387#ifdef __STDC__
17388# include <limits.h>
17389#else
17390# include <assert.h>
17391#endif
17392
17393#undef $ac_func
17394
17395/* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17398#ifdef __cplusplus
17399extern "C"
17400#endif
17401char $ac_func ();
17402/* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405#if defined __stub_$ac_func || defined __stub___$ac_func
17406choke me
17407#endif
17408
17409int
17410main ()
17411{
17412return $ac_func ();
17413 ;
17414 return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext conftest$ac_exeext
17418if { (ac_try="$ac_link"
17419case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422esac
17423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_link") 2>conftest.er1
17425 ac_status=$?
17426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435esac
17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 eval "$as_ac_var=yes"
17452else
17453 echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 eval "$as_ac_var=no"
17457fi
17458
17459rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461fi
17462ac_res=`eval echo '${'$as_ac_var'}'`
17463 { echo "$as_me:$LINENO: result: $ac_res" >&5
17464echo "${ECHO_T}$ac_res" >&6; }
17465if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017466 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017468_ACEOF
17469
17470fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017471done
John Criswell7a73b802003-06-30 21:59:07 +000017472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017473
17474
17475
17476
Daniel Dunbar3e462932011-02-03 02:40:02 +000017477
17478for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017479do
17480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17485else
17486 cat >conftest.$ac_ext <<_ACEOF
17487/* confdefs.h. */
17488_ACEOF
17489cat confdefs.h >>conftest.$ac_ext
17490cat >>conftest.$ac_ext <<_ACEOF
17491/* end confdefs.h. */
17492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17494#define $ac_func innocuous_$ac_func
17495
17496/* System header to define __stub macros and hopefully few prototypes,
17497 which can conflict with char $ac_func (); below.
17498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 <limits.h> exists even on freestanding compilers. */
17500
17501#ifdef __STDC__
17502# include <limits.h>
17503#else
17504# include <assert.h>
17505#endif
17506
17507#undef $ac_func
17508
17509/* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17512#ifdef __cplusplus
17513extern "C"
17514#endif
17515char $ac_func ();
17516/* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519#if defined __stub_$ac_func || defined __stub___$ac_func
17520choke me
17521#endif
17522
17523int
17524main ()
17525{
17526return $ac_func ();
17527 ;
17528 return 0;
17529}
17530_ACEOF
17531rm -f conftest.$ac_objext conftest$ac_exeext
17532if { (ac_try="$ac_link"
17533case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_link") 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17549esac
17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
17555 { ac_try='test -s conftest$ac_exeext'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559esac
17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 eval "$as_ac_var=yes"
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 eval "$as_ac_var=no"
17571fi
17572
17573rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17575fi
17576ac_res=`eval echo '${'$as_ac_var'}'`
17577 { echo "$as_me:$LINENO: result: $ac_res" >&5
17578echo "${ECHO_T}$ac_res" >&6; }
17579if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017580 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017582_ACEOF
17583
17584fi
17585done
17586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017587{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17588echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17589if test "${llvm_cv_c_printf_a+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017591else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017592 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017593ac_cpp='$CPP $CPPFLAGS'
17594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17596ac_compiler_gnu=$ac_cv_c_compiler_gnu
17597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017598 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017599 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017603 /* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017608
John Criswella0137d32003-10-13 16:22:01 +000017609#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017610#include <stdlib.h>
17611
John Criswella0137d32003-10-13 16:22:01 +000017612int
17613main ()
17614{
17615
Reid Spencer2706f8c2004-09-19 23:53:36 +000017616volatile double A, B;
17617char Buffer[100];
17618A = 1;
17619A /= 10.0;
17620sprintf(Buffer, "%a", A);
17621B = atof(Buffer);
17622if (A != B)
17623 return (1);
17624if (A != 0x1.999999999999ap-4)
17625 return (1);
17626return (0);
John Criswella0137d32003-10-13 16:22:01 +000017627 ;
17628 return 0;
17629}
17630_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631rm -f conftest$ac_exeext
17632if { (ac_try="$ac_link"
17633case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017651 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017653 echo "$as_me: program exited with status $ac_status" >&5
17654echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657( exit $ac_status )
17658llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660rm -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 +000017661fi
Reid Spencera773bd52006-08-04 18:18:08 +000017662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663
Reid Spencer2706f8c2004-09-19 23:53:36 +000017664 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017665ac_cpp='$CPP $CPPFLAGS'
17666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17672echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017673 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017675cat >>confdefs.h <<\_ACEOF
17676#define HAVE_PRINTF_A 1
17677_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017678
Reid Spencer2706f8c2004-09-19 23:53:36 +000017679 fi
John Criswella0137d32003-10-13 16:22:01 +000017680
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17683echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17684if test "${ac_cv_func_rand48+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017686else
Reid Spencera773bd52006-08-04 18:18:08 +000017687 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017688ac_cpp='$CXXCPP $CPPFLAGS'
17689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017693 cat >conftest.$ac_ext <<_ACEOF
17694/* confdefs.h. */
17695_ACEOF
17696cat confdefs.h >>conftest.$ac_ext
17697cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017698/* end confdefs.h. */
17699#include <stdlib.h>
17700int
17701main ()
17702{
17703srand48(0);lrand48();drand48();
17704 ;
17705 return 0;
17706}
17707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708rm -f conftest.$ac_objext
17709if { (ac_try="$ac_compile"
17710case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_compile") 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726esac
17727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017742 ac_cv_func_rand48=yes
17743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017744 echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017749
Reid Spencera773bd52006-08-04 18:18:08 +000017750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017751 ac_ext=c
17752ac_cpp='$CPP $CPPFLAGS'
17753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17755ac_compiler_gnu=$ac_cv_c_compiler_gnu
17756
17757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017758{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17759echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017760
17761if test "$ac_cv_func_rand48" = "yes" ; then
17762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017763cat >>confdefs.h <<\_ACEOF
17764#define HAVE_RAND48 1
17765_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017766
17767fi
John Criswell0021c312004-02-13 21:57:29 +000017768
17769
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017770{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17771echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17772if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
17781$ac_includes_default
17782int
17783main ()
17784{
17785#ifndef strerror_s
17786 char *p = (char *) strerror_s;
17787 return !p;
17788#endif
17789
17790 ;
17791 return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (ac_try="$ac_compile"
17796case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799esac
17800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_compile") 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812esac
17813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_have_decl_strerror_s=yes
17829else
17830 echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 ac_cv_have_decl_strerror_s=no
17834fi
17835
17836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837fi
17838{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17839echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17840if test $ac_cv_have_decl_strerror_s = yes; then
17841
17842cat >>confdefs.h <<_ACEOF
17843#define HAVE_DECL_STRERROR_S 1
17844_ACEOF
17845
17846
17847else
17848 cat >>confdefs.h <<_ACEOF
17849#define HAVE_DECL_STRERROR_S 0
17850_ACEOF
17851
17852
17853fi
17854
17855
17856
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017857if test "$llvm_cv_os_type" = "MingW" ; then
17858 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17859echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17860if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17862else
17863 ac_check_lib_save_LIBS=$LIBS
17864LIBS="-lgcc $LIBS"
17865cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
17871
17872/* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17875#ifdef __cplusplus
17876extern "C"
17877#endif
17878char _alloca ();
17879int
17880main ()
17881{
17882return _alloca ();
17883 ;
17884 return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (ac_try="$ac_link"
17889case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892esac
17893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_link") 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17902 { (case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905esac
17906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_try") 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest$ac_exeext'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_cv_lib_gcc__alloca=yes
17922else
17923 echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926 ac_cv_lib_gcc__alloca=no
17927fi
17928
17929rm -f core conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931LIBS=$ac_check_lib_save_LIBS
17932fi
17933{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17934echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17935if test $ac_cv_lib_gcc__alloca = yes; then
17936
17937cat >>confdefs.h <<\_ACEOF
17938#define HAVE__ALLOCA 1
17939_ACEOF
17940
17941fi
17942
17943 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17944echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17945if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17947else
17948 ac_check_lib_save_LIBS=$LIBS
17949LIBS="-lgcc $LIBS"
17950cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
17956
17957/* Override any GCC internal prototype to avoid an error.
17958 Use char because int might match the return type of a GCC
17959 builtin and then its argument prototype would still apply. */
17960#ifdef __cplusplus
17961extern "C"
17962#endif
17963char __alloca ();
17964int
17965main ()
17966{
17967return __alloca ();
17968 ;
17969 return 0;
17970}
17971_ACEOF
17972rm -f conftest.$ac_objext conftest$ac_exeext
17973if { (ac_try="$ac_link"
17974case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17977esac
17978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_link") 2>conftest.er1
17980 ac_status=$?
17981 grep -v '^ *+' conftest.er1 >conftest.err
17982 rm -f conftest.er1
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_try") 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest$ac_exeext'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000esac
18001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_gcc___alloca=yes
18007else
18008 echo "$as_me: failed program was:" >&5
18009sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_cv_lib_gcc___alloca=no
18012fi
18013
18014rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016LIBS=$ac_check_lib_save_LIBS
18017fi
18018{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18019echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18020if test $ac_cv_lib_gcc___alloca = yes; then
18021
18022cat >>confdefs.h <<\_ACEOF
18023#define HAVE___ALLOCA 1
18024_ACEOF
18025
18026fi
18027
18028 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18029echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18030if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032else
18033 ac_check_lib_save_LIBS=$LIBS
18034LIBS="-lgcc $LIBS"
18035cat >conftest.$ac_ext <<_ACEOF
18036/* confdefs.h. */
18037_ACEOF
18038cat confdefs.h >>conftest.$ac_ext
18039cat >>conftest.$ac_ext <<_ACEOF
18040/* end confdefs.h. */
18041
18042/* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045#ifdef __cplusplus
18046extern "C"
18047#endif
18048char __chkstk ();
18049int
18050main ()
18051{
18052return __chkstk ();
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext conftest$ac_exeext
18058if { (ac_try="$ac_link"
18059case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062esac
18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_try") 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18085esac
18086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_cv_lib_gcc___chkstk=yes
18092else
18093 echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096 ac_cv_lib_gcc___chkstk=no
18097fi
18098
18099rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101LIBS=$ac_check_lib_save_LIBS
18102fi
18103{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18104echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18105if test $ac_cv_lib_gcc___chkstk = yes; then
18106
18107cat >>confdefs.h <<\_ACEOF
18108#define HAVE___CHKSTK 1
18109_ACEOF
18110
18111fi
18112
18113 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18114echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18115if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118 ac_check_lib_save_LIBS=$LIBS
18119LIBS="-lgcc $LIBS"
18120cat >conftest.$ac_ext <<_ACEOF
18121/* confdefs.h. */
18122_ACEOF
18123cat confdefs.h >>conftest.$ac_ext
18124cat >>conftest.$ac_ext <<_ACEOF
18125/* end confdefs.h. */
18126
18127/* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18130#ifdef __cplusplus
18131extern "C"
18132#endif
18133char ___chkstk ();
18134int
18135main ()
18136{
18137return ___chkstk ();
18138 ;
18139 return 0;
18140}
18141_ACEOF
18142rm -f conftest.$ac_objext conftest$ac_exeext
18143if { (ac_try="$ac_link"
18144case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147esac
18148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_link") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest$ac_exeext'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_lib_gcc____chkstk=yes
18177else
18178 echo "$as_me: failed program was:" >&5
18179sed 's/^/| /' conftest.$ac_ext >&5
18180
18181 ac_cv_lib_gcc____chkstk=no
18182fi
18183
18184rm -f core conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18186LIBS=$ac_check_lib_save_LIBS
18187fi
18188{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18189echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18190if test $ac_cv_lib_gcc____chkstk = yes; then
18191
18192cat >>confdefs.h <<\_ACEOF
18193#define HAVE____CHKSTK 1
18194_ACEOF
18195
18196fi
18197
18198
18199 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18200echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18201if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18203else
18204 ac_check_lib_save_LIBS=$LIBS
18205LIBS="-lgcc $LIBS"
18206cat >conftest.$ac_ext <<_ACEOF
18207/* confdefs.h. */
18208_ACEOF
18209cat confdefs.h >>conftest.$ac_ext
18210cat >>conftest.$ac_ext <<_ACEOF
18211/* end confdefs.h. */
18212
18213/* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18216#ifdef __cplusplus
18217extern "C"
18218#endif
18219char __ashldi3 ();
18220int
18221main ()
18222{
18223return __ashldi3 ();
18224 ;
18225 return 0;
18226}
18227_ACEOF
18228rm -f conftest.$ac_objext conftest$ac_exeext
18229if { (ac_try="$ac_link"
18230case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233esac
18234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_link") 2>conftest.er1
18236 ac_status=$?
18237 grep -v '^ *+' conftest.er1 >conftest.err
18238 rm -f conftest.er1
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18243 { (case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246esac
18247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_try") 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest$ac_exeext'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_lib_gcc___ashldi3=yes
18263else
18264 echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_cv_lib_gcc___ashldi3=no
18268fi
18269
18270rm -f core conftest.err conftest.$ac_objext \
18271 conftest$ac_exeext conftest.$ac_ext
18272LIBS=$ac_check_lib_save_LIBS
18273fi
18274{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18275echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18276if test $ac_cv_lib_gcc___ashldi3 = yes; then
18277
18278cat >>confdefs.h <<\_ACEOF
18279#define HAVE___ASHLDI3 1
18280_ACEOF
18281
18282fi
18283
18284 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18285echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18286if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288else
18289 ac_check_lib_save_LIBS=$LIBS
18290LIBS="-lgcc $LIBS"
18291cat >conftest.$ac_ext <<_ACEOF
18292/* confdefs.h. */
18293_ACEOF
18294cat confdefs.h >>conftest.$ac_ext
18295cat >>conftest.$ac_ext <<_ACEOF
18296/* end confdefs.h. */
18297
18298/* Override any GCC internal prototype to avoid an error.
18299 Use char because int might match the return type of a GCC
18300 builtin and then its argument prototype would still apply. */
18301#ifdef __cplusplus
18302extern "C"
18303#endif
18304char __ashrdi3 ();
18305int
18306main ()
18307{
18308return __ashrdi3 ();
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest.$ac_objext conftest$ac_exeext
18314if { (ac_try="$ac_link"
18315case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_lib_gcc___ashrdi3=yes
18348else
18349 echo "$as_me: failed program was:" >&5
18350sed 's/^/| /' conftest.$ac_ext >&5
18351
18352 ac_cv_lib_gcc___ashrdi3=no
18353fi
18354
18355rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357LIBS=$ac_check_lib_save_LIBS
18358fi
18359{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18360echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18361if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18362
18363cat >>confdefs.h <<\_ACEOF
18364#define HAVE___ASHRDI3 1
18365_ACEOF
18366
18367fi
18368
18369 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18370echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18371if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373else
18374 ac_check_lib_save_LIBS=$LIBS
18375LIBS="-lgcc $LIBS"
18376cat >conftest.$ac_ext <<_ACEOF
18377/* confdefs.h. */
18378_ACEOF
18379cat confdefs.h >>conftest.$ac_ext
18380cat >>conftest.$ac_ext <<_ACEOF
18381/* end confdefs.h. */
18382
18383/* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18386#ifdef __cplusplus
18387extern "C"
18388#endif
18389char __divdi3 ();
18390int
18391main ()
18392{
18393return __divdi3 ();
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext conftest$ac_exeext
18399if { (ac_try="$ac_link"
18400case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_link") 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413 { (case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416esac
18417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_try") 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest$ac_exeext'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_lib_gcc___divdi3=yes
18433else
18434 echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
18437 ac_cv_lib_gcc___divdi3=no
18438fi
18439
18440rm -f core conftest.err conftest.$ac_objext \
18441 conftest$ac_exeext conftest.$ac_ext
18442LIBS=$ac_check_lib_save_LIBS
18443fi
18444{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18445echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18446if test $ac_cv_lib_gcc___divdi3 = yes; then
18447
18448cat >>confdefs.h <<\_ACEOF
18449#define HAVE___DIVDI3 1
18450_ACEOF
18451
18452fi
18453
18454 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18455echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18456if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458else
18459 ac_check_lib_save_LIBS=$LIBS
18460LIBS="-lgcc $LIBS"
18461cat >conftest.$ac_ext <<_ACEOF
18462/* confdefs.h. */
18463_ACEOF
18464cat confdefs.h >>conftest.$ac_ext
18465cat >>conftest.$ac_ext <<_ACEOF
18466/* end confdefs.h. */
18467
18468/* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18471#ifdef __cplusplus
18472extern "C"
18473#endif
18474char __fixdfdi ();
18475int
18476main ()
18477{
18478return __fixdfdi ();
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext conftest$ac_exeext
18484if { (ac_try="$ac_link"
18485case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18491 ac_status=$?
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_cv_lib_gcc___fixdfdi=yes
18518else
18519 echo "$as_me: failed program was:" >&5
18520sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 ac_cv_lib_gcc___fixdfdi=no
18523fi
18524
18525rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18527LIBS=$ac_check_lib_save_LIBS
18528fi
18529{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18530echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18531if test $ac_cv_lib_gcc___fixdfdi = yes; then
18532
18533cat >>confdefs.h <<\_ACEOF
18534#define HAVE___FIXDFDI 1
18535_ACEOF
18536
18537fi
18538
18539 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18540echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18541if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543else
18544 ac_check_lib_save_LIBS=$LIBS
18545LIBS="-lgcc $LIBS"
18546cat >conftest.$ac_ext <<_ACEOF
18547/* confdefs.h. */
18548_ACEOF
18549cat confdefs.h >>conftest.$ac_ext
18550cat >>conftest.$ac_ext <<_ACEOF
18551/* end confdefs.h. */
18552
18553/* Override any GCC internal prototype to avoid an error.
18554 Use char because int might match the return type of a GCC
18555 builtin and then its argument prototype would still apply. */
18556#ifdef __cplusplus
18557extern "C"
18558#endif
18559char __fixsfdi ();
18560int
18561main ()
18562{
18563return __fixsfdi ();
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
18569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_lib_gcc___fixsfdi=yes
18603else
18604 echo "$as_me: failed program was:" >&5
18605sed 's/^/| /' conftest.$ac_ext >&5
18606
18607 ac_cv_lib_gcc___fixsfdi=no
18608fi
18609
18610rm -f core conftest.err conftest.$ac_objext \
18611 conftest$ac_exeext conftest.$ac_ext
18612LIBS=$ac_check_lib_save_LIBS
18613fi
18614{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18615echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18616if test $ac_cv_lib_gcc___fixsfdi = yes; then
18617
18618cat >>confdefs.h <<\_ACEOF
18619#define HAVE___FIXSFDI 1
18620_ACEOF
18621
18622fi
18623
18624 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18625echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18626if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 ac_check_lib_save_LIBS=$LIBS
18630LIBS="-lgcc $LIBS"
18631cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637
18638/* Override any GCC internal prototype to avoid an error.
18639 Use char because int might match the return type of a GCC
18640 builtin and then its argument prototype would still apply. */
18641#ifdef __cplusplus
18642extern "C"
18643#endif
18644char __floatdidf ();
18645int
18646main ()
18647{
18648return __floatdidf ();
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext conftest$ac_exeext
18654if { (ac_try="$ac_link"
18655case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest$ac_exeext'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_lib_gcc___floatdidf=yes
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 ac_cv_lib_gcc___floatdidf=no
18693fi
18694
18695rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18697LIBS=$ac_check_lib_save_LIBS
18698fi
18699{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18700echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18701if test $ac_cv_lib_gcc___floatdidf = yes; then
18702
18703cat >>confdefs.h <<\_ACEOF
18704#define HAVE___FLOATDIDF 1
18705_ACEOF
18706
18707fi
18708
18709 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18710echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18711if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713else
18714 ac_check_lib_save_LIBS=$LIBS
18715LIBS="-lgcc $LIBS"
18716cat >conftest.$ac_ext <<_ACEOF
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722
18723/* Override any GCC internal prototype to avoid an error.
18724 Use char because int might match the return type of a GCC
18725 builtin and then its argument prototype would still apply. */
18726#ifdef __cplusplus
18727extern "C"
18728#endif
18729char __lshrdi3 ();
18730int
18731main ()
18732{
18733return __lshrdi3 ();
18734 ;
18735 return 0;
18736}
18737_ACEOF
18738rm -f conftest.$ac_objext conftest$ac_exeext
18739if { (ac_try="$ac_link"
18740case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18753 { (case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756esac
18757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_try") 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest$ac_exeext'
18763 { (case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766esac
18767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_try") 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_lib_gcc___lshrdi3=yes
18773else
18774 echo "$as_me: failed program was:" >&5
18775sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_cv_lib_gcc___lshrdi3=no
18778fi
18779
18780rm -f core conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782LIBS=$ac_check_lib_save_LIBS
18783fi
18784{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18785echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18786if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18787
18788cat >>confdefs.h <<\_ACEOF
18789#define HAVE___LSHRDI3 1
18790_ACEOF
18791
18792fi
18793
18794 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18795echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18796if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799 ac_check_lib_save_LIBS=$LIBS
18800LIBS="-lgcc $LIBS"
18801cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h. */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h. */
18807
18808/* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811#ifdef __cplusplus
18812extern "C"
18813#endif
18814char __moddi3 ();
18815int
18816main ()
18817{
18818return __moddi3 ();
18819 ;
18820 return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext conftest$ac_exeext
18824if { (ac_try="$ac_link"
18825case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest$ac_exeext'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_lib_gcc___moddi3=yes
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_cv_lib_gcc___moddi3=no
18863fi
18864
18865rm -f core conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867LIBS=$ac_check_lib_save_LIBS
18868fi
18869{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18870echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18871if test $ac_cv_lib_gcc___moddi3 = yes; then
18872
18873cat >>confdefs.h <<\_ACEOF
18874#define HAVE___MODDI3 1
18875_ACEOF
18876
18877fi
18878
18879 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18880echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18881if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884 ac_check_lib_save_LIBS=$LIBS
18885LIBS="-lgcc $LIBS"
18886cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892
18893/* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18896#ifdef __cplusplus
18897extern "C"
18898#endif
18899char __udivdi3 ();
18900int
18901main ()
18902{
18903return __udivdi3 ();
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext conftest$ac_exeext
18909if { (ac_try="$ac_link"
18910case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913esac
18914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_link") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; } &&
18932 { ac_try='test -s conftest$ac_exeext'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_lib_gcc___udivdi3=yes
18943else
18944 echo "$as_me: failed program was:" >&5
18945sed 's/^/| /' conftest.$ac_ext >&5
18946
18947 ac_cv_lib_gcc___udivdi3=no
18948fi
18949
18950rm -f core conftest.err conftest.$ac_objext \
18951 conftest$ac_exeext conftest.$ac_ext
18952LIBS=$ac_check_lib_save_LIBS
18953fi
18954{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18955echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18956if test $ac_cv_lib_gcc___udivdi3 = yes; then
18957
18958cat >>confdefs.h <<\_ACEOF
18959#define HAVE___UDIVDI3 1
18960_ACEOF
18961
18962fi
18963
18964 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18965echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18966if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968else
18969 ac_check_lib_save_LIBS=$LIBS
18970LIBS="-lgcc $LIBS"
18971cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h. */
18977
18978/* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18981#ifdef __cplusplus
18982extern "C"
18983#endif
18984char __umoddi3 ();
18985int
18986main ()
18987{
18988return __umoddi3 ();
18989 ;
18990 return 0;
18991}
18992_ACEOF
18993rm -f conftest.$ac_objext conftest$ac_exeext
18994if { (ac_try="$ac_link"
18995case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_link") 2>conftest.er1
19001 ac_status=$?
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } &&
19017 { ac_try='test -s conftest$ac_exeext'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19027 ac_cv_lib_gcc___umoddi3=yes
19028else
19029 echo "$as_me: failed program was:" >&5
19030sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ac_cv_lib_gcc___umoddi3=no
19033fi
19034
19035rm -f core conftest.err conftest.$ac_objext \
19036 conftest$ac_exeext conftest.$ac_ext
19037LIBS=$ac_check_lib_save_LIBS
19038fi
19039{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19040echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19041if test $ac_cv_lib_gcc___umoddi3 = yes; then
19042
19043cat >>confdefs.h <<\_ACEOF
19044#define HAVE___UMODDI3 1
19045_ACEOF
19046
19047fi
19048
19049
19050 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19051echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19052if test "${ac_cv_lib_gcc___main+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 ac_check_lib_save_LIBS=$LIBS
19056LIBS="-lgcc $LIBS"
19057cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
19063
19064/* Override any GCC internal prototype to avoid an error.
19065 Use char because int might match the return type of a GCC
19066 builtin and then its argument prototype would still apply. */
19067#ifdef __cplusplus
19068extern "C"
19069#endif
19070char __main ();
19071int
19072main ()
19073{
19074return __main ();
19075 ;
19076 return 0;
19077}
19078_ACEOF
19079rm -f conftest.$ac_objext conftest$ac_exeext
19080if { (ac_try="$ac_link"
19081case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084esac
19085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_link") 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest$ac_exeext'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107esac
19108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_lib_gcc___main=yes
19114else
19115 echo "$as_me: failed program was:" >&5
19116sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 ac_cv_lib_gcc___main=no
19119fi
19120
19121rm -f core conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123LIBS=$ac_check_lib_save_LIBS
19124fi
19125{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19126echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19127if test $ac_cv_lib_gcc___main = yes; then
19128
19129cat >>confdefs.h <<\_ACEOF
19130#define HAVE___MAIN 1
19131_ACEOF
19132
19133fi
19134
19135 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19136echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19137if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139else
19140 ac_check_lib_save_LIBS=$LIBS
19141LIBS="-lgcc $LIBS"
19142cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
19148
19149/* Override any GCC internal prototype to avoid an error.
19150 Use char because int might match the return type of a GCC
19151 builtin and then its argument prototype would still apply. */
19152#ifdef __cplusplus
19153extern "C"
19154#endif
19155char __cmpdi2 ();
19156int
19157main ()
19158{
19159return __cmpdi2 ();
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext conftest$ac_exeext
19165if { (ac_try="$ac_link"
19166case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_link") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182esac
19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_lib_gcc___cmpdi2=yes
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 ac_cv_lib_gcc___cmpdi2=no
19204fi
19205
19206rm -f core conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208LIBS=$ac_check_lib_save_LIBS
19209fi
19210{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19211echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19212if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19213
19214cat >>confdefs.h <<\_ACEOF
19215#define HAVE___CMPDI2 1
19216_ACEOF
19217
19218fi
19219
19220fi
19221
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019222if test "$llvm_cv_os_type" = "MingW" ; then
19223 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19224echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19225 cat >conftest.$ac_ext <<_ACEOF
19226#include <windows.h>
19227#include <imagehlp.h>
19228extern void foo(PENUMLOADED_MODULES_CALLBACK);
19229extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (ac_try="$ac_compile"
19233case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19236esac
19237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_compile") 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19249esac
19250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265
19266 { echo "$as_me:$LINENO: result: yes" >&5
19267echo "${ECHO_T}yes" >&6; }
19268 llvm_cv_win32_elmcb_pcstr="PCSTR"
19269
19270else
19271 echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274
19275 { echo "$as_me:$LINENO: result: no" >&5
19276echo "${ECHO_T}no" >&6; }
19277 llvm_cv_win32_elmcb_pcstr="PSTR"
19278
19279fi
19280
19281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282
19283cat >>confdefs.h <<_ACEOF
19284#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19285_ACEOF
19286
19287fi
19288
Torok Edwin871384f2010-01-26 08:50:50 +000019289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019290{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19291echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19292if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019294else
Reid Spencera773bd52006-08-04 18:18:08 +000019295 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019296ac_cpp='$CXXCPP $CPPFLAGS'
19297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019301 cat >conftest.$ac_ext <<_ACEOF
19302/* confdefs.h. */
19303_ACEOF
19304cat confdefs.h >>conftest.$ac_ext
19305cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019306/* end confdefs.h. */
19307#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019308int
19309main ()
19310{
19311float f; isnan(f);
19312 ;
19313 return 0;
19314}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019316rm -f conftest.$ac_objext
19317if { (ac_try="$ac_compile"
19318case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321esac
19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334esac
19335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019350 ac_cv_func_isnan_in_math_h=yes
19351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019352 echo "$as_me: failed program was:" >&5
19353sed 's/^/| /' conftest.$ac_ext >&5
19354
19355 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019357
Reid Spencera773bd52006-08-04 18:18:08 +000019358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019359 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019360ac_cpp='$CPP $CPPFLAGS'
19361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364
19365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019366{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19367echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019368
19369
19370if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372cat >>confdefs.h <<\_ACEOF
19373#define HAVE_ISNAN_IN_MATH_H 1
19374_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019375
Reid Spencerabec8f92004-10-27 23:03:44 +000019376fi
19377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019378{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19379echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19380if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019382else
Reid Spencera773bd52006-08-04 18:18:08 +000019383 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019384ac_cpp='$CXXCPP $CPPFLAGS'
19385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019389 cat >conftest.$ac_ext <<_ACEOF
19390/* confdefs.h. */
19391_ACEOF
19392cat confdefs.h >>conftest.$ac_ext
19393cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019394/* end confdefs.h. */
19395#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019396int
19397main ()
19398{
19399float f; isnan(f);
19400 ;
19401 return 0;
19402}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019404rm -f conftest.$ac_objext
19405if { (ac_try="$ac_compile"
19406case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409esac
19410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422esac
19423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest.$ac_objext'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019438 ac_cv_func_isnan_in_cmath=yes
19439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445
Reid Spencera773bd52006-08-04 18:18:08 +000019446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019447 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019448ac_cpp='$CPP $CPPFLAGS'
19449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452
19453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019454{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19455echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019456
19457if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459cat >>confdefs.h <<\_ACEOF
19460#define HAVE_ISNAN_IN_CMATH 1
19461_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019462
Reid Spencerabec8f92004-10-27 23:03:44 +000019463fi
19464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019465{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19466echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19467if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019469else
Reid Spencera773bd52006-08-04 18:18:08 +000019470 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019471ac_cpp='$CXXCPP $CPPFLAGS'
19472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019476 cat >conftest.$ac_ext <<_ACEOF
19477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019481/* end confdefs.h. */
19482#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019483int
19484main ()
19485{
19486float f; std::isnan(f);
19487 ;
19488 return 0;
19489}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019490_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019491rm -f conftest.$ac_objext
19492if { (ac_try="$ac_compile"
19493case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019525 ac_cv_func_std_isnan_in_cmath=yes
19526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532
Reid Spencera773bd52006-08-04 18:18:08 +000019533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019534 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019535ac_cpp='$CPP $CPPFLAGS'
19536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539
19540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019541{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19542echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019543
19544if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546cat >>confdefs.h <<\_ACEOF
19547#define HAVE_STD_ISNAN_IN_CMATH 1
19548_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019549
Reid Spencerabec8f92004-10-27 23:03:44 +000019550fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019551
19552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019553{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19554echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19555if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019557else
Reid Spencera773bd52006-08-04 18:18:08 +000019558 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019559ac_cpp='$CXXCPP $CPPFLAGS'
19560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019569/* end confdefs.h. */
19570#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019571int
19572main ()
19573{
19574float f; isinf(f);
19575 ;
19576 return 0;
19577}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019579rm -f conftest.$ac_objext
19580if { (ac_try="$ac_compile"
19581case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584esac
19585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_compile") 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597esac
19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019613 ac_cv_func_isinf_in_math_h=yes
19614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019620
Reid Spencera773bd52006-08-04 18:18:08 +000019621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019622 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019623ac_cpp='$CPP $CPPFLAGS'
19624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019629{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19630echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019631
19632if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634cat >>confdefs.h <<\_ACEOF
19635#define HAVE_ISINF_IN_MATH_H 1
19636_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019637
Reid Spencerabec8f92004-10-27 23:03:44 +000019638fi
19639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19641echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19642if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019644else
Reid Spencera773bd52006-08-04 18:18:08 +000019645 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019646ac_cpp='$CXXCPP $CPPFLAGS'
19647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651 cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019656/* end confdefs.h. */
19657#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019658int
19659main ()
19660{
19661float f; isinf(f);
19662 ;
19663 return 0;
19664}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666rm -f conftest.$ac_objext
19667if { (ac_try="$ac_compile"
19668case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671esac
19672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684esac
19685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694esac
19695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019700 ac_cv_func_isinf_in_cmath=yes
19701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019702 echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
19705 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019707
Reid Spencera773bd52006-08-04 18:18:08 +000019708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019709 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019710ac_cpp='$CPP $CPPFLAGS'
19711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19713ac_compiler_gnu=$ac_cv_c_compiler_gnu
19714
19715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019716{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19717echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019718
19719if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721cat >>confdefs.h <<\_ACEOF
19722#define HAVE_ISINF_IN_CMATH 1
19723_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019724
Reid Spencerabec8f92004-10-27 23:03:44 +000019725fi
19726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019727{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19728echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19729if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019731else
Reid Spencera773bd52006-08-04 18:18:08 +000019732 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019733ac_cpp='$CXXCPP $CPPFLAGS'
19734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019738 cat >conftest.$ac_ext <<_ACEOF
19739/* confdefs.h. */
19740_ACEOF
19741cat confdefs.h >>conftest.$ac_ext
19742cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019743/* end confdefs.h. */
19744#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019745int
19746main ()
19747{
19748float f; std::isinf(f)}
19749 ;
19750 return 0;
19751}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019752_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019753rm -f conftest.$ac_objext
19754if { (ac_try="$ac_compile"
19755case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19758esac
19759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760 (eval "$ac_compile") 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19768 { (case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_try") 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019787 ac_cv_func_std_isinf_in_cmath=yes
19788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019789 echo "$as_me: failed program was:" >&5
19790sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794
Reid Spencera773bd52006-08-04 18:18:08 +000019795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019796 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019797ac_cpp='$CPP $CPPFLAGS'
19798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19800ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801
19802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19804echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019805
19806if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019808cat >>confdefs.h <<\_ACEOF
19809#define HAVE_STD_ISINF_IN_CMATH 1
19810_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019811
Reid Spencerabec8f92004-10-27 23:03:44 +000019812fi
19813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019814{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19815echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19816if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019818else
Reid Spencera773bd52006-08-04 18:18:08 +000019819 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019820ac_cpp='$CXXCPP $CPPFLAGS'
19821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019825 cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019830/* end confdefs.h. */
19831#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019832int
19833main ()
19834{
19835float f; finite(f);
19836 ;
19837 return 0;
19838}
Brian Gaeked59a6472004-07-21 03:33:58 +000019839_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019840rm -f conftest.$ac_objext
19841if { (ac_try="$ac_compile"
19842case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845esac
19846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19855 { (case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858esac
19859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_try") 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019874 ac_cv_func_finite_in_ieeefp_h=yes
19875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019876 echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881
Reid Spencera773bd52006-08-04 18:18:08 +000019882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019883 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019884ac_cpp='$CPP $CPPFLAGS'
19885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19887ac_compiler_gnu=$ac_cv_c_compiler_gnu
19888
19889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19891echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019892
Brian Gaeke6802b552004-10-28 05:06:45 +000019893if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895cat >>confdefs.h <<\_ACEOF
19896#define HAVE_FINITE_IN_IEEEFP_H 1
19897_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019898
Reid Spencerabec8f92004-10-27 23:03:44 +000019899fi
19900
19901
19902
Reid Spencer30fe5262007-01-20 07:48:49 +000019903if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019904
19905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906for ac_header in stdlib.h unistd.h
19907do
19908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914fi
19915ac_res=`eval echo '${'$as_ac_Header'}'`
19916 { echo "$as_me:$LINENO: result: $ac_res" >&5
19917echo "${ECHO_T}$ac_res" >&6; }
19918else
19919 # Is the header compilable?
19920{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19922cat >conftest.$ac_ext <<_ACEOF
19923/* confdefs.h. */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h. */
19928$ac_includes_default
19929#include <$ac_header>
19930_ACEOF
19931rm -f conftest.$ac_objext
19932if { (ac_try="$ac_compile"
19933case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936esac
19937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19946 { (case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19949esac
19950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_try") 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959esac
19960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 ac_header_compiler=yes
19966else
19967 echo "$as_me: failed program was:" >&5
19968sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970 ac_header_compiler=no
19971fi
19972
19973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19975echo "${ECHO_T}$ac_header_compiler" >&6; }
19976
19977# Is the header present?
19978{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h. */
19986#include <$ac_header>
19987_ACEOF
19988if { (ac_try="$ac_cpp conftest.$ac_ext"
19989case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992esac
19993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_c_preproc_warn_flag
20003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20004 else
20005 ac_cpp_err=
20006 fi
20007else
20008 ac_cpp_err=yes
20009fi
20010if test -z "$ac_cpp_err"; then
20011 ac_header_preproc=yes
20012else
20013 echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ac_header_preproc=no
20017fi
20018
20019rm -f conftest.err conftest.$ac_ext
20020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021echo "${ECHO_T}$ac_header_preproc" >&6; }
20022
20023# So? What about this header?
20024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025 yes:no: )
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
20031 ;;
20032 no:yes:* )
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20045 ( cat <<\_ASBOX
20046## ----------------------------------- ##
20047## Report this to llvmbugs@cs.uiuc.edu ##
20048## ----------------------------------- ##
20049_ASBOX
20050 ) | sed "s/^/$as_me: WARNING: /" >&2
20051 ;;
20052esac
20053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057else
20058 eval "$as_ac_Header=\$ac_header_preproc"
20059fi
20060ac_res=`eval echo '${'$as_ac_Header'}'`
20061 { echo "$as_me:$LINENO: result: $ac_res" >&5
20062echo "${ECHO_T}$ac_res" >&6; }
20063
20064fi
20065if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020068_ACEOF
20069
20070fi
20071
20072done
20073
20074
20075for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020076do
20077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20078{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082else
20083 cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20091#define $ac_func innocuous_$ac_func
20092
20093/* System header to define __stub macros and hopefully few prototypes,
20094 which can conflict with char $ac_func (); below.
20095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20096 <limits.h> exists even on freestanding compilers. */
20097
20098#ifdef __STDC__
20099# include <limits.h>
20100#else
20101# include <assert.h>
20102#endif
20103
20104#undef $ac_func
20105
20106/* Override any GCC internal prototype to avoid an error.
20107 Use char because int might match the return type of a GCC
20108 builtin and then its argument prototype would still apply. */
20109#ifdef __cplusplus
20110extern "C"
20111#endif
20112char $ac_func ();
20113/* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116#if defined __stub_$ac_func || defined __stub___$ac_func
20117choke me
20118#endif
20119
20120int
20121main ()
20122{
20123return $ac_func ();
20124 ;
20125 return 0;
20126}
20127_ACEOF
20128rm -f conftest.$ac_objext conftest$ac_exeext
20129if { (ac_try="$ac_link"
20130case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133esac
20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_link") 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest$ac_exeext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156esac
20157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 eval "$as_ac_var=yes"
20163else
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 eval "$as_ac_var=no"
20168fi
20169
20170rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172fi
20173ac_res=`eval echo '${'$as_ac_var'}'`
20174 { echo "$as_me:$LINENO: result: $ac_res" >&5
20175echo "${ECHO_T}$ac_res" >&6; }
20176if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020177 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020179_ACEOF
20180
20181fi
20182done
20183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184{ echo "$as_me:$LINENO: checking for working mmap" >&5
20185echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20186if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020189 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020190 ac_cv_func_mmap_fixed_mapped=no
20191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020192 cat >conftest.$ac_ext <<_ACEOF
20193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020198$ac_includes_default
20199/* malloc might have been renamed as rpl_malloc. */
20200#undef malloc
20201
20202/* Thanks to Mike Haertel and Jim Avera for this test.
20203 Here is a matrix of mmap possibilities:
20204 mmap private not fixed
20205 mmap private fixed at somewhere currently unmapped
20206 mmap private fixed at somewhere already mapped
20207 mmap shared not fixed
20208 mmap shared fixed at somewhere currently unmapped
20209 mmap shared fixed at somewhere already mapped
20210 For private mappings, we should verify that changes cannot be read()
20211 back from the file, nor mmap's back from the file at a different
20212 address. (There have been systems where private was not correctly
20213 implemented like the infamous i386 svr4.0, and systems where the
20214 VM page cache was not coherent with the file system buffer cache
20215 like early versions of FreeBSD and possibly contemporary NetBSD.)
20216 For shared mappings, we should conversely verify that changes get
20217 propagated back to all the places they're supposed to be.
20218
20219 Grep wants private fixed already mapped.
20220 The main things grep needs to know about mmap are:
20221 * does it exist and is it safe to write into the mmap'd area
20222 * how to use it (BSD variants) */
20223
20224#include <fcntl.h>
20225#include <sys/mman.h>
20226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020227#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020228char *malloc ();
20229#endif
20230
20231/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232#if !HAVE_GETPAGESIZE
20233/* Assume that all systems that can run configure have sys/param.h. */
20234# if !HAVE_SYS_PARAM_H
20235# define HAVE_SYS_PARAM_H 1
20236# endif
20237
John Criswell7a73b802003-06-30 21:59:07 +000020238# ifdef _SC_PAGESIZE
20239# define getpagesize() sysconf(_SC_PAGESIZE)
20240# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020242# include <sys/param.h>
20243# ifdef EXEC_PAGESIZE
20244# define getpagesize() EXEC_PAGESIZE
20245# else /* no EXEC_PAGESIZE */
20246# ifdef NBPG
20247# define getpagesize() NBPG * CLSIZE
20248# ifndef CLSIZE
20249# define CLSIZE 1
20250# endif /* no CLSIZE */
20251# else /* no NBPG */
20252# ifdef NBPC
20253# define getpagesize() NBPC
20254# else /* no NBPC */
20255# ifdef PAGESIZE
20256# define getpagesize() PAGESIZE
20257# endif /* PAGESIZE */
20258# endif /* no NBPC */
20259# endif /* no NBPG */
20260# endif /* no EXEC_PAGESIZE */
20261# else /* no HAVE_SYS_PARAM_H */
20262# define getpagesize() 8192 /* punt totally */
20263# endif /* no HAVE_SYS_PARAM_H */
20264# endif /* no _SC_PAGESIZE */
20265
20266#endif /* no HAVE_GETPAGESIZE */
20267
20268int
20269main ()
20270{
20271 char *data, *data2, *data3;
20272 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020274
20275 pagesize = getpagesize ();
20276
20277 /* First, make a file with some known garbage in it. */
20278 data = (char *) malloc (pagesize);
20279 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020280 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020281 for (i = 0; i < pagesize; ++i)
20282 *(data + i) = rand ();
20283 umask (0);
20284 fd = creat ("conftest.mmap", 0600);
20285 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020286 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020287 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020289 close (fd);
20290
20291 /* Next, try to mmap the file at a fixed address which already has
20292 something else allocated at it. If we can, also make sure that
20293 we see the same garbage. */
20294 fd = open ("conftest.mmap", O_RDWR);
20295 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296 return 1;
20297 data2 = (char *) malloc (2 * pagesize);
20298 if (!data2)
20299 return 1;
20300 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020301 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020302 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020303 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020304 for (i = 0; i < pagesize; ++i)
20305 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020307
20308 /* Finally, make sure that changes to the mapped area do not
20309 percolate back to the file as seen by read(). (This is a bug on
20310 some variants of i386 svr4.0.) */
20311 for (i = 0; i < pagesize; ++i)
20312 *(data2 + i) = *(data2 + i) + 1;
20313 data3 = (char *) malloc (pagesize);
20314 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020316 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020318 for (i = 0; i < pagesize; ++i)
20319 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020321 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020322 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020323}
20324_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325rm -f conftest$ac_exeext
20326if { (ac_try="$ac_link"
20327case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330esac
20331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020345 ac_cv_func_mmap_fixed_mapped=yes
20346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347 echo "$as_me: program exited with status $ac_status" >&5
20348echo "$as_me: failed program was:" >&5
20349sed 's/^/| /' conftest.$ac_ext >&5
20350
20351( exit $ac_status )
20352ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354rm -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 +000020355fi
Reid Spencera773bd52006-08-04 18:18:08 +000020356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357
John Criswell7a73b802003-06-30 21:59:07 +000020358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20360echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020361if test $ac_cv_func_mmap_fixed_mapped = yes; then
20362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363cat >>confdefs.h <<\_ACEOF
20364#define HAVE_MMAP 1
20365_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020366
20367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20371echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20372if test "${ac_cv_func_mmap_file+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020374else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020375 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020376ac_cpp='$CPP $CPPFLAGS'
20377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020381 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020382 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 /* confdefs.h. */
20387_ACEOF
20388cat confdefs.h >>conftest.$ac_ext
20389cat >>conftest.$ac_ext <<_ACEOF
20390/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020391
John Criswell7a73b802003-06-30 21:59:07 +000020392#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020393#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020394#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020395
20396int
20397main ()
20398{
John Criswell7a73b802003-06-30 21:59:07 +000020399
20400 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020401 fd = creat ("foo",0777);
20402 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20403 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020404 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020405 ;
20406 return 0;
20407}
John Criswell7a73b802003-06-30 21:59:07 +000020408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020409rm -f conftest$ac_exeext
20410if { (ac_try="$ac_link"
20411case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414esac
20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423esac
20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020429 ac_cv_func_mmap_file=yes
20430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431 echo "$as_me: program exited with status $ac_status" >&5
20432echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435( exit $ac_status )
20436ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438rm -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 +000020439fi
Reid Spencera773bd52006-08-04 18:18:08 +000020440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441
John Criswell7a73b802003-06-30 21:59:07 +000020442 ac_ext=c
20443ac_cpp='$CPP $CPPFLAGS'
20444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448
20449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20451echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020452if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454cat >>confdefs.h <<\_ACEOF
20455#define HAVE_MMAP_FILE
20456_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020457
20458 MMAP_FILE=yes
20459
20460fi
20461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020462 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20463echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20464if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020466else
Reid Spencer582a23c2004-12-29 07:07:57 +000020467 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020468 ac_cv_need_dev_zero_for_mmap=yes
20469 else
20470 ac_cv_need_dev_zero_for_mmap=no
20471 fi
20472
20473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20475echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020476if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478cat >>confdefs.h <<\_ACEOF
20479#define NEED_DEV_ZERO_FOR_MMAP 1
20480_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020481
20482fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020483
Reid Spencer30fe5262007-01-20 07:48:49 +000020484 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20485 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20487echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020488 fi
20489 if test "$ac_cv_func_mmap_file" = "no"
20490 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20492echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020493 fi
John Criswellb13092b2003-07-22 21:00:24 +000020494fi
John Criswell7a73b802003-06-30 21:59:07 +000020495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20497echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020498ac_ext=cpp
20499ac_cpp='$CXXCPP $CPPFLAGS'
20500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020504cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020509/* end confdefs.h. */
20510int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020511 volatile unsigned long val = 1;
20512 __sync_synchronize();
20513 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020514 __sync_add_and_fetch(&val, 1);
20515 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020516 return 0;
20517 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020518
20519_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520rm -f conftest.$ac_objext conftest$ac_exeext
20521if { (ac_try="$ac_link"
20522case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525esac
20526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest$ac_exeext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020554 ac_ext=c
20555ac_cpp='$CPP $CPPFLAGS'
20556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560 { echo "$as_me:$LINENO: result: yes" >&5
20561echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020564#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020566
Owen Andersond4b272b2009-05-18 23:58:51 +000020567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568 echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 { echo "$as_me:$LINENO: result: no" >&5
20572echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020575#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576_ACEOF
20577
20578 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20579echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581
Owen Andersond4b272b2009-05-18 23:58:51 +000020582rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020583 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020584
John Criswell7a73b802003-06-30 21:59:07 +000020585
Nick Lewycky4372e692009-09-29 06:18:23 +000020586if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20588echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20589if test "${llvm_cv_linux_mixed+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020591else
20592 ac_ext=c
20593ac_cpp='$CPP $CPPFLAGS'
20594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598 cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020603/* end confdefs.h. */
20604#ifndef __x86_64__
20605 error: Not x86-64 even if uname says so!
20606 #endif
20607
20608int
20609main ()
20610{
20611
20612 ;
20613 return 0;
20614}
20615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616rm -f conftest.$ac_objext
20617if { (ac_try="$ac_compile"
20618case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621esac
20622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634esac
20635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644esac
20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020650 llvm_cv_linux_mixed=no
20651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657
Nick Lewycky4372e692009-09-29 06:18:23 +000020658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 ac_ext=c
20660ac_cpp='$CPP $CPPFLAGS'
20661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
20665
20666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20668echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020669
20670 if test "$llvm_cv_linux_mixed" = "yes"; then
20671 llvm_cv_target_arch="x86"
20672 ARCH="x86"
20673 fi
20674fi
20675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676
Reid Spencer9372f152007-07-30 20:13:24 +000020677for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020678do
20679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20684else
20685 cat >conftest.$ac_ext <<_ACEOF
20686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
20691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20693#define $ac_func innocuous_$ac_func
20694
20695/* System header to define __stub macros and hopefully few prototypes,
20696 which can conflict with char $ac_func (); below.
20697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20698 <limits.h> exists even on freestanding compilers. */
20699
20700#ifdef __STDC__
20701# include <limits.h>
20702#else
20703# include <assert.h>
20704#endif
20705
20706#undef $ac_func
20707
20708/* Override any GCC internal prototype to avoid an error.
20709 Use char because int might match the return type of a GCC
20710 builtin and then its argument prototype would still apply. */
20711#ifdef __cplusplus
20712extern "C"
20713#endif
20714char $ac_func ();
20715/* The GNU C library defines this for functions which it implements
20716 to always fail with ENOSYS. Some functions are actually named
20717 something starting with __ and the normal name is an alias. */
20718#if defined __stub_$ac_func || defined __stub___$ac_func
20719choke me
20720#endif
20721
20722int
20723main ()
20724{
20725return $ac_func ();
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext conftest$ac_exeext
20731if { (ac_try="$ac_link"
20732case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_link") 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748esac
20749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758esac
20759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 eval "$as_ac_var=yes"
20765else
20766 echo "$as_me: failed program was:" >&5
20767sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 eval "$as_ac_var=no"
20770fi
20771
20772rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20774fi
20775ac_res=`eval echo '${'$as_ac_var'}'`
20776 { echo "$as_me:$LINENO: result: $ac_res" >&5
20777echo "${ECHO_T}$ac_res" >&6; }
20778if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020779 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020781_ACEOF
20782
20783fi
20784done
20785
20786
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020787SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020788
20789
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020790SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20791
20792
Reid Spencere9de0912004-08-20 09:03:57 +000020793# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020794# information into substitutions that will end up in Makefile.config.in
20795# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020796if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020797 prefix="/usr/local"
20798fi
Reid Spencere9de0912004-08-20 09:03:57 +000020799eval LLVM_PREFIX="${prefix}";
20800eval LLVM_BINDIR="${prefix}/bin";
20801eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020802eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020803eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020804eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020805eval LLVM_INCLUDEDIR="${prefix}/include";
20806eval LLVM_INFODIR="${prefix}/info";
20807eval LLVM_MANDIR="${prefix}/man";
20808LLVM_CONFIGTIME=`date`
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020820# Place the various directores into the config.h file as #defines so that we
20821# can know about the installation paths within LLVM.
20822
Reid Spencere9de0912004-08-20 09:03:57 +000020823cat >>confdefs.h <<_ACEOF
20824#define LLVM_PREFIX "$LLVM_PREFIX"
20825_ACEOF
20826
20827
20828cat >>confdefs.h <<_ACEOF
20829#define LLVM_BINDIR "$LLVM_BINDIR"
20830_ACEOF
20831
20832
20833cat >>confdefs.h <<_ACEOF
20834#define LLVM_LIBDIR "$LLVM_LIBDIR"
20835_ACEOF
20836
20837
20838cat >>confdefs.h <<_ACEOF
20839#define LLVM_DATADIR "$LLVM_DATADIR"
20840_ACEOF
20841
20842
20843cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020844#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020845_ACEOF
20846
20847
20848cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020849#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020850_ACEOF
20851
20852
20853cat >>confdefs.h <<_ACEOF
20854#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20855_ACEOF
20856
20857
20858cat >>confdefs.h <<_ACEOF
20859#define LLVM_INFODIR "$LLVM_INFODIR"
20860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_MANDIR "$LLVM_MANDIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20870_ACEOF
20871
20872
Eric Christopher790e11c2007-12-01 00:34:39 +000020873cat >>confdefs.h <<_ACEOF
20874#define LLVM_HOSTTRIPLE "$host"
20875_ACEOF
20876
20877
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020878# Determine which bindings to build.
20879if test "$BINDINGS_TO_BUILD" = auto ; then
20880 BINDINGS_TO_BUILD=""
20881 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20882 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20883 fi
20884fi
20885BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20886
20887
20888# This isn't really configurey, but it avoids having to repeat the list in
20889# other files.
20890ALL_BINDINGS=ocaml
20891
20892
Gordon Henriksenf0915682007-10-02 16:42:22 +000020893# Do any work necessary to ensure that bindings have what they need.
20894binding_prereqs_failed=0
20895for a_binding in $BINDINGS_TO_BUILD ; do
20896 case "$a_binding" in
20897 ocaml)
20898 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20900echo "$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 +000020901 binding_prereqs_failed=1
20902 fi
20903 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20905echo "$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 +000020906 binding_prereqs_failed=1
20907 fi
20908 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20910echo "$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 +000020911 fi
20912 if test "x$with_ocaml_libdir" != xauto ; then
20913 OCAML_LIBDIR=$with_ocaml_libdir
20914
20915 else
20916 ocaml_stdlib="`"$OCAMLC" -where`"
20917 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20918 then
20919 # ocaml stdlib is beneath our prefix; use stdlib
20920 OCAML_LIBDIR=$ocaml_stdlib
20921
20922 else
20923 # ocaml stdlib is outside our prefix; use libdir/ocaml
20924 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20925
20926 fi
20927 fi
20928 ;;
20929 esac
20930done
20931if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20933echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20934 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020935fi
20936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20938echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20939if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020941else
20942 ac_ext=cpp
20943ac_cpp='$CXXCPP $CPPFLAGS'
20944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948 oldcxxflags="$CXXFLAGS"
20949 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020950 cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020955/* end confdefs.h. */
20956
20957int
20958main ()
20959{
20960
20961 ;
20962 return 0;
20963}
20964_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020965rm -f conftest.$ac_objext
20966if { (ac_try="$ac_compile"
20967case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20970esac
20971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20980 { (case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983esac
20984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_try") 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993esac
20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020999 llvm_cv_cxx_visibility_inlines_hidden=yes
21000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021001 echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 CXXFLAGS="$oldcxxflags"
21009 ac_ext=c
21010ac_cpp='$CPP $CPPFLAGS'
21011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21018echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021019if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21020 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21021
21022else
21023 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21024
21025fi
21026
Gordon Henriksenf0915682007-10-02 16:42:22 +000021027
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021028if test "$llvm_cv_link_use_r" = "yes" ; then
21029 RPATH="-Wl,-R"
21030else
21031 RPATH="-Wl,-rpath"
21032fi
21033
21034
21035if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21036 RDYNAMIC="-Wl,-export-dynamic"
21037else
21038 RDYNAMIC=""
21039fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021040
21041
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021042
Eric Christophera1cba682010-08-08 02:44:25 +000021043ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021044
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021045
21046
21047
21048
21049
Douglas Gregor1555a232009-06-16 20:12:29 +000021050ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21051
21052ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21053
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021054ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21055
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021056ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21057
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021058ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021059
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021060
Reid Spencera773bd52006-08-04 18:18:08 +000021061ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021062
Reid Spencerea949cf2006-08-16 00:45:38 +000021063ac_config_files="$ac_config_files llvm.spec"
21064
21065
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021066ac_config_files="$ac_config_files docs/doxygen.cfg"
21067
21068if test -f ${srcdir}/tools/clang/README.txt; then
21069 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21070
21071fi
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021074
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021075ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021076
Reid Spencera773bd52006-08-04 18:18:08 +000021077ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021080
21081
Reid Spencera773bd52006-08-04 18:18:08 +000021082ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021083
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021086
21087
Reid Spencera773bd52006-08-04 18:18:08 +000021088ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
21090
Reid Spencer8b2e1412006-11-17 03:32:33 +000021091ac_config_commands="$ac_config_commands runtime/Makefile"
21092
21093
Reid Spencera773bd52006-08-04 18:18:08 +000021094ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021095
21096
Reid Spencera773bd52006-08-04 18:18:08 +000021097ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021098
21099
Bill Wendlingf24eb392009-01-04 23:12:30 +000021100ac_config_commands="$ac_config_commands unittests/Makefile"
21101
21102
Reid Spencera773bd52006-08-04 18:18:08 +000021103ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021104
21105
Reid Spencera773bd52006-08-04 18:18:08 +000021106ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
21108
Reid Spencera773bd52006-08-04 18:18:08 +000021109ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021110
21111
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021112ac_config_commands="$ac_config_commands bindings/Makefile"
21113
21114
21115ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21116
21117
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021118
John Criswell7a73b802003-06-30 21:59:07 +000021119cat >confcache <<\_ACEOF
21120# This file is a shell script that caches the results of configure
21121# tests run on this system so they can be shared between configure
21122# scripts and configure runs, see configure's option --config-cache.
21123# It is not useful on other systems. If it contains results you don't
21124# want to keep, you may remove or edit it.
21125#
21126# config.status only pays attention to the cache file if you give it
21127# the --recheck option to rerun configure.
21128#
John Criswell0c38eaf2003-09-10 15:17:25 +000021129# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021130# loading this file, other *unset* `ac_cv_foo' will be assigned the
21131# following values.
21132
21133_ACEOF
21134
21135# The following way of writing the cache mishandles newlines in values,
21136# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021137# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021138# Ultrix sh set writes to stderr and can't be redirected directly,
21139# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021140(
21141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21142 eval ac_val=\$$ac_var
21143 case $ac_val in #(
21144 *${as_nl}*)
21145 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021146 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21147echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021148 esac
21149 case $ac_var in #(
21150 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021151 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021152 esac ;;
21153 esac
21154 done
21155
John Criswell7a73b802003-06-30 21:59:07 +000021156 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21158 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159 # `set' does not quote correctly, so add quotes (double-quote
21160 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021161 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021162 "s/'/'\\\\''/g;
21163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021164 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021165 *)
21166 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021168 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021169 esac |
21170 sort
21171) |
John Criswell7a73b802003-06-30 21:59:07 +000021172 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021173 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021174 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021175 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21177 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21179 :end' >>confcache
21180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21181 if test -w "$cache_file"; then
21182 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021183 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21184echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021185 cat confcache >$cache_file
21186 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21188echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021189 fi
21190fi
21191rm -f confcache
21192
21193test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194# Let make expand exec_prefix.
21195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21196
John Criswell7a73b802003-06-30 21:59:07 +000021197DEFS=-DHAVE_CONFIG_H
21198
John Criswell0c38eaf2003-09-10 15:17:25 +000021199ac_libobjs=
21200ac_ltlibobjs=
21201for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21202 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21206 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021209done
21210LIBOBJS=$ac_libobjs
21211
21212LTLIBOBJS=$ac_ltlibobjs
21213
21214
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021215if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21217Usually this means the macro was only invoked conditionally." >&5
21218echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21219Usually this means the macro was only invoked conditionally." >&2;}
21220 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021221fi
21222if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21224Usually this means the macro was only invoked conditionally." >&5
21225echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226Usually this means the macro was only invoked conditionally." >&2;}
21227 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021228fi
John Criswell7a73b802003-06-30 21:59:07 +000021229
21230: ${CONFIG_STATUS=./config.status}
21231ac_clean_files_save=$ac_clean_files
21232ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21234echo "$as_me: creating $CONFIG_STATUS" >&6;}
21235cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021236#! $SHELL
21237# Generated by $as_me.
21238# Run this file to recreate the current configuration.
21239# Compiler output produced by configure, useful for debugging
21240# configure, is in config.log if it exists.
21241
21242debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021243ac_cs_recheck=false
21244ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021245SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248cat >>$CONFIG_STATUS <<\_ACEOF
21249## --------------------- ##
21250## M4sh Initialization. ##
21251## --------------------- ##
21252
21253# Be Bourne compatible
21254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021255 emulate sh
21256 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021258 # is contrary to our usage. Disable this feature.
21259 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021260 setopt NO_GLOB_SUBST
21261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264BIN_SH=xpg4; export BIN_SH # for Tru64
21265DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021266
John Criswell7a73b802003-06-30 21:59:07 +000021267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268# PATH needs CR
21269# Avoid depending upon Character Ranges.
21270as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21272as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21273as_cr_digits='0123456789'
21274as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021275
21276# The user is always right.
21277if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278 echo "#! /bin/sh" >conf$$.sh
21279 echo "exit 0" >>conf$$.sh
21280 chmod +x conf$$.sh
21281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21282 PATH_SEPARATOR=';'
21283 else
21284 PATH_SEPARATOR=:
21285 fi
21286 rm -f conf$$.sh
21287fi
21288
21289# Support unset when possible.
21290if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21291 as_unset=unset
21292else
21293 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021294fi
John Criswell7a73b802003-06-30 21:59:07 +000021295
Reid Spencera773bd52006-08-04 18:18:08 +000021296
21297# IFS
21298# We need space, tab and new line, in precisely that order. Quoting is
21299# there to prevent editors from complaining about space-tab.
21300# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21301# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302as_nl='
21303'
Reid Spencera773bd52006-08-04 18:18:08 +000021304IFS=" "" $as_nl"
21305
21306# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021308 *[\\/]* ) as_myself=$0 ;;
21309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021310for as_dir in $PATH
21311do
21312 IFS=$as_save_IFS
21313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21315done
Reid Spencera773bd52006-08-04 18:18:08 +000021316IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021317
Reid Spencera773bd52006-08-04 18:18:08 +000021318 ;;
21319esac
21320# We did not find ourselves, most probably we were run as `sh COMMAND'
21321# in which case we are not to be found in the path.
21322if test "x$as_myself" = x; then
21323 as_myself=$0
21324fi
21325if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021326 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21327 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021328fi
21329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330# Work around bugs in pre-3.0 UWIN ksh.
21331for as_var in ENV MAIL MAILPATH
21332do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021333done
21334PS1='$ '
21335PS2='> '
21336PS4='+ '
21337
21338# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339for as_var in \
21340 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21341 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21342 LC_TELEPHONE LC_TIME
21343do
21344 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21345 eval $as_var=C; export $as_var
21346 else
21347 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021348 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349done
Torok Edwin871384f2010-01-26 08:50:50 +000021350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021351# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021352if expr a : '\(a\)' >/dev/null 2>&1 &&
21353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21354 as_expr=expr
21355else
21356 as_expr=false
21357fi
21358
21359if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21360 as_basename=basename
21361else
21362 as_basename=false
21363fi
21364
21365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021367as_me=`$as_basename -- "$0" ||
21368$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21369 X"$0" : 'X\(//\)$' \| \
21370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021371echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021372 sed '/^.*\/\([^/][^/]*\)\/*$/{
21373 s//\1/
21374 q
21375 }
21376 /^X\/\(\/\/\)$/{
21377 s//\1/
21378 q
21379 }
21380 /^X\/\(\/\).*/{
21381 s//\1/
21382 q
21383 }
21384 s/.*/./; q'`
21385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386# CDPATH.
21387$as_unset CDPATH
21388
21389
21390
21391 as_lineno_1=$LINENO
21392 as_lineno_2=$LINENO
21393 test "x$as_lineno_1" != "x$as_lineno_2" &&
21394 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21395
21396 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21397 # uniformly replaced by the line number. The first 'sed' inserts a
21398 # line-number line after each line using $LINENO; the second 'sed'
21399 # does the real work. The second script uses 'N' to pair each
21400 # line-number line with the line containing $LINENO, and appends
21401 # trailing '-' during substitution so that $LINENO is not a special
21402 # case at line end.
21403 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21404 # scripts with optimization help from Paolo Bonzini. Blame Lee
21405 # E. McMahon (1931-1989) for sed's syntax. :-)
21406 sed -n '
21407 p
21408 /[$]LINENO/=
21409 ' <$as_myself |
21410 sed '
21411 s/[$]LINENO.*/&-/
21412 t lineno
21413 b
21414 :lineno
21415 N
21416 :loop
21417 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21418 t loop
21419 s/-\n.*//
21420 ' >$as_me.lineno &&
21421 chmod +x "$as_me.lineno" ||
21422 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21423 { (exit 1); exit 1; }; }
21424
21425 # Don't try to exec as it changes $[0], causing all sort of problems
21426 # (the dirname of $[0] is not the place where we might find the
21427 # original and so on. Autoconf is especially sensitive to this).
21428 . "./$as_me.lineno"
21429 # Exit status is that of the last command.
21430 exit
21431}
21432
21433
21434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21435 as_dirname=dirname
21436else
21437 as_dirname=false
21438fi
Reid Spencera773bd52006-08-04 18:18:08 +000021439
21440ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021441case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021442-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021446 esac;;
21447*)
21448 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021449esac
21450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021451if expr a : '\(a\)' >/dev/null 2>&1 &&
21452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21453 as_expr=expr
21454else
21455 as_expr=false
21456fi
21457
John Criswell7a73b802003-06-30 21:59:07 +000021458rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021459if test -d conf$$.dir; then
21460 rm -f conf$$.dir/conf$$.file
21461else
21462 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021463 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465echo >conf$$.file
21466if ln -s conf$$.file conf$$ 2>/dev/null; then
21467 as_ln_s='ln -s'
21468 # ... but there are two gotchas:
21469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21471 # In both cases, we have to default to `cp -p'.
21472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021473 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474elif ln conf$$.file conf$$ 2>/dev/null; then
21475 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021476else
21477 as_ln_s='cp -p'
21478fi
Reid Spencera773bd52006-08-04 18:18:08 +000021479rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21480rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021481
John Criswell0c38eaf2003-09-10 15:17:25 +000021482if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021484else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021485 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021486 as_mkdir_p=false
21487fi
21488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21490# systems may use methods other than mode bits to determine executability.
21491cat >conf$$.file <<_ASEOF
21492#! /bin/sh
21493exit 0
21494_ASEOF
21495chmod +x conf$$.file
21496if test -x conf$$.file >/dev/null 2>&1; then
21497 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021502
21503# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021504as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021505
21506# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021507as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021508
21509
John Criswell7a73b802003-06-30 21:59:07 +000021510exec 6>&1
21511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021512# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021513# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021514# values after options handling.
21515ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021516This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021518
21519 CONFIG_FILES = $CONFIG_FILES
21520 CONFIG_HEADERS = $CONFIG_HEADERS
21521 CONFIG_LINKS = $CONFIG_LINKS
21522 CONFIG_COMMANDS = $CONFIG_COMMANDS
21523 $ $0 $@
21524
Reid Spencera773bd52006-08-04 18:18:08 +000021525on `(hostname || uname -n) 2>/dev/null | sed 1q`
21526"
21527
John Criswell7a73b802003-06-30 21:59:07 +000021528_ACEOF
21529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021530cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021531# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021532config_files="$ac_config_files"
21533config_headers="$ac_config_headers"
21534config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021535
Reid Spencera773bd52006-08-04 18:18:08 +000021536_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021538cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021539ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540\`$as_me' instantiates files from templates according to the
21541current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021544
21545 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546 -V, --version print version number, then exit
21547 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021548 -d, --debug don't remove temporary files
21549 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021550 --file=FILE[:TEMPLATE]
21551 instantiate the configuration file FILE
21552 --header=FILE[:TEMPLATE]
21553 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021554
21555Configuration files:
21556$config_files
21557
21558Configuration headers:
21559$config_headers
21560
John Criswellc764fbc2003-09-06 15:17:13 +000021561Configuration commands:
21562$config_commands
21563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021565
Reid Spencera773bd52006-08-04 18:18:08 +000021566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021567cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021568ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021569llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570configured by $0, generated by GNU Autoconf 2.60,
21571 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021574This config.status script is free software; the Free Software Foundation
21575gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021576
21577ac_pwd='$ac_pwd'
21578srcdir='$srcdir'
21579INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021580_ACEOF
21581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582cat >>$CONFIG_STATUS <<\_ACEOF
21583# If no file are specified by the user, then we need to provide default
21584# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021585ac_need_defaults=:
21586while test $# != 0
21587do
21588 case $1 in
21589 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021592 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021594 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021595 ac_option=$1
21596 ac_optarg=$2
21597 ac_shift=shift
21598 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021599 esac
21600
John Criswell0c38eaf2003-09-10 15:17:25 +000021601 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021602 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21604 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021606 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021607 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021608 debug=: ;;
21609 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021610 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021612 ac_need_defaults=false;;
21613 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021614 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021615 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021616 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021617 --he | --h)
21618 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021619 { echo "$as_me: error: ambiguous option: $1
21620Try \`$0 --help' for more information." >&2
21621 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021622 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21626 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021627
21628 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629 -*) { echo "$as_me: error: unrecognized option: $1
21630Try \`$0 --help' for more information." >&2
21631 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021634 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021635
21636 esac
21637 shift
21638done
21639
John Criswell0c38eaf2003-09-10 15:17:25 +000021640ac_configure_extra_args=
21641
21642if $ac_cs_silent; then
21643 exec 6>/dev/null
21644 ac_configure_extra_args="$ac_configure_extra_args --silent"
21645fi
21646
21647_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021649if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21651 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021652 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021654fi
21655
John Criswell7a73b802003-06-30 21:59:07 +000021656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021658exec 5>>config.log
21659{
21660 echo
21661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21662## Running $as_me. ##
21663_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021665} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021666
Reid Spencera773bd52006-08-04 18:18:08 +000021667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021669#
Reid Spencera773bd52006-08-04 18:18:08 +000021670# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021671#
Reid Spencerc0682832005-02-24 19:05:19 +000021672llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021673
21674_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021677
21678# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021679for ac_config_target in $ac_config_targets
21680do
Reid Spencera773bd52006-08-04 18:18:08 +000021681 case $ac_config_target in
21682 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021683 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021684 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21685 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021686 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021687 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021688 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021689 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021690 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021691 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21692 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021693 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21694 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21695 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21696 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21697 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21698 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021699 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021700 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21701 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021702 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21704 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21705 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021706 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21707 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21710echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21711 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021712 esac
21713done
21714
Reid Spencera773bd52006-08-04 18:18:08 +000021715
John Criswell7a73b802003-06-30 21:59:07 +000021716# If the user did not use the arguments to specify the items to instantiate,
21717# then the envvar interface is used. Set only those that are not.
21718# We use the long form for the default assignment because of an extremely
21719# bizarre bug on SunOS 4.1.3.
21720if $ac_need_defaults; then
21721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021724fi
21725
John Criswell0c38eaf2003-09-10 15:17:25 +000021726# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021727# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021728# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021729# Hook for its removal unless debugging.
21730# Note that there is a small window in which the directory will not be cleaned:
21731# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021732$debug ||
21733{
Reid Spencera773bd52006-08-04 18:18:08 +000021734 tmp=
21735 trap 'exit_status=$?
21736 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21737' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021739}
John Criswell7a73b802003-06-30 21:59:07 +000021740# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021741
John Criswell7a73b802003-06-30 21:59:07 +000021742{
Reid Spencera773bd52006-08-04 18:18:08 +000021743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021744 test -n "$tmp" && test -d "$tmp"
21745} ||
21746{
Reid Spencera773bd52006-08-04 18:18:08 +000021747 tmp=./conf$$-$RANDOM
21748 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021749} ||
21750{
21751 echo "$me: cannot create a temporary directory in ." >&2
21752 { (exit 1); exit 1; }
21753}
John Criswell7a73b802003-06-30 21:59:07 +000021754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755#
21756# Set up the sed scripts for CONFIG_FILES section.
21757#
21758
21759# No need to generate the scripts if there are no CONFIG_FILES.
21760# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021761if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021762
21763_ACEOF
21764
Reid Spencera773bd52006-08-04 18:18:08 +000021765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766
Reid Spencera773bd52006-08-04 18:18:08 +000021767ac_delim='%!_!# '
21768for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769 cat >conf$$subs.sed <<_ACEOF
21770SHELL!$SHELL$ac_delim
21771PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21772PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21773PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21774PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21775PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21776PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21777exec_prefix!$exec_prefix$ac_delim
21778prefix!$prefix$ac_delim
21779program_transform_name!$program_transform_name$ac_delim
21780bindir!$bindir$ac_delim
21781sbindir!$sbindir$ac_delim
21782libexecdir!$libexecdir$ac_delim
21783datarootdir!$datarootdir$ac_delim
21784datadir!$datadir$ac_delim
21785sysconfdir!$sysconfdir$ac_delim
21786sharedstatedir!$sharedstatedir$ac_delim
21787localstatedir!$localstatedir$ac_delim
21788includedir!$includedir$ac_delim
21789oldincludedir!$oldincludedir$ac_delim
21790docdir!$docdir$ac_delim
21791infodir!$infodir$ac_delim
21792htmldir!$htmldir$ac_delim
21793dvidir!$dvidir$ac_delim
21794pdfdir!$pdfdir$ac_delim
21795psdir!$psdir$ac_delim
21796libdir!$libdir$ac_delim
21797localedir!$localedir$ac_delim
21798mandir!$mandir$ac_delim
21799DEFS!$DEFS$ac_delim
21800ECHO_C!$ECHO_C$ac_delim
21801ECHO_N!$ECHO_N$ac_delim
21802ECHO_T!$ECHO_T$ac_delim
21803LIBS!$LIBS$ac_delim
21804build_alias!$build_alias$ac_delim
21805host_alias!$host_alias$ac_delim
21806target_alias!$target_alias$ac_delim
21807LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021808CC!$CC$ac_delim
21809CFLAGS!$CFLAGS$ac_delim
21810LDFLAGS!$LDFLAGS$ac_delim
21811CPPFLAGS!$CPPFLAGS$ac_delim
21812ac_ct_CC!$ac_ct_CC$ac_delim
21813EXEEXT!$EXEEXT$ac_delim
21814OBJEXT!$OBJEXT$ac_delim
21815CXX!$CXX$ac_delim
21816CXXFLAGS!$CXXFLAGS$ac_delim
21817ac_ct_CXX!$ac_ct_CXX$ac_delim
21818CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021820ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21821LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822build!$build$ac_delim
21823build_cpu!$build_cpu$ac_delim
21824build_vendor!$build_vendor$ac_delim
21825build_os!$build_os$ac_delim
21826host!$host$ac_delim
21827host_cpu!$host_cpu$ac_delim
21828host_vendor!$host_vendor$ac_delim
21829host_os!$host_os$ac_delim
21830target!$target$ac_delim
21831target_cpu!$target_cpu$ac_delim
21832target_vendor!$target_vendor$ac_delim
21833target_os!$target_os$ac_delim
21834OS!$OS$ac_delim
21835HOST_OS!$HOST_OS$ac_delim
21836TARGET_OS!$TARGET_OS$ac_delim
21837LINKALL!$LINKALL$ac_delim
21838NOLINKALL!$NOLINKALL$ac_delim
21839LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21840LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21841ARCH!$ARCH$ac_delim
21842ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021843GREP!$GREP$ac_delim
21844EGREP!$EGREP$ac_delim
21845LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21846BUILD_CC!$BUILD_CC$ac_delim
21847BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21848BUILD_CXX!$BUILD_CXX$ac_delim
21849CVSBUILD!$CVSBUILD$ac_delim
21850ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21851ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21852DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21853ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21854EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21855DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21856DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21857JIT!$JIT$ac_delim
21858TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021859ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21861ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021862ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021864ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021865ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021866ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021870 break
21871 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21873echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21874 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021875 else
21876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021877 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021878done
21879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21881if test -n "$ac_eof"; then
21882 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21883 ac_eof=`expr $ac_eof + 1`
21884fi
21885
21886cat >>$CONFIG_STATUS <<_ACEOF
21887cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21888/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890sed '
21891s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21892s/^/s,@/; s/!/@,|#_!!_#|/
21893:n
21894t n
21895s/'"$ac_delim"'$/,g/; t
21896s/$/\\/; p
21897N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21898' >>$CONFIG_STATUS <conf$$subs.sed
21899rm -f conf$$subs.sed
21900cat >>$CONFIG_STATUS <<_ACEOF
21901CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021902_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903
21904
21905ac_delim='%!_!# '
21906for ac_last_try in false false false false false :; do
21907 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021908TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21909LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21910LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021911LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021912LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021913ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021914OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021915EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021916EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021917CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021918BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919NM!$NM$ac_delim
21920ifGNUmake!$ifGNUmake$ac_delim
21921LN_S!$LN_S$ac_delim
21922CMP!$CMP$ac_delim
21923CP!$CP$ac_delim
21924DATE!$DATE$ac_delim
21925FIND!$FIND$ac_delim
21926MKDIR!$MKDIR$ac_delim
21927MV!$MV$ac_delim
21928RANLIB!$RANLIB$ac_delim
21929AR!$AR$ac_delim
21930RM!$RM$ac_delim
21931SED!$SED$ac_delim
21932TAR!$TAR$ac_delim
21933BINPWD!$BINPWD$ac_delim
21934GRAPHVIZ!$GRAPHVIZ$ac_delim
21935DOT!$DOT$ac_delim
21936FDP!$FDP$ac_delim
21937NEATO!$NEATO$ac_delim
21938TWOPI!$TWOPI$ac_delim
21939CIRCO!$CIRCO$ac_delim
21940GV!$GV$ac_delim
21941DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021942XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021943PERL!$PERL$ac_delim
21944HAVE_PERL!$HAVE_PERL$ac_delim
21945INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21946INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21947INSTALL_DATA!$INSTALL_DATA$ac_delim
21948BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021949CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950DOXYGEN!$DOXYGEN$ac_delim
21951GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021952GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953POD2HTML!$POD2HTML$ac_delim
21954POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021955PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956RUNTEST!$RUNTEST$ac_delim
21957TCLSH!$TCLSH$ac_delim
21958ZIP!$ZIP$ac_delim
21959OCAMLC!$OCAMLC$ac_delim
21960OCAMLOPT!$OCAMLOPT$ac_delim
21961OCAMLDEP!$OCAMLDEP$ac_delim
21962OCAMLDOC!$OCAMLDOC$ac_delim
21963GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021964HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021965INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21966INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21967CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21968CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21969LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21971NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21972USE_UDIS86!$USE_UDIS86$ac_delim
21973USE_OPROFILE!$USE_OPROFILE$ac_delim
21974HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21975HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21976MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021978SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21980LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21981LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21982LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21983LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21984LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21985LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21986LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21987LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21988LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21989BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21990ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021991OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21992ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21993RPATH!$RPATH$ac_delim
21994RDYNAMIC!$RDYNAMIC$ac_delim
21995LIBOBJS!$LIBOBJS$ac_delim
21996LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021997_ACEOF
21998
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021999 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000 break
22001 elif $ac_last_try; then
22002 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22003echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22004 { (exit 1); exit 1; }; }
22005 else
22006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22007 fi
22008done
22009
22010ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22011if test -n "$ac_eof"; then
22012 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22013 ac_eof=`expr $ac_eof + 1`
22014fi
22015
22016cat >>$CONFIG_STATUS <<_ACEOF
22017cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022018/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22019_ACEOF
22020sed '
22021s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22022s/^/s,@/; s/!/@,|#_!!_#|/
22023:n
22024t n
22025s/'"$ac_delim"'$/,g/; t
22026s/$/\\/; p
22027N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22028' >>$CONFIG_STATUS <conf$$subs.sed
22029rm -f conf$$subs.sed
22030cat >>$CONFIG_STATUS <<_ACEOF
22031:end
22032s/|#_!!_#|//g
22033CEOF$ac_eof
22034_ACEOF
22035
22036
Reid Spencera773bd52006-08-04 18:18:08 +000022037# VPATH may cause trouble with some makes, so we remove $(srcdir),
22038# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22039# trailing colons and then remove the whole line if VPATH becomes empty
22040# (actually we leave an empty line to preserve line numbers).
22041if test "x$srcdir" = x.; then
22042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22043s/:*\$(srcdir):*/:/
22044s/:*\${srcdir}:*/:/
22045s/:*@srcdir@:*/:/
22046s/^\([^=]*=[ ]*\):*/\1/
22047s/:*$//
22048s/^[^=]*=[ ]*$//
22049}'
22050fi
22051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022053fi # test -n "$CONFIG_FILES"
22054
Reid Spencera773bd52006-08-04 18:18:08 +000022055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022057do
22058 case $ac_tag in
22059 :[FHLC]) ac_mode=$ac_tag; continue;;
22060 esac
22061 case $ac_mode$ac_tag in
22062 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22064echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22065 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022066 :[FH]-) ac_tag=-:-;;
22067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22068 esac
22069 ac_save_IFS=$IFS
22070 IFS=:
22071 set x $ac_tag
22072 IFS=$ac_save_IFS
22073 shift
22074 ac_file=$1
22075 shift
22076
22077 case $ac_mode in
22078 :L) ac_source=$1;;
22079 :[FH])
22080 ac_file_inputs=
22081 for ac_f
22082 do
22083 case $ac_f in
22084 -) ac_f="$tmp/stdin";;
22085 *) # Look for the file first in the build tree, then in the source tree
22086 # (if the path is not absolute). The absolute path cannot be DOS-style,
22087 # because $ac_f cannot contain `:'.
22088 test -f "$ac_f" ||
22089 case $ac_f in
22090 [\\/$]*) false;;
22091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22092 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022093 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22094echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22095 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022096 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022097 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022098 done
22099
22100 # Let's still pretend it is `configure' which instantiates (i.e., don't
22101 # use $as_me), people would be surprised to read:
22102 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 configure_input="Generated from "`IFS=:
22104 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022105 if test x"$ac_file" != x-; then
22106 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107 { echo "$as_me:$LINENO: creating $ac_file" >&5
22108echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022109 fi
22110
22111 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022113 esac
22114 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022115 esac
22116
Reid Spencera773bd52006-08-04 18:18:08 +000022117 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022119 X"$ac_file" : 'X\(//\)[^/]' \| \
22120 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22124 s//\1/
22125 q
22126 }
22127 /^X\(\/\/\)[^/].*/{
22128 s//\1/
22129 q
22130 }
22131 /^X\(\/\/\)$/{
22132 s//\1/
22133 q
22134 }
22135 /^X\(\/\).*/{
22136 s//\1/
22137 q
22138 }
22139 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 { as_dir="$ac_dir"
22141 case $as_dir in #(
22142 -*) as_dir=./$as_dir;;
22143 esac
22144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22145 as_dirs=
22146 while :; do
22147 case $as_dir in #(
22148 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22149 *) as_qdir=$as_dir;;
22150 esac
22151 as_dirs="'$as_qdir' $as_dirs"
22152 as_dir=`$as_dirname -- "$as_dir" ||
22153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154 X"$as_dir" : 'X\(//\)[^/]' \| \
22155 X"$as_dir" : 'X\(//\)$' \| \
22156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22157echo X"$as_dir" |
22158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159 s//\1/
22160 q
22161 }
22162 /^X\(\/\/\)[^/].*/{
22163 s//\1/
22164 q
22165 }
22166 /^X\(\/\/\)$/{
22167 s//\1/
22168 q
22169 }
22170 /^X\(\/\).*/{
22171 s//\1/
22172 q
22173 }
22174 s/.*/./; q'`
22175 test -d "$as_dir" && break
22176 done
22177 test -z "$as_dirs" || eval "mkdir $as_dirs"
22178 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22179echo "$as_me: error: cannot create directory $as_dir" >&2;}
22180 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022181 ac_builddir=.
22182
Reid Spencera773bd52006-08-04 18:18:08 +000022183case "$ac_dir" in
22184.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22185*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022187 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022188 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022189 case $ac_top_builddir_sub in
22190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22192 esac ;;
22193esac
22194ac_abs_top_builddir=$ac_pwd
22195ac_abs_builddir=$ac_pwd$ac_dir_suffix
22196# for backward compatibility:
22197ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022198
22199case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022200 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022201 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022202 ac_top_srcdir=$ac_top_builddir_sub
22203 ac_abs_top_srcdir=$ac_pwd ;;
22204 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022205 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022206 ac_top_srcdir=$srcdir
22207 ac_abs_top_srcdir=$srcdir ;;
22208 *) # Relative name.
22209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22210 ac_top_srcdir=$ac_top_build_prefix$srcdir
22211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022212esac
Reid Spencera773bd52006-08-04 18:18:08 +000022213ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022214
John Criswell7a73b802003-06-30 21:59:07 +000022215
Reid Spencera773bd52006-08-04 18:18:08 +000022216 case $ac_mode in
22217 :F)
22218 #
22219 # CONFIG_FILE
22220 #
John Criswell7a73b802003-06-30 21:59:07 +000022221
22222 case $INSTALL in
22223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022225 esac
John Criswell7a73b802003-06-30 21:59:07 +000022226_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022229# If the template does not know about datarootdir, expand it.
22230# FIXME: This hack should be removed a few years after 2.60.
22231ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232
22233case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022234 p
22235 q
22236}
22237/@datadir@/p
22238/@docdir@/p
22239/@infodir@/p
22240/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022241/@mandir@/p
22242' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022243*datarootdir*) ac_datarootdir_seen=yes;;
22244*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022245 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22246echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022249 ac_datarootdir_hack='
22250 s&@datadir@&$datadir&g
22251 s&@docdir@&$docdir&g
22252 s&@infodir@&$infodir&g
22253 s&@localedir@&$localedir&g
22254 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022255 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022256esac
22257_ACEOF
22258
22259# Neutralize VPATH when `$srcdir' = `.'.
22260# Shell code in configure.ac might set extrasub.
22261# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262cat >>$CONFIG_STATUS <<_ACEOF
22263 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022264$extrasub
22265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022266cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022267:t
22268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022270s&@top_builddir@&$ac_top_builddir_sub&;t t
22271s&@srcdir@&$ac_srcdir&;t t
22272s&@abs_srcdir@&$ac_abs_srcdir&;t t
22273s&@top_srcdir@&$ac_top_srcdir&;t t
22274s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22275s&@builddir@&$ac_builddir&;t t
22276s&@abs_builddir@&$ac_abs_builddir&;t t
22277s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22278s&@INSTALL@&$ac_INSTALL&;t t
22279$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022280" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022281
Reid Spencera773bd52006-08-04 18:18:08 +000022282test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022286which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022288which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022289
Reid Spencera773bd52006-08-04 18:18:08 +000022290 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022291 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292 -) cat "$tmp/out"; rm -f "$tmp/out";;
22293 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22294 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022295 ;;
22296 :H)
22297 #
22298 # CONFIG_HEADER
22299 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022300_ACEOF
22301
22302# Transform confdefs.h into a sed script `conftest.defines', that
22303# substitutes the proper values into config.h.in to produce config.h.
22304rm -f conftest.defines conftest.tail
22305# First, append a space to every undef/define line, to ease matching.
22306echo 's/$/ /' >conftest.defines
22307# Then, protect against being on the right side of a sed subst, or in
22308# an unquoted here document, in config.status. If some macros were
22309# called several times there might be several #defines for the same
22310# symbol, which is useless. But do not sort them, since the last
22311# AC_DEFINE must be honored.
22312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22313# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22314# NAME is the cpp macro being defined, VALUE is the value it is being given.
22315# PARAMS is the parameter list in the macro definition--in most cases, it's
22316# just an empty string.
22317ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22318ac_dB='\\)[ (].*,\\1define\\2'
22319ac_dC=' '
22320ac_dD=' ,'
22321
22322uniq confdefs.h |
22323 sed -n '
22324 t rset
22325 :rset
22326 s/^[ ]*#[ ]*define[ ][ ]*//
22327 t ok
22328 d
22329 :ok
22330 s/[\\&,]/\\&/g
22331 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22332 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22333 ' >>conftest.defines
22334
22335# Remove the space that was appended to ease matching.
22336# Then replace #undef with comments. This is necessary, for
22337# example, in the case of _POSIX_SOURCE, which is predefined and required
22338# on some systems where configure will not decide to define it.
22339# (The regexp can be short, since the line contains either #define or #undef.)
22340echo 's/ $//
22341s,^[ #]*u.*,/* & */,' >>conftest.defines
22342
22343# Break up conftest.defines:
22344ac_max_sed_lines=50
22345
22346# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22347# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22348# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22349# et cetera.
22350ac_in='$ac_file_inputs'
22351ac_out='"$tmp/out1"'
22352ac_nxt='"$tmp/out2"'
22353
22354while :
22355do
22356 # Write a here document:
22357 cat >>$CONFIG_STATUS <<_ACEOF
22358 # First, check the format of the line:
22359 cat >"\$tmp/defines.sed" <<\\CEOF
22360/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22361/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22362b
22363:def
22364_ACEOF
22365 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22366 echo 'CEOF
22367 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22368 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22369 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22370 grep . conftest.tail >/dev/null || break
22371 rm -f conftest.defines
22372 mv conftest.tail conftest.defines
22373done
22374rm -f conftest.defines conftest.tail
22375
22376echo "ac_result=$ac_in" >>$CONFIG_STATUS
22377cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022378 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379 echo "/* $configure_input */" >"$tmp/config.h"
22380 cat "$ac_result" >>"$tmp/config.h"
22381 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22382 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22383echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022384 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022385 rm -f $ac_file
22386 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022387 fi
22388 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389 echo "/* $configure_input */"
22390 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022391 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022393 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22396echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022397 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022398 esac
John Criswell7a73b802003-06-30 21:59:07 +000022399
Reid Spencera773bd52006-08-04 18:18:08 +000022400
22401 case $ac_file$ac_mode in
22402 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022404 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022406 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022408 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022410 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022412 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022414 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022416 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022418 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022420 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022422 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022424 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022426 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022427 ${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 +000022428
22429 esac
22430done # for ac_tag
22431
John Criswell7a73b802003-06-30 21:59:07 +000022432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022433{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022435chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022436ac_clean_files=$ac_clean_files_save
22437
22438
22439# configure is writing to config.log, and then calls config.status.
22440# config.status does its own redirection, appending to config.log.
22441# Unfortunately, on DOS this fails, as config.log is still kept open
22442# by configure, so config.status won't be able to write to it; its
22443# output is simply discarded. So we exec the FD to /dev/null,
22444# effectively closing config.log, so it can be properly (re)opened and
22445# appended to by config.status. When coming back to configure, we
22446# need to make the FD available again.
22447if test "$no_create" != yes; then
22448 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022449 ac_config_status_args=
22450 test "$silent" = yes &&
22451 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022452 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022454 exec 5>>config.log
22455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22456 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022457 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022458fi
22459
John Criswell12399a12003-09-30 15:55:44 +000022460#
22461# CONFIG_SUBDIRS section.
22462#
22463if test "$no_recursion" != yes; then
22464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022465 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022466 ac_sub_configure_args=
22467 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022468 eval "set x $ac_configure_args"
22469 shift
22470 for ac_arg
22471 do
John Criswell12399a12003-09-30 15:55:44 +000022472 if test -n "$ac_prev"; then
22473 ac_prev=
22474 continue
22475 fi
22476 case $ac_arg in
22477 -cache-file | --cache-file | --cache-fil | --cache-fi \
22478 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22479 ac_prev=cache_file ;;
22480 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22481 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22482 | --c=*)
22483 ;;
22484 --config-cache | -C)
22485 ;;
22486 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22487 ac_prev=srcdir ;;
22488 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22489 ;;
22490 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22491 ac_prev=prefix ;;
22492 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22493 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022494 *)
22495 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022496 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022497 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022498 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022499 esac
22500 done
22501
22502 # Always prepend --prefix to ensure using the same prefix
22503 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022504 ac_arg="--prefix=$prefix"
22505 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022507 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022508 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022509
22510 ac_popdir=`pwd`
22511 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22512
22513 # Do not complain, so a configure script can configure whichever
22514 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022515 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022516
Reid Spencera773bd52006-08-04 18:18:08 +000022517 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518 echo "$as_me:$LINENO: $ac_msg" >&5
22519 echo "$ac_msg" >&6
22520 { as_dir="$ac_dir"
22521 case $as_dir in #(
22522 -*) as_dir=./$as_dir;;
22523 esac
22524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22525 as_dirs=
22526 while :; do
22527 case $as_dir in #(
22528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529 *) as_qdir=$as_dir;;
22530 esac
22531 as_dirs="'$as_qdir' $as_dirs"
22532 as_dir=`$as_dirname -- "$as_dir" ||
22533$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$as_dir" : 'X\(//\)[^/]' \| \
22535 X"$as_dir" : 'X\(//\)$' \| \
22536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22537echo X"$as_dir" |
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539 s//\1/
22540 q
22541 }
22542 /^X\(\/\/\)[^/].*/{
22543 s//\1/
22544 q
22545 }
22546 /^X\(\/\/\)$/{
22547 s//\1/
22548 q
22549 }
22550 /^X\(\/\).*/{
22551 s//\1/
22552 q
22553 }
22554 s/.*/./; q'`
22555 test -d "$as_dir" && break
22556 done
22557 test -z "$as_dirs" || eval "mkdir $as_dirs"
22558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022561 ac_builddir=.
22562
Reid Spencera773bd52006-08-04 18:18:08 +000022563case "$ac_dir" in
22564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22565*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022567 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022569 case $ac_top_builddir_sub in
22570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22572 esac ;;
22573esac
22574ac_abs_top_builddir=$ac_pwd
22575ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576# for backward compatibility:
22577ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022578
22579case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022580 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022581 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022582 ac_top_srcdir=$ac_top_builddir_sub
22583 ac_abs_top_srcdir=$ac_pwd ;;
22584 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022585 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022586 ac_top_srcdir=$srcdir
22587 ac_abs_top_srcdir=$srcdir ;;
22588 *) # Relative name.
22589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590 ac_top_srcdir=$ac_top_build_prefix$srcdir
22591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022592esac
Reid Spencera773bd52006-08-04 18:18:08 +000022593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022594
22595
Reid Spencera773bd52006-08-04 18:18:08 +000022596 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022597
22598 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022599 if test -f "$ac_srcdir/configure.gnu"; then
22600 ac_sub_configure=$ac_srcdir/configure.gnu
22601 elif test -f "$ac_srcdir/configure"; then
22602 ac_sub_configure=$ac_srcdir/configure
22603 elif test -f "$ac_srcdir/configure.in"; then
22604 # This should be Cygnus configure.
22605 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022606 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022607 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22608echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022609 ac_sub_configure=
22610 fi
22611
22612 # The recursion is here.
22613 if test -n "$ac_sub_configure"; then
22614 # Make the cache file name correct relative to the subdirectory.
22615 case $cache_file in
22616 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022617 *) # Relative name.
22618 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022619 esac
22620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022621 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22622echo "$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 +000022623 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022624 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22625 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022626 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22627echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22628 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022629 fi
22630
Reid Spencera773bd52006-08-04 18:18:08 +000022631 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022632 done
22633fi
22634