blob: 5060b22593dc016997f023f2ecaefe31d7036a42 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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 Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
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
Daniel Dunbar98515672010-02-23 10:00:49 +0000708CLANGPATH
709CLANGXXPATH
710ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711OPTIMIZE_OPTION
712EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000713EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
Daniel Dunbar98515672010-02-23 10:00:49 +0000766LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000775SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000794ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000802CXX
803CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000804CCC
805CPP'
John Criswell0157f502010-03-19 21:31:39 +0000806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000813projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-java
816projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000817projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000818projects/llvm-kernel
819tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -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 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001321\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001387 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001394 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001422 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1423 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001428 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001429 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar98515672010-02-23 10:00:49 +00001434 --with-clang Specify location of clang compiler (default is
1435 --with-built-clang)
1436 --with-built-clang Use the compiled Clang as the LLVM compiler
1437 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001438 --with-optimize-option Select the compiler options to use for optimized
1439 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001440 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001441 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001444 --with-clang-resource-dir
1445 Relative directory from the Clang binary for
1446 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001447 --with-c-include-dirs Colon separated list of directories clang will
1448 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001449 --with-cxx-include-root Directory with the libstdc++ headers.
1450 --with-cxx-include-arch Architecture of the libstdc++ headers.
1451 --with-cxx-include-32bit-dir
1452 32 bit multilib dir.
1453 --with-cxx-include-64bit-dir
1454 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001457 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001458 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001459 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001460 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1461 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001462 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001467 CC C compiler command
1468 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001472 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001475 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <llvmbugs@cs.uiuc.edu>.
1481_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001482ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001489 ac_builddir=.
1490
Reid Spencera773bd52006-08-04 18:18:08 +00001491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001495 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001506
1507case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001508 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001513 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001520esac
Reid Spencera773bd52006-08-04 18:18:08 +00001521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001522
Reid Spencera773bd52006-08-04 18:18:08 +00001523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001531 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001535 done
1536fi
1537
Reid Spencera773bd52006-08-04 18:18:08 +00001538test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001539if $ac_init_version; then
1540 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001541llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001548
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001549Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001551 exit
John Criswell7a73b802003-06-30 21:59:07 +00001552fi
Reid Spencera773bd52006-08-04 18:18:08 +00001553cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001554This file contains any messages produced by compilers while
1555running configure, to aid debugging if configure makes a mistake.
1556
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001557It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001558generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560 $ $0 $@
1561
1562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001563exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001564{
1565cat <<_ASUNAME
1566## --------- ##
1567## Platform. ##
1568## --------- ##
1569
1570hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578
1579/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001582/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001583/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586
1587_ASUNAME
1588
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001594 echo "PATH: $as_dir"
1595done
Reid Spencera773bd52006-08-04 18:18:08 +00001596IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598} >&5
1599
1600cat >&5 <<_ACEOF
1601
1602
1603## ----------- ##
1604## Core tests. ##
1605## ----------- ##
1606
1607_ACEOF
1608
1609
1610# Keep a trace of the command line.
1611# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001612# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001613# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001614# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001615ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001616ac_configure_args0=
1617ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001618ac_must_keep_next=false
1619for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001620do
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 for ac_arg
1622 do
1623 case $ac_arg in
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1627 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001628 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 esac
1631 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001636 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638 case $ac_arg in
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 esac
1646 ;;
1647 -* ) ac_must_keep_next=true ;;
1648 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001651 ;;
1652 esac
1653 done
John Criswell7a73b802003-06-30 21:59:07 +00001654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001655$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656$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 +00001657
1658# When interrupted or exit'd, cleanup temporary files, and complete
1659# config.log. We remove comments because anyway the quotes in there
1660# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001661# WARNING: Use '\'' to represent an apostrophe within the trap.
1662# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001663trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1665 {
1666 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001667
John Criswell7a73b802003-06-30 21:59:07 +00001668 cat <<\_ASBOX
1669## ---------------- ##
1670## Cache variables. ##
1671## ---------------- ##
1672_ASBOX
1673 echo
1674 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001675(
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in #(
1679 *${as_nl}*)
1680 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac
1684 case $ac_var in #(
1685 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001686 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001687 esac ;;
1688 esac
1689 done
John Criswell7a73b802003-06-30 21:59:07 +00001690 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001693 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001697 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac |
1701 sort
1702)
John Criswell7a73b802003-06-30 21:59:07 +00001703 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001704
1705 cat <<\_ASBOX
1706## ----------------- ##
1707## Output variables. ##
1708## ----------------- ##
1709_ASBOX
1710 echo
1711 for ac_var in $ac_subst_vars
1712 do
Reid Spencera773bd52006-08-04 18:18:08 +00001713 eval ac_val=\$$ac_var
1714 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001716 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 done | sort
1719 echo
1720
1721 if test -n "$ac_subst_files"; then
1722 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001723## ------------------- ##
1724## File substitutions. ##
1725## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_files
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737 fi
1738
John Criswell7a73b802003-06-30 21:59:07 +00001739 if test -s confdefs.h; then
1740 cat <<\_ASBOX
1741## ----------- ##
1742## confdefs.h. ##
1743## ----------- ##
1744_ASBOX
1745 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001746 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001747 echo
1748 fi
1749 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001752 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001755 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001756' 0
John Criswell7a73b802003-06-30 21:59:07 +00001757for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001759done
1760ac_signal=0
1761
1762# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001763rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764
1765# Predefined preprocessor variables.
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_NAME "$PACKAGE_NAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_VERSION "$PACKAGE_VERSION"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_STRING "$PACKAGE_STRING"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789_ACEOF
1790
1791
1792# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001794if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001796elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802shift
1803for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001804do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001808 sed 's/^/| /' "$ac_site_file" >&5
1809 . "$ac_site_file"
1810 fi
1811done
1812
1813if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001822 esac
1823 fi
1824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001827 >$cache_file
1828fi
1829
1830# Check that the precious variables saved in the cache have kept the same
1831# value.
1832ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001833for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001838 case $ac_old_set,$ac_new_set in
1839 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001846 ac_cache_corrupted=: ;;
1847 ,);;
1848 *)
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001857 fi;;
1858 esac
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1861 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 *) ac_arg=$ac_var=$ac_new_val ;;
1864 esac
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001868 esac
1869 fi
1870done
1871if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
Reid Spencera773bd52006-08-04 18:18:08 +00001902
John Criswell7a73b802003-06-30 21:59:07 +00001903ac_ext=c
1904ac_cpp='$CPP $CPPFLAGS'
1905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001911LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001912
1913
1914
1915
1916
1917
1918
John Criswell7a73b802003-06-30 21:59:07 +00001919ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001920for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001921 if test -f "$ac_dir/install-sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 break
1925 elif test -f "$ac_dir/install.sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 break
1929 elif test -f "$ac_dir/shtool"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1932 break
1933 fi
John Criswell7a73b802003-06-30 21:59:07 +00001934done
1935if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001939fi
Reid Spencera773bd52006-08-04 18:18:08 +00001940
1941# These three variables are undocumented and unsupported,
1942# and are intended to be withdrawn in a future Autoconf release.
1943# They can cause serious problems if a builder's source tree is in a directory
1944# whose full name contains unusual characters.
1945ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948
John Criswell7a73b802003-06-30 21:59:07 +00001949
John Criswell392aaa32003-07-22 19:18:09 +00001950
Reid Spencer2706f8c2004-09-19 23:53:36 +00001951if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001956 fi
John Criswell93e1c722003-09-15 17:04:06 +00001957fi
1958
Nick Lewycky83fc4472009-09-29 05:48:51 +00001959ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001964if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001965 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001966 do
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001973else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001976else
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 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 +00001984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001986 break 2
1987 fi
1988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989done
Reid Spencera773bd52006-08-04 18:18:08 +00001990IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001991
1992fi
1993fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994CC=$ac_cv_prog_CC
1995if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 { echo "$as_me:$LINENO: result: $CC" >&5
1997echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001fi
2002
Reid Spencera773bd52006-08-04 18:18:08 +00002003
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002005 done
2006fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007if test -z "$CC"; then
2008 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002009 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002010do
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002017else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 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 +00002028 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002030 break 2
2031 fi
2032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033done
Reid Spencera773bd52006-08-04 18:18:08 +00002034IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002035
2036fi
2037fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045fi
2046
Reid Spencera773bd52006-08-04 18:18:08 +00002047
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002049done
John Criswell7a73b802003-06-30 21:59:07 +00002050
Reid Spencera773bd52006-08-04 18:18:08 +00002051 if test "x$ac_ct_CC" = x; then
2052 CC=""
2053 else
2054 case $cross_compiling:$ac_tool_warned in
2055yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057whose name does not start with the host triplet. If you think this
2058configuration is useful to you, please write to autoconf@gnu.org." >&5
2059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002062ac_tool_warned=yes ;;
2063esac
2064 CC=$ac_ct_CC
2065 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066fi
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074
John Criswell7a73b802003-06-30 21:59:07 +00002075# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076echo "$as_me:$LINENO: checking for C compiler version" >&5
2077ac_compiler=`set X $ac_compile; echo $2`
2078{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002079case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002085 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088{ (ac_try="$ac_compiler -v >&5"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098{ (ac_try="$ac_compiler -V >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h. */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116int
2117main ()
2118{
2119
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002126# Try to create an executable without -o first, disregard a.out.
2127# It will help us diagnose broken compilers, and finding out an intuition
2128# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132#
2133# List of possible output files, starting from the most likely.
2134# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135# only as a last resort. b.out is created by i960 compilers.
2136ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137#
2138# The IRIX 6 linker writes into existing files which may not be
2139# executable, retaining their permissions. Remove them first so a
2140# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002141ac_rmfiles=
2142for ac_file in $ac_files
2143do
2144 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147 esac
2148done
2149rm -f $ac_rmfiles
2150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002157 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002158 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163# in a Makefile. We should not override ac_cv_exeext if it was cached,
2164# so that the user can short-circuit this test for compilers unknown to
2165# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002167do
2168 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002169 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002171 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002172 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002173 # We found the default executable, but exeext='' is most
2174 # certainly right.
2175 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002176 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002178 then :; else
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 fi
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2185 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002189 esac
2190done
Reid Spencera773bd52006-08-04 18:18:08 +00002191test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
John Criswell7a73b802003-06-30 21:59:07 +00002193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002195sed 's/^/| /' conftest.$ac_ext >&5
2196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: C compiler cannot create executables
2200See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002202fi
John Criswell7a73b802003-06-30 21:59:07 +00002203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204ac_exeext=$ac_cv_exeext
2205{ echo "$as_me:$LINENO: result: $ac_file" >&5
2206echo "${ECHO_T}$ac_file" >&6; }
2207
2208# Check that the compiler produces executables we can run. If not, either
2209# the compiler is broken, or we cross compile.
2210{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213# If not cross compiling, check that we can run a simple program.
2214if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219esac
2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 cross_compiling=no
2226 else
2227 if test "$cross_compiling" = maybe; then
2228 cross_compiling=yes
2229 else
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237 fi
2238 fi
2239fi
2240{ echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6; }
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002244ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002245# Check that the compiler produces executables we can run. If not, either
2246# the compiler is broken, or we cross compile.
2247{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002255case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002260 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002261 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266# work properly (i.e., refer to `conftest.exe'), while it won't with
2267# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002268for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002270 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 * ) break;;
2275 esac
2276done
2277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284
2285rm -f conftest$ac_cv_exeext
2286{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297 cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h. */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002303
John Criswell7a73b802003-06-30 21:59:07 +00002304int
2305main ()
2306{
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002319 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002320 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002325 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 break;;
2329 esac
2330done
2331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002333sed 's/^/| /' conftest.$ac_ext >&5
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341
John Criswell7a73b802003-06-30 21:59:07 +00002342rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002346OBJEXT=$ac_cv_objext
2347ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002359
John Criswell7a73b802003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363#ifndef __GNUC__
2364 choke me
2365#endif
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371rm -f conftest.$ac_objext
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002405 ac_compiler_gnu=yes
2406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412
Reid Spencera773bd52006-08-04 18:18:08 +00002413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002415
2416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420ac_test_CFLAGS=${CFLAGS+set}
2421ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002426else
Reid Spencera773bd52006-08-04 18:18:08 +00002427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2429 ac_cv_prog_cc_g=no
2430 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002437
John Criswell7a73b802003-06-30 21:59:07 +00002438int
2439main ()
2440{
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446rm -f conftest.$ac_objext
2447if { (ac_try="$ac_compile"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 CFLAGS=""
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002491/* end confdefs.h. */
2492
2493int
2494main ()
2495{
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002501rm -f conftest.$ac_objext
2502if { (ac_try="$ac_compile"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 :
Torok Edwin871384f2010-01-26 08:50:50 +00002536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002541 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002542 cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002547/* end confdefs.h. */
2548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557rm -f conftest.$ac_objext
2558if { (ac_try="$ac_compile"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
John Criswell7a73b802003-06-30 21:59:07 +00002597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598
Reid Spencera773bd52006-08-04 18:18:08 +00002599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2614 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002615 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002617 fi
2618else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 if test "$GCC" = yes; then
2620 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002621 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002623 fi
2624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629else
Reid Spencera773bd52006-08-04 18:18:08 +00002630 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637/* end confdefs.h. */
2638#include <stdarg.h>
2639#include <stdio.h>
2640#include <sys/types.h>
2641#include <sys/stat.h>
2642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643struct buf { int x; };
2644FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645static char *e (p, i)
2646 char **p;
2647 int i;
2648{
2649 return p[i];
2650}
2651static char *f (char * (*g) (char **, int), char **p, ...)
2652{
2653 char *s;
2654 va_list v;
2655 va_start (v,p);
2656 s = g (p, va_arg (v,int));
2657 va_end (v);
2658 return s;
2659}
2660
2661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002664 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002667 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
Reid Spencera773bd52006-08-04 18:18:08 +00002670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2672#define FOO(x) 'x'
2673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675int test (int i, double x);
2676struct s1 {int (*f) (int a);};
2677struct s2 {int (*f) (double a);};
2678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679int argc;
2680char **argv;
2681int
2682main ()
2683{
2684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2685 ;
2686 return 0;
2687}
2688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691do
2692 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693 rm -f conftest.$ac_objext
2694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002727 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734
Reid Spencera773bd52006-08-04 18:18:08 +00002735rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737done
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739CC=$ac_save_CC
2740
2741fi
Reid Spencera773bd52006-08-04 18:18:08 +00002742# AC_CACHE_VAL
2743case "x$ac_cv_prog_cc_c89" in
2744 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745 { echo "$as_me:$LINENO: result: none needed" >&5
2746echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002747 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002751 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754esac
2755
John Criswell0c38eaf2003-09-10 15:17:25 +00002756
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757ac_ext=c
2758ac_cpp='$CPP $CPPFLAGS'
2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
Eric Christopherffee5722011-09-16 20:36:25 +00002763ac_ext=cpp
2764ac_cpp='$CXXCPP $CPPFLAGS'
2765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2770 CXX=$CCC
2771 else
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2774 do
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CXX=$ac_cv_prog_CXX
2803if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805echo "${ECHO_T}$CXX" >&6; }
2806else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6; }
2809fi
2810
2811
2812 test -n "$CXX" && break
2813 done
2814fi
2815if test -z "$CXX"; then
2816 ac_ct_CXX=$CXX
2817 for ac_prog in clang++ llvm-g++ g++
2818do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820set dummy $ac_prog; ac_word=$2
2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840done
2841done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6; }
2853fi
2854
2855
2856 test -n "$ac_ct_CXX" && break
2857done
2858
2859 if test "x$ac_ct_CXX" = x; then
2860 CXX="g++"
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863yes:)
2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865whose name does not start with the host triplet. If you think this
2866configuration is useful to you, please write to autoconf@gnu.org." >&5
2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872 CXX=$ac_ct_CXX
2873 fi
2874fi
2875
2876 fi
2877fi
2878# Provide some information about the compiler.
2879echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880ac_compiler=`set X $ac_compile; echo $2`
2881{ (ac_try="$ac_compiler --version >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891{ (ac_try="$ac_compiler -v >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901{ (ac_try="$ac_compiler -V >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911
2912{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927#ifndef __GNUC__
2928 choke me
2929#endif
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (ac_try="$ac_compile"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_compiler_gnu=yes
2970else
2971 echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 ac_compiler_gnu=no
2975fi
2976
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983GXX=`test $ac_compiler_gnu = yes && echo yes`
2984ac_test_CXXFLAGS=${CXXFLAGS+set}
2985ac_save_CXXFLAGS=$CXXFLAGS
2986{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2993 ac_cv_prog_cxx_g=no
2994 CXXFLAGS="-g"
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 CXXFLAGS=""
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 :
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 CXXFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161fi
3162
3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171fi
3172{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3178 CXXFLAGS="-g -O2"
3179 else
3180 CXXFLAGS="-g"
3181 fi
3182else
3183 if test "$GXX" = yes; then
3184 CXXFLAGS="-O2"
3185 else
3186 CXXFLAGS=
3187 fi
3188fi
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202# On Suns, sometimes $CPP names a directory.
3203if test -n "$CPP" && test -d "$CPP"; then
3204 CPP=
3205fi
3206if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209else
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212 do
3213 ac_preproc_ok=false
3214for ac_c_preproc_warn_flag in '' yes
3215do
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227/* end confdefs.h. */
3228#ifdef __STDC__
3229# include <limits.h>
3230#else
3231# include <assert.h>
3232#endif
3233 Syntax error
3234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251 else
3252 ac_cpp_err=
3253 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255 ac_cpp_err=yes
3256fi
3257if test -z "$ac_cpp_err"; then
3258 :
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 # Broken: fails on valid input.
3264continue
3265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267rm -f conftest.err conftest.$ac_ext
3268
Reid Spencera773bd52006-08-04 18:18:08 +00003269 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271 cat >conftest.$ac_ext <<_ACEOF
3272/* confdefs.h. */
3273_ACEOF
3274cat confdefs.h >>conftest.$ac_ext
3275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276/* end confdefs.h. */
3277#include <ac_nonexistent.h>
3278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279if { (ac_try="$ac_cpp conftest.$ac_ext"
3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302 # Broken: success on invalid input.
3303continue
3304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305 echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 # Passes both tests.
3309ac_preproc_ok=:
3310break
3311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313rm -f conftest.err conftest.$ac_ext
3314
3315done
3316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003318if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 break
3320fi
3321
3322 done
3323 ac_cv_prog_CPP=$CPP
3324
3325fi
3326 CPP=$ac_cv_prog_CPP
3327else
3328 ac_cv_prog_CPP=$CPP
3329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330{ echo "$as_me:$LINENO: result: $CPP" >&5
3331echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352 Syntax error
3353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354if { (ac_try="$ac_cpp conftest.$ac_ext"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370 else
3371 ac_cpp_err=
3372 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 :
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 # Broken: fails on valid input.
3383continue
3384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386rm -f conftest.err conftest.$ac_ext
3387
Reid Spencera773bd52006-08-04 18:18:08 +00003388 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417else
3418 ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: success on invalid input.
3422continue
3423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003437if $ac_preproc_ok; then
3438 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445fi
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447ac_ext=c
3448ac_cpp='$CPP $CPPFLAGS'
3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453
Eric Christopherffee5722011-09-16 20:36:25 +00003454
3455
3456if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3478
3479fi
3480
3481for i in `ls ${srcdir}/projects`
3482do
3483 if test -d ${srcdir}/projects/${i} ; then
3484 case ${i} in
3485 sample) subdirs="$subdirs projects/sample"
3486 ;;
3487 privbracket) subdirs="$subdirs projects/privbracket"
3488 ;;
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490 ;;
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3492;;
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3494 ;;
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3496 ;;
3497 safecode) subdirs="$subdirs projects/safecode"
3498 ;;
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3500 ;;
3501 llvm-gcc) ;;
3502 test-suite) ;;
3503 llvm-test) ;;
3504 poolalloc) ;;
3505 llvm-poolalloc) ;;
3506 *)
3507 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3509 ;;
3510 esac
3511 fi
3512done
3513
3514# Check whether --enable-polly was given.
3515if test "${enable_polly+set}" = set; then
3516 enableval=$enable_polly;
3517else
3518 enableval=default
3519fi
3520
3521case "$enableval" in
3522 yes) ENABLE_POLLY=1
3523 ;;
3524 no) ENABLE_POLLY=0
3525 ;;
3526 default) ENABLE_POLLY=1
3527 ;;
3528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530 { (exit 1); exit 1; }; } ;;
3531esac
3532
3533
3534if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3535 LLVM_HAS_POLLY=1
3536
3537 subdirs="$subdirs tools/polly"
3538
3539fi
3540
3541
3542# Make sure we can run config.sub.
3543$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546 { (exit 1); exit 1; }; }
3547
3548{ echo "$as_me:$LINENO: checking build system type" >&5
3549echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550if test "${ac_cv_build+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 ac_build_alias=$build_alias
3554test "x$ac_build_alias" = x &&
3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556test "x$ac_build_alias" = x &&
3557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559 { (exit 1); exit 1; }; }
3560ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563 { (exit 1); exit 1; }; }
3564
3565fi
3566{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567echo "${ECHO_T}$ac_cv_build" >&6; }
3568case $ac_cv_build in
3569*-*-*) ;;
3570*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571echo "$as_me: error: invalid value of canonical build" >&2;}
3572 { (exit 1); exit 1; }; };;
3573esac
3574build=$ac_cv_build
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_build
3577shift
3578build_cpu=$1
3579build_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583build_os=$*
3584IFS=$ac_save_IFS
3585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
3588{ echo "$as_me:$LINENO: checking host system type" >&5
3589echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590if test "${ac_cv_host+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592else
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3595else
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599 { (exit 1); exit 1; }; }
3600fi
3601
3602fi
3603{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604echo "${ECHO_T}$ac_cv_host" >&6; }
3605case $ac_cv_host in
3606*-*-*) ;;
3607*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608echo "$as_me: error: invalid value of canonical host" >&2;}
3609 { (exit 1); exit 1; }; };;
3610esac
3611host=$ac_cv_host
3612ac_save_IFS=$IFS; IFS='-'
3613set x $ac_cv_host
3614shift
3615host_cpu=$1
3616host_vendor=$2
3617shift; shift
3618# Remember, the first character of IFS is used to create $*,
3619# except with old shells:
3620host_os=$*
3621IFS=$ac_save_IFS
3622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
3625{ echo "$as_me:$LINENO: checking target system type" >&5
3626echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627if test "${ac_cv_target+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3632else
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636 { (exit 1); exit 1; }; }
3637fi
3638
3639fi
3640{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641echo "${ECHO_T}$ac_cv_target" >&6; }
3642case $ac_cv_target in
3643*-*-*) ;;
3644*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645echo "$as_me: error: invalid value of canonical target" >&2;}
3646 { (exit 1); exit 1; }; };;
3647esac
3648target=$ac_cv_target
3649ac_save_IFS=$IFS; IFS='-'
3650set x $ac_cv_target
3651shift
3652target_cpu=$1
3653target_vendor=$2
3654shift; shift
3655# Remember, the first character of IFS is used to create $*,
3656# except with old shells:
3657target_os=$*
3658IFS=$ac_save_IFS
3659case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3660
3661
3662# The aliases save the names the user supplied, while $host etc.
3663# will get canonicalized.
3664test -n "$target_alias" &&
3665 test "$program_prefix$program_suffix$program_transform_name" = \
3666 NONENONEs,x,x, &&
3667 program_prefix=${target_alias}-
3668
3669{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671if test "${llvm_cv_os_type+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 case $host in
3675 *-*-aix*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="AIX"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-irix*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="IRIX"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-cygwin*)
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="Cygwin"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-darwin*)
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Darwin"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-minix*)
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Minix"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-freebsd*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="FreeBSD"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-openbsd*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="OpenBSD"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-netbsd*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="NetBSD"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-dragonfly*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="DragonFly"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-hpux*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="HP-UX"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-interix*)
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Interix"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-linux*)
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Linux"
3734 llvm_cv_platform_type="Unix" ;;
3735 *-*-solaris*)
3736 llvm_cv_link_all_option="-Wl,-z,allextract"
3737 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3738 llvm_cv_os_type="SunOS"
3739 llvm_cv_platform_type="Unix" ;;
3740 *-*-auroraux*)
3741 llvm_cv_link_all_option="-Wl,-z,allextract"
3742 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3743 llvm_cv_os_type="AuroraUX"
3744 llvm_cv_platform_type="Unix" ;;
3745 *-*-win32*)
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Win32"
3749 llvm_cv_platform_type="Win32" ;;
3750 *-*-mingw*)
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="MingW"
3754 llvm_cv_platform_type="Win32" ;;
3755 *-*-haiku*)
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Haiku"
3759 llvm_cv_platform_type="Unix" ;;
3760 *-unknown-eabi*)
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Freestanding"
3764 llvm_cv_platform_type="Unix" ;;
3765 *-unknown-elf*)
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Freestanding"
3769 llvm_cv_platform_type="Unix" ;;
3770 *)
3771 llvm_cv_link_all_option=""
3772 llvm_cv_no_link_all_option=""
3773 llvm_cv_os_type="Unknown"
3774 llvm_cv_platform_type="Unknown" ;;
3775esac
3776fi
3777{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3778echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3779
3780{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3781echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3782if test "${llvm_cv_target_os_type+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 case $target in
3786 *-*-aix*)
3787 llvm_cv_target_os_type="AIX" ;;
3788 *-*-irix*)
3789 llvm_cv_target_os_type="IRIX" ;;
3790 *-*-cygwin*)
3791 llvm_cv_target_os_type="Cygwin" ;;
3792 *-*-darwin*)
3793 llvm_cv_target_os_type="Darwin" ;;
3794 *-*-minix*)
3795 llvm_cv_target_os_type="Minix" ;;
3796 *-*-freebsd*)
3797 llvm_cv_target_os_type="FreeBSD" ;;
3798 *-*-openbsd*)
3799 llvm_cv_target_os_type="OpenBSD" ;;
3800 *-*-netbsd*)
3801 llvm_cv_target_os_type="NetBSD" ;;
3802 *-*-dragonfly*)
3803 llvm_cv_target_os_type="DragonFly" ;;
3804 *-*-hpux*)
3805 llvm_cv_target_os_type="HP-UX" ;;
3806 *-*-interix*)
3807 llvm_cv_target_os_type="Interix" ;;
3808 *-*-linux*)
3809 llvm_cv_target_os_type="Linux" ;;
3810 *-*-solaris*)
3811 llvm_cv_target_os_type="SunOS" ;;
3812 *-*-auroraux*)
3813 llvm_cv_target_os_type="AuroraUX" ;;
3814 *-*-win32*)
3815 llvm_cv_target_os_type="Win32" ;;
3816 *-*-mingw*)
3817 llvm_cv_target_os_type="MingW" ;;
3818 *-*-haiku*)
3819 llvm_cv_target_os_type="Haiku" ;;
3820 *-*-rtems*)
3821 llvm_cv_target_os_type="RTEMS" ;;
3822 *-*-nacl*)
3823 llvm_cv_target_os_type="NativeClient" ;;
3824 *-unknown-eabi*)
3825 llvm_cv_target_os_type="Freestanding" ;;
3826 *)
3827 llvm_cv_target_os_type="Unknown" ;;
3828esac
3829fi
3830{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3831echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3832
3833if test "$llvm_cv_os_type" = "Unknown" ; then
3834 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3835echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3836 { (exit 1); exit 1; }; }
3837fi
3838
3839OS=$llvm_cv_os_type
3840
3841HOST_OS=$llvm_cv_os_type
3842
3843TARGET_OS=$llvm_cv_target_os_type
3844
3845
3846LINKALL=$llvm_cv_link_all_option
3847
3848NOLINKALL=$llvm_cv_no_link_all_option
3849
3850
3851case $llvm_cv_platform_type in
3852 Unix)
3853
3854cat >>confdefs.h <<\_ACEOF
3855#define LLVM_ON_UNIX 1
3856_ACEOF
3857
3858 LLVM_ON_UNIX=1
3859
3860 LLVM_ON_WIN32=0
3861
3862 ;;
3863 Win32)
3864
3865cat >>confdefs.h <<\_ACEOF
3866#define LLVM_ON_WIN32 1
3867_ACEOF
3868
3869 LLVM_ON_UNIX=0
3870
3871 LLVM_ON_WIN32=1
3872
3873 ;;
3874esac
3875
3876{ echo "$as_me:$LINENO: checking target architecture" >&5
3877echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3878if test "${llvm_cv_target_arch+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 case $target in
3882 i?86-*) llvm_cv_target_arch="x86" ;;
3883 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3884 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3885 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3886 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
3889 xcore-*) llvm_cv_target_arch="XCore" ;;
3890 msp430-*) llvm_cv_target_arch="MSP430" ;;
3891 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3892 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3893 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3894 ptx-*) llvm_cv_target_arch="PTX" ;;
3895 *) llvm_cv_target_arch="Unknown" ;;
3896esac
3897fi
3898{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901if test "$llvm_cv_target_arch" = "Unknown" ; then
3902 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904fi
3905
3906# Determine the LLVM native architecture for the target
3907case "$llvm_cv_target_arch" in
3908 x86) LLVM_NATIVE_ARCH="X86" ;;
3909 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3910 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3911esac
3912
3913ARCH=$llvm_cv_target_arch
3914
3915
3916
3917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003918{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 # Extract the first word of "grep ggrep" to use in msg output
3924if test -z "$GREP"; then
3925set dummy grep ggrep; ac_prog_name=$2
3926if test "${ac_cv_path_GREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
Reid Spencera773bd52006-08-04 18:18:08 +00003929 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003930# Loop through the user's path and test for each of PROGNAME-LIST
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 for ac_prog in grep ggrep; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003941 # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003948 while :
3949 do
3950 cat "conftest.in" "conftest.in" >"conftest.tmp"
3951 mv "conftest.tmp" "conftest.in"
3952 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958 # Best one so far, save it but keep looking for a better one
3959 ac_cv_path_GREP="$ac_path_GREP"
3960 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003961 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003962 # 10*(2^10) chars as input seems more than enough
3963 test $ac_count -gt 10 && break
3964 done
3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968
3969 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003970 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971done
3972
3973done
Reid Spencera773bd52006-08-04 18:18:08 +00003974IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975
3976
3977fi
3978
3979GREP="$ac_cv_path_GREP"
3980if test -z "$GREP"; then
3981 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983 { (exit 1); exit 1; }; }
3984fi
3985
Reid Spencera773bd52006-08-04 18:18:08 +00003986else
3987 ac_cv_path_GREP=$GREP
3988fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990
Reid Spencera773bd52006-08-04 18:18:08 +00003991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003994 GREP="$ac_cv_path_GREP"
3995
3996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997{ echo "$as_me:$LINENO: checking for egrep" >&5
3998echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004001else
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4004 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005 # Extract the first word of "egrep" to use in msg output
4006if test -z "$EGREP"; then
4007set dummy egrep; ac_prog_name=$2
4008if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
Reid Spencera773bd52006-08-04 18:18:08 +00004011 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012# Loop through the user's path and test for each of PROGNAME-LIST
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004018 for ac_prog in egrep; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004023 # Check for GNU $ac_path_EGREP
4024case `"$ac_path_EGREP" --version 2>&1` in
4025*GNU*)
4026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027*)
4028 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004030 while :
4031 do
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_EGREP="$ac_path_EGREP"
4042 ac_path_EGREP_max=$ac_count
4043 fi
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4046 done
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050
4051 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004052 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053done
4054
4055done
Reid Spencera773bd52006-08-04 18:18:08 +00004056IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057
4058
4059fi
4060
4061EGREP="$ac_cv_path_EGREP"
4062if test -z "$EGREP"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065 { (exit 1); exit 1; }; }
4066fi
4067
Reid Spencera773bd52006-08-04 18:18:08 +00004068else
4069 ac_cv_path_EGREP=$EGREP
4070fi
4071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072
Reid Spencera773bd52006-08-04 18:18:08 +00004073 fi
4074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004077 EGREP="$ac_cv_path_EGREP"
4078
4079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082if test "${ac_cv_header_stdc+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085 cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004090/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004091#include <stdlib.h>
4092#include <stdarg.h>
4093#include <string.h>
4094#include <float.h>
4095
John Criswell0c38eaf2003-09-10 15:17:25 +00004096int
4097main ()
4098{
4099
4100 ;
4101 return 0;
4102}
John Criswell7a73b802003-06-30 21:59:07 +00004103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104rm -f conftest.$ac_objext
4105if { (ac_try="$ac_compile"
4106case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004138 ac_cv_header_stdc=yes
4139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145
Reid Spencera773bd52006-08-04 18:18:08 +00004146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004147
4148if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004156#include <string.h>
4157
4158_ACEOF
4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 $EGREP "memchr" >/dev/null 2>&1; then
4161 :
John Criswell7a73b802003-06-30 21:59:07 +00004162else
4163 ac_cv_header_stdc=no
4164fi
4165rm -f conftest*
4166
4167fi
4168
4169if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004177#include <stdlib.h>
4178
4179_ACEOF
4180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 $EGREP "free" >/dev/null 2>&1; then
4182 :
John Criswell7a73b802003-06-30 21:59:07 +00004183else
4184 ac_cv_header_stdc=no
4185fi
4186rm -f conftest*
4187
4188fi
4189
4190if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004193 :
4194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004201#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004202#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004203#if ((' ' & 0x0FF) == 0x020)
4204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004207# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004208 (('a' <= (c) && (c) <= 'i') \
4209 || ('j' <= (c) && (c) <= 'r') \
4210 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212#endif
4213
4214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215int
4216main ()
4217{
4218 int i;
4219 for (i = 0; i < 256; i++)
4220 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004221 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004222 return 2;
4223 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004224}
4225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226rm -f conftest$ac_exeext
4227if { (ac_try="$ac_link"
4228case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 :
John Criswell7a73b802003-06-30 21:59:07 +00004247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248 echo "$as_me: program exited with status $ac_status" >&5
4249echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252( exit $ac_status )
4253ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255rm -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 +00004256fi
4257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258
John Criswell7a73b802003-06-30 21:59:07 +00004259fi
4260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004263if test $ac_cv_header_stdc = yes; then
4264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265cat >>confdefs.h <<\_ACEOF
4266#define STDC_HEADERS 1
4267_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004268
4269fi
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272
4273
4274
4275
4276
4277
4278
4279
4280
Reid Spencera773bd52006-08-04 18:18:08 +00004281for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283do
4284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
4296$ac_includes_default
4297
4298#include <$ac_header>
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (ac_try="$ac_compile"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 eval "$as_ac_Header=yes"
4335else
4336 echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 eval "$as_ac_Header=no"
4340fi
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344ac_res=`eval echo '${'$as_ac_Header'}'`
4345 { echo "$as_me:$LINENO: result: $ac_res" >&5
4346echo "${ECHO_T}$ac_res" >&6; }
4347if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004348 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004350_ACEOF
4351
4352fi
4353
4354done
4355
4356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004357{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359if test "${ac_cv_c_bigendian+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362 # See if sys/param.h defines the BYTE_ORDER macro.
4363cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004368/* end confdefs.h. */
4369#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004370#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004371
4372int
4373main ()
4374{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376 bogus endian macros
4377#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004378
4379 ;
4380 return 0;
4381}
4382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383rm -f conftest.$ac_objext
4384if { (ac_try="$ac_compile"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004417 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004423/* end confdefs.h. */
4424#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004426
4427int
4428main ()
4429{
4430#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004431 not big endian
4432#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004433
4434 ;
4435 return 0;
4436}
4437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438rm -f conftest.$ac_objext
4439if { (ac_try="$ac_compile"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004472 ac_cv_c_bigendian=yes
4473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 ac_cv_c_bigendian=no
4478fi
4479
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 # It does not; compile a test program.
4486if test "$cross_compiling" = yes; then
4487 # try to guess the endianness by grepping values into an object file
4488 ac_cv_c_bigendian=unknown
4489 cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
4495short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501int
4502main ()
4503{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004505 ;
4506 return 0;
4507}
4508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509rm -f conftest.$ac_objext
4510if { (ac_try="$ac_compile"
4511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
4515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004544 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545fi
4546if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547 if test "$ac_cv_c_bigendian" = unknown; then
4548 ac_cv_c_bigendian=no
4549 else
4550 # finding both strings is unlikely to happen, but who knows?
4551 ac_cv_c_bigendian=unknown
4552 fi
4553fi
Reid Spencera773bd52006-08-04 18:18:08 +00004554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558
Torok Edwin871384f2010-01-26 08:50:50 +00004559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560
Reid Spencera773bd52006-08-04 18:18:08 +00004561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563 cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004568/* end confdefs.h. */
4569$ac_includes_default
4570int
4571main ()
4572{
4573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 /* Are we little or big endian? From Harbison&Steele. */
4575 union
4576 {
4577 long int l;
4578 char c[sizeof (long int)];
4579 } u;
4580 u.l = 1;
4581 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004582
4583 ;
4584 return 0;
4585}
4586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587rm -f conftest$ac_exeext
4588if { (ac_try="$ac_link"
4589case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_link") 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004607 ac_cv_c_bigendian=no
4608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609 echo "$as_me: program exited with status $ac_status" >&5
4610echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613( exit $ac_status )
4614ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616rm -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 +00004617fi
4618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619
Reid Spencera773bd52006-08-04 18:18:08 +00004620fi
4621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626case $ac_cv_c_bigendian in
4627 yes)
4628 ENDIAN=big
4629 ;;
4630 no)
4631 ENDIAN=little
4632 ;;
4633 *)
4634 { { echo "$as_me:$LINENO: error: unknown endianness
4635presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636echo "$as_me: error: unknown endianness
4637presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638 { (exit 1); exit 1; }; } ;;
4639esac
Reid Spencera773bd52006-08-04 18:18:08 +00004640
4641
4642if test "$cross_compiling" = yes; then
4643 LLVM_CROSS_COMPILING=1
4644
4645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648if test "${ac_cv_build_exeext+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004650else
4651 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652 ac_cv_build_exeext=.exe
4653else
4654 ac_build_prefix=${build_alias}-
4655
4656 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004662else
4663 if test -n "$BUILD_CC"; then
4664 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 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 +00004673 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004675 break 2
4676 fi
4677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678done
Reid Spencera773bd52006-08-04 18:18:08 +00004679IFS=$as_save_IFS
4680
4681fi
4682fi
4683BUILD_CC=$ac_cv_prog_BUILD_CC
4684if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004690fi
4691
4692
4693 if test -z "$BUILD_CC"; then
4694 # Extract the first word of "gcc", so it can be a program name with args.
4695set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004700else
4701 if test -n "$BUILD_CC"; then
4702 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 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 +00004711 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004713 break 2
4714 fi
4715done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716done
Reid Spencera773bd52006-08-04 18:18:08 +00004717IFS=$as_save_IFS
4718
4719fi
4720fi
4721BUILD_CC=$ac_cv_prog_BUILD_CC
4722if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004728fi
4729
4730
4731 if test -z "$BUILD_CC"; then
4732 # Extract the first word of "cc", so it can be a program name with args.
4733set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004738else
4739 if test -n "$BUILD_CC"; then
4740 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4741else
4742 ac_prog_rejected=no
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 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 +00004750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751 ac_prog_rejected=yes
4752 continue
4753 fi
4754 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004756 break 2
4757 fi
4758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759done
Reid Spencera773bd52006-08-04 18:18:08 +00004760IFS=$as_save_IFS
4761
4762if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CC
4765 shift
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CC to just the basename; use the full file name.
4770 shift
4771 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4772 fi
4773fi
4774fi
4775fi
4776BUILD_CC=$ac_cv_prog_BUILD_CC
4777if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004781 { echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004783fi
4784
4785
4786 fi
4787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004791 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792 rm -f conftest*
4793 echo 'int main () { return 0; }' > conftest.$ac_ext
4794 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004796 (eval $ac_build_link) 2>&5
4797 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004800 for file in conftest.*; do
4801 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004802 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004803 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4804 esac
4805 done
4806 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810 fi
4811 rm -f conftest*
4812 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4813fi
4814fi
4815
4816BUILD_EXEEXT=""
4817test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004820ac_build_exeext=$BUILD_EXEEXT
4821
Jim Grosbach673612e2008-10-02 22:56:44 +00004822 ac_build_prefix=${build_alias}-
4823 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004829else
4830 if test -n "$BUILD_CXX"; then
4831 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 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 +00004840 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004842 break 2
4843 fi
4844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845done
Jim Grosbach673612e2008-10-02 22:56:44 +00004846IFS=$as_save_IFS
4847
4848fi
4849fi
4850BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 { echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004857fi
4858
4859
4860 if test -z "$BUILD_CXX"; then
4861 # Extract the first word of "g++", so it can be a program name with args.
4862set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004867else
4868 if test -n "$BUILD_CXX"; then
4869 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 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 +00004878 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004880 break 2
4881 fi
4882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883done
Jim Grosbach673612e2008-10-02 22:56:44 +00004884IFS=$as_save_IFS
4885
4886fi
4887fi
4888BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004895fi
4896
4897
4898 if test -z "$BUILD_CXX"; then
4899 # Extract the first word of "c++", so it can be a program name with args.
4900set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004905else
4906 if test -n "$BUILD_CXX"; then
4907 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4908else
4909 ac_prog_rejected=no
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 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 +00004917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918 ac_prog_rejected=yes
4919 continue
4920 fi
4921 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004923 break 2
4924 fi
4925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926done
Jim Grosbach673612e2008-10-02 22:56:44 +00004927IFS=$as_save_IFS
4928
4929if test $ac_prog_rejected = yes; then
4930 # We found a bogon in the path, so make sure we never use it.
4931 set dummy $ac_cv_prog_BUILD_CXX
4932 shift
4933 if test $# != 0; then
4934 # We chose a different compiler from the bogus one.
4935 # However, it has the same basename, so the bogon will be chosen
4936 # first if we set BUILD_CXX to just the basename; use the full file name.
4937 shift
4938 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4939 fi
4940fi
4941fi
4942fi
4943BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004945 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948 { echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004950fi
4951
4952
4953 fi
4954 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004955else
4956 LLVM_CROSS_COMPILING=0
4957
4958fi
4959
Dan Gohman56fb5f92010-08-04 16:25:01 +00004960if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004961 cvsbuild="yes"
4962 optimize="no"
4963 CVSBUILD=CVSBUILD=1
4964
4965else
4966 cvsbuild="no"
4967 optimize="yes"
4968fi
4969
4970
4971# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004972if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004973 enableval=$enable_optimized;
4974else
4975 enableval=$optimize
4976fi
4977
4978if test ${enableval} = "no" ; then
4979 ENABLE_OPTIMIZED=
4980
4981else
4982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983
4984fi
4985
David Greene2a5a12c2009-04-17 14:50:39 +00004986# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004987if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004988 enableval=$enable_profiling;
4989else
4990 enableval="no"
4991fi
4992
4993if test ${enableval} = "no" ; then
4994 ENABLE_PROFILING=
4995
4996else
4997 ENABLE_PROFILING=ENABLE_PROFILING=1
4998
4999fi
5000
Reid Spencera773bd52006-08-04 18:18:08 +00005001# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005003 enableval=$enable_assertions;
5004else
5005 enableval="yes"
5006fi
5007
5008if test ${enableval} = "yes" ; then
5009 DISABLE_ASSERTIONS=
5010
5011else
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014fi
5015
David Greenea696d242007-06-28 19:36:08 +00005016# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005017if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005018 enableval=$enable_expensive_checks;
5019else
5020 enableval="no"
5021fi
5022
5023if test ${enableval} = "yes" ; then
5024 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5025
5026 EXPENSIVE_CHECKS=yes
5027
5028else
5029 ENABLE_EXPENSIVE_CHECKS=
5030
5031 EXPENSIVE_CHECKS=no
5032
5033fi
5034
Reid Spencer8b2e1412006-11-17 03:32:33 +00005035# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005036if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005037 enableval=$enable_debug_runtime;
5038else
5039 enableval=no
5040fi
5041
5042if test ${enableval} = "no" ; then
5043 DEBUG_RUNTIME=
5044
5045else
5046 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5047
5048fi
5049
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005050# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005052 enableval=$enable_debug_symbols;
5053else
5054 enableval=no
5055fi
5056
5057if test ${enableval} = "no" ; then
5058 DEBUG_SYMBOLS=
5059
5060else
5061 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5062
5063fi
5064
Reid Spencera773bd52006-08-04 18:18:08 +00005065# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005067 enableval=$enable_jit;
5068else
5069 enableval=default
5070fi
5071
5072if test ${enableval} = "no"
5073then
5074 JIT=
5075
5076else
5077 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005078 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005079 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005080 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005081 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005085 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005086 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005087 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005088 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005089 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005090 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005091 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005092 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005093 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005094 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005095 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005096 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00005097 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005098 Blackfin) TARGET_HAS_JIT=0
5099 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005100 MBlaze) TARGET_HAS_JIT=0
5101 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005102 PTX) TARGET_HAS_JIT=0
5103 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005104 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005105 ;;
5106 esac
5107fi
5108
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005109# Check whether --enable-docs was given.
5110if test "${enable_docs+set}" = set; then
5111 enableval=$enable_docs;
5112else
5113 enableval=default
5114fi
5115
5116case "$enableval" in
5117 yes) ENABLE_DOCS=1
5118 ;;
5119 no) ENABLE_DOCS=0
5120 ;;
5121 default) ENABLE_DOCS=1
5122 ;;
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5124echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5126esac
5127
Reid Spencera773bd52006-08-04 18:18:08 +00005128# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005129if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005130 enableval=$enable_doxygen;
5131else
5132 enableval=default
5133fi
5134
5135case "$enableval" in
5136 yes) ENABLE_DOXYGEN=1
5137 ;;
5138 no) ENABLE_DOXYGEN=0
5139 ;;
5140 default) ENABLE_DOXYGEN=0
5141 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5143echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005145esac
5146
5147# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005149 enableval=$enable_threads;
5150else
Reid Spencer65c5d752006-11-05 17:08:18 +00005151 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005152fi
5153
5154case "$enableval" in
5155 yes) ENABLE_THREADS=1
5156 ;;
5157 no) ENABLE_THREADS=0
5158 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005159 default) ENABLE_THREADS=1
5160 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5162echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005164esac
5165
Owen Andersona8603702009-05-19 22:18:56 +00005166cat >>confdefs.h <<_ACEOF
5167#define ENABLE_THREADS $ENABLE_THREADS
5168_ACEOF
5169
5170
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005171# Check whether --enable-pthreads was given.
5172if test "${enable_pthreads+set}" = set; then
5173 enableval=$enable_pthreads;
5174else
5175 enableval=default
5176fi
5177
5178case "$enableval" in
5179 yes) ENABLE_PTHREADS=1
5180 ;;
5181 no) ENABLE_PTHREADS=0
5182 ;;
5183 default) ENABLE_PTHREADS=1
5184 ;;
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5186echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5188esac
5189
Reid Spencer89b0d992006-12-16 22:07:52 +00005190# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005191if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005192 enableval=$enable_pic;
5193else
5194 enableval=default
5195fi
5196
5197case "$enableval" in
5198 yes) ENABLE_PIC=1
5199 ;;
5200 no) ENABLE_PIC=0
5201 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005202 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005203 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5205echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005207esac
5208
5209cat >>confdefs.h <<_ACEOF
5210#define ENABLE_PIC $ENABLE_PIC
5211_ACEOF
5212
5213
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005214# Check whether --enable-shared was given.
5215if test "${enable_shared+set}" = set; then
5216 enableval=$enable_shared;
5217else
5218 enableval=default
5219fi
5220
5221case "$enableval" in
5222 yes) ENABLE_SHARED=1
5223 ;;
5224 no) ENABLE_SHARED=0
5225 ;;
5226 default) ENABLE_SHARED=0
5227 ;;
5228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5229echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
5231esac
5232
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005233# Check whether --enable-embed-stdcxx was given.
5234if test "${enable_embed_stdcxx+set}" = set; then
5235 enableval=$enable_embed_stdcxx;
5236else
5237 enableval=default
5238fi
5239
5240case "$enableval" in
5241 yes) ENABLE_EMBED_STDCXX=1
5242 ;;
5243 no) ENABLE_EMBED_STDCXX=0
5244 ;;
5245 default) ENABLE_EMBED_STDCXX=1
5246 ;;
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5248echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5250esac
5251
Daniel Dunbardd464df2010-05-10 20:11:56 +00005252# Check whether --enable-timestamps was given.
5253if test "${enable_timestamps+set}" = set; then
5254 enableval=$enable_timestamps;
5255else
5256 enableval=default
5257fi
5258
5259case "$enableval" in
5260 yes) ENABLE_TIMESTAMPS=1
5261 ;;
5262 no) ENABLE_TIMESTAMPS=0
5263 ;;
5264 default) ENABLE_TIMESTAMPS=1
5265 ;;
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5267echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5269esac
5270
5271cat >>confdefs.h <<_ACEOF
5272#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5273_ACEOF
5274
5275
Reid Spencera773bd52006-08-04 18:18:08 +00005276TARGETS_TO_BUILD=""
5277# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005278if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005279 enableval=$enable_targets;
5280else
5281 enableval=all
5282fi
5283
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005284if test "$enableval" = host-only ; then
5285 enableval=host
5286fi
Reid Spencera773bd52006-08-04 18:18:08 +00005287case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005288 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005289 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5290 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005291 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5298 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005299 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5300 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5301 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5302 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5303 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005304 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005305 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005306 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 host) case "$llvm_cv_target_arch" in
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005315 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005316 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005317 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005319 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005320 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005321 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5323echo "$as_me: error: Can not set target to build" >&2;}
5324 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005325 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5327echo "$as_me: error: Unrecognized target $a_target" >&2;}
5328 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005329 esac
5330 done
5331 ;;
5332esac
Reid Spencera773bd52006-08-04 18:18:08 +00005333TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5334
5335
Douglas Gregor0711c302009-06-17 00:43:20 +00005336# Determine whether we are building LLVM support for the native architecture.
5337# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5338for a_target in $TARGETS_TO_BUILD; do
5339 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5340
5341cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005342#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5343_ACEOF
5344
5345 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5346 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005347 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005348 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5351 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005352
5353cat >>confdefs.h <<_ACEOF
5354#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005355_ACEOF
5356
5357
5358cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005359#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5360_ACEOF
5361
5362
5363cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005364#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005365_ACEOF
5366
5367
5368cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005369#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005370_ACEOF
5371
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005372 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005373
5374cat >>confdefs.h <<_ACEOF
5375#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5376_ACEOF
5377
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005378 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005379 fi
5380done
5381
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005382# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5383# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005384LLVM_ENUM_TARGETS=""
5385LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005386LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005387LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005388for target_to_build in $TARGETS_TO_BUILD; do
5389 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005390 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005391 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5392 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005393 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5395 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005396 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5398 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005399done
5400
5401
5402
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005403
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005404
Reid Spencer65c5d752006-11-05 17:08:18 +00005405# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005406if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005407 enableval=$enable_cbe_printf_a;
5408else
5409 enableval=default
5410fi
5411
5412case "$enableval" in
5413 yes) ENABLE_CBE_PRINTF_A=1
5414 ;;
5415 no) ENABLE_CBE_PRINTF_A=0
5416 ;;
5417 default) ENABLE_CBE_PRINTF_A=1
5418 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5420echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5421 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005422esac
5423
5424cat >>confdefs.h <<_ACEOF
5425#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5426_ACEOF
5427
5428
Reid Spencera773bd52006-08-04 18:18:08 +00005429
Daniel Dunbar98515672010-02-23 10:00:49 +00005430# Check whether --with-clang was given.
5431if test "${with_clang+set}" = set; then
5432 withval=$with_clang;
5433else
5434 with_clang=default
5435fi
5436
5437
5438
5439# Check whether --with-built-clang was given.
5440if test "${with_built_clang+set}" = set; then
5441 withval=$with_built_clang;
5442else
5443 with_built_clang=check
5444fi
5445
5446
5447{ echo "$as_me:$LINENO: checking clang compiler" >&5
5448echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5449WITH_CLANGPATH=""
5450WITH_BUILT_CLANG=0
5451if test "$with_clang" != "default"; then
5452 WITH_CLANGPATH="$with_clang"
5453 if ! test -x "$WITH_CLANGPATH"; then
5454 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5455echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5456 { (exit 1); exit 1; }; }
5457 fi
5458elif test "$with_built_clang" = "yes"; then
5459 WITH_BUILT_CLANG=1
5460elif test "$with_built_clang" = "no"; then
5461 WITH_BUILT_CLANG=0
5462else
5463 if test "$with_built_clang" != "check"; then
5464 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5465echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5466 { (exit 1); exit 1; }; }
5467 fi
5468
5469 if test -f ${srcdir}/tools/clang/README.txt; then
5470 WITH_BUILT_CLANG=1
5471 fi
5472fi
5473
5474if ! test -z "$WITH_CLANGPATH"; then
5475 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5476echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5477 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5478elif test "$WITH_BUILT_CLANG" = "1"; then
5479 { echo "$as_me:$LINENO: result: built" >&5
5480echo "${ECHO_T}built" >&6; }
5481else
5482 { echo "$as_me:$LINENO: result: none" >&5
5483echo "${ECHO_T}none" >&6; }
5484fi
5485CLANGPATH=$WITH_CLANGPATH
5486
5487CLANGXXPATH=$WITH_CLANGXXPATH
5488
5489ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5490
5491
5492
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005493# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005495 withval=$with_optimize_option;
5496else
5497 withval=default
5498fi
5499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500{ echo "$as_me:$LINENO: checking optimization flags" >&5
5501echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005502case "$withval" in
5503 default)
5504 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005505 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005506 MingW) optimize_option=-O2 ;;
5507 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005508 esac ;;
5509 *) optimize_option="$withval" ;;
5510esac
5511OPTIMIZE_OPTION=$optimize_option
5512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005513{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5514echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005515
5516
Reid Spencera773bd52006-08-04 18:18:08 +00005517# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005518if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005519 withval=$with_extra_options;
5520else
5521 withval=default
5522fi
5523
5524case "$withval" in
5525 default) EXTRA_OPTIONS= ;;
5526 *) EXTRA_OPTIONS=$withval ;;
5527esac
5528EXTRA_OPTIONS=$EXTRA_OPTIONS
5529
5530
Daniel Dunbared344d22011-06-16 22:30:41 +00005531
5532# Check whether --with-extra-ld-options was given.
5533if test "${with_extra_ld_options+set}" = set; then
5534 withval=$with_extra_ld_options;
5535else
5536 withval=default
5537fi
5538
5539case "$withval" in
5540 default) EXTRA_LD_OPTIONS= ;;
5541 *) EXTRA_LD_OPTIONS=$withval ;;
5542esac
5543EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5544
5545
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005546# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005547if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005548 enableval=$enable_bindings;
5549else
5550 enableval=default
5551fi
5552
5553BINDINGS_TO_BUILD=""
5554case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005555 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005556 all ) BINDINGS_TO_BUILD="ocaml" ;;
5557 none | no) BINDINGS_TO_BUILD="" ;;
5558 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5559 case "$a_binding" in
5560 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5562echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5563 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005564 esac
5565 done
5566 ;;
5567esac
5568
Reid Spencera773bd52006-08-04 18:18:08 +00005569
Gordon Henriksenf0915682007-10-02 16:42:22 +00005570# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005572 withval=$with_ocaml_libdir;
5573else
5574 withval=auto
5575fi
5576
5577case "$withval" in
5578 auto) with_ocaml_libdir="$withval" ;;
5579 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5581echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5582 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005583esac
5584
5585
Chandler Carruth6b241162010-10-19 08:21:25 +00005586# Check whether --with-clang-resource-dir was given.
5587if test "${with_clang_resource_dir+set}" = set; then
5588 withval=$with_clang_resource_dir;
5589else
5590 withval=""
5591fi
5592
5593
5594cat >>confdefs.h <<_ACEOF
5595#define CLANG_RESOURCE_DIR "$withval"
5596_ACEOF
5597
5598
5599
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005600# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005602 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005603else
5604 withval=""
5605fi
5606
5607
5608cat >>confdefs.h <<_ACEOF
5609#define C_INCLUDE_DIRS "$withval"
5610_ACEOF
5611
5612
5613
Rafael Espindola420d23c2009-11-16 19:46:55 +00005614# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005616 withval=$with_cxx_include_root;
5617else
5618 withval=""
5619fi
5620
5621
5622cat >>confdefs.h <<_ACEOF
5623#define CXX_INCLUDE_ROOT "$withval"
5624_ACEOF
5625
5626
5627
5628# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005630 withval=$with_cxx_include_arch;
5631else
5632 withval=""
5633fi
5634
5635
5636cat >>confdefs.h <<_ACEOF
5637#define CXX_INCLUDE_ARCH "$withval"
5638_ACEOF
5639
5640
5641
5642# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005644 withval=$with_cxx_include_32bit_dir;
5645else
5646 withval=""
5647fi
5648
5649
5650cat >>confdefs.h <<_ACEOF
5651#define CXX_INCLUDE_32BIT_DIR "$withval"
5652_ACEOF
5653
5654
5655
5656# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005657if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005658 withval=$with_cxx_include_64bit_dir;
5659else
5660 withval=""
5661fi
5662
5663
5664cat >>confdefs.h <<_ACEOF
5665#define CXX_INCLUDE_64BIT_DIR "$withval"
5666_ACEOF
5667
5668
5669
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005670# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005672 withval=$with_binutils_include;
5673else
5674 withval=default
5675fi
5676
5677case "$withval" in
5678 default) WITH_BINUTILS_INCDIR=default ;;
5679 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5681echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5682 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005683esac
5684if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5685 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5686
5687 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5688 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5690echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5691 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005692 fi
5693fi
5694
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005695
5696# Check whether --with-bug-report-url was given.
5697if test "${with_bug_report_url+set}" = set; then
5698 withval=$with_bug_report_url;
5699else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005700 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005701fi
5702
5703
5704cat >>confdefs.h <<_ACEOF
5705#define BUG_REPORT_URL "$withval"
5706_ACEOF
5707
5708
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005709# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005711 enableval=$enable_libffi; case "$enableval" in
5712 yes) llvm_cv_enable_libffi="yes" ;;
5713 no) llvm_cv_enable_libffi="no" ;;
5714 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5716 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005717 esac
5718else
5719 llvm_cv_enable_libffi=no
5720fi
5721
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005722
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5725echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5726if test "${lt_cv_path_NM+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005728else
5729 if test -n "$NM"; then
5730 # Let the user override the test.
5731 lt_cv_path_NM="$NM"
5732else
5733 lt_nm_to_check="${ac_tool_prefix}nm"
5734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735 lt_nm_to_check="$lt_nm_to_check nm"
5736 fi
5737 for lt_tmp_nm in $lt_nm_to_check; do
5738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5740 IFS="$lt_save_ifs"
5741 test -z "$ac_dir" && ac_dir=.
5742 tmp_nm="$ac_dir/$lt_tmp_nm"
5743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5744 # Check to see if the nm accepts a BSD-compat flag.
5745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5746 # nm: unknown option "B" ignored
5747 # Tru64's nm complains that /dev/null is an invalid object file
5748 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5749 */dev/null* | *'Invalid file or object type'*)
5750 lt_cv_path_NM="$tmp_nm -B"
5751 break
5752 ;;
5753 *)
5754 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5755 */dev/null*)
5756 lt_cv_path_NM="$tmp_nm -p"
5757 break
5758 ;;
5759 *)
5760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5761 continue # so that we can try to find one that supports BSD flags
5762 ;;
5763 esac
5764 ;;
5765 esac
5766 fi
5767 done
5768 IFS="$lt_save_ifs"
5769 done
5770 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5771fi
5772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5774echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005775NM="$lt_cv_path_NM"
5776
5777
5778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: checking for GNU make" >&5
5780echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5781if test "${llvm_cv_gnu_make_command+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005783else
5784 llvm_cv_gnu_make_command=''
5785 for a in "$MAKE" make gmake gnumake ; do
5786 if test -z "$a" ; then continue ; fi ;
5787 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5788 then
5789 llvm_cv_gnu_make_command=$a ;
5790 break;
5791 fi
5792 done
5793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5795echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005796 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5797 ifGNUmake='' ;
5798 else
5799 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5801echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005802 fi
5803
5804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5806echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005807LN_S=$as_ln_s
5808if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809 { echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5813echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005814fi
5815
5816# Extract the first word of "cmp", so it can be a program name with args.
5817set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820if test "${ac_cv_path_CMP+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005822else
5823 case $CMP in
5824 [\\/]* | ?:[\\/]*)
5825 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5826 ;;
5827 *)
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 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 +00005835 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005837 break 2
5838 fi
5839done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840done
Reid Spencera773bd52006-08-04 18:18:08 +00005841IFS=$as_save_IFS
5842
5843 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5844 ;;
5845esac
5846fi
5847CMP=$ac_cv_path_CMP
5848if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 { echo "$as_me:$LINENO: result: $CMP" >&5
5850echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854fi
5855
5856
5857# Extract the first word of "cp", so it can be a program name with args.
5858set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861if test "${ac_cv_path_CP+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005863else
5864 case $CP in
5865 [\\/]* | ?:[\\/]*)
5866 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5867 ;;
5868 *)
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 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 +00005876 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005878 break 2
5879 fi
5880done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881done
Reid Spencera773bd52006-08-04 18:18:08 +00005882IFS=$as_save_IFS
5883
5884 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5885 ;;
5886esac
5887fi
5888CP=$ac_cv_path_CP
5889if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890 { echo "$as_me:$LINENO: result: $CP" >&5
5891echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893 { echo "$as_me:$LINENO: result: no" >&5
5894echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005895fi
5896
5897
5898# Extract the first word of "date", so it can be a program name with args.
5899set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902if test "${ac_cv_path_DATE+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005904else
5905 case $DATE in
5906 [\\/]* | ?:[\\/]*)
5907 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5908 ;;
5909 *)
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 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 +00005917 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005919 break 2
5920 fi
5921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922done
Reid Spencera773bd52006-08-04 18:18:08 +00005923IFS=$as_save_IFS
5924
5925 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5926 ;;
5927esac
5928fi
5929DATE=$ac_cv_path_DATE
5930if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931 { echo "$as_me:$LINENO: result: $DATE" >&5
5932echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 { echo "$as_me:$LINENO: result: no" >&5
5935echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005936fi
5937
5938
5939# Extract the first word of "find", so it can be a program name with args.
5940set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943if test "${ac_cv_path_FIND+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005945else
5946 case $FIND in
5947 [\\/]* | ?:[\\/]*)
5948 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5949 ;;
5950 *)
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 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 +00005958 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005960 break 2
5961 fi
5962done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963done
Reid Spencera773bd52006-08-04 18:18:08 +00005964IFS=$as_save_IFS
5965
5966 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5967 ;;
5968esac
5969fi
5970FIND=$ac_cv_path_FIND
5971if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972 { echo "$as_me:$LINENO: result: $FIND" >&5
5973echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975 { echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005977fi
5978
5979
5980# Extract the first word of "grep", so it can be a program name with args.
5981set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984if test "${ac_cv_path_GREP+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005986else
5987 case $GREP in
5988 [\\/]* | ?:[\\/]*)
5989 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5990 ;;
5991 *)
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 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 +00005999 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006001 break 2
6002 fi
6003done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004done
Reid Spencera773bd52006-08-04 18:18:08 +00006005IFS=$as_save_IFS
6006
6007 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6008 ;;
6009esac
6010fi
6011GREP=$ac_cv_path_GREP
6012if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006013 { echo "$as_me:$LINENO: result: $GREP" >&5
6014echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006018fi
6019
6020
6021# Extract the first word of "mkdir", so it can be a program name with args.
6022set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025if test "${ac_cv_path_MKDIR+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006027else
6028 case $MKDIR in
6029 [\\/]* | ?:[\\/]*)
6030 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6031 ;;
6032 *)
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 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 +00006040 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006042 break 2
6043 fi
6044done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045done
Reid Spencera773bd52006-08-04 18:18:08 +00006046IFS=$as_save_IFS
6047
6048 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6049 ;;
6050esac
6051fi
6052MKDIR=$ac_cv_path_MKDIR
6053if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6055echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 { echo "$as_me:$LINENO: result: no" >&5
6058echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006059fi
6060
6061
6062# Extract the first word of "mv", so it can be a program name with args.
6063set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066if test "${ac_cv_path_MV+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006068else
6069 case $MV in
6070 [\\/]* | ?:[\\/]*)
6071 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6072 ;;
6073 *)
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 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 +00006081 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006083 break 2
6084 fi
6085done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086done
Reid Spencera773bd52006-08-04 18:18:08 +00006087IFS=$as_save_IFS
6088
6089 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6090 ;;
6091esac
6092fi
6093MV=$ac_cv_path_MV
6094if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095 { echo "$as_me:$LINENO: result: $MV" >&5
6096echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 { echo "$as_me:$LINENO: result: no" >&5
6099echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006100fi
6101
6102
6103if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108if test "${ac_cv_prog_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006110else
6111 if test -n "$RANLIB"; then
6112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 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 +00006121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006123 break 2
6124 fi
6125done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126done
Reid Spencera773bd52006-08-04 18:18:08 +00006127IFS=$as_save_IFS
6128
6129fi
6130fi
6131RANLIB=$ac_cv_prog_RANLIB
6132if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6134echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136 { echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006138fi
6139
6140
6141fi
6142if test -z "$ac_cv_prog_RANLIB"; then
6143 ac_ct_RANLIB=$RANLIB
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006150else
6151 if test -n "$ac_ct_RANLIB"; then
6152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 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 +00006161 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006163 break 2
6164 fi
6165done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166done
Reid Spencera773bd52006-08-04 18:18:08 +00006167IFS=$as_save_IFS
6168
6169fi
6170fi
6171ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 { echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006178fi
6179
6180 if test "x$ac_ct_RANLIB" = x; then
6181 RANLIB=":"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186whose name does not start with the host triplet. If you think this
6187configuration is useful to you, please write to autoconf@gnu.org." >&5
6188echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189whose name does not start with the host triplet. If you think this
6190configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006191ac_tool_warned=yes ;;
6192esac
6193 RANLIB=$ac_ct_RANLIB
6194 fi
6195else
6196 RANLIB="$ac_cv_prog_RANLIB"
6197fi
6198
Torok Edwin871384f2010-01-26 08:50:50 +00006199if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204if test "${ac_cv_prog_AR+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006206else
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 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 +00006217 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006219 break 2
6220 fi
6221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222done
Torok Edwin871384f2010-01-26 08:50:50 +00006223IFS=$as_save_IFS
6224
6225fi
6226fi
6227AR=$ac_cv_prog_AR
6228if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 { echo "$as_me:$LINENO: result: $AR" >&5
6230echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232 { echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006234fi
6235
6236
6237fi
6238if test -z "$ac_cv_prog_AR"; then
6239 ac_ct_AR=$AR
6240 # Extract the first word of "ar", so it can be a program name with args.
6241set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006246else
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 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 +00006257 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006259 break 2
6260 fi
6261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262done
Torok Edwin871384f2010-01-26 08:50:50 +00006263IFS=$as_save_IFS
6264
6265fi
6266fi
6267ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6270echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 { echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006274fi
6275
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282whose name does not start with the host triplet. If you think this
6283configuration is useful to you, please write to autoconf@gnu.org." >&5
6284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285whose name does not start with the host triplet. If you think this
6286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006287ac_tool_warned=yes ;;
6288esac
6289 AR=$ac_ct_AR
6290 fi
6291else
6292 AR="$ac_cv_prog_AR"
6293fi
6294
Reid Spencera773bd52006-08-04 18:18:08 +00006295# Extract the first word of "rm", so it can be a program name with args.
6296set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299if test "${ac_cv_path_RM+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006301else
6302 case $RM in
6303 [\\/]* | ?:[\\/]*)
6304 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6305 ;;
6306 *)
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 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 +00006314 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006316 break 2
6317 fi
6318done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319done
Reid Spencera773bd52006-08-04 18:18:08 +00006320IFS=$as_save_IFS
6321
6322 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6323 ;;
6324esac
6325fi
6326RM=$ac_cv_path_RM
6327if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 { echo "$as_me:$LINENO: result: $RM" >&5
6329echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 { echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006333fi
6334
6335
6336# Extract the first word of "sed", so it can be a program name with args.
6337set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340if test "${ac_cv_path_SED+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006342else
6343 case $SED in
6344 [\\/]* | ?:[\\/]*)
6345 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6346 ;;
6347 *)
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 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 +00006355 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006357 break 2
6358 fi
6359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360done
Reid Spencera773bd52006-08-04 18:18:08 +00006361IFS=$as_save_IFS
6362
6363 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6364 ;;
6365esac
6366fi
6367SED=$ac_cv_path_SED
6368if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 { echo "$as_me:$LINENO: result: $SED" >&5
6370echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006374fi
6375
6376
6377# Extract the first word of "tar", so it can be a program name with args.
6378set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381if test "${ac_cv_path_TAR+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006383else
6384 case $TAR in
6385 [\\/]* | ?:[\\/]*)
6386 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6387 ;;
6388 *)
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 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 +00006396 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006398 break 2
6399 fi
6400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401done
Reid Spencera773bd52006-08-04 18:18:08 +00006402IFS=$as_save_IFS
6403
6404 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6405 ;;
6406esac
6407fi
6408TAR=$ac_cv_path_TAR
6409if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410 { echo "$as_me:$LINENO: result: $TAR" >&5
6411echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 { echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006415fi
6416
6417
6418# Extract the first word of "pwd", so it can be a program name with args.
6419set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422if test "${ac_cv_path_BINPWD+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006424else
6425 case $BINPWD in
6426 [\\/]* | ?:[\\/]*)
6427 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6428 ;;
6429 *)
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 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 +00006437 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006439 break 2
6440 fi
6441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442done
Reid Spencera773bd52006-08-04 18:18:08 +00006443IFS=$as_save_IFS
6444
6445 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6446 ;;
6447esac
6448fi
6449BINPWD=$ac_cv_path_BINPWD
6450if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6452echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454 { echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006456fi
6457
6458
6459
6460# Extract the first word of "Graphviz", so it can be a program name with args.
6461set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
6467 case $GRAPHVIZ in
6468 [\\/]* | ?:[\\/]*)
6469 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6470 ;;
6471 *)
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 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 +00006479 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006481 break 2
6482 fi
6483done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484done
Reid Spencera773bd52006-08-04 18:18:08 +00006485IFS=$as_save_IFS
6486
6487 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6488 ;;
6489esac
6490fi
6491GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6492if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6494echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496 { echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006498fi
6499
6500
6501if test "$GRAPHVIZ" != "echo Graphviz" ; then
6502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503cat >>confdefs.h <<\_ACEOF
6504#define HAVE_GRAPHVIZ 1
6505_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006506
Jeff Cohen28783c32007-01-12 18:22:38 +00006507 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006508 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509 fi
6510
6511cat >>confdefs.h <<_ACEOF
6512#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6513_ACEOF
6514
6515fi
6516# Extract the first word of "dot", so it can be a program name with args.
6517set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520if test "${ac_cv_path_DOT+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006522else
6523 case $DOT in
6524 [\\/]* | ?:[\\/]*)
6525 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6526 ;;
6527 *)
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 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 +00006535 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006537 break 2
6538 fi
6539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006540done
Reid Spencera773bd52006-08-04 18:18:08 +00006541IFS=$as_save_IFS
6542
6543 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6544 ;;
6545esac
6546fi
6547DOT=$ac_cv_path_DOT
6548if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549 { echo "$as_me:$LINENO: result: $DOT" >&5
6550echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552 { echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006554fi
6555
6556
6557if test "$DOT" != "echo dot" ; then
6558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559cat >>confdefs.h <<\_ACEOF
6560#define HAVE_DOT 1
6561_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006562
Jeff Cohen28783c32007-01-12 18:22:38 +00006563 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006564 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6565 fi
6566
6567cat >>confdefs.h <<_ACEOF
6568#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6569_ACEOF
6570
6571fi
David Greenef0b9eff2009-07-09 17:16:26 +00006572# Extract the first word of "fdp", so it can be a program name with args.
6573set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576if test "${ac_cv_path_FDP+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006578else
6579 case $FDP in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6582 ;;
6583 *)
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 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 +00006591 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006593 break 2
6594 fi
6595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596done
David Greenef0b9eff2009-07-09 17:16:26 +00006597IFS=$as_save_IFS
6598
6599 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6600 ;;
6601esac
6602fi
6603FDP=$ac_cv_path_FDP
6604if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605 { echo "$as_me:$LINENO: result: $FDP" >&5
6606echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608 { echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006610fi
6611
6612
6613if test "$FDP" != "echo fdp" ; then
6614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615cat >>confdefs.h <<\_ACEOF
6616#define HAVE_FDP 1
6617_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006618
6619 if test "$llvm_cv_os_type" = "MingW" ; then
6620 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6621 fi
6622
6623cat >>confdefs.h <<_ACEOF
6624#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6625_ACEOF
6626
6627fi
6628# Extract the first word of "neato", so it can be a program name with args.
6629set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632if test "${ac_cv_path_NEATO+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006634else
6635 case $NEATO in
6636 [\\/]* | ?:[\\/]*)
6637 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6638 ;;
6639 *)
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 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 +00006647 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006649 break 2
6650 fi
6651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006652done
David Greenef0b9eff2009-07-09 17:16:26 +00006653IFS=$as_save_IFS
6654
6655 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6656 ;;
6657esac
6658fi
6659NEATO=$ac_cv_path_NEATO
6660if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661 { echo "$as_me:$LINENO: result: $NEATO" >&5
6662echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 { echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006666fi
6667
6668
6669if test "$NEATO" != "echo neato" ; then
6670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671cat >>confdefs.h <<\_ACEOF
6672#define HAVE_NEATO 1
6673_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006674
6675 if test "$llvm_cv_os_type" = "MingW" ; then
6676 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6677 fi
6678
6679cat >>confdefs.h <<_ACEOF
6680#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6681_ACEOF
6682
6683fi
6684# Extract the first word of "twopi", so it can be a program name with args.
6685set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688if test "${ac_cv_path_TWOPI+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006690else
6691 case $TWOPI in
6692 [\\/]* | ?:[\\/]*)
6693 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6694 ;;
6695 *)
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006703 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006705 break 2
6706 fi
6707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708done
David Greenef0b9eff2009-07-09 17:16:26 +00006709IFS=$as_save_IFS
6710
6711 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6712 ;;
6713esac
6714fi
6715TWOPI=$ac_cv_path_TWOPI
6716if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6718echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: no" >&5
6721echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006722fi
6723
6724
6725if test "$TWOPI" != "echo twopi" ; then
6726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727cat >>confdefs.h <<\_ACEOF
6728#define HAVE_TWOPI 1
6729_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006730
6731 if test "$llvm_cv_os_type" = "MingW" ; then
6732 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733 fi
6734
6735cat >>confdefs.h <<_ACEOF
6736#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6737_ACEOF
6738
6739fi
6740# Extract the first word of "circo", so it can be a program name with args.
6741set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_CIRCO+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006746else
6747 case $CIRCO in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 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 +00006759 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006761 break 2
6762 fi
6763done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764done
David Greenef0b9eff2009-07-09 17:16:26 +00006765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6768 ;;
6769esac
6770fi
6771CIRCO=$ac_cv_path_CIRCO
6772if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6774echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006778fi
6779
6780
6781if test "$CIRCO" != "echo circo" ; then
6782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783cat >>confdefs.h <<\_ACEOF
6784#define HAVE_CIRCO 1
6785_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006786
6787 if test "$llvm_cv_os_type" = "MingW" ; then
6788 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789 fi
6790
6791cat >>confdefs.h <<_ACEOF
6792#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6793_ACEOF
6794
6795fi
Reid Spencera773bd52006-08-04 18:18:08 +00006796for ac_prog in gv gsview32
6797do
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_GV+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006804else
6805 case $GV in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 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 +00006817 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006819 break 2
6820 fi
6821done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822done
Reid Spencera773bd52006-08-04 18:18:08 +00006823IFS=$as_save_IFS
6824
6825 ;;
6826esac
6827fi
6828GV=$ac_cv_path_GV
6829if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 { echo "$as_me:$LINENO: result: $GV" >&5
6831echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833 { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006835fi
6836
6837
6838 test -n "$GV" && break
6839done
6840test -n "$GV" || GV="echo gv"
6841
6842if test "$GV" != "echo gv" ; then
6843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844cat >>confdefs.h <<\_ACEOF
6845#define HAVE_GV 1
6846_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006847
Jeff Cohen28783c32007-01-12 18:22:38 +00006848 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006849 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6850 fi
6851
6852cat >>confdefs.h <<_ACEOF
6853#define LLVM_PATH_GV "$GV${EXEEXT}"
6854_ACEOF
6855
6856fi
6857# Extract the first word of "dotty", so it can be a program name with args.
6858set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861if test "${ac_cv_path_DOTTY+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006863else
6864 case $DOTTY in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6867 ;;
6868 *)
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 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 +00006876 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006878 break 2
6879 fi
6880done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881done
Reid Spencera773bd52006-08-04 18:18:08 +00006882IFS=$as_save_IFS
6883
6884 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6885 ;;
6886esac
6887fi
6888DOTTY=$ac_cv_path_DOTTY
6889if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6891echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893 { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006895fi
6896
6897
6898if test "$DOTTY" != "echo dotty" ; then
6899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900cat >>confdefs.h <<\_ACEOF
6901#define HAVE_DOTTY 1
6902_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006903
Jeff Cohen28783c32007-01-12 18:22:38 +00006904 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006905 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6906 fi
6907
6908cat >>confdefs.h <<_ACEOF
6909#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6910_ACEOF
6911
6912fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006913# Extract the first word of "xdot.py", so it can be a program name with args.
6914set dummy xdot.py; ac_word=$2
6915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917if test "${ac_cv_path_XDOT_PY+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919else
6920 case $XDOT_PY in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6923 ;;
6924 *)
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937done
6938IFS=$as_save_IFS
6939
6940 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6941 ;;
6942esac
6943fi
6944XDOT_PY=$ac_cv_path_XDOT_PY
6945if test -n "$XDOT_PY"; then
6946 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6947echo "${ECHO_T}$XDOT_PY" >&6; }
6948else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6; }
6951fi
6952
6953
6954if test "$XDOT_PY" != "echo xdot.py" ; then
6955
6956cat >>confdefs.h <<\_ACEOF
6957#define HAVE_XDOT_PY 1
6958_ACEOF
6959
6960 if test "$llvm_cv_os_type" = "MingW" ; then
6961 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6962 fi
6963
6964cat >>confdefs.h <<_ACEOF
6965#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6966_ACEOF
6967
6968fi
Reid Spencera773bd52006-08-04 18:18:08 +00006969
6970
6971# Extract the first word of "perl", so it can be a program name with args.
6972set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975if test "${ac_cv_path_PERL+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006977else
6978 case $PERL in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6981 ;;
6982 *)
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 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 +00006990 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006992 break 2
6993 fi
6994done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995done
Reid Spencera773bd52006-08-04 18:18:08 +00006996IFS=$as_save_IFS
6997
6998 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6999 ;;
7000esac
7001fi
7002PERL=$ac_cv_path_PERL
7003if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 { echo "$as_me:$LINENO: result: $PERL" >&5
7005echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007009fi
7010
7011
7012if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7014echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007015 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016 { echo "$as_me:$LINENO: result: yes" >&5
7017echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007018 else
7019 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 { echo "$as_me:$LINENO: result: not found" >&5
7021echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022 fi
7023fi
7024
7025
7026if test x"$PERL" = xnone; then
7027 HAVE_PERL=0
7028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7030echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7031 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007032else
7033 HAVE_PERL=1
7034
7035fi
7036
7037# Find a good install program. We prefer a C program (faster),
7038# so one script is as good as another. But avoid the broken or
7039# incompatible versions:
7040# SysV /etc/install, /usr/sbin/install
7041# SunOS /usr/etc/install
7042# IRIX /sbin/install
7043# AIX /bin/install
7044# AmigaOS /C/install, which installs bootblocks on floppy discs
7045# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048# OS/2's system install, which has a completely different semantic
7049# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007052if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053if test "${ac_cv_path_install+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007055else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 # Account for people who put trailing slashes in PATH elements.
7062case $as_dir/ in
7063 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007066 /usr/ucb/* ) ;;
7067 *)
7068 # OSF1 and SCO ODT 3.0 have their own names for install.
7069 # Don't use installbsd from OSF since it installs stuff as root
7070 # by default.
7071 for ac_prog in ginstall scoinst install; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 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 +00007074 if test $ac_prog = install &&
7075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # AIX install. It has an incompatible calling convention.
7077 :
7078 elif test $ac_prog = install &&
7079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080 # program-specific install script used by HP pwplus--don't use.
7081 :
7082 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7084 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007085 fi
7086 fi
7087 done
7088 done
7089 ;;
7090esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091done
Reid Spencera773bd52006-08-04 18:18:08 +00007092IFS=$as_save_IFS
7093
7094
7095fi
7096 if test "${ac_cv_path_install+set}" = set; then
7097 INSTALL=$ac_cv_path_install
7098 else
7099 # As a last resort, use the slow shell script. Don't cache a
7100 # value for INSTALL within a source directory, because that will
7101 # break other packages using the cache if that directory is
7102 # removed, or if the value is a relative name.
7103 INSTALL=$ac_install_sh
7104 fi
7105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7107echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007108
7109# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110# It thinks the first close brace ends the variable substitution.
7111test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7112
7113test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7114
7115test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7116
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007117case "$INSTALL" in
7118 [\\/$]* | ?:[\\/]* ) ;;
7119 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7120esac
Reid Spencera773bd52006-08-04 18:18:08 +00007121
7122# Extract the first word of "bzip2", so it can be a program name with args.
7123set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_BZIP2+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007128else
7129 case $BZIP2 in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007141 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Reid Spencera773bd52006-08-04 18:18:08 +00007147IFS=$as_save_IFS
7148
Reid Spencera773bd52006-08-04 18:18:08 +00007149 ;;
7150esac
7151fi
7152BZIP2=$ac_cv_path_BZIP2
7153if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007159fi
7160
7161
mike-m68cb3192010-05-06 23:45:43 +00007162# Extract the first word of "cat", so it can be a program name with args.
7163set dummy cat; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_CAT+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 case $CAT in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189 ;;
7190esac
7191fi
7192CAT=$ac_cv_path_CAT
7193if test -n "$CAT"; then
7194 { echo "$as_me:$LINENO: result: $CAT" >&5
7195echo "${ECHO_T}$CAT" >&6; }
7196else
7197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201
Reid Spencera773bd52006-08-04 18:18:08 +00007202# Extract the first word of "doxygen", so it can be a program name with args.
7203set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007208else
7209 case $DOXYGEN in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 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 +00007221 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007223 break 2
7224 fi
7225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226done
Reid Spencera773bd52006-08-04 18:18:08 +00007227IFS=$as_save_IFS
7228
Reid Spencera773bd52006-08-04 18:18:08 +00007229 ;;
7230esac
7231fi
7232DOXYGEN=$ac_cv_path_DOXYGEN
7233if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007239fi
7240
7241
Reid Spencera773bd52006-08-04 18:18:08 +00007242# Extract the first word of "groff", so it can be a program name with args.
7243set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_GROFF+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007248else
7249 case $GROFF in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 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 +00007261 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007263 break 2
7264 fi
7265done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266done
Reid Spencera773bd52006-08-04 18:18:08 +00007267IFS=$as_save_IFS
7268
Reid Spencera773bd52006-08-04 18:18:08 +00007269 ;;
7270esac
7271fi
7272GROFF=$ac_cv_path_GROFF
7273if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 { echo "$as_me:$LINENO: result: $GROFF" >&5
7275echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279fi
7280
7281
7282# Extract the first word of "gzip", so it can be a program name with args.
7283set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007286if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007288else
Eric Christopher031d3072010-12-10 01:31:51 +00007289 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007290 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007291 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 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 +00007301 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007303 break 2
7304 fi
7305done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306done
Reid Spencera773bd52006-08-04 18:18:08 +00007307IFS=$as_save_IFS
7308
Reid Spencera773bd52006-08-04 18:18:08 +00007309 ;;
7310esac
7311fi
Eric Christopher031d3072010-12-10 01:31:51 +00007312GZIPBIN=$ac_cv_path_GZIPBIN
7313if test -n "$GZIPBIN"; then
7314 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007319fi
7320
7321
7322# Extract the first word of "pod2html", so it can be a program name with args.
7323set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326if test "${ac_cv_path_POD2HTML+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007328else
7329 case $POD2HTML in
7330 [\\/]* | ?:[\\/]*)
7331 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 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 +00007341 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007343 break 2
7344 fi
7345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346done
Reid Spencera773bd52006-08-04 18:18:08 +00007347IFS=$as_save_IFS
7348
Reid Spencera773bd52006-08-04 18:18:08 +00007349 ;;
7350esac
7351fi
7352POD2HTML=$ac_cv_path_POD2HTML
7353if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7355echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007359fi
7360
7361
7362# Extract the first word of "pod2man", so it can be a program name with args.
7363set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366if test "${ac_cv_path_POD2MAN+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007368else
7369 case $POD2MAN in
7370 [\\/]* | ?:[\\/]*)
7371 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7372 ;;
7373 *)
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 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 +00007381 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007383 break 2
7384 fi
7385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386done
Reid Spencera773bd52006-08-04 18:18:08 +00007387IFS=$as_save_IFS
7388
Reid Spencera773bd52006-08-04 18:18:08 +00007389 ;;
7390esac
7391fi
7392POD2MAN=$ac_cv_path_POD2MAN
7393if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7395echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 { echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007399fi
7400
7401
mike-m68cb3192010-05-06 23:45:43 +00007402# Extract the first word of "pdfroff", so it can be a program name with args.
7403set dummy pdfroff; ac_word=$2
7404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406if test "${ac_cv_path_PDFROFF+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408else
7409 case $PDFROFF in
7410 [\\/]* | ?:[\\/]*)
7411 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7412 ;;
7413 *)
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426done
7427IFS=$as_save_IFS
7428
7429 ;;
7430esac
7431fi
7432PDFROFF=$ac_cv_path_PDFROFF
7433if test -n "$PDFROFF"; then
7434 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7435echo "${ECHO_T}$PDFROFF" >&6; }
7436else
7437 { echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6; }
7439fi
7440
7441
Reid Spencera773bd52006-08-04 18:18:08 +00007442# Extract the first word of "runtest", so it can be a program name with args.
7443set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446if test "${ac_cv_path_RUNTEST+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007448else
7449 case $RUNTEST in
7450 [\\/]* | ?:[\\/]*)
7451 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7452 ;;
7453 *)
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 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 +00007461 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007463 break 2
7464 fi
7465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466done
Reid Spencera773bd52006-08-04 18:18:08 +00007467IFS=$as_save_IFS
7468
Reid Spencera773bd52006-08-04 18:18:08 +00007469 ;;
7470esac
7471fi
7472RUNTEST=$ac_cv_path_RUNTEST
7473if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7475echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 { echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007479fi
7480
7481
7482
7483no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7485echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007486
7487# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007489 withval=$with_tclinclude; with_tclinclude=${withval}
7490else
7491 with_tclinclude=''
7492fi
7493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494if test "${ac_cv_path_tclsh+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007496else
7497
7498if test x"${with_tclinclude}" != x ; then
7499 if test -f ${with_tclinclude}/tclsh ; then
7500 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7501 elif test -f ${with_tclinclude}/src/tclsh ; then
7502 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7503 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7505echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7506 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007507 fi
7508fi
Torok Edwin871384f2010-01-26 08:50:50 +00007509fi
7510
Reid Spencera773bd52006-08-04 18:18:08 +00007511
7512if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: none" >&5
7514echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007515 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
7516do
7517 # Extract the first word of "$ac_prog", so it can be a program name with args.
7518set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_TCLSH+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007523else
7524 case $TCLSH in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 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 +00007536 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007538 break 2
7539 fi
7540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541done
Reid Spencera773bd52006-08-04 18:18:08 +00007542IFS=$as_save_IFS
7543
7544 ;;
7545esac
7546fi
7547TCLSH=$ac_cv_path_TCLSH
7548if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7550echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007554fi
7555
7556
7557 test -n "$TCLSH" && break
7558done
7559
7560 if test x"${TCLSH}" = x ; then
7561 ac_cv_path_tclsh='';
7562 else
7563 ac_cv_path_tclsh="${TCLSH}";
7564 fi
7565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7567echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007568 TCLSH="${ac_cv_path_tclsh}"
7569
7570fi
7571
Reid Spencera773bd52006-08-04 18:18:08 +00007572# Extract the first word of "zip", so it can be a program name with args.
7573set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_ZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007578else
7579 case $ZIP in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 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 +00007591 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007593 break 2
7594 fi
7595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596done
Reid Spencera773bd52006-08-04 18:18:08 +00007597IFS=$as_save_IFS
7598
Reid Spencera773bd52006-08-04 18:18:08 +00007599 ;;
7600esac
7601fi
7602ZIP=$ac_cv_path_ZIP
7603if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 { echo "$as_me:$LINENO: result: $ZIP" >&5
7605echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007609fi
7610
7611
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007612for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007613do
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618if test "${ac_cv_path_OCAMLC+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620else
7621 case $OCAMLC in
7622 [\\/]* | ?:[\\/]*)
7623 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 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 +00007633 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007635 break 2
7636 fi
7637done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007639IFS=$as_save_IFS
7640
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007641 ;;
7642esac
7643fi
7644OCAMLC=$ac_cv_path_OCAMLC
7645if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649 { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007651fi
7652
7653
Gordon Henriksene7072162008-03-07 18:20:01 +00007654 test -n "$OCAMLC" && break
7655done
7656
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007657for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007658do
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007665else
7666 case $OCAMLOPT in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 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 +00007678 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007680 break 2
7681 fi
7682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007684IFS=$as_save_IFS
7685
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007686 ;;
7687esac
7688fi
7689OCAMLOPT=$ac_cv_path_OCAMLOPT
7690if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694 { echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007696fi
7697
7698
Gordon Henriksene7072162008-03-07 18:20:01 +00007699 test -n "$OCAMLOPT" && break
7700done
7701
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007702for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007703do
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007710else
7711 case $OCAMLDEP in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7714 ;;
7715 *)
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 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 +00007723 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007725 break 2
7726 fi
7727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007728done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007729IFS=$as_save_IFS
7730
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007731 ;;
7732esac
7733fi
7734OCAMLDEP=$ac_cv_path_OCAMLDEP
7735if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 { echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007741fi
7742
7743
Gordon Henriksene7072162008-03-07 18:20:01 +00007744 test -n "$OCAMLDEP" && break
7745done
7746
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007747for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007748do
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007755else
7756 case $OCAMLDOC in
7757 [\\/]* | ?:[\\/]*)
7758 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7759 ;;
7760 *)
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 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 +00007768 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007770 break 2
7771 fi
7772done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007773done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007774IFS=$as_save_IFS
7775
7776 ;;
7777esac
7778fi
7779OCAMLDOC=$ac_cv_path_OCAMLDOC
7780if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784 { echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007786fi
7787
7788
7789 test -n "$OCAMLDOC" && break
7790done
7791
Torok Edwincc499a42008-10-22 09:56:27 +00007792for ac_prog in gas as
7793do
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798if test "${ac_cv_path_GAS+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007800else
7801 case $GAS in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7804 ;;
7805 *)
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 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 +00007813 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007815 break 2
7816 fi
7817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818done
Torok Edwincc499a42008-10-22 09:56:27 +00007819IFS=$as_save_IFS
7820
7821 ;;
7822esac
7823fi
7824GAS=$ac_cv_path_GAS
7825if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826 { echo "$as_me:$LINENO: result: $GAS" >&5
7827echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007829 { echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007831fi
7832
7833
7834 test -n "$GAS" && break
7835done
7836
Reid Spencera773bd52006-08-04 18:18:08 +00007837
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007838{ echo "$as_me:$LINENO: checking for linker version" >&5
7839echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840if test "${llvm_cv_link_version+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843
7844 version_string="$(ld -v 2>&1 | head -1)"
7845
7846 # Check for ld64.
7847 if (echo "$version_string" | grep -q "ld64"); then
7848 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7849 else
7850 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7851 fi
7852
7853fi
7854{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7856
7857cat >>confdefs.h <<_ACEOF
7858#define HOST_LINK_VERSION "$llvm_cv_link_version"
7859_ACEOF
7860
7861
7862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865if test "${llvm_cv_link_use_r+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
7868 ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874 oldcflags="$CFLAGS"
7875 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007876 cat >conftest.$ac_ext <<_ACEOF
7877/* confdefs.h. */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007881/* end confdefs.h. */
7882
7883int
7884main ()
7885{
Dan Gohman39ed6782010-04-25 00:12:20 +00007886
Reid Spencera773bd52006-08-04 18:18:08 +00007887 ;
7888 return 0;
7889}
7890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891rm -f conftest.$ac_objext conftest$ac_exeext
7892if { (ac_try="$ac_link"
7893case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_link") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007925 llvm_cv_link_use_r=yes
7926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932
Bill Wendlingebcceee2009-04-18 11:20:33 +00007933rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007935 CFLAGS="$oldcflags"
7936 ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007946if test "$llvm_cv_link_use_r" = yes ; then
7947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948cat >>confdefs.h <<\_ACEOF
7949#define HAVE_LINK_R 1
7950_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007951
7952 fi
7953
7954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007959else
7960 ac_ext=c
7961ac_cpp='$CPP $CPPFLAGS'
7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966 oldcflags="$CFLAGS"
7967 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007968 cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007973/* end confdefs.h. */
7974
7975int
7976main ()
7977{
Dan Gohman39ed6782010-04-25 00:12:20 +00007978
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007979 ;
7980 return 0;
7981}
7982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983rm -f conftest.$ac_objext conftest$ac_exeext
7984if { (ac_try="$ac_link"
7985case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_link") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011esac
8012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008017 llvm_cv_link_use_export_dynamic=yes
8018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008024
Bill Wendlingebcceee2009-04-18 11:20:33 +00008025rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008027 CFLAGS="$oldcflags"
8028 ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008038if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040cat >>confdefs.h <<\_ACEOF
8041#define HAVE_LINK_EXPORT_DYNAMIC 1
8042_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008043
8044 fi
8045
8046
Dan Gohmanda612d62010-06-01 14:56:56 +00008047{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_ext=c
8053ac_cpp='$CPP $CPPFLAGS'
8054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057
8058 oldcflags="$CFLAGS"
8059
8060 # The following code is from the autoconf manual,
8061 # "11.13: Limitations of Usual Tools".
8062 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063 # Use mktemp if possible; otherwise fall back on mkdir,
8064 # with $RANDOM to make collisions less likely.
8065 : ${TMPDIR=/tmp}
8066 {
8067 tmp=`
8068 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8069 ` &&
8070 test -n "$tmp" && test -d "$tmp"
8071 } || {
8072 tmp=$TMPDIR/foo$$-$RANDOM
8073 (umask 077 && mkdir "$tmp")
8074 } || exit $?
8075
Dan Gohmanda612d62010-06-01 14:56:56 +00008076 echo "{" > "$tmp/export.map"
8077 echo " global: main;" >> "$tmp/export.map"
8078 echo " local: *;" >> "$tmp/export.map"
8079 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008080
Dan Gohmanda612d62010-06-01 14:56:56 +00008081 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008082 cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088
8089int
8090main ()
8091{
Dan Gohman39ed6782010-04-25 00:12:20 +00008092
Dan Gohman391569c2010-04-16 22:59:06 +00008093 ;
8094 return 0;
8095}
8096_ACEOF
8097rm -f conftest.$ac_objext conftest$ac_exeext
8098if { (ac_try="$ac_link"
8099case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008131 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
Dan Gohman943005e2010-06-01 16:22:27 +00008136 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008137fi
8138
8139rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008141 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008142 rmdir "$tmp"
8143 CFLAGS="$oldcflags"
8144 ac_ext=c
8145ac_cpp='$CPP $CPPFLAGS'
8146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150
8151fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008152{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154if test "$llvm_cv_link_use_version_script" = yes ; then
8155 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008156
8157 fi
8158
8159
Reid Spencera773bd52006-08-04 18:18:08 +00008160
8161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008172/* end confdefs.h. */
8173
8174int
8175main ()
8176{
8177/* FIXME: Include the comments suggested by Paul. */
8178#ifndef __cplusplus
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008182 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183 char const *const *ccp;
8184 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8191 expression */
8192 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008194 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195 ++ccp;
8196 p = (char**) ccp;
8197 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008198 { /* SCO 3.2v4 cc rejects this. */
8199 char *t;
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202 *t++ = 0;
8203 if (s) return 0;
8204 }
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8206 int x[] = {25, 17};
8207 const int *foo = &x[0];
8208 ++foo;
8209 }
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8212 iptr p = 0;
8213 ++p;
8214 }
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8219 }
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221 const int foo = 10;
8222 if (!foo) return 0;
8223 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008225#endif
8226
8227 ;
8228 return 0;
8229}
8230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231rm -f conftest.$ac_objext
8232if { (ac_try="$ac_compile"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008265 ac_cv_c_const=yes
8266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272
Reid Spencera773bd52006-08-04 18:18:08 +00008273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008277if test $ac_cv_c_const = no; then
8278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279cat >>confdefs.h <<\_ACEOF
8280#define const
8281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008282
8283fi
8284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285
8286
8287
8288
8289
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008290ac_header_dirent=no
8291for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008303/* end confdefs.h. */
8304#include <sys/types.h>
8305#include <$ac_hdr>
8306
8307int
8308main ()
8309{
8310if ((DIR *) 0)
8311return 0;
8312 ;
8313 return 0;
8314}
8315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316rm -f conftest.$ac_objext
8317if { (ac_try="$ac_compile"
8318case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
8345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008350 eval "$as_ac_Header=yes"
8351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357
Reid Spencera773bd52006-08-04 18:18:08 +00008358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362echo "${ECHO_T}$ac_res" >&6; }
8363if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008364 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008366_ACEOF
8367
8368ac_header_dirent=$ac_hdr; break
8369fi
8370
8371done
8372# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008378else
8379 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008385/* end confdefs.h. */
8386
Reid Spencera773bd52006-08-04 18:18:08 +00008387/* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008390#ifdef __cplusplus
8391extern "C"
8392#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393char opendir ();
8394int
8395main ()
8396{
Reid Spencera773bd52006-08-04 18:18:08 +00008397return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398 ;
8399 return 0;
8400}
8401_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008402for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8405 else
8406 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008408 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (ac_try="$ac_link"
8411case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008443 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444else
8445 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450
Bill Wendlingebcceee2009-04-18 11:20:33 +00008451rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 conftest$ac_exeext
8453 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008454 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008455fi
John Criswell7a73b802003-06-30 21:59:07 +00008456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008457if test "${ac_cv_search_opendir+set}" = set; then
8458 :
Reid Spencera773bd52006-08-04 18:18:08 +00008459else
8460 ac_cv_search_opendir=no
8461fi
8462rm conftest.$ac_ext
8463LIBS=$ac_func_search_save_LIBS
8464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008467ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008470
Reid Spencera773bd52006-08-04 18:18:08 +00008471fi
8472
8473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008478else
8479 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h. */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008485/* end confdefs.h. */
8486
8487/* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493char opendir ();
8494int
8495main ()
8496{
8497return opendir ();
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8505 else
8506 ac_res=-l$ac_lib
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (ac_try="$ac_link"
8511case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527esac
8528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008543 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544else
8545 echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
Reid Spencera773bd52006-08-04 18:18:08 +00008549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550
Bill Wendlingebcceee2009-04-18 11:20:33 +00008551rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008552 conftest$ac_exeext
8553 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008554 break
8555fi
8556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557if test "${ac_cv_search_opendir+set}" = set; then
8558 :
Reid Spencera773bd52006-08-04 18:18:08 +00008559else
8560 ac_cv_search_opendir=no
8561fi
8562rm conftest.$ac_ext
8563LIBS=$ac_func_search_save_LIBS
8564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008565{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008567ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008568if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571fi
8572
8573fi
John Criswell7a73b802003-06-30 21:59:07 +00008574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575
John Criswell7a73b802003-06-30 21:59:07 +00008576for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577do
8578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584fi
8585ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587echo "${ECHO_T}$ac_res" >&6; }
8588else
8589 # Is the header compilable?
8590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
8598$ac_includes_default
8599#include <$ac_header>
8600_ACEOF
8601rm -f conftest.$ac_objext
8602if { (ac_try="$ac_compile"
8603case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_header_compiler=yes
8636else
8637 echo "$as_me: failed program was:" >&5
8638sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 ac_header_compiler=no
8641fi
8642
8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645echo "${ECHO_T}$ac_header_compiler" >&6; }
8646
8647# Is the header present?
8648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656#include <$ac_header>
8657_ACEOF
8658if { (ac_try="$ac_cpp conftest.$ac_ext"
8659case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
8673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674 else
8675 ac_cpp_err=
8676 fi
8677else
8678 ac_cpp_err=yes
8679fi
8680if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_header_preproc=no
8687fi
8688
8689rm -f conftest.err conftest.$ac_ext
8690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691echo "${ECHO_T}$ac_header_preproc" >&6; }
8692
8693# So? What about this header?
8694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 yes:no: )
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8701 ;;
8702 no:yes:* )
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715 ( cat <<\_ASBOX
8716## ----------------------------------- ##
8717## Report this to llvmbugs@cs.uiuc.edu ##
8718## ----------------------------------- ##
8719_ASBOX
8720 ) | sed "s/^/$as_me: WARNING: /" >&2
8721 ;;
8722esac
8723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728 eval "$as_ac_Header=\$ac_header_preproc"
8729fi
8730ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732echo "${ECHO_T}$ac_res" >&6; }
8733
8734fi
8735if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008736 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008738_ACEOF
8739
8740fi
8741
8742done
8743
Reid Spencera773bd52006-08-04 18:18:08 +00008744# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008745if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008746 enableval=$enable_ltdl_install;
8747fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008748
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008750
8751
8752if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753 INSTALL_LTDL_TRUE=
8754 INSTALL_LTDL_FALSE='#'
8755else
8756 INSTALL_LTDL_TRUE='#'
8757 INSTALL_LTDL_FALSE=
8758fi
8759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008760
8761
8762if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8765else
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8768fi
8769
8770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773library_names_spec=
8774libname_spec='lib$name'
8775soname_spec=
8776shrext_cmds=".so"
8777postinstall_cmds=
8778postuninstall_cmds=
8779finish_cmds=
8780finish_eval=
8781shlibpath_var=
8782shlibpath_overrides_runpath=unknown
8783version_type=none
8784dynamic_linker="$host_os ld.so"
8785sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794 else
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8796 fi
8797else
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799fi
8800need_lib_prefix=unknown
8801hardcode_into_libs=no
8802
8803# when you set need_version to no, make sure it does not cause -set_version
8804# flags to be left without arguments
8805need_version=unknown
8806
8807case $host_os in
8808aix3*)
8809 version_type=linux
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8812
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 ;;
8816
8817aix4* | aix5*)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 else
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8832 case $host_os in
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835 echo ' yes '
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837 :
8838 else
8839 can_build_shared=no
8840 fi
8841 ;;
8842 esac
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 else
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 fi
8857 shlibpath_var=LIBPATH
8858 fi
8859 ;;
8860
8861amigaos*)
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8865 ;;
8866
8867beos*)
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8871 ;;
8872
8873bsdi[45]*)
8874 version_type=linux
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8885 ;;
8886
8887cygwin* | mingw* | pw32*)
8888 version_type=windows
8889 shrext_cmds=".dll"
8890 need_version=no
8891 need_lib_prefix=no
8892
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8905 $rm \$dlpath'
8906 shlibpath_overrides_runpath=yes
8907
8908 case $host_os in
8909 cygwin*)
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913 ;;
8914 mingw*)
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926 else
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8928 fi
8929 ;;
8930 pw32*)
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008932 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 +00008933 ;;
8934 esac
8935 ;;
8936
8937 *)
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939 ;;
8940 esac
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8943 shlibpath_var=PATH
8944 ;;
8945
8946darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8948 version_type=darwin
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008955 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8959 else
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961 fi
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963 ;;
8964
8965dgux*)
8966 version_type=linux
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 ;;
8973
8974freebsd1*)
8975 dynamic_linker=no
8976 ;;
8977
8978kfreebsd*-gnu)
8979 version_type=linux
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8988 ;;
8989
Reid Spencera773bd52006-08-04 18:18:08 +00008990freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8995 else
8996 case $host_os in
8997 freebsd[123]*) objformat=aout ;;
8998 *) objformat=elf ;;
8999 esac
9000 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 version_type=freebsd-$objformat
9002 case $version_type in
9003 freebsd-elf*)
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 need_version=no
9006 need_lib_prefix=no
9007 ;;
9008 freebsd-*)
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010 need_version=yes
9011 ;;
9012 esac
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_os in
9015 freebsd2*)
9016 shlibpath_overrides_runpath=yes
9017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009018 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9030 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009031 esac
9032 ;;
9033
9034gnu*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9042 ;;
9043
9044hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009050 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009051 ia64*)
9052 shrext_cmds='.so'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061 else
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063 fi
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065 ;;
9066 hppa*64*)
9067 shrext_cmds='.sl'
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076 ;;
9077 *)
9078 shrext_cmds='.sl'
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 ;;
9085 esac
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9088 ;;
9089
Reid Spencera773bd52006-08-04 18:18:08 +00009090interix3*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 ;;
9101
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102irix5* | irix6* | nonstopux*)
9103 case $host_os in
9104 nonstopux*) version_type=nonstopux ;;
9105 *)
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9107 version_type=linux
9108 else
9109 version_type=irix
9110 fi ;;
9111 esac
9112 need_lib_prefix=no
9113 need_version=no
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 case $host_os in
9117 irix5* | nonstopux*)
9118 libsuff= shlibsuff=
9119 ;;
9120 *)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9129 esac
9130 ;;
9131 esac
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9137 ;;
9138
9139# No shared lib support for Linux oldld, aout, or coff.
9140linux*oldld* | linux*aout* | linux*coff*)
9141 dynamic_linker=no
9142 ;;
9143
9144# This must be Linux ELF.
9145linux*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9158
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009161 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 +00009162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163 fi
9164
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9172 ;;
9173
9174knetbsd*-gnu)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9184 ;;
9185
9186netbsd*)
9187 version_type=sunos
9188 need_lib_prefix=no
9189 need_version=no
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9194 else
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9198 fi
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 ;;
9203
9204newsos6)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210
9211nto-qnx*)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 ;;
9220
9221openbsd*)
9222 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009223 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226 case $host_os in
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9229 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234 case $host_os in
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9237 ;;
9238 *)
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241 esac
9242 else
9243 shlibpath_overrides_runpath=yes
9244 fi
9245 ;;
9246
9247os2*)
9248 libname_spec='$name'
9249 shrext_cmds=".dll"
9250 need_lib_prefix=no
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9254 ;;
9255
9256osf3* | osf4* | osf5*)
9257 version_type=osf
9258 need_lib_prefix=no
9259 need_version=no
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265 ;;
9266
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009267solaris*)
9268 version_type=linux
9269 need_lib_prefix=no
9270 need_version=no
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9278 ;;
9279
9280sunos4*)
9281 version_type=sunos
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9287 need_lib_prefix=no
9288 fi
9289 need_version=yes
9290 ;;
9291
Reid Spencera773bd52006-08-04 18:18:08 +00009292sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293 version_type=linux
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9298 sni)
9299 shlibpath_overrides_runpath=no
9300 need_lib_prefix=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9303 ;;
9304 siemens)
9305 need_lib_prefix=no
9306 ;;
9307 motorola)
9308 need_lib_prefix=no
9309 need_version=no
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312 ;;
9313 esac
9314 ;;
9315
9316sysv4*MP*)
9317 if test -d /usr/nec ;then
9318 version_type=linux
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 fi
9323 ;;
9324
Reid Spencera773bd52006-08-04 18:18:08 +00009325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9327 need_lib_prefix=no
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9336 else
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9339 case $host_os in
9340 sco3.2v5*)
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342 ;;
9343 esac
9344 fi
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9346 ;;
9347
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009348uts4*)
9349 version_type=linux
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 ;;
9354
9355*)
9356 dynamic_linker=no
9357 ;;
9358esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009359{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361test "$dynamic_linker" = no && can_build_shared=no
9362
Reid Spencera773bd52006-08-04 18:18:08 +00009363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367
Reid Spencera773bd52006-08-04 18:18:08 +00009368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009369{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373else
9374
9375module=yes
9376eval libltdl_cv_shlibext=$shrext_cmds
9377
9378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009379{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381if test -n "$libltdl_cv_shlibext"; then
9382
9383cat >>confdefs.h <<_ACEOF
9384#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385_ACEOF
9386
9387fi
9388
9389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009390{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394else
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403_ACEOF
9404
9405fi
9406
9407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009408{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9409echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412else
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417if test -n "$libltdl_cv_sys_search_path"; then
9418 sys_search_path=
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9422 else
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424 fi
9425 done
9426
9427cat >>confdefs.h <<_ACEOF
9428#define LTDL_SYSSEARCHPATH "$sys_search_path"
9429_ACEOF
9430
9431fi
9432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009433{ echo "$as_me:$LINENO: checking for objdir" >&5
9434echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437else
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9440 :
9441 else
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9446 else
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9449 fi
9450 rmdir .libs 2>/dev/null
9451 fi
9452
9453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009454{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456
9457cat >>confdefs.h <<_ACEOF
9458#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459_ACEOF
9460
9461
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462
9463
9464
9465
9466# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009467{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471else
9472
9473# These are sane defaults that work on at least a few old systems.
9474# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9475
9476# Character class describing NM global symbol codes.
9477symcode='[BCDEGRST]'
9478
9479# Regexp to match symbols that can be accessed directly from C.
9480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482# Transform an extracted symbol line into a proper C declaration
9483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485# Transform an extracted symbol line into symbol name and symbol address
9486lt_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'"
9487
9488# Define system-specific variables.
9489case $host_os in
9490aix*)
9491 symcode='[BCDT]'
9492 ;;
9493cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9495 ;;
9496hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9499 fi
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9502 ;;
9503linux*)
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9508 fi
9509 ;;
9510irix* | nonstopux*)
9511 symcode='[BCDEGRST]'
9512 ;;
9513osf*)
9514 symcode='[BCDEGQRST]'
9515 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009516solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517 symcode='[BDRT]'
9518 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009519sco3.2v5*)
9520 symcode='[DT]'
9521 ;;
9522sysv4.2uw2*)
9523 symcode='[DT]'
9524 ;;
9525sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526 symcode='[ABDT]'
9527 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009528sysv4)
9529 symcode='[DFNSTU]'
9530 ;;
9531esac
9532
9533# Handle CRLF in mingw tool chain
9534opt_cr=
9535case $build_os in
9536mingw*)
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538 ;;
9539esac
9540
9541# If we're using GNU nm, then use its standard symbol codes.
9542case `$NM -V 2>&1` in
9543*GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9545esac
9546
9547# Try without a prefix undercore, then with it.
9548for ac_symprfx in "" "_"; do
9549
Reid Spencera773bd52006-08-04 18:18:08 +00009550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009554 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 +00009555
9556 # Check to see that the pipe works correctly.
9557 pipe_works=no
9558
9559 rm -f conftest*
9560 cat > conftest.$ac_ext <<EOF
9561#ifdef __cplusplus
9562extern "C" {
9563#endif
9564char nm_test_var;
9565void nm_test_func(){}
9566#ifdef __cplusplus
9567}
9568#endif
9569int main(){nm_test_var='a';nm_test_func();return(0);}
9570EOF
9571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573 (eval $ac_compile) 2>&5
9574 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 # Now try to grab the symbols.
9578 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579 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 +00009580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9587 else
9588 rm -f "$nlist"T
9589 fi
9590
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9595#ifdef __cplusplus
9596extern "C" {
9597#endif
9598
9599EOF
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603 cat <<EOF >> conftest.$ac_ext
9604#if defined (__STDC__) && __STDC__
9605# define lt_ptr_t void *
9606#else
9607# define lt_ptr_t char *
9608# define const
9609#endif
9610
9611/* The mapping between symbol names and symbols. */
9612const struct {
9613 const char *name;
9614 lt_ptr_t address;
9615}
9616lt_preloaded_symbols[] =
9617{
9618EOF
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9621 {0, (lt_ptr_t) 0}
9622};
9623
9624#ifdef __cplusplus
9625}
9626#endif
9627EOF
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635 (eval $ac_link) 2>&5
9636 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639 pipe_works=yes
9640 fi
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9643 else
9644 echo "cannot find nm_test_func in $nlist" >&5
9645 fi
9646 else
9647 echo "cannot find nm_test_var in $nlist" >&5
9648 fi
9649 else
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651 fi
9652 else
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 fi
9656 rm -f conftest* conftst*
9657
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9660 break
9661 else
9662 lt_cv_sys_global_symbol_pipe=
9663 fi
9664done
9665
9666fi
9667
9668if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9670fi
9671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009672 { echo "$as_me:$LINENO: result: failed" >&5
9673echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675 { echo "$as_me:$LINENO: result: ok" >&5
9676echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677fi
9678
9679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684else
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9687 else
9688 libltdl_cv_preloaded_symbols=no
9689 fi
9690
9691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009692{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009696cat >>confdefs.h <<\_ACEOF
9697#define HAVE_PRELOADED_SYMBOLS 1
9698_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699
9700fi
9701
9702LIBADD_DL=
9703
9704ac_ext=c
9705ac_cpp='$CPP $CPPFLAGS'
9706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711{ echo "$as_me:$LINENO: checking for shl_load" >&5
9712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef shl_load
9738
9739/* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745char shl_load ();
9746/* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749#if defined __stub_shl_load || defined __stub___shl_load
9750choke me
9751#endif
9752
9753int
9754main ()
9755{
9756return shl_load ();
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
9762if { (ac_try="$ac_link"
9763case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779esac
9780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9796else
9797 echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_cv_func_shl_load=no
9801fi
9802
9803rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805fi
9806{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808if test $ac_cv_func_shl_load = yes; then
9809
9810cat >>confdefs.h <<\_ACEOF
9811#define HAVE_SHL_LOAD 1
9812_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813
9814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827/* end confdefs.h. */
9828
Reid Spencera773bd52006-08-04 18:18:08 +00009829/* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832#ifdef __cplusplus
9833extern "C"
9834#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835char shl_load ();
9836int
9837main ()
9838{
Reid Spencera773bd52006-08-04 18:18:08 +00009839return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (ac_try="$ac_link"
9846case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 ac_cv_lib_dld_shl_load=yes
9879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009885
Bill Wendlingebcceee2009-04-18 11:20:33 +00009886rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009887 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888LIBS=$ac_check_lib_save_LIBS
9889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009894cat >>confdefs.h <<\_ACEOF
9895#define HAVE_SHL_LOAD 1
9896_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897
9898 LIBADD_DL="$LIBADD_DL -ldld"
9899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904else
9905 ac_check_lib_save_LIBS=$LIBS
9906LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h. */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912/* end confdefs.h. */
9913
Reid Spencera773bd52006-08-04 18:18:08 +00009914/* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917#ifdef __cplusplus
9918extern "C"
9919#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920char dlopen ();
9921int
9922main ()
9923{
Reid Spencera773bd52006-08-04 18:18:08 +00009924return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925 ;
9926 return 0;
9927}
9928_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929rm -f conftest.$ac_objext conftest$ac_exeext
9930if { (ac_try="$ac_link"
9931case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934esac
9935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957esac
9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963 ac_cv_lib_dl_dlopen=yes
9964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009965 echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009970
Bill Wendlingebcceee2009-04-18 11:20:33 +00009971rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009972 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973LIBS=$ac_check_lib_save_LIBS
9974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009975{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009979cat >>confdefs.h <<\_ACEOF
9980#define HAVE_LIBDL 1
9981_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985 cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990/* end confdefs.h. */
9991#if HAVE_DLFCN_H
9992# include <dlfcn.h>
9993#endif
9994
9995int
9996main ()
9997{
9998dlopen(0, 0);
9999 ;
10000 return 0;
10001}
10002_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010003rm -f conftest.$ac_objext conftest$ac_exeext
10004if { (ac_try="$ac_link"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038cat >>confdefs.h <<\_ACEOF
10039#define HAVE_LIBDL 1
10040_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041 libltdl_cv_func_dlopen="yes"
10042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050else
10051 ac_check_lib_save_LIBS=$LIBS
10052LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010053cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058/* end confdefs.h. */
10059
Reid Spencera773bd52006-08-04 18:18:08 +000010060/* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063#ifdef __cplusplus
10064extern "C"
10065#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066char dlopen ();
10067int
10068main ()
10069{
Reid Spencera773bd52006-08-04 18:18:08 +000010070return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075rm -f conftest.$ac_objext conftest$ac_exeext
10076if { (ac_try="$ac_link"
10077case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093esac
10094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109 ac_cv_lib_svld_dlopen=yes
10110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010116
Bill Wendlingebcceee2009-04-18 11:20:33 +000010117rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010118 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119LIBS=$ac_check_lib_save_LIBS
10120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010121{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010125cat >>confdefs.h <<\_ACEOF
10126#define HAVE_LIBDL 1
10127_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135else
10136 ac_check_lib_save_LIBS=$LIBS
10137LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010138cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143/* end confdefs.h. */
10144
Reid Spencera773bd52006-08-04 18:18:08 +000010145/* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148#ifdef __cplusplus
10149extern "C"
10150#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151char dld_link ();
10152int
10153main ()
10154{
Reid Spencera773bd52006-08-04 18:18:08 +000010155return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 ;
10157 return 0;
10158}
10159_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194 ac_cv_lib_dld_dld_link=yes
10195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010201
Bill Wendlingebcceee2009-04-18 11:20:33 +000010202rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010203 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204LIBS=$ac_check_lib_save_LIBS
10205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010206{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010210cat >>confdefs.h <<\_ACEOF
10211#define HAVE_DLD 1
10212_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213
10214 LIBADD_DL="$LIBADD_DL -ldld"
10215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h. */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h. */
10227/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010231/* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010236#ifdef __STDC__
10237# include <limits.h>
10238#else
10239# include <assert.h>
10240#endif
10241
10242#undef _dyld_func_lookup
10243
10244/* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250char _dyld_func_lookup ();
10251/* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255choke me
10256#endif
10257
10258int
10259main ()
10260{
10261return _dyld_func_lookup ();
10262 ;
10263 return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (ac_try="$ac_link"
10268case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10284esac
10285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10301else
10302 echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306fi
Reid Spencera773bd52006-08-04 18:18:08 +000010307
Bill Wendlingebcceee2009-04-18 11:20:33 +000010308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309 conftest$ac_exeext conftest.$ac_ext
10310fi
10311{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_DYLD 1
10317_ACEOF
10318
10319fi
10320
10321
10322fi
10323
10324
10325fi
10326
10327
10328fi
10329
10330rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332
10333fi
10334
10335
10336fi
10337
10338
10339fi
10340
10341
10342if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343then
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010346
10347for ac_func in dlerror
10348do
10349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363#define $ac_func innocuous_$ac_func
10364
10365/* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10369
10370#ifdef __STDC__
10371# include <limits.h>
10372#else
10373# include <assert.h>
10374#endif
10375
10376#undef $ac_func
10377
10378/* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10381#ifdef __cplusplus
10382extern "C"
10383#endif
10384char $ac_func ();
10385/* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388#if defined __stub_$ac_func || defined __stub___$ac_func
10389choke me
10390#endif
10391
10392int
10393main ()
10394{
10395return $ac_func ();
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (ac_try="$ac_link"
10402case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428esac
10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10435else
10436 echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 eval "$as_ac_var=no"
10440fi
10441
10442rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444fi
10445ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447echo "${ECHO_T}$ac_res" >&6; }
10448if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451_ACEOF
10452
10453fi
10454done
10455
10456 LIBS="$lt_save_LIBS"
10457fi
10458ac_ext=c
10459ac_cpp='$CPP $CPPFLAGS'
10460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010466{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470else
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473void nm_test_func(){}
10474int main(){nm_test_func;return 0;}
10475EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477 (eval $ac_compile) 2>&5
10478 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010483 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 +000010484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10491 else
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493 :
10494 else
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496 fi
10497 fi
10498 else
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500 fi
10501 else
10502 echo "configure: failed program was:" >&5
10503 cat conftest.c >&5
10504 fi
10505 rm -rf conftest*
10506
10507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010508{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510
10511
10512if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519else
10520 libltdl_cv_need_uscore=unknown
10521 save_LIBS="$LIBS"
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10525else
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
Eric Christophereeef9e82011-09-20 23:58:15 +000010529#line 10529 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530#include "confdefs.h"
10531
10532#if HAVE_DLFCN_H
10533#include <dlfcn.h>
10534#endif
10535
10536#include <stdio.h>
10537
10538#ifdef RTLD_GLOBAL
10539# define LT_DLGLOBAL RTLD_GLOBAL
10540#else
10541# ifdef DL_GLOBAL
10542# define LT_DLGLOBAL DL_GLOBAL
10543# else
10544# define LT_DLGLOBAL 0
10545# endif
10546#endif
10547
10548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550#ifndef LT_DLLAZY_OR_NOW
10551# ifdef RTLD_LAZY
10552# define LT_DLLAZY_OR_NOW RTLD_LAZY
10553# else
10554# ifdef DL_LAZY
10555# define LT_DLLAZY_OR_NOW DL_LAZY
10556# else
10557# ifdef RTLD_NOW
10558# define LT_DLLAZY_OR_NOW RTLD_NOW
10559# else
10560# ifdef DL_NOW
10561# define LT_DLLAZY_OR_NOW DL_NOW
10562# else
10563# define LT_DLLAZY_OR_NOW 0
10564# endif
10565# endif
10566# endif
10567# endif
10568#endif
10569
10570#ifdef __cplusplus
10571extern "C" void exit (int);
10572#endif
10573
10574void fnord() { int i=42;}
10575int main ()
10576{
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10579
10580 if (self)
10581 {
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10585 }
Reid Spencera773bd52006-08-04 18:18:08 +000010586 else
10587 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
10589 exit (status);
10590}
10591EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 (eval $ac_link) 2>&5
10594 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010597 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598 lt_status=$?
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010602 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603 esac
10604 else :
10605 # compilation failed
10606
10607 fi
10608fi
10609rm -fr conftest*
10610
10611 LIBS="$save_LIBS"
10612
10613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010614{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616 fi
10617fi
10618
10619if test x"$libltdl_cv_need_uscore" = xyes; then
10620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010621cat >>confdefs.h <<\_ACEOF
10622#define NEED_USCORE 1
10623_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624
10625fi
10626
10627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010628{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632else
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10638 case "$host_os" in
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10643 ;;
10644 aix[45]*)
10645 libltdl_cv_sys_dlopen_deplibs=yes
10646 ;;
10647 darwin*)
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10651 ;;
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10655 ;;
10656 hpux10*|hpux11*)
10657 libltdl_cv_sys_dlopen_deplibs=yes
10658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010659 interix*)
10660 libltdl_cv_sys_dlopen_deplibs=yes
10661 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10666 ;;
10667 irix*)
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10671 ;;
10672 netbsd*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 openbsd*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 osf[1234]*)
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010681 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 libltdl_cv_sys_dlopen_deplibs=no
10683 ;;
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10692 ;;
10693 osf*)
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10699 ;;
10700 solaris*)
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706 esac
10707
10708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010713cat >>confdefs.h <<\_ACEOF
10714#define LTDL_DLOPEN_DEPLIBS 1
10715_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716
10717fi
10718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010721do
10722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728fi
10729ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_res" >&6; }
10732else
10733 # Is the header compilable?
10734{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742$ac_includes_default
10743#include <$ac_header>
10744_ACEOF
10745rm -f conftest.$ac_objext
10746if { (ac_try="$ac_compile"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763esac
10764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 ac_header_compiler=no
10785fi
10786
10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789echo "${ECHO_T}$ac_header_compiler" >&6; }
10790
10791# Is the header present?
10792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800#include <$ac_header>
10801_ACEOF
10802if { (ac_try="$ac_cpp conftest.$ac_ext"
10803case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806esac
10807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818 else
10819 ac_cpp_err=
10820 fi
10821else
10822 ac_cpp_err=yes
10823fi
10824if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_preproc=no
10831fi
10832
10833rm -f conftest.err conftest.$ac_ext
10834{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835echo "${ECHO_T}$ac_header_preproc" >&6; }
10836
10837# So? What about this header?
10838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 yes:no: )
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10845 ;;
10846 no:yes:* )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859 ( cat <<\_ASBOX
10860## ----------------------------------- ##
10861## Report this to llvmbugs@cs.uiuc.edu ##
10862## ----------------------------------- ##
10863_ASBOX
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10865 ;;
10866esac
10867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871else
10872 eval "$as_ac_Header=\$ac_header_preproc"
10873fi
10874ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876echo "${ECHO_T}$ac_res" >&6; }
10877
10878fi
10879if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882_ACEOF
10883
10884fi
10885
10886done
10887
10888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010889{ echo "$as_me:$LINENO: checking for error_t" >&5
10890echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
10899/* end confdefs.h. */
10900#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901# include <argz.h>
10902#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903
10904typedef error_t ac__type_new_;
10905int
10906main ()
10907{
10908if ((ac__type_new_ *) 0)
10909 return 0;
10910if (sizeof (ac__type_new_))
10911 return 0;
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext
10917if { (ac_try="$ac_compile"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_cv_type_error_t=no
10956fi
10957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959fi
10960{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963
10964cat >>confdefs.h <<_ACEOF
10965#define HAVE_ERROR_T 1
10966_ACEOF
10967
10968
10969else
10970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971cat >>confdefs.h <<\_ACEOF
10972#define error_t int
10973_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974
10975fi
10976
10977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978
10979
10980
10981
10982
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010984do
10985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999#define $ac_func innocuous_$ac_func
11000
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11005
11006#ifdef __STDC__
11007# include <limits.h>
11008#else
11009# include <assert.h>
11010#endif
11011
11012#undef $ac_func
11013
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017#ifdef __cplusplus
11018extern "C"
11019#endif
11020char $ac_func ();
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024#if defined __stub_$ac_func || defined __stub___$ac_func
11025choke me
11026#endif
11027
11028int
11029main ()
11030{
11031return $ac_func ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11071else
11072 echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 eval "$as_ac_var=no"
11076fi
11077
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080fi
11081ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083echo "${ECHO_T}$ac_res" >&6; }
11084if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087_ACEOF
11088
11089fi
11090done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011111
11112
11113
11114
11115
11116
11117
11118
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011121do
11122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128fi
11129ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131echo "${ECHO_T}$ac_res" >&6; }
11132else
11133 # Is the header compilable?
11134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142$ac_includes_default
11143#include <$ac_header>
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (ac_try="$ac_compile"
11147case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ac_header_compiler=no
11185fi
11186
11187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191# Is the header present?
11192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200#include <$ac_header>
11201_ACEOF
11202if { (ac_try="$ac_cpp conftest.$ac_ext"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 else
11219 ac_cpp_err=
11220 fi
11221else
11222 ac_cpp_err=yes
11223fi
11224if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230 ac_header_preproc=no
11231fi
11232
11233rm -f conftest.err conftest.$ac_ext
11234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237# So? What about this header?
11238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239 yes:no: )
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11245 ;;
11246 no:yes:* )
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259 ( cat <<\_ASBOX
11260## ----------------------------------- ##
11261## Report this to llvmbugs@cs.uiuc.edu ##
11262## ----------------------------------- ##
11263_ASBOX
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11265 ;;
11266esac
11267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273fi
11274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
11277
11278fi
11279if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282_ACEOF
11283
11284fi
11285
11286done
11287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011288
11289
11290
11291
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011293do
11294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300fi
11301ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303echo "${ECHO_T}$ac_res" >&6; }
11304else
11305 # Is the header compilable?
11306{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314$ac_includes_default
11315#include <$ac_header>
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (ac_try="$ac_compile"
11319case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_header_compiler=no
11357fi
11358
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361echo "${ECHO_T}$ac_header_compiler" >&6; }
11362
11363# Is the header present?
11364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372#include <$ac_header>
11373_ACEOF
11374if { (ac_try="$ac_cpp conftest.$ac_ext"
11375case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378esac
11379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390 else
11391 ac_cpp_err=
11392 fi
11393else
11394 ac_cpp_err=yes
11395fi
11396if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_preproc=no
11403fi
11404
11405rm -f conftest.err conftest.$ac_ext
11406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407echo "${ECHO_T}$ac_header_preproc" >&6; }
11408
11409# So? What about this header?
11410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 yes:no: )
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11417 ;;
11418 no:yes:* )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 ( cat <<\_ASBOX
11432## ----------------------------------- ##
11433## Report this to llvmbugs@cs.uiuc.edu ##
11434## ----------------------------------- ##
11435_ASBOX
11436 ) | sed "s/^/$as_me: WARNING: /" >&2
11437 ;;
11438esac
11439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 eval "$as_ac_Header=\$ac_header_preproc"
11445fi
11446ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448echo "${ECHO_T}$ac_res" >&6; }
11449
11450fi
11451if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454_ACEOF
11455
11456fi
11457
11458done
11459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011460
11461
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011463do
11464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470fi
11471ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473echo "${ECHO_T}$ac_res" >&6; }
11474else
11475 # Is the header compilable?
11476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484$ac_includes_default
11485#include <$ac_header>
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (ac_try="$ac_compile"
11489case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11522else
11523 echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_header_compiler=no
11527fi
11528
11529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533# Is the header present?
11534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542#include <$ac_header>
11543_ACEOF
11544if { (ac_try="$ac_cpp conftest.$ac_ext"
11545case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 else
11561 ac_cpp_err=
11562 fi
11563else
11564 ac_cpp_err=yes
11565fi
11566if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_header_preproc=no
11573fi
11574
11575rm -f conftest.err conftest.$ac_ext
11576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579# So? What about this header?
11580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 yes:no: )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11587 ;;
11588 no:yes:* )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601 ( cat <<\_ASBOX
11602## ----------------------------------- ##
11603## Report this to llvmbugs@cs.uiuc.edu ##
11604## ----------------------------------- ##
11605_ASBOX
11606 ) | sed "s/^/$as_me: WARNING: /" >&2
11607 ;;
11608esac
11609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 eval "$as_ac_Header=\$ac_header_preproc"
11615fi
11616ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618echo "${ECHO_T}$ac_res" >&6; }
11619
11620fi
11621if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011622 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624_ACEOF
11625 break
11626fi
11627
11628done
11629
11630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011631
11632
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011634do
11635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649#define $ac_func innocuous_$ac_func
11650
11651/* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11655
11656#ifdef __STDC__
11657# include <limits.h>
11658#else
11659# include <assert.h>
11660#endif
11661
11662#undef $ac_func
11663
11664/* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char $ac_func ();
11671/* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674#if defined __stub_$ac_func || defined __stub___$ac_func
11675choke me
11676#endif
11677
11678int
11679main ()
11680{
11681return $ac_func ();
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
11687if { (ac_try="$ac_link"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 eval "$as_ac_var=no"
11726fi
11727
11728rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730fi
11731ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733echo "${ECHO_T}$ac_res" >&6; }
11734if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737_ACEOF
11738 break
11739fi
11740done
11741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011742
11743
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011745do
11746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760#define $ac_func innocuous_$ac_func
11761
11762/* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767#ifdef __STDC__
11768# include <limits.h>
11769#else
11770# include <assert.h>
11771#endif
11772
11773#undef $ac_func
11774
11775/* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781char $ac_func ();
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined __stub_$ac_func || defined __stub___$ac_func
11786choke me
11787#endif
11788
11789int
11790main ()
11791{
11792return $ac_func ();
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
11798if { (ac_try="$ac_link"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 eval "$as_ac_var=no"
11837fi
11838
11839rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841fi
11842ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844echo "${ECHO_T}$ac_res" >&6; }
11845if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848_ACEOF
11849 break
11850fi
11851done
11852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011853
11854
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011856do
11857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871#define $ac_func innocuous_$ac_func
11872
11873/* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11877
11878#ifdef __STDC__
11879# include <limits.h>
11880#else
11881# include <assert.h>
11882#endif
11883
11884#undef $ac_func
11885
11886/* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889#ifdef __cplusplus
11890extern "C"
11891#endif
11892char $ac_func ();
11893/* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896#if defined __stub_$ac_func || defined __stub___$ac_func
11897choke me
11898#endif
11899
11900int
11901main ()
11902{
11903return $ac_func ();
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext conftest$ac_exeext
11909if { (ac_try="$ac_link"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 eval "$as_ac_var=no"
11948fi
11949
11950rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952fi
11953ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
11956if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959_ACEOF
11960 break
11961fi
11962done
11963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011964
11965
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967do
11968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982#define $ac_func innocuous_$ac_func
11983
11984/* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11988
11989#ifdef __STDC__
11990# include <limits.h>
11991#else
11992# include <assert.h>
11993#endif
11994
11995#undef $ac_func
11996
11997/* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12000#ifdef __cplusplus
12001extern "C"
12002#endif
12003char $ac_func ();
12004/* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007#if defined __stub_$ac_func || defined __stub___$ac_func
12008choke me
12009#endif
12010
12011int
12012main ()
12013{
12014return $ac_func ();
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
12020if { (ac_try="$ac_link"
12021case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 eval "$as_ac_var=no"
12059fi
12060
12061rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063fi
12064ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066echo "${ECHO_T}$ac_res" >&6; }
12067if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070_ACEOF
12071
12072fi
12073done
12074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012075
12076
12077
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012078for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012079do
12080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094#define $ac_func innocuous_$ac_func
12095
12096/* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12100
12101#ifdef __STDC__
12102# include <limits.h>
12103#else
12104# include <assert.h>
12105#endif
12106
12107#undef $ac_func
12108
12109/* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12112#ifdef __cplusplus
12113extern "C"
12114#endif
12115char $ac_func ();
12116/* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119#if defined __stub_$ac_func || defined __stub___$ac_func
12120choke me
12121#endif
12122
12123int
12124main ()
12125{
12126return $ac_func ();
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext conftest$ac_exeext
12132if { (ac_try="$ac_link"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
12150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 eval "$as_ac_var=no"
12171fi
12172
12173rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175fi
12176ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178echo "${ECHO_T}$ac_res" >&6; }
12179if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182_ACEOF
12183
12184fi
12185done
12186
12187
Douglas Gregor01746742009-05-11 18:05:52 +000012188
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012189
Daniel Dunbar98515672010-02-23 10:00:49 +000012190# Check whether --with-llvmcc was given.
12191if test "${with_llvmcc+set}" = set; then
12192 withval=$with_llvmcc;
12193else
12194 with_llvmcc=check
12195fi
12196
12197{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12198echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12199if test "$with_llvmcc" != "check"; then
12200 if (test "$with_llvmcc" != "llvm-gcc" &&
12201 test "$with_llvmcc" != "clang" &&
12202 test "$with_llvmcc" != "none"); then
Eric Christophereeef9e82011-09-20 23:58:15 +000012203 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&5
12204echo "$as_me: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&2;}
Daniel Dunbar98515672010-02-23 10:00:49 +000012205 { (exit 1); exit 1; }; }
12206 fi
12207 WITH_LLVMCC="$with_llvmcc"
Daniel Dunbar98515672010-02-23 10:00:49 +000012208elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12209 WITH_LLVMCC=clang
12210else
12211 WITH_LLVMCC=none
12212fi
12213{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12214echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12215LLVMCC_OPTION=$WITH_LLVMCC
12216
12217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12219echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012220
Reid Spencer86901802004-12-08 23:07:27 +000012221ICC=no
12222IXX=no
12223case $CC in
12224 icc*|icpc*)
12225 ICC=yes
12226 IXX=yes
12227 ;;
12228 *)
12229 ;;
12230esac
12231
Duraid Madina937c60a2006-02-15 07:57:42 +000012232if test "$GCC" != "yes" && test "$ICC" != "yes"
12233then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12235echo "$as_me: error: gcc|icc required but not found" >&2;}
12236 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012237fi
12238
12239if test "$GXX" != "yes" && test "$IXX" != "yes"
12240then
Eric Christopher73e36da2010-12-08 02:02:14 +000012241 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12242echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012244fi
12245
Reid Spencer86901802004-12-08 23:07:27 +000012246if test "$GCC" = "yes"
12247then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012248 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012249#if !defined(__GNUC__) || __GNUC__ < 3
12250#error Unsupported GCC version
12251#endif
12252
12253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012254rm -f conftest.$ac_objext
12255if { (ac_try="$ac_compile"
12256case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282esac
12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_try") 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12294echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12295 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012297
Chris Lattner399c7c72008-02-05 19:43:53 +000012298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012299fi
12300
12301if test -z "$llvm_cv_gnu_make_command"
12302then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12304echo "$as_me: error: GNU Make required but not found" >&2;}
12305 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012306fi
12307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012308{ echo "$as_me:$LINENO: result: ok" >&5
12309echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012311{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12312echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012313NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12314
12315NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012317{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12318echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012319
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321
12322{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12323echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12324if test "${ac_cv_lib_m_sin+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012326else
12327 ac_check_lib_save_LIBS=$LIBS
12328LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012334/* end confdefs.h. */
12335
Reid Spencera773bd52006-08-04 18:18:08 +000012336/* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012339#ifdef __cplusplus
12340extern "C"
12341#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012342char sin ();
12343int
12344main ()
12345{
Reid Spencera773bd52006-08-04 18:18:08 +000012346return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012347 ;
12348 return 0;
12349}
12350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351rm -f conftest.$ac_objext conftest$ac_exeext
12352if { (ac_try="$ac_link"
12353case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369esac
12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012385 ac_cv_lib_m_sin=yes
12386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012392
Bill Wendlingebcceee2009-04-18 11:20:33 +000012393rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012395LIBS=$ac_check_lib_save_LIBS
12396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012397{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12398echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12399if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012400 cat >>confdefs.h <<_ACEOF
12401#define HAVE_LIBM 1
12402_ACEOF
12403
12404 LIBS="-lm $LIBS"
12405
12406fi
12407
Jeff Cohen28783c32007-01-12 18:22:38 +000012408if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409
12410{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12411echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12412if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012414else
12415 ac_check_lib_save_LIBS=$LIBS
12416LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012417cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012422/* end confdefs.h. */
12423
Reid Spencer48fdf912006-06-01 19:03:21 +000012424
Reid Spencer484fc8e2006-06-01 16:55:59 +000012425int
12426main ()
12427{
Reid Spencera773bd52006-08-04 18:18:08 +000012428return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012429 ;
12430 return 0;
12431}
12432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012433rm -f conftest.$ac_objext conftest$ac_exeext
12434if { (ac_try="$ac_link"
12435case "(($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_link") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451esac
12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461esac
12462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012467 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012474
Bill Wendlingebcceee2009-04-18 11:20:33 +000012475rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012477LIBS=$ac_check_lib_save_LIBS
12478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012479{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12480echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12481if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012482 cat >>confdefs.h <<_ACEOF
12483#define HAVE_LIBIMAGEHLP 1
12484_ACEOF
12485
12486 LIBS="-limagehlp $LIBS"
12487
12488fi
12489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490
12491{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12492echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12493if test "${ac_cv_lib_psapi_main+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012495else
12496 ac_check_lib_save_LIBS=$LIBS
12497LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498cat >conftest.$ac_ext <<_ACEOF
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012503/* end confdefs.h. */
12504
Reid Spencer48fdf912006-06-01 19:03:21 +000012505
Reid Spencer484fc8e2006-06-01 16:55:59 +000012506int
12507main ()
12508{
Reid Spencera773bd52006-08-04 18:18:08 +000012509return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012510 ;
12511 return 0;
12512}
12513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514rm -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 Spencer48fdf912006-06-01 19:03:21 +000012548 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +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 conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012558LIBS=$ac_check_lib_save_LIBS
12559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12561echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12562if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012563 cat >>confdefs.h <<_ACEOF
12564#define HAVE_LIBPSAPI 1
12565_ACEOF
12566
12567 LIBS="-lpsapi $LIBS"
12568
12569fi
12570
12571fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12574echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12575if test "${ac_cv_search_dlopen+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012577else
12578 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012579cat >conftest.$ac_ext <<_ACEOF
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012585
Reid Spencera773bd52006-08-04 18:18:08 +000012586/* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012589#ifdef __cplusplus
12590extern "C"
12591#endif
John Criswell7a73b802003-06-30 21:59:07 +000012592char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012593int
12594main ()
12595{
Reid Spencera773bd52006-08-04 18:18:08 +000012596return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012597 ;
12598 return 0;
12599}
12600_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012601for ac_lib in '' dl; do
12602 if test -z "$ac_lib"; then
12603 ac_res="none required"
12604 else
12605 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012607 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012608 rm -f conftest.$ac_objext conftest$ac_exeext
12609if { (ac_try="$ac_link"
12610case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613esac
12614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_link") 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636esac
12637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_try") 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012642 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012643else
12644 echo "$as_me: failed program was:" >&5
12645sed 's/^/| /' conftest.$ac_ext >&5
12646
12647
John Criswell7a73b802003-06-30 21:59:07 +000012648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649
Bill Wendlingebcceee2009-04-18 11:20:33 +000012650rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012651 conftest$ac_exeext
12652 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012653 break
John Criswell7a73b802003-06-30 21:59:07 +000012654fi
Reid Spencera773bd52006-08-04 18:18:08 +000012655done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656if test "${ac_cv_search_dlopen+set}" = set; then
12657 :
Reid Spencera773bd52006-08-04 18:18:08 +000012658else
12659 ac_cv_search_dlopen=no
12660fi
12661rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012662LIBS=$ac_func_search_save_LIBS
12663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12665echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012666ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670cat >>confdefs.h <<\_ACEOF
12671#define HAVE_DLOPEN 1
12672_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012673
12674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12676echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012677fi
12678
12679
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012680if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012681 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12682echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12683if test "${ac_cv_search_ffi_call+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012685else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012686 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012692/* end confdefs.h. */
12693
12694/* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12697#ifdef __cplusplus
12698extern "C"
12699#endif
12700char ffi_call ();
12701int
12702main ()
12703{
12704return ffi_call ();
12705 ;
12706 return 0;
12707}
12708_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012709for ac_lib in '' ffi; do
12710 if test -z "$ac_lib"; then
12711 ac_res="none required"
12712 else
12713 ac_res=-l$ac_lib
12714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12715 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716 rm -f conftest.$ac_objext conftest$ac_exeext
12717if { (ac_try="$ac_link"
12718case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12721esac
12722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012750 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012751else
12752 echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012757
Bill Wendlingebcceee2009-04-18 11:20:33 +000012758rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012759 conftest$ac_exeext
12760 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012761 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012762fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012763done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764if test "${ac_cv_search_ffi_call+set}" = set; then
12765 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012766else
12767 ac_cv_search_ffi_call=no
12768fi
12769rm conftest.$ac_ext
12770LIBS=$ac_func_search_save_LIBS
12771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12773echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012774ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012775if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778cat >>confdefs.h <<\_ACEOF
12779#define HAVE_FFI_CALL 1
12780_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012781
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012782else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012783 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12784echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12785 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012786fi
12787
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012788fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012790{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12791echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12792if test "${ac_cv_search_mallinfo+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012794else
12795 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012796cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012802
Reid Spencera773bd52006-08-04 18:18:08 +000012803/* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012806#ifdef __cplusplus
12807extern "C"
12808#endif
John Criswell7a73b802003-06-30 21:59:07 +000012809char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012810int
12811main ()
12812{
Reid Spencera773bd52006-08-04 18:18:08 +000012813return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012814 ;
12815 return 0;
12816}
12817_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012818for ac_lib in '' malloc; do
12819 if test -z "$ac_lib"; then
12820 ac_res="none required"
12821 else
12822 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012824 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825 rm -f conftest.$ac_objext conftest$ac_exeext
12826if { (ac_try="$ac_link"
12827case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012859 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860else
12861 echo "$as_me: failed program was:" >&5
12862sed 's/^/| /' conftest.$ac_ext >&5
12863
12864
John Criswell7a73b802003-06-30 21:59:07 +000012865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866
Bill Wendlingebcceee2009-04-18 11:20:33 +000012867rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868 conftest$ac_exeext
12869 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012870 break
John Criswell7a73b802003-06-30 21:59:07 +000012871fi
Reid Spencera773bd52006-08-04 18:18:08 +000012872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012873if test "${ac_cv_search_mallinfo+set}" = set; then
12874 :
Reid Spencera773bd52006-08-04 18:18:08 +000012875else
12876 ac_cv_search_mallinfo=no
12877fi
12878rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012879LIBS=$ac_func_search_save_LIBS
12880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12882echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012883ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012884if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887cat >>confdefs.h <<\_ACEOF
12888#define HAVE_MALLINFO 1
12889_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012890
12891fi
12892
12893
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012894if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895
12896{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12897echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12898if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012900else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012901 ac_check_lib_save_LIBS=$LIBS
12902LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012903cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012908/* end confdefs.h. */
12909
Reid Spencera773bd52006-08-04 18:18:08 +000012910/* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012913#ifdef __cplusplus
12914extern "C"
12915#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012916char pthread_mutex_init ();
12917int
12918main ()
12919{
Reid Spencera773bd52006-08-04 18:18:08 +000012920return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012921 ;
12922 return 0;
12923}
12924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925rm -f conftest.$ac_objext conftest$ac_exeext
12926if { (ac_try="$ac_link"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953esac
12954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012959 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966
Bill Wendlingebcceee2009-04-18 11:20:33 +000012967rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012969LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12972echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12973if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012974 cat >>confdefs.h <<_ACEOF
12975#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012976_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012977
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012978 LIBS="-lpthread $LIBS"
12979
Reid Spencer22177fe2005-07-12 15:24:20 +000012980fi
12981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12983echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12984if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012986else
12987 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012988cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012993/* end confdefs.h. */
12994
Reid Spencera773bd52006-08-04 18:18:08 +000012995/* Override any GCC internal prototype to avoid an error.
12996 Use char because int might match the return type of a GCC
12997 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012998#ifdef __cplusplus
12999extern "C"
13000#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013001char pthread_mutex_lock ();
13002int
13003main ()
13004{
Reid Spencera773bd52006-08-04 18:18:08 +000013005return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013006 ;
13007 return 0;
13008}
13009_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013010for ac_lib in '' pthread; do
13011 if test -z "$ac_lib"; then
13012 ac_res="none required"
13013 else
13014 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013016 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013017 rm -f conftest.$ac_objext conftest$ac_exeext
13018if { (ac_try="$ac_link"
13019case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035esac
13036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045esac
13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013051 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056
Brian Gaeke5f268f72003-12-05 19:29:01 +000013057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013058
Bill Wendlingebcceee2009-04-18 11:20:33 +000013059rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060 conftest$ac_exeext
13061 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013062 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013063fi
Reid Spencera773bd52006-08-04 18:18:08 +000013064done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13066 :
Reid Spencera773bd52006-08-04 18:18:08 +000013067else
13068 ac_cv_search_pthread_mutex_lock=no
13069fi
13070rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013071LIBS=$ac_func_search_save_LIBS
13072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013073{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13074echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013075ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079cat >>confdefs.h <<\_ACEOF
13080#define HAVE_PTHREAD_MUTEX_LOCK 1
13081_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013082
13083fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13086echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13087if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013089else
13090 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091cat >conftest.$ac_ext <<_ACEOF
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013096/* end confdefs.h. */
13097
13098/* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13101#ifdef __cplusplus
13102extern "C"
13103#endif
13104char pthread_rwlock_init ();
13105int
13106main ()
13107{
13108return pthread_rwlock_init ();
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113for ac_lib in '' pthread; do
13114 if test -z "$ac_lib"; then
13115 ac_res="none required"
13116 else
13117 ac_res=-l$ac_lib
13118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13119 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120 rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (ac_try="$ac_link"
13122case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013154 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013155else
13156 echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
13159
Owen Andersonde8aed22009-06-16 18:20:20 +000013160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013161
Owen Andersonde8aed22009-06-16 18:20:20 +000013162rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163 conftest$ac_exeext
13164 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013165 break
13166fi
13167done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013168if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13169 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013170else
13171 ac_cv_search_pthread_rwlock_init=no
13172fi
13173rm conftest.$ac_ext
13174LIBS=$ac_func_search_save_LIBS
13175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13177echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013178ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182cat >>confdefs.h <<\_ACEOF
13183#define HAVE_PTHREAD_RWLOCK_INIT 1
13184_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013185
13186fi
13187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13189echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13190if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013192else
13193 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013199/* end confdefs.h. */
13200
13201/* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char pthread_getspecific ();
13208int
13209main ()
13210{
13211return pthread_getspecific ();
13212 ;
13213 return 0;
13214}
13215_ACEOF
13216for ac_lib in '' pthread; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13219 else
13220 ac_res=-l$ac_lib
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13222 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223 rm -f conftest.$ac_objext conftest$ac_exeext
13224if { (ac_try="$ac_link"
13225case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13241esac
13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013257 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262
Owen Anderson27fcfe12009-06-25 23:10:26 +000013263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264
Owen Anderson27fcfe12009-06-25 23:10:26 +000013265rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 conftest$ac_exeext
13267 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013268 break
13269fi
13270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13272 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013273else
13274 ac_cv_search_pthread_getspecific=no
13275fi
13276rm conftest.$ac_ext
13277LIBS=$ac_func_search_save_LIBS
13278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13280echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013281ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285cat >>confdefs.h <<\_ACEOF
13286#define HAVE_PTHREAD_GETSPECIFIC 1
13287_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013288
13289fi
13290
Reid Spencer0a262ba2005-08-24 10:07:20 +000013291fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013293
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013294# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013296 withval=$with_udis86;
13297 USE_UDIS86=1
13298
13299 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013300 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013301 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13302 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303
13304{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13305echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13306if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013308else
13309 ac_check_lib_save_LIBS=$LIBS
13310LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013311cat >conftest.$ac_ext <<_ACEOF
13312/* confdefs.h. */
13313_ACEOF
13314cat confdefs.h >>conftest.$ac_ext
13315cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013316/* end confdefs.h. */
13317
13318/* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13321#ifdef __cplusplus
13322extern "C"
13323#endif
13324char ud_init ();
13325int
13326main ()
13327{
13328return ud_init ();
13329 ;
13330 return 0;
13331}
13332_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013333rm -f conftest.$ac_objext conftest$ac_exeext
13334if { (ac_try="$ac_link"
13335case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013367 ac_cv_lib_udis86_ud_init=yes
13368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374
Bill Wendlingebcceee2009-04-18 11:20:33 +000013375rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013377LIBS=$ac_check_lib_save_LIBS
13378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13380echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13381if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013382 cat >>confdefs.h <<_ACEOF
13383#define HAVE_LIBUDIS86 1
13384_ACEOF
13385
13386 LIBS="-ludis86 $LIBS"
13387
13388else
13389
13390 echo "Error! You need to have libudis86 around."
13391 exit -1
13392
13393fi
13394
13395
13396else
13397 USE_UDIS86=0
13398
13399fi
13400
13401
13402cat >>confdefs.h <<_ACEOF
13403#define USE_UDIS86 $USE_UDIS86
13404_ACEOF
13405
13406
13407
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013408# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013410 withval=$with_oprofile;
13411 USE_OPROFILE=1
13412
13413 case "$withval" in
13414 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013415 no) llvm_cv_oppath=
13416 USE_OPROFILE=0
13417 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013418 *) llvm_cv_oppath="${withval}/lib/oprofile"
13419 CPPFLAGS="-I${withval}/include";;
13420 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013421 if test -n "$llvm_cv_oppath" ; then
13422 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13424echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13425if test "${ac_cv_search_bfd_init+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013427else
13428 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013434/* end confdefs.h. */
13435
13436/* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply. */
13439#ifdef __cplusplus
13440extern "C"
13441#endif
13442char bfd_init ();
13443int
13444main ()
13445{
13446return bfd_init ();
13447 ;
13448 return 0;
13449}
13450_ACEOF
13451for ac_lib in '' bfd; do
13452 if test -z "$ac_lib"; then
13453 ac_res="none required"
13454 else
13455 ac_res=-l$ac_lib
13456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458 rm -f conftest.$ac_objext conftest$ac_exeext
13459if { (ac_try="$ac_link"
13460case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
13477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013492 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493else
13494 echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013500rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013501 conftest$ac_exeext
13502 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013503 break
13504fi
13505done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013506if test "${ac_cv_search_bfd_init+set}" = set; then
13507 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013508else
13509 ac_cv_search_bfd_init=no
13510fi
13511rm conftest.$ac_ext
13512LIBS=$ac_func_search_save_LIBS
13513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13515echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013516ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013517if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519
13520fi
13521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13523echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13524if test "${ac_cv_search_op_open_agent+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013526else
13527 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013528cat >conftest.$ac_ext <<_ACEOF
13529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013533/* end confdefs.h. */
13534
13535/* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13538#ifdef __cplusplus
13539extern "C"
13540#endif
13541char op_open_agent ();
13542int
13543main ()
13544{
13545return op_open_agent ();
13546 ;
13547 return 0;
13548}
13549_ACEOF
13550for ac_lib in '' opagent; do
13551 if test -z "$ac_lib"; then
13552 ac_res="none required"
13553 else
13554 ac_res=-l$ac_lib
13555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13556 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557 rm -f conftest.$ac_objext conftest$ac_exeext
13558if { (ac_try="$ac_link"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_link") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575esac
13576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013591 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013592else
13593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
13596
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013599rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600 conftest$ac_exeext
13601 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013602 break
13603fi
13604done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013605if test "${ac_cv_search_op_open_agent+set}" = set; then
13606 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013607else
13608 ac_cv_search_op_open_agent=no
13609fi
13610rm conftest.$ac_ext
13611LIBS=$ac_func_search_save_LIBS
13612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013613{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13614echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013615ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13618
13619else
13620
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013621 echo "Error! You need to have libopagent around."
13622 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013623
13624fi
13625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13628echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13629if test "${ac_cv_header_opagent_h+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631fi
13632{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13633echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13634else
13635 # Is the header compilable?
13636{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13637echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644$ac_includes_default
13645#include <opagent.h>
13646_ACEOF
13647rm -f conftest.$ac_objext
13648if { (ac_try="$ac_compile"
13649case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_header_compiler=yes
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686 ac_header_compiler=no
13687fi
13688
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13691echo "${ECHO_T}$ac_header_compiler" >&6; }
13692
13693# Is the header present?
13694{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13695echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13696cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702#include <opagent.h>
13703_ACEOF
13704if { (ac_try="$ac_cpp conftest.$ac_ext"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } >/dev/null; then
13717 if test -s conftest.err; then
13718 ac_cpp_err=$ac_c_preproc_warn_flag
13719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13720 else
13721 ac_cpp_err=
13722 fi
13723else
13724 ac_cpp_err=yes
13725fi
13726if test -z "$ac_cpp_err"; then
13727 ac_header_preproc=yes
13728else
13729 echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_header_preproc=no
13733fi
13734
13735rm -f conftest.err conftest.$ac_ext
13736{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13737echo "${ECHO_T}$ac_header_preproc" >&6; }
13738
13739# So? What about this header?
13740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13741 yes:no: )
13742 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13743echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13745echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13746 ac_header_preproc=yes
13747 ;;
13748 no:yes:* )
13749 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13750echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13752echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13754echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13756echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13758echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13760echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13761 ( cat <<\_ASBOX
13762## ----------------------------------- ##
13763## Report this to llvmbugs@cs.uiuc.edu ##
13764## ----------------------------------- ##
13765_ASBOX
13766 ) | sed "s/^/$as_me: WARNING: /" >&2
13767 ;;
13768esac
13769{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13770echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13771if test "${ac_cv_header_opagent_h+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 ac_cv_header_opagent_h=$ac_header_preproc
13775fi
13776{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13777echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13778
13779fi
13780if test $ac_cv_header_opagent_h = yes; then
13781 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013782else
13783
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013784 echo "Error! You need to have opagent.h around."
13785 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013786
13787fi
13788
13789
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013790 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013791
13792else
13793
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013794 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013795
13796
13797fi
13798
13799
13800cat >>confdefs.h <<_ACEOF
13801#define USE_OPROFILE $USE_OPROFILE
13802_ACEOF
13803
13804
13805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806
13807
13808
13809
13810
Reid Spencer59473af2004-12-25 07:31:29 +000013811ac_header_dirent=no
13812for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13814{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13815echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013819 cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013824/* end confdefs.h. */
13825#include <sys/types.h>
13826#include <$ac_hdr>
13827
13828int
13829main ()
13830{
13831if ((DIR *) 0)
13832return 0;
13833 ;
13834 return 0;
13835}
13836_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837rm -f conftest.$ac_objext
13838if { (ac_try="$ac_compile"
13839case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842esac
13843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_compile") 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865esac
13866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013871 eval "$as_ac_Header=yes"
13872else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878
Reid Spencera773bd52006-08-04 18:18:08 +000013879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881ac_res=`eval echo '${'$as_ac_Header'}'`
13882 { echo "$as_me:$LINENO: result: $ac_res" >&5
13883echo "${ECHO_T}$ac_res" >&6; }
13884if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013887_ACEOF
13888
13889ac_header_dirent=$ac_hdr; break
13890fi
13891
13892done
13893# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13894if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013895 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897if test "${ac_cv_search_opendir+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013899else
13900 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901cat >conftest.$ac_ext <<_ACEOF
13902/* confdefs.h. */
13903_ACEOF
13904cat confdefs.h >>conftest.$ac_ext
13905cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013906/* end confdefs.h. */
13907
Reid Spencera773bd52006-08-04 18:18:08 +000013908/* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013911#ifdef __cplusplus
13912extern "C"
13913#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013914char opendir ();
13915int
13916main ()
13917{
Reid Spencera773bd52006-08-04 18:18:08 +000013918return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013919 ;
13920 return 0;
13921}
13922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013923for ac_lib in '' dir; do
13924 if test -z "$ac_lib"; then
13925 ac_res="none required"
13926 else
13927 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013929 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930 rm -f conftest.$ac_objext conftest$ac_exeext
13931if { (ac_try="$ac_link"
13932case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935esac
13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948esac
13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958esac
13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013964 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969
Reid Spencer59473af2004-12-25 07:31:29 +000013970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971
Bill Wendlingebcceee2009-04-18 11:20:33 +000013972rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973 conftest$ac_exeext
13974 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 break
Reid Spencer59473af2004-12-25 07:31:29 +000013976fi
Reid Spencera773bd52006-08-04 18:18:08 +000013977done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978if test "${ac_cv_search_opendir+set}" = set; then
13979 :
Reid Spencera773bd52006-08-04 18:18:08 +000013980else
13981 ac_cv_search_opendir=no
13982fi
13983rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013984LIBS=$ac_func_search_save_LIBS
13985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013988ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013991
13992fi
13993
13994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13996echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13997if test "${ac_cv_search_opendir+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013999else
14000 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014001cat >conftest.$ac_ext <<_ACEOF
14002/* confdefs.h. */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014006/* end confdefs.h. */
14007
Reid Spencera773bd52006-08-04 18:18:08 +000014008/* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014011#ifdef __cplusplus
14012extern "C"
14013#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014014char opendir ();
14015int
14016main ()
14017{
Reid Spencera773bd52006-08-04 18:18:08 +000014018return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014019 ;
14020 return 0;
14021}
14022_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014023for ac_lib in '' x; do
14024 if test -z "$ac_lib"; then
14025 ac_res="none required"
14026 else
14027 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014029 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030 rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (ac_try="$ac_link"
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_link") 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_exeext'
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 Spencera773bd52006-08-04 18:18:08 +000014064 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065else
14066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
14069
Reid Spencer59473af2004-12-25 07:31:29 +000014070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071
Bill Wendlingebcceee2009-04-18 11:20:33 +000014072rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073 conftest$ac_exeext
14074 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014075 break
Reid Spencer59473af2004-12-25 07:31:29 +000014076fi
Reid Spencera773bd52006-08-04 18:18:08 +000014077done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014078if test "${ac_cv_search_opendir+set}" = set; then
14079 :
Reid Spencera773bd52006-08-04 18:18:08 +000014080else
14081 ac_cv_search_opendir=no
14082fi
14083rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014084LIBS=$ac_func_search_save_LIBS
14085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14087echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014088ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014091
14092fi
14093
14094fi
14095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14097echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14098if test "${ac_cv_header_mmap_anon+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014100else
14101 ac_ext=c
14102ac_cpp='$CPP $CPPFLAGS'
14103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107 cat >conftest.$ac_ext <<_ACEOF
14108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014112/* end confdefs.h. */
14113#include <sys/mman.h>
14114#include <unistd.h>
14115#include <fcntl.h>
14116int
14117main ()
14118{
14119mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14120 ;
14121 return 0;
14122}
14123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124rm -f conftest.$ac_objext
14125if { (ac_try="$ac_compile"
14126case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142esac
14143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152esac
14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014158 ac_cv_header_mmap_anon=yes
14159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165
Reid Spencera773bd52006-08-04 18:18:08 +000014166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014167 ac_ext=c
14168ac_cpp='$CPP $CPPFLAGS'
14169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172
14173
14174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14176echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014177if test "$ac_cv_header_mmap_anon" = yes; then
14178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179cat >>confdefs.h <<\_ACEOF
14180#define HAVE_MMAP_ANONYMOUS 1
14181_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014182
14183fi
14184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14186echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14187if test "${ac_cv_header_stat_broken+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190 cat >conftest.$ac_ext <<_ACEOF
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014195/* end confdefs.h. */
14196#include <sys/types.h>
14197#include <sys/stat.h>
14198
Reid Spencera773bd52006-08-04 18:18:08 +000014199#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200# if S_ISBLK (S_IFDIR)
14201You lose.
14202# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014203#endif
14204
Reid Spencera773bd52006-08-04 18:18:08 +000014205#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206# if S_ISBLK (S_IFCHR)
14207You lose.
14208# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014209#endif
14210
Reid Spencera773bd52006-08-04 18:18:08 +000014211#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212# if S_ISLNK (S_IFREG)
14213You lose.
14214# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014215#endif
14216
Reid Spencera773bd52006-08-04 18:18:08 +000014217#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218# if S_ISSOCK (S_IFREG)
14219You lose.
14220# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014221#endif
14222
14223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014226 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227else
14228 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230rm -f conftest*
14231
Reid Spencer59473af2004-12-25 07:31:29 +000014232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14234echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014235if test $ac_cv_header_stat_broken = yes; then
14236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237cat >>confdefs.h <<\_ACEOF
14238#define STAT_MACROS_BROKEN 1
14239_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014240
14241fi
14242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14244echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14245if test "${ac_cv_header_stdc+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248 cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014254#include <stdlib.h>
14255#include <stdarg.h>
14256#include <string.h>
14257#include <float.h>
14258
John Criswell0c38eaf2003-09-10 15:17:25 +000014259int
14260main ()
14261{
14262
14263 ;
14264 return 0;
14265}
John Criswell7a73b802003-06-30 21:59:07 +000014266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267rm -f conftest.$ac_objext
14268if { (ac_try="$ac_compile"
14269case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272esac
14273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014301 ac_cv_header_stdc=yes
14302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308
Reid Spencera773bd52006-08-04 18:18:08 +000014309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014310
14311if test $ac_cv_header_stdc = yes; then
14312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313 cat >conftest.$ac_ext <<_ACEOF
14314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014319#include <string.h>
14320
14321_ACEOF
14322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323 $EGREP "memchr" >/dev/null 2>&1; then
14324 :
John Criswell7a73b802003-06-30 21:59:07 +000014325else
14326 ac_cv_header_stdc=no
14327fi
14328rm -f conftest*
14329
14330fi
14331
14332if test $ac_cv_header_stdc = yes; then
14333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334 cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014340#include <stdlib.h>
14341
14342_ACEOF
14343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344 $EGREP "free" >/dev/null 2>&1; then
14345 :
John Criswell7a73b802003-06-30 21:59:07 +000014346else
14347 ac_cv_header_stdc=no
14348fi
14349rm -f conftest*
14350
14351fi
14352
14353if test $ac_cv_header_stdc = yes; then
14354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014356 :
14357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358 cat >conftest.$ac_ext <<_ACEOF
14359/* confdefs.h. */
14360_ACEOF
14361cat confdefs.h >>conftest.$ac_ext
14362cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014364#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014365#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014366#if ((' ' & 0x0FF) == 0x020)
14367# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14368# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14369#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014370# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014371 (('a' <= (c) && (c) <= 'i') \
14372 || ('j' <= (c) && (c) <= 'r') \
14373 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14375#endif
14376
14377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14378int
14379main ()
14380{
14381 int i;
14382 for (i = 0; i < 256; i++)
14383 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014384 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014385 return 2;
14386 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014387}
14388_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389rm -f conftest$ac_exeext
14390if { (ac_try="$ac_link"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 :
John Criswell7a73b802003-06-30 21:59:07 +000014410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411 echo "$as_me: program exited with status $ac_status" >&5
14412echo "$as_me: failed program was:" >&5
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415( exit $ac_status )
14416ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418rm -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 +000014419fi
14420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421
John Criswell7a73b802003-06-30 21:59:07 +000014422fi
14423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14425echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014426if test $ac_cv_header_stdc = yes; then
14427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428cat >>confdefs.h <<\_ACEOF
14429#define STDC_HEADERS 1
14430_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014431
14432fi
14433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14435echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14436if test "${ac_cv_header_sys_wait_h+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439 cat >conftest.$ac_ext <<_ACEOF
14440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014445#include <sys/types.h>
14446#include <sys/wait.h>
14447#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014448# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014449#endif
14450#ifndef WIFEXITED
14451# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14452#endif
14453
John Criswell7a73b802003-06-30 21:59:07 +000014454int
14455main ()
14456{
14457 int s;
14458 wait (&s);
14459 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14460 ;
14461 return 0;
14462}
14463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464rm -f conftest.$ac_objext
14465if { (ac_try="$ac_compile"
14466case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469esac
14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_compile") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479 { (case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482esac
14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_try") 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492esac
14493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_try") 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014498 ac_cv_header_sys_wait_h=yes
14499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014505
Reid Spencera773bd52006-08-04 18:18:08 +000014506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14509echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014510if test $ac_cv_header_sys_wait_h = yes; then
14511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014512cat >>confdefs.h <<\_ACEOF
14513#define HAVE_SYS_WAIT_H 1
14514_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014515
14516fi
14517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014518{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14519echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14520if test "${ac_cv_header_time+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014523 cat >conftest.$ac_ext <<_ACEOF
14524/* confdefs.h. */
14525_ACEOF
14526cat confdefs.h >>conftest.$ac_ext
14527cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014528/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014529#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014530#include <sys/time.h>
14531#include <time.h>
14532
14533int
14534main ()
14535{
14536if ((struct tm *) 0)
14537return 0;
14538 ;
14539 return 0;
14540}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014541_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542rm -f conftest.$ac_objext
14543if { (ac_try="$ac_compile"
14544case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_compile") 2>conftest.er1
14550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570esac
14571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_try") 2>&5
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014576 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014578 echo "$as_me: failed program was:" >&5
14579sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014583
Reid Spencera773bd52006-08-04 18:18:08 +000014584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014586{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14587echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014588if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590cat >>confdefs.h <<\_ACEOF
14591#define TIME_WITH_SYS_TIME 1
14592_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014593
14594fi
14595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014597
14598
14599
14600
14601
14602
Reid Spencer59473af2004-12-25 07:31:29 +000014603for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604do
14605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611fi
14612ac_res=`eval echo '${'$as_ac_Header'}'`
14613 { echo "$as_me:$LINENO: result: $ac_res" >&5
14614echo "${ECHO_T}$ac_res" >&6; }
14615else
14616 # Is the header compilable?
14617{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14619cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h. */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
14624/* end confdefs.h. */
14625$ac_includes_default
14626#include <$ac_header>
14627_ACEOF
14628rm -f conftest.$ac_objext
14629if { (ac_try="$ac_compile"
14630case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
14634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646esac
14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656esac
14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_try") 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_header_compiler=yes
14663else
14664 echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_header_compiler=no
14668fi
14669
14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14672echo "${ECHO_T}$ac_header_compiler" >&6; }
14673
14674# Is the header present?
14675{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14677cat >conftest.$ac_ext <<_ACEOF
14678/* confdefs.h. */
14679_ACEOF
14680cat confdefs.h >>conftest.$ac_ext
14681cat >>conftest.$ac_ext <<_ACEOF
14682/* end confdefs.h. */
14683#include <$ac_header>
14684_ACEOF
14685if { (ac_try="$ac_cpp conftest.$ac_ext"
14686case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689esac
14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } >/dev/null; then
14698 if test -s conftest.err; then
14699 ac_cpp_err=$ac_c_preproc_warn_flag
14700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14701 else
14702 ac_cpp_err=
14703 fi
14704else
14705 ac_cpp_err=yes
14706fi
14707if test -z "$ac_cpp_err"; then
14708 ac_header_preproc=yes
14709else
14710 echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_header_preproc=no
14714fi
14715
14716rm -f conftest.err conftest.$ac_ext
14717{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14718echo "${ECHO_T}$ac_header_preproc" >&6; }
14719
14720# So? What about this header?
14721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14722 yes:no: )
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14727 ac_header_preproc=yes
14728 ;;
14729 no:yes:* )
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14742 ( cat <<\_ASBOX
14743## ----------------------------------- ##
14744## Report this to llvmbugs@cs.uiuc.edu ##
14745## ----------------------------------- ##
14746_ASBOX
14747 ) | sed "s/^/$as_me: WARNING: /" >&2
14748 ;;
14749esac
14750{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754else
14755 eval "$as_ac_Header=\$ac_header_preproc"
14756fi
14757ac_res=`eval echo '${'$as_ac_Header'}'`
14758 { echo "$as_me:$LINENO: result: $ac_res" >&5
14759echo "${ECHO_T}$ac_res" >&6; }
14760
14761fi
14762if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014763 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014765_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014766
14767fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014768
Reid Spencer59473af2004-12-25 07:31:29 +000014769done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014771
14772
14773
14774
14775
14776
Douglas Gregor071d73d2009-05-18 17:21:34 +000014777for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014778do
14779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785fi
14786ac_res=`eval echo '${'$as_ac_Header'}'`
14787 { echo "$as_me:$LINENO: result: $ac_res" >&5
14788echo "${ECHO_T}$ac_res" >&6; }
14789else
14790 # Is the header compilable?
14791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14793cat >conftest.$ac_ext <<_ACEOF
14794/* confdefs.h. */
14795_ACEOF
14796cat confdefs.h >>conftest.$ac_ext
14797cat >>conftest.$ac_ext <<_ACEOF
14798/* end confdefs.h. */
14799$ac_includes_default
14800#include <$ac_header>
14801_ACEOF
14802rm -f conftest.$ac_objext
14803if { (ac_try="$ac_compile"
14804case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14817 { (case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14820esac
14821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_try") 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_header_compiler=yes
14837else
14838 echo "$as_me: failed program was:" >&5
14839sed 's/^/| /' conftest.$ac_ext >&5
14840
14841 ac_header_compiler=no
14842fi
14843
14844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14846echo "${ECHO_T}$ac_header_compiler" >&6; }
14847
14848# Is the header present?
14849{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14850echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
14858_ACEOF
14859if { (ac_try="$ac_cpp conftest.$ac_ext"
14860case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14863esac
14864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } >/dev/null; then
14872 if test -s conftest.err; then
14873 ac_cpp_err=$ac_c_preproc_warn_flag
14874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14875 else
14876 ac_cpp_err=
14877 fi
14878else
14879 ac_cpp_err=yes
14880fi
14881if test -z "$ac_cpp_err"; then
14882 ac_header_preproc=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 ac_header_preproc=no
14888fi
14889
14890rm -f conftest.err conftest.$ac_ext
14891{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14892echo "${ECHO_T}$ac_header_preproc" >&6; }
14893
14894# So? What about this header?
14895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14896 yes:no: )
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14901 ac_header_preproc=yes
14902 ;;
14903 no:yes:* )
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14916 ( cat <<\_ASBOX
14917## ----------------------------------- ##
14918## Report this to llvmbugs@cs.uiuc.edu ##
14919## ----------------------------------- ##
14920_ASBOX
14921 ) | sed "s/^/$as_me: WARNING: /" >&2
14922 ;;
14923esac
14924{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928else
14929 eval "$as_ac_Header=\$ac_header_preproc"
14930fi
14931ac_res=`eval echo '${'$as_ac_Header'}'`
14932 { echo "$as_me:$LINENO: result: $ac_res" >&5
14933echo "${ECHO_T}$ac_res" >&6; }
14934
14935fi
14936if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014939_ACEOF
14940
14941fi
14942
14943done
14944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945
14946
Douglas Gregor071d73d2009-05-18 17:21:34 +000014947for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948do
14949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955fi
14956ac_res=`eval echo '${'$as_ac_Header'}'`
14957 { echo "$as_me:$LINENO: result: $ac_res" >&5
14958echo "${ECHO_T}$ac_res" >&6; }
14959else
14960 # Is the header compilable?
14961{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14962echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14963cat >conftest.$ac_ext <<_ACEOF
14964/* confdefs.h. */
14965_ACEOF
14966cat confdefs.h >>conftest.$ac_ext
14967cat >>conftest.$ac_ext <<_ACEOF
14968/* end confdefs.h. */
14969$ac_includes_default
14970#include <$ac_header>
14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (ac_try="$ac_compile"
14974case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
14978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest.$ac_objext'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_header_compiler=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_compiler=no
15012fi
15013
15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016echo "${ECHO_T}$ac_header_compiler" >&6; }
15017
15018# Is the header present?
15019{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15021cat >conftest.$ac_ext <<_ACEOF
15022/* confdefs.h. */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h. */
15027#include <$ac_header>
15028_ACEOF
15029if { (ac_try="$ac_cpp conftest.$ac_ext"
15030case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033esac
15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_c_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15045 else
15046 ac_cpp_err=
15047 fi
15048else
15049 ac_cpp_err=yes
15050fi
15051if test -z "$ac_cpp_err"; then
15052 ac_header_preproc=yes
15053else
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_header_preproc=no
15058fi
15059
15060rm -f conftest.err conftest.$ac_ext
15061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062echo "${ECHO_T}$ac_header_preproc" >&6; }
15063
15064# So? What about this header?
15065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15066 yes:no: )
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15071 ac_header_preproc=yes
15072 ;;
15073 no:yes:* )
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15086 ( cat <<\_ASBOX
15087## ----------------------------------- ##
15088## Report this to llvmbugs@cs.uiuc.edu ##
15089## ----------------------------------- ##
15090_ASBOX
15091 ) | sed "s/^/$as_me: WARNING: /" >&2
15092 ;;
15093esac
15094{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098else
15099 eval "$as_ac_Header=\$ac_header_preproc"
15100fi
15101ac_res=`eval echo '${'$as_ac_Header'}'`
15102 { echo "$as_me:$LINENO: result: $ac_res" >&5
15103echo "${ECHO_T}$ac_res" >&6; }
15104
15105fi
15106if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015107 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015109_ACEOF
15110
15111fi
15112
15113done
Reid Spencer59473af2004-12-25 07:31:29 +000015114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015115
15116
15117
15118
Daniel Dunbar3e462932011-02-03 02:40:02 +000015119
15120for 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 +000015121do
15122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128fi
15129ac_res=`eval echo '${'$as_ac_Header'}'`
15130 { echo "$as_me:$LINENO: result: $ac_res" >&5
15131echo "${ECHO_T}$ac_res" >&6; }
15132else
15133 # Is the header compilable?
15134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15136cat >conftest.$ac_ext <<_ACEOF
15137/* confdefs.h. */
15138_ACEOF
15139cat confdefs.h >>conftest.$ac_ext
15140cat >>conftest.$ac_ext <<_ACEOF
15141/* end confdefs.h. */
15142$ac_includes_default
15143#include <$ac_header>
15144_ACEOF
15145rm -f conftest.$ac_objext
15146if { (ac_try="$ac_compile"
15147case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_compile") 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15180else
15181 echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_header_compiler=no
15185fi
15186
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189echo "${ECHO_T}$ac_header_compiler" >&6; }
15190
15191# Is the header present?
15192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15194cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200#include <$ac_header>
15201_ACEOF
15202if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15215 if test -s conftest.err; then
15216 ac_cpp_err=$ac_c_preproc_warn_flag
15217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15218 else
15219 ac_cpp_err=
15220 fi
15221else
15222 ac_cpp_err=yes
15223fi
15224if test -z "$ac_cpp_err"; then
15225 ac_header_preproc=yes
15226else
15227 echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_header_preproc=no
15231fi
15232
15233rm -f conftest.err conftest.$ac_ext
15234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235echo "${ECHO_T}$ac_header_preproc" >&6; }
15236
15237# So? What about this header?
15238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15239 yes:no: )
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244 ac_header_preproc=yes
15245 ;;
15246 no:yes:* )
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15259 ( cat <<\_ASBOX
15260## ----------------------------------- ##
15261## Report this to llvmbugs@cs.uiuc.edu ##
15262## ----------------------------------- ##
15263_ASBOX
15264 ) | sed "s/^/$as_me: WARNING: /" >&2
15265 ;;
15266esac
15267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 eval "$as_ac_Header=\$ac_header_preproc"
15273fi
15274ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276echo "${ECHO_T}$ac_res" >&6; }
15277
15278fi
15279if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015282_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015283
15284fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015285
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015286done
15287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288
15289
15290
15291
Douglas Gregor01746742009-05-11 18:05:52 +000015292for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015293do
15294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300fi
15301ac_res=`eval echo '${'$as_ac_Header'}'`
15302 { echo "$as_me:$LINENO: result: $ac_res" >&5
15303echo "${ECHO_T}$ac_res" >&6; }
15304else
15305 # Is the header compilable?
15306{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15308cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314$ac_includes_default
15315#include <$ac_header>
15316_ACEOF
15317rm -f conftest.$ac_objext
15318if { (ac_try="$ac_compile"
15319case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322esac
15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_compile") 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_header_compiler=yes
15352else
15353 echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 ac_header_compiler=no
15357fi
15358
15359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361echo "${ECHO_T}$ac_header_compiler" >&6; }
15362
15363# Is the header present?
15364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372#include <$ac_header>
15373_ACEOF
15374if { (ac_try="$ac_cpp conftest.$ac_ext"
15375case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } >/dev/null; then
15387 if test -s conftest.err; then
15388 ac_cpp_err=$ac_c_preproc_warn_flag
15389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15390 else
15391 ac_cpp_err=
15392 fi
15393else
15394 ac_cpp_err=yes
15395fi
15396if test -z "$ac_cpp_err"; then
15397 ac_header_preproc=yes
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 ac_header_preproc=no
15403fi
15404
15405rm -f conftest.err conftest.$ac_ext
15406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407echo "${ECHO_T}$ac_header_preproc" >&6; }
15408
15409# So? What about this header?
15410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15411 yes:no: )
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15416 ac_header_preproc=yes
15417 ;;
15418 no:yes:* )
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15431 ( cat <<\_ASBOX
15432## ----------------------------------- ##
15433## Report this to llvmbugs@cs.uiuc.edu ##
15434## ----------------------------------- ##
15435_ASBOX
15436 ) | sed "s/^/$as_me: WARNING: /" >&2
15437 ;;
15438esac
15439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443else
15444 eval "$as_ac_Header=\$ac_header_preproc"
15445fi
15446ac_res=`eval echo '${'$as_ac_Header'}'`
15447 { echo "$as_me:$LINENO: result: $ac_res" >&5
15448echo "${ECHO_T}$ac_res" >&6; }
15449
15450fi
15451if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015454_ACEOF
15455
15456fi
15457
15458done
15459
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015460
15461for ac_header in valgrind/valgrind.h
15462do
15463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469fi
15470ac_res=`eval echo '${'$as_ac_Header'}'`
15471 { echo "$as_me:$LINENO: result: $ac_res" >&5
15472echo "${ECHO_T}$ac_res" >&6; }
15473else
15474 # Is the header compilable?
15475{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15477cat >conftest.$ac_ext <<_ACEOF
15478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
15483$ac_includes_default
15484#include <$ac_header>
15485_ACEOF
15486rm -f conftest.$ac_objext
15487if { (ac_try="$ac_compile"
15488case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491esac
15492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest.$ac_objext'
15511 { (case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15514esac
15515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_try") 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_header_compiler=yes
15521else
15522 echo "$as_me: failed program was:" >&5
15523sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 ac_header_compiler=no
15526fi
15527
15528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15530echo "${ECHO_T}$ac_header_compiler" >&6; }
15531
15532# Is the header present?
15533{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15535cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h. */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
15541#include <$ac_header>
15542_ACEOF
15543if { (ac_try="$ac_cpp conftest.$ac_ext"
15544case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } >/dev/null; then
15556 if test -s conftest.err; then
15557 ac_cpp_err=$ac_c_preproc_warn_flag
15558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15559 else
15560 ac_cpp_err=
15561 fi
15562else
15563 ac_cpp_err=yes
15564fi
15565if test -z "$ac_cpp_err"; then
15566 ac_header_preproc=yes
15567else
15568 echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571 ac_header_preproc=no
15572fi
15573
15574rm -f conftest.err conftest.$ac_ext
15575{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576echo "${ECHO_T}$ac_header_preproc" >&6; }
15577
15578# So? What about this header?
15579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580 yes:no: )
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
15586 ;;
15587 no:yes:* )
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15600 ( cat <<\_ASBOX
15601## ----------------------------------- ##
15602## Report this to llvmbugs@cs.uiuc.edu ##
15603## ----------------------------------- ##
15604_ASBOX
15605 ) | sed "s/^/$as_me: WARNING: /" >&2
15606 ;;
15607esac
15608{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15612else
15613 eval "$as_ac_Header=\$ac_header_preproc"
15614fi
15615ac_res=`eval echo '${'$as_ac_Header'}'`
15616 { echo "$as_me:$LINENO: result: $ac_res" >&5
15617echo "${ECHO_T}$ac_res" >&6; }
15618
15619fi
15620if test `eval echo '${'$as_ac_Header'}'` = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15623_ACEOF
15624
15625fi
15626
15627done
15628
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015629
15630for ac_header in fenv.h
15631do
15632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638fi
15639ac_res=`eval echo '${'$as_ac_Header'}'`
15640 { echo "$as_me:$LINENO: result: $ac_res" >&5
15641echo "${ECHO_T}$ac_res" >&6; }
15642else
15643 # Is the header compilable?
15644{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15646cat >conftest.$ac_ext <<_ACEOF
15647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
15652$ac_includes_default
15653#include <$ac_header>
15654_ACEOF
15655rm -f conftest.$ac_objext
15656if { (ac_try="$ac_compile"
15657case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660esac
15661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683esac
15684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_try") 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_header_compiler=yes
15690else
15691 echo "$as_me: failed program was:" >&5
15692sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_header_compiler=no
15695fi
15696
15697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15699echo "${ECHO_T}$ac_header_compiler" >&6; }
15700
15701# Is the header present?
15702{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15704cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710#include <$ac_header>
15711_ACEOF
15712if { (ac_try="$ac_cpp conftest.$ac_ext"
15713case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } >/dev/null; then
15725 if test -s conftest.err; then
15726 ac_cpp_err=$ac_c_preproc_warn_flag
15727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15728 else
15729 ac_cpp_err=
15730 fi
15731else
15732 ac_cpp_err=yes
15733fi
15734if test -z "$ac_cpp_err"; then
15735 ac_header_preproc=yes
15736else
15737 echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_preproc=no
15741fi
15742
15743rm -f conftest.err conftest.$ac_ext
15744{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15745echo "${ECHO_T}$ac_header_preproc" >&6; }
15746
15747# So? What about this header?
15748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15749 yes:no: )
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15754 ac_header_preproc=yes
15755 ;;
15756 no:yes:* )
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15769 ( cat <<\_ASBOX
15770## ----------------------------------- ##
15771## Report this to llvmbugs@cs.uiuc.edu ##
15772## ----------------------------------- ##
15773_ASBOX
15774 ) | sed "s/^/$as_me: WARNING: /" >&2
15775 ;;
15776esac
15777{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781else
15782 eval "$as_ac_Header=\$ac_header_preproc"
15783fi
15784ac_res=`eval echo '${'$as_ac_Header'}'`
15785 { echo "$as_me:$LINENO: result: $ac_res" >&5
15786echo "${ECHO_T}$ac_res" >&6; }
15787
15788fi
15789if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792_ACEOF
15793
15794fi
15795
15796done
15797
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015798if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015799
15800for ac_header in pthread.h
15801do
15802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808fi
15809ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811echo "${ECHO_T}$ac_res" >&6; }
15812else
15813 # Is the header compilable?
15814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822$ac_includes_default
15823#include <$ac_header>
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (ac_try="$ac_compile"
15827case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15830esac
15831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_compile") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853esac
15854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15860else
15861 echo "$as_me: failed program was:" >&5
15862sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 ac_header_compiler=no
15865fi
15866
15867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869echo "${ECHO_T}$ac_header_compiler" >&6; }
15870
15871# Is the header present?
15872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880#include <$ac_header>
15881_ACEOF
15882if { (ac_try="$ac_cpp conftest.$ac_ext"
15883case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886esac
15887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_c_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898 else
15899 ac_cpp_err=
15900 fi
15901else
15902 ac_cpp_err=yes
15903fi
15904if test -z "$ac_cpp_err"; then
15905 ac_header_preproc=yes
15906else
15907 echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 ac_header_preproc=no
15911fi
15912
15913rm -f conftest.err conftest.$ac_ext
15914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915echo "${ECHO_T}$ac_header_preproc" >&6; }
15916
15917# So? What about this header?
15918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15919 yes:no: )
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc=yes
15925 ;;
15926 no:yes:* )
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15939 ( cat <<\_ASBOX
15940## ----------------------------------- ##
15941## Report this to llvmbugs@cs.uiuc.edu ##
15942## ----------------------------------- ##
15943_ASBOX
15944 ) | sed "s/^/$as_me: WARNING: /" >&2
15945 ;;
15946esac
15947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952 eval "$as_ac_Header=\$ac_header_preproc"
15953fi
15954ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956echo "${ECHO_T}$ac_res" >&6; }
15957
15958fi
15959if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015960 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015962_ACEOF
15963 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015964
15965else
15966 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015967
15968fi
15969
Reid Spencerbe3e4192007-08-17 05:45:26 +000015970done
Reid Spencer1000b732006-12-01 00:37:14 +000015971
15972else
15973 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015974
15975fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015976
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015977if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015978
15979
15980for ac_header in ffi.h ffi/ffi.h
15981do
15982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988fi
15989ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991echo "${ECHO_T}$ac_res" >&6; }
15992else
15993 # Is the header compilable?
15994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996cat >conftest.$ac_ext <<_ACEOF
15997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
16002$ac_includes_default
16003#include <$ac_header>
16004_ACEOF
16005rm -f conftest.$ac_objext
16006if { (ac_try="$ac_compile"
16007case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010esac
16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023esac
16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ac_header_compiler=no
16045fi
16046
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051# Is the header present?
16052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060#include <$ac_header>
16061_ACEOF
16062if { (ac_try="$ac_cpp conftest.$ac_ext"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078 else
16079 ac_cpp_err=
16080 fi
16081else
16082 ac_cpp_err=yes
16083fi
16084if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_header_preproc=no
16091fi
16092
16093rm -f conftest.err conftest.$ac_ext
16094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097# So? What about this header?
16098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 yes:no: )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16105 ;;
16106 no:yes:* )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 ( cat <<\_ASBOX
16120## ----------------------------------- ##
16121## Report this to llvmbugs@cs.uiuc.edu ##
16122## ----------------------------------- ##
16123_ASBOX
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16125 ;;
16126esac
16127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131else
16132 eval "$as_ac_Header=\$ac_header_preproc"
16133fi
16134ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136echo "${ECHO_T}$ac_res" >&6; }
16137
16138fi
16139if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016142_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016143
16144fi
16145
16146done
16147
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016148fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016149
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016150
Eric Christopher654dee42010-06-22 21:01:04 +000016151for ac_header in CrashReporterClient.h
16152do
16153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163else
16164 # Is the header compilable?
16165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173$ac_includes_default
16174#include <$ac_header>
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (ac_try="$ac_compile"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194esac
16195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204esac
16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_header_compiler=no
16216fi
16217
16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220echo "${ECHO_T}$ac_header_compiler" >&6; }
16221
16222# Is the header present?
16223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
16231#include <$ac_header>
16232_ACEOF
16233if { (ac_try="$ac_cpp conftest.$ac_ext"
16234case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237esac
16238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16249 else
16250 ac_cpp_err=
16251 fi
16252else
16253 ac_cpp_err=yes
16254fi
16255if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_header_preproc=no
16262fi
16263
16264rm -f conftest.err conftest.$ac_ext
16265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266echo "${ECHO_T}$ac_header_preproc" >&6; }
16267
16268# So? What about this header?
16269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270 yes:no: )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16276 ;;
16277 no:yes:* )
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290 ( cat <<\_ASBOX
16291## ----------------------------------- ##
16292## Report this to llvmbugs@cs.uiuc.edu ##
16293## ----------------------------------- ##
16294_ASBOX
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16296 ;;
16297esac
16298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 eval "$as_ac_Header=\$ac_header_preproc"
16304fi
16305ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307echo "${ECHO_T}$ac_res" >&6; }
16308
16309fi
16310if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313_ACEOF
16314
16315fi
16316
16317done
16318
16319
Eric Christopher51e57132010-12-07 02:05:42 +000016320{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16321echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016322cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016328extern const char *__crashreporter_info__;
16329 int main() {
16330 __crashreporter_info__ = "test";
16331 return 0;
16332 }
Eric Christopher481d4022010-12-03 07:45:22 +000016333
Eric Christopher481d4022010-12-03 07:45:22 +000016334_ACEOF
16335rm -f conftest.$ac_objext conftest$ac_exeext
16336if { (ac_try="$ac_link"
16337case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest$ac_exeext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016369 { echo "$as_me:$LINENO: result: yes" >&5
16370echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016371
16372cat >>confdefs.h <<\_ACEOF
16373#define HAVE_CRASHREPORTER_INFO 1
16374_ACEOF
16375
Eric Christopher51e57132010-12-07 02:05:42 +000016376else
16377 echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 { echo "$as_me:$LINENO: result: no" >&5
16381echo "${ECHO_T}no" >&6; }
16382
16383cat >>confdefs.h <<\_ACEOF
16384#define HAVE_CRASHREPORTER_INFO 0
16385_ACEOF
16386
Eric Christopher481d4022010-12-03 07:45:22 +000016387fi
Eric Christopher654dee42010-06-22 21:01:04 +000016388
Eric Christopher51e57132010-12-07 02:05:42 +000016389rm -f core conftest.err conftest.$ac_objext \
16390 conftest$ac_exeext conftest.$ac_ext
16391
16392
Reid Spencer8085cff2005-01-16 02:58:39 +000016393
Torok Edwin871384f2010-01-26 08:50:50 +000016394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016395 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16396echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16397if test "${ac_cv_huge_val_sanity+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016399else
16400
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016401 ac_ext=cpp
16402ac_cpp='$CXXCPP $CPPFLAGS'
16403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016406
Eric Christopherc7718502010-03-02 05:06:54 +000016407 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016408 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016409 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016410 ac_cv_huge_val_sanity=yes
16411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412 cat >conftest.$ac_ext <<_ACEOF
16413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016417/* end confdefs.h. */
16418#include <math.h>
16419int
16420main ()
16421{
16422double x = HUGE_VAL; return x != x;
16423 ;
16424 return 0;
16425}
16426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427rm -f conftest$ac_exeext
16428if { (ac_try="$ac_link"
16429case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441esac
16442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016447 ac_cv_huge_val_sanity=yes
16448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016449 echo "$as_me: program exited with status $ac_status" >&5
16450echo "$as_me: failed program was:" >&5
16451sed 's/^/| /' conftest.$ac_ext >&5
16452
16453( exit $ac_status )
16454ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016456rm -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 +000016457fi
16458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016459
Eric Christopherc7718502010-03-02 05:06:54 +000016460 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016461 ac_ext=c
16462ac_cpp='$CPP $CPPFLAGS'
16463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465ac_compiler_gnu=$ac_cv_c_compiler_gnu
16466
16467
16468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16470echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016471 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16472
16473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016474{ echo "$as_me:$LINENO: checking for pid_t" >&5
16475echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16476if test "${ac_cv_type_pid_t+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479 cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h. */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h. */
16485$ac_includes_default
16486typedef pid_t ac__type_new_;
16487int
16488main ()
16489{
16490if ((ac__type_new_ *) 0)
16491 return 0;
16492if (sizeof (ac__type_new_))
16493 return 0;
16494 ;
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext
16499if { (ac_try="$ac_compile"
16500case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_type_pid_t=yes
16533else
16534 echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016537 ac_cv_type_pid_t=no
16538fi
16539
16540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541fi
16542{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16543echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16544if test $ac_cv_type_pid_t = yes; then
16545 :
John Criswell7a73b802003-06-30 21:59:07 +000016546else
16547
16548cat >>confdefs.h <<_ACEOF
16549#define pid_t int
16550_ACEOF
16551
16552fi
16553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016554{ echo "$as_me:$LINENO: checking for size_t" >&5
16555echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16556if test "${ac_cv_type_size_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
16565$ac_includes_default
16566typedef size_t ac__type_new_;
16567int
16568main ()
16569{
16570if ((ac__type_new_ *) 0)
16571 return 0;
16572if (sizeof (ac__type_new_))
16573 return 0;
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (ac_try="$ac_compile"
16580case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_size_t=yes
16613else
16614 echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016617 ac_cv_type_size_t=no
16618fi
16619
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621fi
16622{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16623echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16624if test $ac_cv_type_size_t = yes; then
16625 :
John Criswell7a73b802003-06-30 21:59:07 +000016626else
16627
16628cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016629#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016630_ACEOF
16631
16632fi
16633
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016634
16635cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016636#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016637_ACEOF
16638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016639{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16640echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16641if test "${ac_cv_struct_tm+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016649/* end confdefs.h. */
16650#include <sys/types.h>
16651#include <time.h>
16652
16653int
16654main ()
16655{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016656struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016657 ;
16658 return 0;
16659}
16660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016661rm -f conftest.$ac_objext
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689esac
16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016695 ac_cv_struct_tm=time.h
16696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016702
Reid Spencera773bd52006-08-04 18:18:08 +000016703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016705{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16706echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016707if test $ac_cv_struct_tm = sys/time.h; then
16708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016709cat >>confdefs.h <<\_ACEOF
16710#define TM_IN_SYS_TIME 1
16711_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016712
16713fi
16714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016715{ echo "$as_me:$LINENO: checking for int64_t" >&5
16716echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16717if test "${ac_cv_type_int64_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719else
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726$ac_includes_default
16727typedef int64_t ac__type_new_;
16728int
16729main ()
16730{
16731if ((ac__type_new_ *) 0)
16732 return 0;
16733if (sizeof (ac__type_new_))
16734 return 0;
16735 ;
16736 return 0;
16737}
16738_ACEOF
16739rm -f conftest.$ac_objext
16740if { (ac_try="$ac_compile"
16741case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757esac
16758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767esac
16768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_cv_type_int64_t=yes
16774else
16775 echo "$as_me: failed program was:" >&5
16776sed 's/^/| /' conftest.$ac_ext >&5
16777
16778 ac_cv_type_int64_t=no
16779fi
16780
16781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782fi
16783{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16784echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16785if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016786
16787cat >>confdefs.h <<_ACEOF
16788#define HAVE_INT64_T 1
16789_ACEOF
16790
16791
16792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016793 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16794echo "$as_me: error: Type int64_t required but not found" >&2;}
16795 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016796fi
16797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16799echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16800if test "${ac_cv_type_uint64_t+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802else
16803 cat >conftest.$ac_ext <<_ACEOF
16804/* confdefs.h. */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h. */
16809$ac_includes_default
16810typedef uint64_t ac__type_new_;
16811int
16812main ()
16813{
16814if ((ac__type_new_ *) 0)
16815 return 0;
16816if (sizeof (ac__type_new_))
16817 return 0;
16818 ;
16819 return 0;
16820}
16821_ACEOF
16822rm -f conftest.$ac_objext
16823if { (ac_try="$ac_compile"
16824case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840esac
16841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850esac
16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_uint64_t=yes
16857else
16858 echo "$as_me: failed program was:" >&5
16859sed 's/^/| /' conftest.$ac_ext >&5
16860
16861 ac_cv_type_uint64_t=no
16862fi
16863
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16867echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16868if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016869
16870cat >>confdefs.h <<_ACEOF
16871#define HAVE_UINT64_T 1
16872_ACEOF
16873
16874
16875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016876 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16877echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16878if test "${ac_cv_type_u_int64_t+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881 cat >conftest.$ac_ext <<_ACEOF
16882/* confdefs.h. */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h. */
16887$ac_includes_default
16888typedef u_int64_t ac__type_new_;
16889int
16890main ()
16891{
16892if ((ac__type_new_ *) 0)
16893 return 0;
16894if (sizeof (ac__type_new_))
16895 return 0;
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext
16901if { (ac_try="$ac_compile"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_compile") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_type_u_int64_t=yes
16935else
16936 echo "$as_me: failed program was:" >&5
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_type_u_int64_t=no
16940fi
16941
16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943fi
16944{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16945echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16946if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016947
16948cat >>confdefs.h <<_ACEOF
16949#define HAVE_U_INT64_T 1
16950_ACEOF
16951
16952
Misha Brukmanceca9042004-09-02 23:02:30 +000016953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016954 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16955echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16956 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016957fi
16958
John Criswell679ff312004-09-02 18:44:44 +000016959fi
16960
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016961
16962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016963
16964
16965
16966
16967
16968
16969
Reid Spencerdf3be822006-01-23 08:15:53 +000016970for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016971do
16972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16973{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978 cat >conftest.$ac_ext <<_ACEOF
16979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
16984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16986#define $ac_func innocuous_$ac_func
16987
16988/* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char $ac_func (); below.
16990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 <limits.h> exists even on freestanding compilers. */
16992
16993#ifdef __STDC__
16994# include <limits.h>
16995#else
16996# include <assert.h>
16997#endif
16998
16999#undef $ac_func
17000
17001/* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17004#ifdef __cplusplus
17005extern "C"
17006#endif
17007char $ac_func ();
17008/* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011#if defined __stub_$ac_func || defined __stub___$ac_func
17012choke me
17013#endif
17014
17015int
17016main ()
17017{
17018return $ac_func ();
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
17024if { (ac_try="$ac_link"
17025case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 eval "$as_ac_var=yes"
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 eval "$as_ac_var=no"
17063fi
17064
17065rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067fi
17068ac_res=`eval echo '${'$as_ac_var'}'`
17069 { echo "$as_me:$LINENO: result: $ac_res" >&5
17070echo "${ECHO_T}$ac_res" >&6; }
17071if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017074_ACEOF
17075
17076fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017077done
John Criswell7a73b802003-06-30 21:59:07 +000017078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017079
17080
17081
17082
Reid Spencer96cf5872007-07-13 10:05:30 +000017083for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017084do
17085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
17091 cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
17097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099#define $ac_func innocuous_$ac_func
17100
17101/* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char $ac_func (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17105
17106#ifdef __STDC__
17107# include <limits.h>
17108#else
17109# include <assert.h>
17110#endif
17111
17112#undef $ac_func
17113
17114/* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17117#ifdef __cplusplus
17118extern "C"
17119#endif
17120char $ac_func ();
17121/* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124#if defined __stub_$ac_func || defined __stub___$ac_func
17125choke me
17126#endif
17127
17128int
17129main ()
17130{
17131return $ac_func ();
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 eval "$as_ac_var=yes"
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 eval "$as_ac_var=no"
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180fi
17181ac_res=`eval echo '${'$as_ac_var'}'`
17182 { echo "$as_me:$LINENO: result: $ac_res" >&5
17183echo "${ECHO_T}$ac_res" >&6; }
17184if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017185 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017187_ACEOF
17188
17189fi
17190done
17191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017192
17193
17194
17195
17196
Reid Spencerb90645c2007-02-16 19:17:20 +000017197for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017198do
17199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17200{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204else
17205 cat >conftest.$ac_ext <<_ACEOF
17206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
17211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17213#define $ac_func innocuous_$ac_func
17214
17215/* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char $ac_func (); below.
17217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17218 <limits.h> exists even on freestanding compilers. */
17219
17220#ifdef __STDC__
17221# include <limits.h>
17222#else
17223# include <assert.h>
17224#endif
17225
17226#undef $ac_func
17227
17228/* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17231#ifdef __cplusplus
17232extern "C"
17233#endif
17234char $ac_func ();
17235/* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238#if defined __stub_$ac_func || defined __stub___$ac_func
17239choke me
17240#endif
17241
17242int
17243main ()
17244{
17245return $ac_func ();
17246 ;
17247 return 0;
17248}
17249_ACEOF
17250rm -f conftest.$ac_objext conftest$ac_exeext
17251if { (ac_try="$ac_link"
17252case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest$ac_exeext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 eval "$as_ac_var=yes"
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 eval "$as_ac_var=no"
17290fi
17291
17292rm -f core conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294fi
17295ac_res=`eval echo '${'$as_ac_var'}'`
17296 { echo "$as_me:$LINENO: result: $ac_res" >&5
17297echo "${ECHO_T}$ac_res" >&6; }
17298if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017299 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017301_ACEOF
17302
17303fi
17304done
17305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017306
17307
17308
Reid Spencerb90645c2007-02-16 19:17:20 +000017309for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017310do
17311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325#define $ac_func innocuous_$ac_func
17326
17327/* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17331
17332#ifdef __STDC__
17333# include <limits.h>
17334#else
17335# include <assert.h>
17336#endif
17337
17338#undef $ac_func
17339
17340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char $ac_func ();
17347/* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350#if defined __stub_$ac_func || defined __stub___$ac_func
17351choke me
17352#endif
17353
17354int
17355main ()
17356{
17357return $ac_func ();
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext conftest$ac_exeext
17363if { (ac_try="$ac_link"
17364case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 eval "$as_ac_var=yes"
17397else
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 eval "$as_ac_var=no"
17402fi
17403
17404rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406fi
17407ac_res=`eval echo '${'$as_ac_var'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409echo "${ECHO_T}$ac_res" >&6; }
17410if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017411 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017413_ACEOF
17414
17415fi
17416done
17417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017418
17419
17420
17421
17422
Eric Christophere4291822010-04-16 05:14:21 +000017423
17424for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425do
17426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17431else
17432 cat >conftest.$ac_ext <<_ACEOF
17433/* confdefs.h. */
17434_ACEOF
17435cat confdefs.h >>conftest.$ac_ext
17436cat >>conftest.$ac_ext <<_ACEOF
17437/* end confdefs.h. */
17438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17440#define $ac_func innocuous_$ac_func
17441
17442/* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func (); below.
17444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17445 <limits.h> exists even on freestanding compilers. */
17446
17447#ifdef __STDC__
17448# include <limits.h>
17449#else
17450# include <assert.h>
17451#endif
17452
17453#undef $ac_func
17454
17455/* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17458#ifdef __cplusplus
17459extern "C"
17460#endif
17461char $ac_func ();
17462/* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465#if defined __stub_$ac_func || defined __stub___$ac_func
17466choke me
17467#endif
17468
17469int
17470main ()
17471{
17472return $ac_func ();
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext conftest$ac_exeext
17478if { (ac_try="$ac_link"
17479case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482esac
17483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_link") 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 eval "$as_ac_var=yes"
17512else
17513 echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 eval "$as_ac_var=no"
17517fi
17518
17519rm -f core conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17521fi
17522ac_res=`eval echo '${'$as_ac_var'}'`
17523 { echo "$as_me:$LINENO: result: $ac_res" >&5
17524echo "${ECHO_T}$ac_res" >&6; }
17525if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017528_ACEOF
17529
17530fi
17531done
Reid Spencerdf3be822006-01-23 08:15:53 +000017532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017533
17534
17535
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017536for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017537do
17538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543else
17544 cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17552#define $ac_func innocuous_$ac_func
17553
17554/* System header to define __stub macros and hopefully few prototypes,
17555 which can conflict with char $ac_func (); below.
17556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557 <limits.h> exists even on freestanding compilers. */
17558
17559#ifdef __STDC__
17560# include <limits.h>
17561#else
17562# include <assert.h>
17563#endif
17564
17565#undef $ac_func
17566
17567/* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17570#ifdef __cplusplus
17571extern "C"
17572#endif
17573char $ac_func ();
17574/* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577#if defined __stub_$ac_func || defined __stub___$ac_func
17578choke me
17579#endif
17580
17581int
17582main ()
17583{
17584return $ac_func ();
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589rm -f conftest.$ac_objext conftest$ac_exeext
17590if { (ac_try="$ac_link"
17591case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594esac
17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17624else
17625 echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 eval "$as_ac_var=no"
17629fi
17630
17631rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17633fi
17634ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636echo "${ECHO_T}$ac_res" >&6; }
17637if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017638 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017640_ACEOF
17641
17642fi
17643done
17644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017645
17646
17647
17648
Chris Lattner511f11d2005-11-14 07:25:50 +000017649for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017650do
17651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656else
17657 cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h. */
17663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17665#define $ac_func innocuous_$ac_func
17666
17667/* System header to define __stub macros and hopefully few prototypes,
17668 which can conflict with char $ac_func (); below.
17669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17670 <limits.h> exists even on freestanding compilers. */
17671
17672#ifdef __STDC__
17673# include <limits.h>
17674#else
17675# include <assert.h>
17676#endif
17677
17678#undef $ac_func
17679
17680/* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17683#ifdef __cplusplus
17684extern "C"
17685#endif
17686char $ac_func ();
17687/* The GNU C library defines this for functions which it implements
17688 to always fail with ENOSYS. Some functions are actually named
17689 something starting with __ and the normal name is an alias. */
17690#if defined __stub_$ac_func || defined __stub___$ac_func
17691choke me
17692#endif
17693
17694int
17695main ()
17696{
17697return $ac_func ();
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext conftest$ac_exeext
17703if { (ac_try="$ac_link"
17704case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_link") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 eval "$as_ac_var=yes"
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 eval "$as_ac_var=no"
17742fi
17743
17744rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746fi
17747ac_res=`eval echo '${'$as_ac_var'}'`
17748 { echo "$as_me:$LINENO: result: $ac_res" >&5
17749echo "${ECHO_T}$ac_res" >&6; }
17750if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017751 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017753_ACEOF
17754
17755fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017756done
John Criswell7a73b802003-06-30 21:59:07 +000017757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017758
17759
17760
17761
Daniel Dunbar3e462932011-02-03 02:40:02 +000017762
17763for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017764do
17765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770else
17771 cat >conftest.$ac_ext <<_ACEOF
17772/* confdefs.h. */
17773_ACEOF
17774cat confdefs.h >>conftest.$ac_ext
17775cat >>conftest.$ac_ext <<_ACEOF
17776/* end confdefs.h. */
17777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17779#define $ac_func innocuous_$ac_func
17780
17781/* System header to define __stub macros and hopefully few prototypes,
17782 which can conflict with char $ac_func (); below.
17783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17784 <limits.h> exists even on freestanding compilers. */
17785
17786#ifdef __STDC__
17787# include <limits.h>
17788#else
17789# include <assert.h>
17790#endif
17791
17792#undef $ac_func
17793
17794/* Override any GCC internal prototype to avoid an error.
17795 Use char because int might match the return type of a GCC
17796 builtin and then its argument prototype would still apply. */
17797#ifdef __cplusplus
17798extern "C"
17799#endif
17800char $ac_func ();
17801/* The GNU C library defines this for functions which it implements
17802 to always fail with ENOSYS. Some functions are actually named
17803 something starting with __ and the normal name is an alias. */
17804#if defined __stub_$ac_func || defined __stub___$ac_func
17805choke me
17806#endif
17807
17808int
17809main ()
17810{
17811return $ac_func ();
17812 ;
17813 return 0;
17814}
17815_ACEOF
17816rm -f conftest.$ac_objext conftest$ac_exeext
17817if { (ac_try="$ac_link"
17818case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821esac
17822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_link") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834esac
17835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17844esac
17845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_try") 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 eval "$as_ac_var=yes"
17851else
17852 echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855 eval "$as_ac_var=no"
17856fi
17857
17858rm -f core conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
17860fi
17861ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863echo "${ECHO_T}$ac_res" >&6; }
17864if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017865 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017867_ACEOF
17868
17869fi
17870done
17871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17873echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17874if test "${llvm_cv_c_printf_a+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017876else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017877 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017878ac_cpp='$CPP $CPPFLAGS'
17879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017883 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017884 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017888 /* confdefs.h. */
17889_ACEOF
17890cat confdefs.h >>conftest.$ac_ext
17891cat >>conftest.$ac_ext <<_ACEOF
17892/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017893
John Criswella0137d32003-10-13 16:22:01 +000017894#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895#include <stdlib.h>
17896
John Criswella0137d32003-10-13 16:22:01 +000017897int
17898main ()
17899{
17900
Reid Spencer2706f8c2004-09-19 23:53:36 +000017901volatile double A, B;
17902char Buffer[100];
17903A = 1;
17904A /= 10.0;
17905sprintf(Buffer, "%a", A);
17906B = atof(Buffer);
17907if (A != B)
17908 return (1);
17909if (A != 0x1.999999999999ap-4)
17910 return (1);
17911return (0);
John Criswella0137d32003-10-13 16:22:01 +000017912 ;
17913 return 0;
17914}
17915_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017916rm -f conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930esac
17931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017936 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938 echo "$as_me: program exited with status $ac_status" >&5
17939echo "$as_me: failed program was:" >&5
17940sed 's/^/| /' conftest.$ac_ext >&5
17941
17942( exit $ac_status )
17943llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017945rm -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 +000017946fi
Reid Spencera773bd52006-08-04 18:18:08 +000017947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948
Reid Spencer2706f8c2004-09-19 23:53:36 +000017949 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017950ac_cpp='$CPP $CPPFLAGS'
17951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17953ac_compiler_gnu=$ac_cv_c_compiler_gnu
17954
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017956{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17957echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017958 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017960cat >>confdefs.h <<\_ACEOF
17961#define HAVE_PRINTF_A 1
17962_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017963
Reid Spencer2706f8c2004-09-19 23:53:36 +000017964 fi
John Criswella0137d32003-10-13 16:22:01 +000017965
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017967{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17968echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17969if test "${ac_cv_func_rand48+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017971else
Reid Spencera773bd52006-08-04 18:18:08 +000017972 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017973ac_cpp='$CXXCPP $CPPFLAGS'
17974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017978 cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017983/* end confdefs.h. */
17984#include <stdlib.h>
17985int
17986main ()
17987{
17988srand48(0);lrand48();drand48();
17989 ;
17990 return 0;
17991}
17992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017993rm -f conftest.$ac_objext
17994if { (ac_try="$ac_compile"
17995case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998esac
17999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_compile") 2>conftest.er1
18001 ac_status=$?
18002 grep -v '^ *+' conftest.er1 >conftest.err
18003 rm -f conftest.er1
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018027 ac_cv_func_rand48=yes
18028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018029 echo "$as_me: failed program was:" >&5
18030sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018034
Reid Spencera773bd52006-08-04 18:18:08 +000018035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018036 ac_ext=c
18037ac_cpp='$CPP $CPPFLAGS'
18038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041
18042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018043{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18044echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018045
18046if test "$ac_cv_func_rand48" = "yes" ; then
18047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018048cat >>confdefs.h <<\_ACEOF
18049#define HAVE_RAND48 1
18050_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018051
18052fi
John Criswell0021c312004-02-13 21:57:29 +000018053
18054
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018055{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18056echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18057if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059else
18060 cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066$ac_includes_default
18067int
18068main ()
18069{
18070#ifndef strerror_s
18071 char *p = (char *) strerror_s;
18072 return !p;
18073#endif
18074
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext
18080if { (ac_try="$ac_compile"
18081case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_compile") 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18107esac
18108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_have_decl_strerror_s=yes
18114else
18115 echo "$as_me: failed program was:" >&5
18116sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 ac_cv_have_decl_strerror_s=no
18119fi
18120
18121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18122fi
18123{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18124echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18125if test $ac_cv_have_decl_strerror_s = yes; then
18126
18127cat >>confdefs.h <<_ACEOF
18128#define HAVE_DECL_STRERROR_S 1
18129_ACEOF
18130
18131
18132else
18133 cat >>confdefs.h <<_ACEOF
18134#define HAVE_DECL_STRERROR_S 0
18135_ACEOF
18136
18137
18138fi
18139
18140
18141
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018142if test "$llvm_cv_os_type" = "MingW" ; then
18143 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18144echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18145if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 ac_check_lib_save_LIBS=$LIBS
18149LIBS="-lgcc $LIBS"
18150cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156
18157/* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char _alloca ();
18164int
18165main ()
18166{
18167return _alloca ();
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext conftest$ac_exeext
18173if { (ac_try="$ac_link"
18174case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177esac
18178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18200esac
18201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc__alloca=yes
18207else
18208 echo "$as_me: failed program was:" >&5
18209sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 ac_cv_lib_gcc__alloca=no
18212fi
18213
18214rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216LIBS=$ac_check_lib_save_LIBS
18217fi
18218{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18219echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18220if test $ac_cv_lib_gcc__alloca = yes; then
18221
18222cat >>confdefs.h <<\_ACEOF
18223#define HAVE__ALLOCA 1
18224_ACEOF
18225
18226fi
18227
18228 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18229echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18230if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 ac_check_lib_save_LIBS=$LIBS
18234LIBS="-lgcc $LIBS"
18235cat >conftest.$ac_ext <<_ACEOF
18236/* confdefs.h. */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h. */
18241
18242/* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18245#ifdef __cplusplus
18246extern "C"
18247#endif
18248char __alloca ();
18249int
18250main ()
18251{
18252return __alloca ();
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (ac_try="$ac_link"
18259case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285esac
18286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___alloca=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_cv_lib_gcc___alloca=no
18297fi
18298
18299rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301LIBS=$ac_check_lib_save_LIBS
18302fi
18303{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18304echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18305if test $ac_cv_lib_gcc___alloca = yes; then
18306
18307cat >>confdefs.h <<\_ACEOF
18308#define HAVE___ALLOCA 1
18309_ACEOF
18310
18311fi
18312
18313 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18314echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18315if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318 ac_check_lib_save_LIBS=$LIBS
18319LIBS="-lgcc $LIBS"
18320cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326
18327/* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333char __chkstk ();
18334int
18335main ()
18336{
18337return __chkstk ();
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (ac_try="$ac_link"
18344case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18350 ac_status=$?
18351 grep -v '^ *+' conftest.er1 >conftest.err
18352 rm -f conftest.er1
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___chkstk=yes
18377else
18378 echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_cv_lib_gcc___chkstk=no
18382fi
18383
18384rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386LIBS=$ac_check_lib_save_LIBS
18387fi
18388{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18389echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18390if test $ac_cv_lib_gcc___chkstk = yes; then
18391
18392cat >>confdefs.h <<\_ACEOF
18393#define HAVE___CHKSTK 1
18394_ACEOF
18395
18396fi
18397
18398 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18399echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18400if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403 ac_check_lib_save_LIBS=$LIBS
18404LIBS="-lgcc $LIBS"
18405cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
18411
18412/* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415#ifdef __cplusplus
18416extern "C"
18417#endif
18418char ___chkstk ();
18419int
18420main ()
18421{
18422return ___chkstk ();
18423 ;
18424 return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (ac_try="$ac_link"
18429case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc____chkstk=yes
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 ac_cv_lib_gcc____chkstk=no
18467fi
18468
18469rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471LIBS=$ac_check_lib_save_LIBS
18472fi
18473{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18474echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18475if test $ac_cv_lib_gcc____chkstk = yes; then
18476
18477cat >>confdefs.h <<\_ACEOF
18478#define HAVE____CHKSTK 1
18479_ACEOF
18480
18481fi
18482
18483
18484 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18485echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18486if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 ac_check_lib_save_LIBS=$LIBS
18490LIBS="-lgcc $LIBS"
18491cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497
18498/* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501#ifdef __cplusplus
18502extern "C"
18503#endif
18504char __ashldi3 ();
18505int
18506main ()
18507{
18508return __ashldi3 ();
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext conftest$ac_exeext
18514if { (ac_try="$ac_link"
18515case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518esac
18519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_gcc___ashldi3=yes
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 ac_cv_lib_gcc___ashldi3=no
18553fi
18554
18555rm -f core conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18557LIBS=$ac_check_lib_save_LIBS
18558fi
18559{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18560echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18561if test $ac_cv_lib_gcc___ashldi3 = yes; then
18562
18563cat >>confdefs.h <<\_ACEOF
18564#define HAVE___ASHLDI3 1
18565_ACEOF
18566
18567fi
18568
18569 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18570echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18571if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573else
18574 ac_check_lib_save_LIBS=$LIBS
18575LIBS="-lgcc $LIBS"
18576cat >conftest.$ac_ext <<_ACEOF
18577/* confdefs.h. */
18578_ACEOF
18579cat confdefs.h >>conftest.$ac_ext
18580cat >>conftest.$ac_ext <<_ACEOF
18581/* end confdefs.h. */
18582
18583/* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18586#ifdef __cplusplus
18587extern "C"
18588#endif
18589char __ashrdi3 ();
18590int
18591main ()
18592{
18593return __ashrdi3 ();
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598rm -f conftest.$ac_objext conftest$ac_exeext
18599if { (ac_try="$ac_link"
18600case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616esac
18617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626esac
18627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_lib_gcc___ashrdi3=yes
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_cv_lib_gcc___ashrdi3=no
18638fi
18639
18640rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642LIBS=$ac_check_lib_save_LIBS
18643fi
18644{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18645echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18646if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18647
18648cat >>confdefs.h <<\_ACEOF
18649#define HAVE___ASHRDI3 1
18650_ACEOF
18651
18652fi
18653
18654 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18655echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18656if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 ac_check_lib_save_LIBS=$LIBS
18660LIBS="-lgcc $LIBS"
18661cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h. */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h. */
18667
18668/* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18671#ifdef __cplusplus
18672extern "C"
18673#endif
18674char __divdi3 ();
18675int
18676main ()
18677{
18678return __divdi3 ();
18679 ;
18680 return 0;
18681}
18682_ACEOF
18683rm -f conftest.$ac_objext conftest$ac_exeext
18684if { (ac_try="$ac_link"
18685case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688esac
18689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711esac
18712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___divdi3=yes
18718else
18719 echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 ac_cv_lib_gcc___divdi3=no
18723fi
18724
18725rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727LIBS=$ac_check_lib_save_LIBS
18728fi
18729{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18730echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18731if test $ac_cv_lib_gcc___divdi3 = yes; then
18732
18733cat >>confdefs.h <<\_ACEOF
18734#define HAVE___DIVDI3 1
18735_ACEOF
18736
18737fi
18738
18739 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18740echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18741if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743else
18744 ac_check_lib_save_LIBS=$LIBS
18745LIBS="-lgcc $LIBS"
18746cat >conftest.$ac_ext <<_ACEOF
18747/* confdefs.h. */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h. */
18752
18753/* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18756#ifdef __cplusplus
18757extern "C"
18758#endif
18759char __fixdfdi ();
18760int
18761main ()
18762{
18763return __fixdfdi ();
18764 ;
18765 return 0;
18766}
18767_ACEOF
18768rm -f conftest.$ac_objext conftest$ac_exeext
18769if { (ac_try="$ac_link"
18770case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___fixdfdi=yes
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 ac_cv_lib_gcc___fixdfdi=no
18808fi
18809
18810rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812LIBS=$ac_check_lib_save_LIBS
18813fi
18814{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18815echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18816if test $ac_cv_lib_gcc___fixdfdi = yes; then
18817
18818cat >>confdefs.h <<\_ACEOF
18819#define HAVE___FIXDFDI 1
18820_ACEOF
18821
18822fi
18823
18824 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18825echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18826if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829 ac_check_lib_save_LIBS=$LIBS
18830LIBS="-lgcc $LIBS"
18831cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
18837
18838/* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18841#ifdef __cplusplus
18842extern "C"
18843#endif
18844char __fixsfdi ();
18845int
18846main ()
18847{
18848return __fixsfdi ();
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest.$ac_objext conftest$ac_exeext
18854if { (ac_try="$ac_link"
18855case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858esac
18859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18871esac
18872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18881esac
18882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___fixsfdi=yes
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_cv_lib_gcc___fixsfdi=no
18893fi
18894
18895rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897LIBS=$ac_check_lib_save_LIBS
18898fi
18899{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18900echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18901if test $ac_cv_lib_gcc___fixsfdi = yes; then
18902
18903cat >>confdefs.h <<\_ACEOF
18904#define HAVE___FIXSFDI 1
18905_ACEOF
18906
18907fi
18908
18909 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18910echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18911if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914 ac_check_lib_save_LIBS=$LIBS
18915LIBS="-lgcc $LIBS"
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922
18923/* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18926#ifdef __cplusplus
18927extern "C"
18928#endif
18929char __floatdidf ();
18930int
18931main ()
18932{
18933return __floatdidf ();
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext conftest$ac_exeext
18939if { (ac_try="$ac_link"
18940case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956esac
18957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966esac
18967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___floatdidf=yes
18973else
18974 echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977 ac_cv_lib_gcc___floatdidf=no
18978fi
18979
18980rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982LIBS=$ac_check_lib_save_LIBS
18983fi
18984{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18985echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18986if test $ac_cv_lib_gcc___floatdidf = yes; then
18987
18988cat >>confdefs.h <<\_ACEOF
18989#define HAVE___FLOATDIDF 1
18990_ACEOF
18991
18992fi
18993
18994 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18995echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18996if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998else
18999 ac_check_lib_save_LIBS=$LIBS
19000LIBS="-lgcc $LIBS"
19001cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007
19008/* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19011#ifdef __cplusplus
19012extern "C"
19013#endif
19014char __lshrdi3 ();
19015int
19016main ()
19017{
19018return __lshrdi3 ();
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext conftest$ac_exeext
19024if { (ac_try="$ac_link"
19025case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___lshrdi3=yes
19058else
19059 echo "$as_me: failed program was:" >&5
19060sed 's/^/| /' conftest.$ac_ext >&5
19061
19062 ac_cv_lib_gcc___lshrdi3=no
19063fi
19064
19065rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067LIBS=$ac_check_lib_save_LIBS
19068fi
19069{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19070echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19071if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19072
19073cat >>confdefs.h <<\_ACEOF
19074#define HAVE___LSHRDI3 1
19075_ACEOF
19076
19077fi
19078
19079 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19080echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19081if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-lgcc $LIBS"
19086cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092
19093/* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char __moddi3 ();
19100int
19101main ()
19102{
19103return __moddi3 ();
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___moddi3=yes
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_cv_lib_gcc___moddi3=no
19148fi
19149
19150rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152LIBS=$ac_check_lib_save_LIBS
19153fi
19154{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19155echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19156if test $ac_cv_lib_gcc___moddi3 = yes; then
19157
19158cat >>confdefs.h <<\_ACEOF
19159#define HAVE___MODDI3 1
19160_ACEOF
19161
19162fi
19163
19164 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19165echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19166if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169 ac_check_lib_save_LIBS=$LIBS
19170LIBS="-lgcc $LIBS"
19171cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177
19178/* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19181#ifdef __cplusplus
19182extern "C"
19183#endif
19184char __udivdi3 ();
19185int
19186main ()
19187{
19188return __udivdi3 ();
19189 ;
19190 return 0;
19191}
19192_ACEOF
19193rm -f conftest.$ac_objext conftest$ac_exeext
19194if { (ac_try="$ac_link"
19195case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221esac
19222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___udivdi3=yes
19228else
19229 echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_lib_gcc___udivdi3=no
19233fi
19234
19235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237LIBS=$ac_check_lib_save_LIBS
19238fi
19239{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19240echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19241if test $ac_cv_lib_gcc___udivdi3 = yes; then
19242
19243cat >>confdefs.h <<\_ACEOF
19244#define HAVE___UDIVDI3 1
19245_ACEOF
19246
19247fi
19248
19249 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19250echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19251if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253else
19254 ac_check_lib_save_LIBS=$LIBS
19255LIBS="-lgcc $LIBS"
19256cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262
19263/* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19266#ifdef __cplusplus
19267extern "C"
19268#endif
19269char __umoddi3 ();
19270int
19271main ()
19272{
19273return __umoddi3 ();
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext conftest$ac_exeext
19279if { (ac_try="$ac_link"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest$ac_exeext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_lib_gcc___umoddi3=yes
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_lib_gcc___umoddi3=no
19318fi
19319
19320rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322LIBS=$ac_check_lib_save_LIBS
19323fi
19324{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19325echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19326if test $ac_cv_lib_gcc___umoddi3 = yes; then
19327
19328cat >>confdefs.h <<\_ACEOF
19329#define HAVE___UMODDI3 1
19330_ACEOF
19331
19332fi
19333
19334
19335 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19336echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19337if test "${ac_cv_lib_gcc___main+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339else
19340 ac_check_lib_save_LIBS=$LIBS
19341LIBS="-lgcc $LIBS"
19342cat >conftest.$ac_ext <<_ACEOF
19343/* confdefs.h. */
19344_ACEOF
19345cat confdefs.h >>conftest.$ac_ext
19346cat >>conftest.$ac_ext <<_ACEOF
19347/* end confdefs.h. */
19348
19349/* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19352#ifdef __cplusplus
19353extern "C"
19354#endif
19355char __main ();
19356int
19357main ()
19358{
19359return __main ();
19360 ;
19361 return 0;
19362}
19363_ACEOF
19364rm -f conftest.$ac_objext conftest$ac_exeext
19365if { (ac_try="$ac_link"
19366case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_link") 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try='test -s conftest$ac_exeext'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 ac_cv_lib_gcc___main=yes
19399else
19400 echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 ac_cv_lib_gcc___main=no
19404fi
19405
19406rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408LIBS=$ac_check_lib_save_LIBS
19409fi
19410{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19411echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19412if test $ac_cv_lib_gcc___main = yes; then
19413
19414cat >>confdefs.h <<\_ACEOF
19415#define HAVE___MAIN 1
19416_ACEOF
19417
19418fi
19419
19420 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19421echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19422if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 ac_check_lib_save_LIBS=$LIBS
19426LIBS="-lgcc $LIBS"
19427cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433
19434/* Override any GCC internal prototype to avoid an error.
19435 Use char because int might match the return type of a GCC
19436 builtin and then its argument prototype would still apply. */
19437#ifdef __cplusplus
19438extern "C"
19439#endif
19440char __cmpdi2 ();
19441int
19442main ()
19443{
19444return __cmpdi2 ();
19445 ;
19446 return 0;
19447}
19448_ACEOF
19449rm -f conftest.$ac_objext conftest$ac_exeext
19450if { (ac_try="$ac_link"
19451case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454esac
19455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_link") 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest$ac_exeext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_cv_lib_gcc___cmpdi2=yes
19484else
19485 echo "$as_me: failed program was:" >&5
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 ac_cv_lib_gcc___cmpdi2=no
19489fi
19490
19491rm -f core conftest.err conftest.$ac_objext \
19492 conftest$ac_exeext conftest.$ac_ext
19493LIBS=$ac_check_lib_save_LIBS
19494fi
19495{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19496echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19497if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19498
19499cat >>confdefs.h <<\_ACEOF
19500#define HAVE___CMPDI2 1
19501_ACEOF
19502
19503fi
19504
19505fi
19506
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019507if test "$llvm_cv_os_type" = "MingW" ; then
19508 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19509echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19510 cat >conftest.$ac_ext <<_ACEOF
19511#include <windows.h>
19512#include <imagehlp.h>
19513extern void foo(PENUMLOADED_MODULES_CALLBACK);
19514extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (ac_try="$ac_compile"
19518case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19521esac
19522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_compile") 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534esac
19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550
19551 { echo "$as_me:$LINENO: result: yes" >&5
19552echo "${ECHO_T}yes" >&6; }
19553 llvm_cv_win32_elmcb_pcstr="PCSTR"
19554
19555else
19556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559
19560 { echo "$as_me:$LINENO: result: no" >&5
19561echo "${ECHO_T}no" >&6; }
19562 llvm_cv_win32_elmcb_pcstr="PSTR"
19563
19564fi
19565
19566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567
19568cat >>confdefs.h <<_ACEOF
19569#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19570_ACEOF
19571
19572fi
19573
Torok Edwin871384f2010-01-26 08:50:50 +000019574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19576echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19577if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019579else
Reid Spencera773bd52006-08-04 18:18:08 +000019580 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019581ac_cpp='$CXXCPP $CPPFLAGS'
19582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019591/* end confdefs.h. */
19592#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019593int
19594main ()
19595{
19596float f; isnan(f);
19597 ;
19598 return 0;
19599}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019600_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601rm -f conftest.$ac_objext
19602if { (ac_try="$ac_compile"
19603case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019635 ac_cv_func_isnan_in_math_h=yes
19636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019642
Reid Spencera773bd52006-08-04 18:18:08 +000019643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019644 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019645ac_cpp='$CPP $CPPFLAGS'
19646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19652echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019653
19654
19655if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657cat >>confdefs.h <<\_ACEOF
19658#define HAVE_ISNAN_IN_MATH_H 1
19659_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019660
Reid Spencerabec8f92004-10-27 23:03:44 +000019661fi
19662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19664echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19665if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019667else
Reid Spencera773bd52006-08-04 18:18:08 +000019668 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019669ac_cpp='$CXXCPP $CPPFLAGS'
19670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674 cat >conftest.$ac_ext <<_ACEOF
19675/* confdefs.h. */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019679/* end confdefs.h. */
19680#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019681int
19682main ()
19683{
19684float f; isnan(f);
19685 ;
19686 return 0;
19687}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019689rm -f conftest.$ac_objext
19690if { (ac_try="$ac_compile"
19691case "(($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_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019723 ac_cv_func_isnan_in_cmath=yes
19724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730
Reid Spencera773bd52006-08-04 18:18:08 +000019731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019732 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019733ac_cpp='$CPP $CPPFLAGS'
19734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736ac_compiler_gnu=$ac_cv_c_compiler_gnu
19737
19738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19740echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019741
19742if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744cat >>confdefs.h <<\_ACEOF
19745#define HAVE_ISNAN_IN_CMATH 1
19746_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019747
Reid Spencerabec8f92004-10-27 23:03:44 +000019748fi
19749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19751echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19752if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019754else
Reid Spencera773bd52006-08-04 18:18:08 +000019755 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019756ac_cpp='$CXXCPP $CPPFLAGS'
19757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019761 cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019766/* end confdefs.h. */
19767#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019768int
19769main ()
19770{
19771float f; std::isnan(f);
19772 ;
19773 return 0;
19774}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019775_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776rm -f conftest.$ac_objext
19777if { (ac_try="$ac_compile"
19778case "(($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_compile") 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794esac
19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804esac
19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019810 ac_cv_func_std_isnan_in_cmath=yes
19811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812 echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817
Reid Spencera773bd52006-08-04 18:18:08 +000019818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019819 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019820ac_cpp='$CPP $CPPFLAGS'
19821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823ac_compiler_gnu=$ac_cv_c_compiler_gnu
19824
19825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019826{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19827echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019828
19829if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831cat >>confdefs.h <<\_ACEOF
19832#define HAVE_STD_ISNAN_IN_CMATH 1
19833_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019834
Reid Spencerabec8f92004-10-27 23:03:44 +000019835fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019836
19837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19839echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19840if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019842else
Reid Spencera773bd52006-08-04 18:18:08 +000019843 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019844ac_cpp='$CXXCPP $CPPFLAGS'
19845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849 cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019854/* end confdefs.h. */
19855#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019856int
19857main ()
19858{
19859float f; isinf(f);
19860 ;
19861 return 0;
19862}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019864rm -f conftest.$ac_objext
19865if { (ac_try="$ac_compile"
19866case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892esac
19893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019898 ac_cv_func_isinf_in_math_h=yes
19899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905
Reid Spencera773bd52006-08-04 18:18:08 +000019906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019907 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019908ac_cpp='$CPP $CPPFLAGS'
19909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912
19913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019914{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19915echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019916
19917if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019919cat >>confdefs.h <<\_ACEOF
19920#define HAVE_ISINF_IN_MATH_H 1
19921_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019922
Reid Spencerabec8f92004-10-27 23:03:44 +000019923fi
19924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19926echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19927if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019929else
Reid Spencera773bd52006-08-04 18:18:08 +000019930 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019931ac_cpp='$CXXCPP $CPPFLAGS'
19932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936 cat >conftest.$ac_ext <<_ACEOF
19937/* confdefs.h. */
19938_ACEOF
19939cat confdefs.h >>conftest.$ac_ext
19940cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019941/* end confdefs.h. */
19942#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019943int
19944main ()
19945{
19946float f; isinf(f);
19947 ;
19948 return 0;
19949}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019950_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019951rm -f conftest.$ac_objext
19952if { (ac_try="$ac_compile"
19953case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956esac
19957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_compile") 2>conftest.er1
19959 ac_status=$?
19960 grep -v '^ *+' conftest.er1 >conftest.err
19961 rm -f conftest.er1
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } &&
19965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969esac
19970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try='test -s conftest.$ac_objext'
19976 { (case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19979esac
19980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_try") 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019985 ac_cv_func_isinf_in_cmath=yes
19986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987 echo "$as_me: failed program was:" >&5
19988sed 's/^/| /' conftest.$ac_ext >&5
19989
19990 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019992
Reid Spencera773bd52006-08-04 18:18:08 +000019993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019994 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019995ac_cpp='$CPP $CPPFLAGS'
19996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998ac_compiler_gnu=$ac_cv_c_compiler_gnu
19999
20000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020001{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20002echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020003
20004if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006cat >>confdefs.h <<\_ACEOF
20007#define HAVE_ISINF_IN_CMATH 1
20008_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020009
Reid Spencerabec8f92004-10-27 23:03:44 +000020010fi
20011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020012{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20013echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20014if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020016else
Reid Spencera773bd52006-08-04 18:18:08 +000020017 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020018ac_cpp='$CXXCPP $CPPFLAGS'
20019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020023 cat >conftest.$ac_ext <<_ACEOF
20024/* confdefs.h. */
20025_ACEOF
20026cat confdefs.h >>conftest.$ac_ext
20027cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020028/* end confdefs.h. */
20029#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020030int
20031main ()
20032{
20033float f; std::isinf(f)}
20034 ;
20035 return 0;
20036}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038rm -f conftest.$ac_objext
20039if { (ac_try="$ac_compile"
20040case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043esac
20044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_compile") 2>conftest.er1
20046 ac_status=$?
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056esac
20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest.$ac_objext'
20063 { (case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20066esac
20067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_try") 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020072 ac_cv_func_std_isinf_in_cmath=yes
20073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079
Reid Spencera773bd52006-08-04 18:18:08 +000020080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020081 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020082ac_cpp='$CPP $CPPFLAGS'
20083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20089echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020090
20091if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020093cat >>confdefs.h <<\_ACEOF
20094#define HAVE_STD_ISINF_IN_CMATH 1
20095_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020096
Reid Spencerabec8f92004-10-27 23:03:44 +000020097fi
20098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20100echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20101if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020103else
Reid Spencera773bd52006-08-04 18:18:08 +000020104 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020105ac_cpp='$CXXCPP $CPPFLAGS'
20106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020115/* end confdefs.h. */
20116#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020117int
20118main ()
20119{
20120float f; finite(f);
20121 ;
20122 return 0;
20123}
Brian Gaeked59a6472004-07-21 03:33:58 +000020124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125rm -f conftest.$ac_objext
20126if { (ac_try="$ac_compile"
20127case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130esac
20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020159 ac_cv_func_finite_in_ieeefp_h=yes
20160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161 echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020166
Reid Spencera773bd52006-08-04 18:18:08 +000020167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020168 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020169ac_cpp='$CPP $CPPFLAGS'
20170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173
20174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020175{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20176echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020177
Brian Gaeke6802b552004-10-28 05:06:45 +000020178if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020180cat >>confdefs.h <<\_ACEOF
20181#define HAVE_FINITE_IN_IEEEFP_H 1
20182_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020183
Reid Spencerabec8f92004-10-27 23:03:44 +000020184fi
20185
20186
20187
Reid Spencer30fe5262007-01-20 07:48:49 +000020188if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020189
20190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020191for ac_header in stdlib.h unistd.h
20192do
20193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199fi
20200ac_res=`eval echo '${'$as_ac_Header'}'`
20201 { echo "$as_me:$LINENO: result: $ac_res" >&5
20202echo "${ECHO_T}$ac_res" >&6; }
20203else
20204 # Is the header compilable?
20205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20207cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
20213$ac_includes_default
20214#include <$ac_header>
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (ac_try="$ac_compile"
20218case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221esac
20222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_compile") 2>conftest.er1
20224 ac_status=$?
20225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244esac
20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_header_compiler=yes
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020255 ac_header_compiler=no
20256fi
20257
20258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260echo "${ECHO_T}$ac_header_compiler" >&6; }
20261
20262# Is the header present?
20263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20265cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271#include <$ac_header>
20272_ACEOF
20273if { (ac_try="$ac_cpp conftest.$ac_ext"
20274case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277esac
20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } >/dev/null; then
20286 if test -s conftest.err; then
20287 ac_cpp_err=$ac_c_preproc_warn_flag
20288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20289 else
20290 ac_cpp_err=
20291 fi
20292else
20293 ac_cpp_err=yes
20294fi
20295if test -z "$ac_cpp_err"; then
20296 ac_header_preproc=yes
20297else
20298 echo "$as_me: failed program was:" >&5
20299sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_header_preproc=no
20302fi
20303
20304rm -f conftest.err conftest.$ac_ext
20305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306echo "${ECHO_T}$ac_header_preproc" >&6; }
20307
20308# So? What about this header?
20309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20316 ;;
20317 no:yes:* )
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330 ( cat <<\_ASBOX
20331## ----------------------------------- ##
20332## Report this to llvmbugs@cs.uiuc.edu ##
20333## ----------------------------------- ##
20334_ASBOX
20335 ) | sed "s/^/$as_me: WARNING: /" >&2
20336 ;;
20337esac
20338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342else
20343 eval "$as_ac_Header=\$ac_header_preproc"
20344fi
20345ac_res=`eval echo '${'$as_ac_Header'}'`
20346 { echo "$as_me:$LINENO: result: $ac_res" >&5
20347echo "${ECHO_T}$ac_res" >&6; }
20348
20349fi
20350if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020351 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020353_ACEOF
20354
20355fi
20356
20357done
20358
20359
20360for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361do
20362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20363{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20365if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367else
20368 cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376#define $ac_func innocuous_$ac_func
20377
20378/* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20382
20383#ifdef __STDC__
20384# include <limits.h>
20385#else
20386# include <assert.h>
20387#endif
20388
20389#undef $ac_func
20390
20391/* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20394#ifdef __cplusplus
20395extern "C"
20396#endif
20397char $ac_func ();
20398/* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401#if defined __stub_$ac_func || defined __stub___$ac_func
20402choke me
20403#endif
20404
20405int
20406main ()
20407{
20408return $ac_func ();
20409 ;
20410 return 0;
20411}
20412_ACEOF
20413rm -f conftest.$ac_objext conftest$ac_exeext
20414if { (ac_try="$ac_link"
20415case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418esac
20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_link") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431esac
20432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest$ac_exeext'
20438 { (case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441esac
20442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_try") 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 eval "$as_ac_var=yes"
20448else
20449 echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 eval "$as_ac_var=no"
20453fi
20454
20455rm -f core conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
20457fi
20458ac_res=`eval echo '${'$as_ac_var'}'`
20459 { echo "$as_me:$LINENO: result: $ac_res" >&5
20460echo "${ECHO_T}$ac_res" >&6; }
20461if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020462 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020464_ACEOF
20465
20466fi
20467done
20468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020469{ echo "$as_me:$LINENO: checking for working mmap" >&5
20470echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20471if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020475 ac_cv_func_mmap_fixed_mapped=no
20476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477 cat >conftest.$ac_ext <<_ACEOF
20478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020483$ac_includes_default
20484/* malloc might have been renamed as rpl_malloc. */
20485#undef malloc
20486
20487/* Thanks to Mike Haertel and Jim Avera for this test.
20488 Here is a matrix of mmap possibilities:
20489 mmap private not fixed
20490 mmap private fixed at somewhere currently unmapped
20491 mmap private fixed at somewhere already mapped
20492 mmap shared not fixed
20493 mmap shared fixed at somewhere currently unmapped
20494 mmap shared fixed at somewhere already mapped
20495 For private mappings, we should verify that changes cannot be read()
20496 back from the file, nor mmap's back from the file at a different
20497 address. (There have been systems where private was not correctly
20498 implemented like the infamous i386 svr4.0, and systems where the
20499 VM page cache was not coherent with the file system buffer cache
20500 like early versions of FreeBSD and possibly contemporary NetBSD.)
20501 For shared mappings, we should conversely verify that changes get
20502 propagated back to all the places they're supposed to be.
20503
20504 Grep wants private fixed already mapped.
20505 The main things grep needs to know about mmap are:
20506 * does it exist and is it safe to write into the mmap'd area
20507 * how to use it (BSD variants) */
20508
20509#include <fcntl.h>
20510#include <sys/mman.h>
20511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020512#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020513char *malloc ();
20514#endif
20515
20516/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020517#if !HAVE_GETPAGESIZE
20518/* Assume that all systems that can run configure have sys/param.h. */
20519# if !HAVE_SYS_PARAM_H
20520# define HAVE_SYS_PARAM_H 1
20521# endif
20522
John Criswell7a73b802003-06-30 21:59:07 +000020523# ifdef _SC_PAGESIZE
20524# define getpagesize() sysconf(_SC_PAGESIZE)
20525# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020527# include <sys/param.h>
20528# ifdef EXEC_PAGESIZE
20529# define getpagesize() EXEC_PAGESIZE
20530# else /* no EXEC_PAGESIZE */
20531# ifdef NBPG
20532# define getpagesize() NBPG * CLSIZE
20533# ifndef CLSIZE
20534# define CLSIZE 1
20535# endif /* no CLSIZE */
20536# else /* no NBPG */
20537# ifdef NBPC
20538# define getpagesize() NBPC
20539# else /* no NBPC */
20540# ifdef PAGESIZE
20541# define getpagesize() PAGESIZE
20542# endif /* PAGESIZE */
20543# endif /* no NBPC */
20544# endif /* no NBPG */
20545# endif /* no EXEC_PAGESIZE */
20546# else /* no HAVE_SYS_PARAM_H */
20547# define getpagesize() 8192 /* punt totally */
20548# endif /* no HAVE_SYS_PARAM_H */
20549# endif /* no _SC_PAGESIZE */
20550
20551#endif /* no HAVE_GETPAGESIZE */
20552
20553int
20554main ()
20555{
20556 char *data, *data2, *data3;
20557 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020559
20560 pagesize = getpagesize ();
20561
20562 /* First, make a file with some known garbage in it. */
20563 data = (char *) malloc (pagesize);
20564 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020565 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020566 for (i = 0; i < pagesize; ++i)
20567 *(data + i) = rand ();
20568 umask (0);
20569 fd = creat ("conftest.mmap", 0600);
20570 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020572 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020574 close (fd);
20575
20576 /* Next, try to mmap the file at a fixed address which already has
20577 something else allocated at it. If we can, also make sure that
20578 we see the same garbage. */
20579 fd = open ("conftest.mmap", O_RDWR);
20580 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581 return 1;
20582 data2 = (char *) malloc (2 * pagesize);
20583 if (!data2)
20584 return 1;
20585 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020586 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020589 for (i = 0; i < pagesize; ++i)
20590 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020592
20593 /* Finally, make sure that changes to the mapped area do not
20594 percolate back to the file as seen by read(). (This is a bug on
20595 some variants of i386 svr4.0.) */
20596 for (i = 0; i < pagesize; ++i)
20597 *(data2 + i) = *(data2 + i) + 1;
20598 data3 = (char *) malloc (pagesize);
20599 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020601 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020603 for (i = 0; i < pagesize; ++i)
20604 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020606 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020607 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020608}
20609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610rm -f conftest$ac_exeext
20611if { (ac_try="$ac_link"
20612case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615esac
20616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020630 ac_cv_func_mmap_fixed_mapped=yes
20631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632 echo "$as_me: program exited with status $ac_status" >&5
20633echo "$as_me: failed program was:" >&5
20634sed 's/^/| /' conftest.$ac_ext >&5
20635
20636( exit $ac_status )
20637ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020639rm -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 +000020640fi
Reid Spencera773bd52006-08-04 18:18:08 +000020641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642
John Criswell7a73b802003-06-30 21:59:07 +000020643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20645echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020646if test $ac_cv_func_mmap_fixed_mapped = yes; then
20647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020648cat >>confdefs.h <<\_ACEOF
20649#define HAVE_MMAP 1
20650_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020651
20652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20656echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20657if test "${ac_cv_func_mmap_file+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020659else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020660 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020667 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 /* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020676
John Criswell7a73b802003-06-30 21:59:07 +000020677#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020678#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020679#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020680
20681int
20682main ()
20683{
John Criswell7a73b802003-06-30 21:59:07 +000020684
20685 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020686 fd = creat ("foo",0777);
20687 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20688 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020689 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020690 ;
20691 return 0;
20692}
John Criswell7a73b802003-06-30 21:59:07 +000020693_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694rm -f conftest$ac_exeext
20695if { (ac_try="$ac_link"
20696case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20699esac
20700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_link") 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20705 { (case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708esac
20709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_try") 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020714 ac_cv_func_mmap_file=yes
20715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716 echo "$as_me: program exited with status $ac_status" >&5
20717echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720( exit $ac_status )
20721ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723rm -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 +000020724fi
Reid Spencera773bd52006-08-04 18:18:08 +000020725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726
John Criswell7a73b802003-06-30 21:59:07 +000020727 ac_ext=c
20728ac_cpp='$CPP $CPPFLAGS'
20729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731ac_compiler_gnu=$ac_cv_c_compiler_gnu
20732
20733
20734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020735{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20736echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020737if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020739cat >>confdefs.h <<\_ACEOF
20740#define HAVE_MMAP_FILE
20741_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020742
20743 MMAP_FILE=yes
20744
20745fi
20746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020747 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20748echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20749if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020751else
Reid Spencer582a23c2004-12-29 07:07:57 +000020752 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020753 ac_cv_need_dev_zero_for_mmap=yes
20754 else
20755 ac_cv_need_dev_zero_for_mmap=no
20756 fi
20757
20758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20760echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020761if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763cat >>confdefs.h <<\_ACEOF
20764#define NEED_DEV_ZERO_FOR_MMAP 1
20765_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020766
20767fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768
Reid Spencer30fe5262007-01-20 07:48:49 +000020769 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20770 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20772echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020773 fi
20774 if test "$ac_cv_func_mmap_file" = "no"
20775 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020776 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20777echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020778 fi
John Criswellb13092b2003-07-22 21:00:24 +000020779fi
John Criswell7a73b802003-06-30 21:59:07 +000020780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20782echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020783ac_ext=cpp
20784ac_cpp='$CXXCPP $CPPFLAGS'
20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789cat >conftest.$ac_ext <<_ACEOF
20790/* confdefs.h. */
20791_ACEOF
20792cat confdefs.h >>conftest.$ac_ext
20793cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020794/* end confdefs.h. */
20795int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020796 volatile unsigned long val = 1;
20797 __sync_synchronize();
20798 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020799 __sync_add_and_fetch(&val, 1);
20800 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020801 return 0;
20802 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020803
20804_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805rm -f conftest.$ac_objext conftest$ac_exeext
20806if { (ac_try="$ac_link"
20807case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_link") 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823esac
20824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest$ac_exeext'
20830 { (case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833esac
20834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_try") 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020839 ac_ext=c
20840ac_cpp='$CPP $CPPFLAGS'
20841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843ac_compiler_gnu=$ac_cv_c_compiler_gnu
20844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845 { echo "$as_me:$LINENO: result: yes" >&5
20846echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020848cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020849#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020851
Owen Andersond4b272b2009-05-18 23:58:51 +000020852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020853 echo "$as_me: failed program was:" >&5
20854sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020856 { echo "$as_me:$LINENO: result: no" >&5
20857echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020860#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861_ACEOF
20862
20863 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20864echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866
Owen Andersond4b272b2009-05-18 23:58:51 +000020867rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020868 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020869
John Criswell7a73b802003-06-30 21:59:07 +000020870
Nick Lewycky4372e692009-09-29 06:18:23 +000020871if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020872 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20873echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20874if test "${llvm_cv_linux_mixed+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020876else
20877 ac_ext=c
20878ac_cpp='$CPP $CPPFLAGS'
20879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881ac_compiler_gnu=$ac_cv_c_compiler_gnu
20882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020883 cat >conftest.$ac_ext <<_ACEOF
20884/* confdefs.h. */
20885_ACEOF
20886cat confdefs.h >>conftest.$ac_ext
20887cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020888/* end confdefs.h. */
20889#ifndef __x86_64__
20890 error: Not x86-64 even if uname says so!
20891 #endif
20892
20893int
20894main ()
20895{
20896
20897 ;
20898 return 0;
20899}
20900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020901rm -f conftest.$ac_objext
20902if { (ac_try="$ac_compile"
20903case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20906esac
20907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_compile") 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919esac
20920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_try") 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929esac
20930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_try") 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020935 llvm_cv_linux_mixed=no
20936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937 echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942
Nick Lewycky4372e692009-09-29 06:18:23 +000020943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 ac_ext=c
20945ac_cpp='$CPP $CPPFLAGS'
20946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950
20951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20953echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020954
20955 if test "$llvm_cv_linux_mixed" = "yes"; then
20956 llvm_cv_target_arch="x86"
20957 ARCH="x86"
20958 fi
20959fi
20960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961
Reid Spencer9372f152007-07-30 20:13:24 +000020962for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963do
20964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20969else
20970 cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
20976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20978#define $ac_func innocuous_$ac_func
20979
20980/* System header to define __stub macros and hopefully few prototypes,
20981 which can conflict with char $ac_func (); below.
20982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983 <limits.h> exists even on freestanding compilers. */
20984
20985#ifdef __STDC__
20986# include <limits.h>
20987#else
20988# include <assert.h>
20989#endif
20990
20991#undef $ac_func
20992
20993/* Override any GCC internal prototype to avoid an error.
20994 Use char because int might match the return type of a GCC
20995 builtin and then its argument prototype would still apply. */
20996#ifdef __cplusplus
20997extern "C"
20998#endif
20999char $ac_func ();
21000/* The GNU C library defines this for functions which it implements
21001 to always fail with ENOSYS. Some functions are actually named
21002 something starting with __ and the normal name is an alias. */
21003#if defined __stub_$ac_func || defined __stub___$ac_func
21004choke me
21005#endif
21006
21007int
21008main ()
21009{
21010return $ac_func ();
21011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext conftest$ac_exeext
21016if { (ac_try="$ac_link"
21017case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21020esac
21021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_link") 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043esac
21044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_try") 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 eval "$as_ac_var=yes"
21050else
21051 echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054 eval "$as_ac_var=no"
21055fi
21056
21057rm -f core conftest.err conftest.$ac_objext \
21058 conftest$ac_exeext conftest.$ac_ext
21059fi
21060ac_res=`eval echo '${'$as_ac_var'}'`
21061 { echo "$as_me:$LINENO: result: $ac_res" >&5
21062echo "${ECHO_T}$ac_res" >&6; }
21063if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021066_ACEOF
21067
21068fi
21069done
21070
21071
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021072SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021073
21074
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021075SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21076
21077
Reid Spencere9de0912004-08-20 09:03:57 +000021078# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021079# information into substitutions that will end up in Makefile.config.in
21080# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000021081if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021082 prefix="/usr/local"
21083fi
Reid Spencere9de0912004-08-20 09:03:57 +000021084eval LLVM_PREFIX="${prefix}";
21085eval LLVM_BINDIR="${prefix}/bin";
21086eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021087eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021088eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021089eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021090eval LLVM_INCLUDEDIR="${prefix}/include";
21091eval LLVM_INFODIR="${prefix}/info";
21092eval LLVM_MANDIR="${prefix}/man";
21093LLVM_CONFIGTIME=`date`
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021105# Place the various directores into the config.h file as #defines so that we
21106# can know about the installation paths within LLVM.
21107
Reid Spencere9de0912004-08-20 09:03:57 +000021108cat >>confdefs.h <<_ACEOF
21109#define LLVM_PREFIX "$LLVM_PREFIX"
21110_ACEOF
21111
21112
21113cat >>confdefs.h <<_ACEOF
21114#define LLVM_BINDIR "$LLVM_BINDIR"
21115_ACEOF
21116
21117
21118cat >>confdefs.h <<_ACEOF
21119#define LLVM_LIBDIR "$LLVM_LIBDIR"
21120_ACEOF
21121
21122
21123cat >>confdefs.h <<_ACEOF
21124#define LLVM_DATADIR "$LLVM_DATADIR"
21125_ACEOF
21126
21127
21128cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021129#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021130_ACEOF
21131
21132
21133cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021134#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021135_ACEOF
21136
21137
21138cat >>confdefs.h <<_ACEOF
21139#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21140_ACEOF
21141
21142
21143cat >>confdefs.h <<_ACEOF
21144#define LLVM_INFODIR "$LLVM_INFODIR"
21145_ACEOF
21146
21147
21148cat >>confdefs.h <<_ACEOF
21149#define LLVM_MANDIR "$LLVM_MANDIR"
21150_ACEOF
21151
21152
21153cat >>confdefs.h <<_ACEOF
21154#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21155_ACEOF
21156
21157
Eric Christopher790e11c2007-12-01 00:34:39 +000021158cat >>confdefs.h <<_ACEOF
21159#define LLVM_HOSTTRIPLE "$host"
21160_ACEOF
21161
21162
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021163# Determine which bindings to build.
21164if test "$BINDINGS_TO_BUILD" = auto ; then
21165 BINDINGS_TO_BUILD=""
21166 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21167 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21168 fi
21169fi
21170BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21171
21172
21173# This isn't really configurey, but it avoids having to repeat the list in
21174# other files.
21175ALL_BINDINGS=ocaml
21176
21177
Gordon Henriksenf0915682007-10-02 16:42:22 +000021178# Do any work necessary to ensure that bindings have what they need.
21179binding_prereqs_failed=0
21180for a_binding in $BINDINGS_TO_BUILD ; do
21181 case "$a_binding" in
21182 ocaml)
21183 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21185echo "$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 +000021186 binding_prereqs_failed=1
21187 fi
21188 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21190echo "$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 +000021191 binding_prereqs_failed=1
21192 fi
21193 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21195echo "$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 +000021196 fi
21197 if test "x$with_ocaml_libdir" != xauto ; then
21198 OCAML_LIBDIR=$with_ocaml_libdir
21199
21200 else
21201 ocaml_stdlib="`"$OCAMLC" -where`"
21202 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21203 then
21204 # ocaml stdlib is beneath our prefix; use stdlib
21205 OCAML_LIBDIR=$ocaml_stdlib
21206
21207 else
21208 # ocaml stdlib is outside our prefix; use libdir/ocaml
21209 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21210
21211 fi
21212 fi
21213 ;;
21214 esac
21215done
21216if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21218echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21219 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021220fi
21221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21223echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21224if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021226else
21227 ac_ext=cpp
21228ac_cpp='$CXXCPP $CPPFLAGS'
21229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21232
21233 oldcxxflags="$CXXFLAGS"
21234 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235 cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021240/* end confdefs.h. */
21241
21242int
21243main ()
21244{
21245
21246 ;
21247 return 0;
21248}
21249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250rm -f conftest.$ac_objext
21251if { (ac_try="$ac_compile"
21252case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255esac
21256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21258 ac_status=$?
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21265 { (case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268esac
21269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_try") 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest.$ac_objext'
21275 { (case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21278esac
21279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_try") 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021284 llvm_cv_cxx_visibility_inlines_hidden=yes
21285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286 echo "$as_me: failed program was:" >&5
21287sed 's/^/| /' conftest.$ac_ext >&5
21288
21289 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 CXXFLAGS="$oldcxxflags"
21294 ac_ext=c
21295ac_cpp='$CPP $CPPFLAGS'
21296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300
21301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21303echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021304if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21305 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21306
21307else
21308 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21309
21310fi
21311
Gordon Henriksenf0915682007-10-02 16:42:22 +000021312
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021313if test "$llvm_cv_link_use_r" = "yes" ; then
21314 RPATH="-Wl,-R"
21315else
21316 RPATH="-Wl,-rpath"
21317fi
21318
21319
21320if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21321 RDYNAMIC="-Wl,-export-dynamic"
21322else
21323 RDYNAMIC=""
21324fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021325
21326
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021327
Eric Christophera1cba682010-08-08 02:44:25 +000021328ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021329
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021330
21331
21332
21333
21334
Douglas Gregor1555a232009-06-16 20:12:29 +000021335ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21336
21337ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21338
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021339ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21340
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021341ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21342
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021343ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021345
Reid Spencera773bd52006-08-04 18:18:08 +000021346ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021347
21348
Reid Spencerea949cf2006-08-16 00:45:38 +000021349ac_config_files="$ac_config_files llvm.spec"
21350
21351
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021352ac_config_files="$ac_config_files docs/doxygen.cfg"
21353
21354if test -f ${srcdir}/tools/clang/README.txt; then
21355 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21356
21357fi
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021360
21361
Reid Spencera773bd52006-08-04 18:18:08 +000021362ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021363
Reid Spencera773bd52006-08-04 18:18:08 +000021364ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021365
21366
Reid Spencera773bd52006-08-04 18:18:08 +000021367ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021368
21369
Reid Spencera773bd52006-08-04 18:18:08 +000021370ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021371
21372
Reid Spencera773bd52006-08-04 18:18:08 +000021373ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021374
21375
Reid Spencer8b2e1412006-11-17 03:32:33 +000021376ac_config_commands="$ac_config_commands runtime/Makefile"
21377
21378
Reid Spencera773bd52006-08-04 18:18:08 +000021379ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021380
21381
Reid Spencera773bd52006-08-04 18:18:08 +000021382ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021383
21384
Bill Wendlingf24eb392009-01-04 23:12:30 +000021385ac_config_commands="$ac_config_commands unittests/Makefile"
21386
21387
Reid Spencera773bd52006-08-04 18:18:08 +000021388ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021389
21390
Reid Spencera773bd52006-08-04 18:18:08 +000021391ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021392
21393
Reid Spencera773bd52006-08-04 18:18:08 +000021394ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021395
21396
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021397ac_config_commands="$ac_config_commands bindings/Makefile"
21398
21399
21400ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21401
21402
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021403
John Criswell7a73b802003-06-30 21:59:07 +000021404cat >confcache <<\_ACEOF
21405# This file is a shell script that caches the results of configure
21406# tests run on this system so they can be shared between configure
21407# scripts and configure runs, see configure's option --config-cache.
21408# It is not useful on other systems. If it contains results you don't
21409# want to keep, you may remove or edit it.
21410#
21411# config.status only pays attention to the cache file if you give it
21412# the --recheck option to rerun configure.
21413#
John Criswell0c38eaf2003-09-10 15:17:25 +000021414# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021415# loading this file, other *unset* `ac_cv_foo' will be assigned the
21416# following values.
21417
21418_ACEOF
21419
21420# The following way of writing the cache mishandles newlines in values,
21421# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021422# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021423# Ultrix sh set writes to stderr and can't be redirected directly,
21424# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021425(
21426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21427 eval ac_val=\$$ac_var
21428 case $ac_val in #(
21429 *${as_nl}*)
21430 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21432echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021433 esac
21434 case $ac_var in #(
21435 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021437 esac ;;
21438 esac
21439 done
21440
John Criswell7a73b802003-06-30 21:59:07 +000021441 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21443 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444 # `set' does not quote correctly, so add quotes (double-quote
21445 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021446 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021447 "s/'/'\\\\''/g;
21448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021449 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021450 *)
21451 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021454 esac |
21455 sort
21456) |
John Criswell7a73b802003-06-30 21:59:07 +000021457 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021458 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021459 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021460 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21462 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21464 :end' >>confcache
21465if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21466 if test -w "$cache_file"; then
21467 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21469echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021470 cat confcache >$cache_file
21471 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21473echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021474 fi
21475fi
21476rm -f confcache
21477
21478test "x$prefix" = xNONE && prefix=$ac_default_prefix
21479# Let make expand exec_prefix.
21480test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21481
John Criswell7a73b802003-06-30 21:59:07 +000021482DEFS=-DHAVE_CONFIG_H
21483
John Criswell0c38eaf2003-09-10 15:17:25 +000021484ac_libobjs=
21485ac_ltlibobjs=
21486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21487 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21491 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021492 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21493 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021494done
21495LIBOBJS=$ac_libobjs
21496
21497LTLIBOBJS=$ac_ltlibobjs
21498
21499
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021500if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21502Usually this means the macro was only invoked conditionally." >&5
21503echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21504Usually this means the macro was only invoked conditionally." >&2;}
21505 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021506fi
21507if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021508 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21509Usually this means the macro was only invoked conditionally." >&5
21510echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21511Usually this means the macro was only invoked conditionally." >&2;}
21512 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021513fi
John Criswell7a73b802003-06-30 21:59:07 +000021514
21515: ${CONFIG_STATUS=./config.status}
21516ac_clean_files_save=$ac_clean_files
21517ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21519echo "$as_me: creating $CONFIG_STATUS" >&6;}
21520cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021521#! $SHELL
21522# Generated by $as_me.
21523# Run this file to recreate the current configuration.
21524# Compiler output produced by configure, useful for debugging
21525# configure, is in config.log if it exists.
21526
21527debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021528ac_cs_recheck=false
21529ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021530SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533cat >>$CONFIG_STATUS <<\_ACEOF
21534## --------------------- ##
21535## M4sh Initialization. ##
21536## --------------------- ##
21537
21538# Be Bourne compatible
21539if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021540 emulate sh
21541 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021543 # is contrary to our usage. Disable this feature.
21544 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021545 setopt NO_GLOB_SUBST
21546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549BIN_SH=xpg4; export BIN_SH # for Tru64
21550DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021551
John Criswell7a73b802003-06-30 21:59:07 +000021552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553# PATH needs CR
21554# Avoid depending upon Character Ranges.
21555as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21556as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21557as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21558as_cr_digits='0123456789'
21559as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021560
21561# The user is always right.
21562if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021563 echo "#! /bin/sh" >conf$$.sh
21564 echo "exit 0" >>conf$$.sh
21565 chmod +x conf$$.sh
21566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21567 PATH_SEPARATOR=';'
21568 else
21569 PATH_SEPARATOR=:
21570 fi
21571 rm -f conf$$.sh
21572fi
21573
21574# Support unset when possible.
21575if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21576 as_unset=unset
21577else
21578 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021579fi
John Criswell7a73b802003-06-30 21:59:07 +000021580
Reid Spencera773bd52006-08-04 18:18:08 +000021581
21582# IFS
21583# We need space, tab and new line, in precisely that order. Quoting is
21584# there to prevent editors from complaining about space-tab.
21585# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21586# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587as_nl='
21588'
Reid Spencera773bd52006-08-04 18:18:08 +000021589IFS=" "" $as_nl"
21590
21591# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021593 *[\\/]* ) as_myself=$0 ;;
21594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021595for as_dir in $PATH
21596do
21597 IFS=$as_save_IFS
21598 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21600done
Reid Spencera773bd52006-08-04 18:18:08 +000021601IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021602
Reid Spencera773bd52006-08-04 18:18:08 +000021603 ;;
21604esac
21605# We did not find ourselves, most probably we were run as `sh COMMAND'
21606# in which case we are not to be found in the path.
21607if test "x$as_myself" = x; then
21608 as_myself=$0
21609fi
21610if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21612 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021613fi
21614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021615# Work around bugs in pre-3.0 UWIN ksh.
21616for as_var in ENV MAIL MAILPATH
21617do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021618done
21619PS1='$ '
21620PS2='> '
21621PS4='+ '
21622
21623# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624for as_var in \
21625 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21626 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21627 LC_TELEPHONE LC_TIME
21628do
21629 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21630 eval $as_var=C; export $as_var
21631 else
21632 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021633 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634done
Torok Edwin871384f2010-01-26 08:50:50 +000021635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021637if expr a : '\(a\)' >/dev/null 2>&1 &&
21638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21639 as_expr=expr
21640else
21641 as_expr=false
21642fi
21643
21644if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21645 as_basename=basename
21646else
21647 as_basename=false
21648fi
21649
21650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021652as_me=`$as_basename -- "$0" ||
21653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21654 X"$0" : 'X\(//\)$' \| \
21655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021656echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021657 sed '/^.*\/\([^/][^/]*\)\/*$/{
21658 s//\1/
21659 q
21660 }
21661 /^X\/\(\/\/\)$/{
21662 s//\1/
21663 q
21664 }
21665 /^X\/\(\/\).*/{
21666 s//\1/
21667 q
21668 }
21669 s/.*/./; q'`
21670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671# CDPATH.
21672$as_unset CDPATH
21673
21674
21675
21676 as_lineno_1=$LINENO
21677 as_lineno_2=$LINENO
21678 test "x$as_lineno_1" != "x$as_lineno_2" &&
21679 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21680
21681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21682 # uniformly replaced by the line number. The first 'sed' inserts a
21683 # line-number line after each line using $LINENO; the second 'sed'
21684 # does the real work. The second script uses 'N' to pair each
21685 # line-number line with the line containing $LINENO, and appends
21686 # trailing '-' during substitution so that $LINENO is not a special
21687 # case at line end.
21688 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21689 # scripts with optimization help from Paolo Bonzini. Blame Lee
21690 # E. McMahon (1931-1989) for sed's syntax. :-)
21691 sed -n '
21692 p
21693 /[$]LINENO/=
21694 ' <$as_myself |
21695 sed '
21696 s/[$]LINENO.*/&-/
21697 t lineno
21698 b
21699 :lineno
21700 N
21701 :loop
21702 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21703 t loop
21704 s/-\n.*//
21705 ' >$as_me.lineno &&
21706 chmod +x "$as_me.lineno" ||
21707 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21708 { (exit 1); exit 1; }; }
21709
21710 # Don't try to exec as it changes $[0], causing all sort of problems
21711 # (the dirname of $[0] is not the place where we might find the
21712 # original and so on. Autoconf is especially sensitive to this).
21713 . "./$as_me.lineno"
21714 # Exit status is that of the last command.
21715 exit
21716}
21717
21718
21719if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21720 as_dirname=dirname
21721else
21722 as_dirname=false
21723fi
Reid Spencera773bd52006-08-04 18:18:08 +000021724
21725ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021726case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021727-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021729 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021731 esac;;
21732*)
21733 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021734esac
21735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736if expr a : '\(a\)' >/dev/null 2>&1 &&
21737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21738 as_expr=expr
21739else
21740 as_expr=false
21741fi
21742
John Criswell7a73b802003-06-30 21:59:07 +000021743rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021744if test -d conf$$.dir; then
21745 rm -f conf$$.dir/conf$$.file
21746else
21747 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750echo >conf$$.file
21751if ln -s conf$$.file conf$$ 2>/dev/null; then
21752 as_ln_s='ln -s'
21753 # ... but there are two gotchas:
21754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21756 # In both cases, we have to default to `cp -p'.
21757 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021758 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759elif ln conf$$.file conf$$ 2>/dev/null; then
21760 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021761else
21762 as_ln_s='cp -p'
21763fi
Reid Spencera773bd52006-08-04 18:18:08 +000021764rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21765rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021766
John Criswell0c38eaf2003-09-10 15:17:25 +000021767if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021769else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021770 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021771 as_mkdir_p=false
21772fi
21773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21775# systems may use methods other than mode bits to determine executability.
21776cat >conf$$.file <<_ASEOF
21777#! /bin/sh
21778exit 0
21779_ASEOF
21780chmod +x conf$$.file
21781if test -x conf$$.file >/dev/null 2>&1; then
21782 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021787
21788# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021790
21791# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021793
21794
John Criswell7a73b802003-06-30 21:59:07 +000021795exec 6>&1
21796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021798# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021799# values after options handling.
21800ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000021801This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021803
21804 CONFIG_FILES = $CONFIG_FILES
21805 CONFIG_HEADERS = $CONFIG_HEADERS
21806 CONFIG_LINKS = $CONFIG_LINKS
21807 CONFIG_COMMANDS = $CONFIG_COMMANDS
21808 $ $0 $@
21809
Reid Spencera773bd52006-08-04 18:18:08 +000021810on `(hostname || uname -n) 2>/dev/null | sed 1q`
21811"
21812
John Criswell7a73b802003-06-30 21:59:07 +000021813_ACEOF
21814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021816# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021817config_files="$ac_config_files"
21818config_headers="$ac_config_headers"
21819config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021820
Reid Spencera773bd52006-08-04 18:18:08 +000021821_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021824ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825\`$as_me' instantiates files from templates according to the
21826current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021829
21830 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831 -V, --version print version number, then exit
21832 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021833 -d, --debug don't remove temporary files
21834 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835 --file=FILE[:TEMPLATE]
21836 instantiate the configuration file FILE
21837 --header=FILE[:TEMPLATE]
21838 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021839
21840Configuration files:
21841$config_files
21842
21843Configuration headers:
21844$config_headers
21845
John Criswellc764fbc2003-09-06 15:17:13 +000021846Configuration commands:
21847$config_commands
21848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021850
Reid Spencera773bd52006-08-04 18:18:08 +000021851_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021853ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000021854llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855configured by $0, generated by GNU Autoconf 2.60,
21856 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021859This config.status script is free software; the Free Software Foundation
21860gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021861
21862ac_pwd='$ac_pwd'
21863srcdir='$srcdir'
21864INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021865_ACEOF
21866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867cat >>$CONFIG_STATUS <<\_ACEOF
21868# If no file are specified by the user, then we need to provide default
21869# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021870ac_need_defaults=:
21871while test $# != 0
21872do
21873 case $1 in
21874 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021880 ac_option=$1
21881 ac_optarg=$2
21882 ac_shift=shift
21883 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021884 esac
21885
John Criswell0c38eaf2003-09-10 15:17:25 +000021886 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021887 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21889 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021892 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021893 debug=: ;;
21894 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021895 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021897 ac_need_defaults=false;;
21898 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021899 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021901 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021902 --he | --h)
21903 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904 { echo "$as_me: error: ambiguous option: $1
21905Try \`$0 --help' for more information." >&2
21906 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021907 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21911 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021912
21913 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 -*) { echo "$as_me: error: unrecognized option: $1
21915Try \`$0 --help' for more information." >&2
21916 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021919 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021920
21921 esac
21922 shift
21923done
21924
John Criswell0c38eaf2003-09-10 15:17:25 +000021925ac_configure_extra_args=
21926
21927if $ac_cs_silent; then
21928 exec 6>/dev/null
21929 ac_configure_extra_args="$ac_configure_extra_args --silent"
21930fi
21931
21932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021934if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21936 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021937 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021939fi
21940
John Criswell7a73b802003-06-30 21:59:07 +000021941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021943exec 5>>config.log
21944{
21945 echo
21946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21947## Running $as_me. ##
21948_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021949 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021950} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021951
Reid Spencera773bd52006-08-04 18:18:08 +000021952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021954#
Reid Spencera773bd52006-08-04 18:18:08 +000021955# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021956#
Reid Spencerc0682832005-02-24 19:05:19 +000021957llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021958
21959_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021962
21963# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021964for ac_config_target in $ac_config_targets
21965do
Reid Spencera773bd52006-08-04 18:18:08 +000021966 case $ac_config_target in
21967 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021968 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021969 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21970 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021971 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021972 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021973 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021974 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021975 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021976 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21977 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021978 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21979 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21980 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21981 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21982 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21983 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021984 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021985 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21986 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021987 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021988 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21989 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21990 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021991 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21992 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21995echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21996 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021997 esac
21998done
21999
Reid Spencera773bd52006-08-04 18:18:08 +000022000
John Criswell7a73b802003-06-30 21:59:07 +000022001# If the user did not use the arguments to specify the items to instantiate,
22002# then the envvar interface is used. Set only those that are not.
22003# We use the long form for the default assignment because of an extremely
22004# bizarre bug on SunOS 4.1.3.
22005if $ac_need_defaults; then
22006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022009fi
22010
John Criswell0c38eaf2003-09-10 15:17:25 +000022011# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022012# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022013# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022014# Hook for its removal unless debugging.
22015# Note that there is a small window in which the directory will not be cleaned:
22016# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022017$debug ||
22018{
Reid Spencera773bd52006-08-04 18:18:08 +000022019 tmp=
22020 trap 'exit_status=$?
22021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22022' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022024}
John Criswell7a73b802003-06-30 21:59:07 +000022025# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022026
John Criswell7a73b802003-06-30 21:59:07 +000022027{
Reid Spencera773bd52006-08-04 18:18:08 +000022028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022029 test -n "$tmp" && test -d "$tmp"
22030} ||
22031{
Reid Spencera773bd52006-08-04 18:18:08 +000022032 tmp=./conf$$-$RANDOM
22033 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022034} ||
22035{
22036 echo "$me: cannot create a temporary directory in ." >&2
22037 { (exit 1); exit 1; }
22038}
John Criswell7a73b802003-06-30 21:59:07 +000022039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022040#
22041# Set up the sed scripts for CONFIG_FILES section.
22042#
22043
22044# No need to generate the scripts if there are no CONFIG_FILES.
22045# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022046if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022047
22048_ACEOF
22049
Reid Spencera773bd52006-08-04 18:18:08 +000022050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051
Reid Spencera773bd52006-08-04 18:18:08 +000022052ac_delim='%!_!# '
22053for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054 cat >conf$$subs.sed <<_ACEOF
22055SHELL!$SHELL$ac_delim
22056PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22057PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22058PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22059PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22060PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22061PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22062exec_prefix!$exec_prefix$ac_delim
22063prefix!$prefix$ac_delim
22064program_transform_name!$program_transform_name$ac_delim
22065bindir!$bindir$ac_delim
22066sbindir!$sbindir$ac_delim
22067libexecdir!$libexecdir$ac_delim
22068datarootdir!$datarootdir$ac_delim
22069datadir!$datadir$ac_delim
22070sysconfdir!$sysconfdir$ac_delim
22071sharedstatedir!$sharedstatedir$ac_delim
22072localstatedir!$localstatedir$ac_delim
22073includedir!$includedir$ac_delim
22074oldincludedir!$oldincludedir$ac_delim
22075docdir!$docdir$ac_delim
22076infodir!$infodir$ac_delim
22077htmldir!$htmldir$ac_delim
22078dvidir!$dvidir$ac_delim
22079pdfdir!$pdfdir$ac_delim
22080psdir!$psdir$ac_delim
22081libdir!$libdir$ac_delim
22082localedir!$localedir$ac_delim
22083mandir!$mandir$ac_delim
22084DEFS!$DEFS$ac_delim
22085ECHO_C!$ECHO_C$ac_delim
22086ECHO_N!$ECHO_N$ac_delim
22087ECHO_T!$ECHO_T$ac_delim
22088LIBS!$LIBS$ac_delim
22089build_alias!$build_alias$ac_delim
22090host_alias!$host_alias$ac_delim
22091target_alias!$target_alias$ac_delim
22092LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022093CC!$CC$ac_delim
22094CFLAGS!$CFLAGS$ac_delim
22095LDFLAGS!$LDFLAGS$ac_delim
22096CPPFLAGS!$CPPFLAGS$ac_delim
22097ac_ct_CC!$ac_ct_CC$ac_delim
22098EXEEXT!$EXEEXT$ac_delim
22099OBJEXT!$OBJEXT$ac_delim
22100CXX!$CXX$ac_delim
22101CXXFLAGS!$CXXFLAGS$ac_delim
22102ac_ct_CXX!$ac_ct_CXX$ac_delim
22103CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022104subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022105ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22106LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107build!$build$ac_delim
22108build_cpu!$build_cpu$ac_delim
22109build_vendor!$build_vendor$ac_delim
22110build_os!$build_os$ac_delim
22111host!$host$ac_delim
22112host_cpu!$host_cpu$ac_delim
22113host_vendor!$host_vendor$ac_delim
22114host_os!$host_os$ac_delim
22115target!$target$ac_delim
22116target_cpu!$target_cpu$ac_delim
22117target_vendor!$target_vendor$ac_delim
22118target_os!$target_os$ac_delim
22119OS!$OS$ac_delim
22120HOST_OS!$HOST_OS$ac_delim
22121TARGET_OS!$TARGET_OS$ac_delim
22122LINKALL!$LINKALL$ac_delim
22123NOLINKALL!$NOLINKALL$ac_delim
22124LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22125LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22126ARCH!$ARCH$ac_delim
22127ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128GREP!$GREP$ac_delim
22129EGREP!$EGREP$ac_delim
22130LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22131BUILD_CC!$BUILD_CC$ac_delim
22132BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22133BUILD_CXX!$BUILD_CXX$ac_delim
22134CVSBUILD!$CVSBUILD$ac_delim
22135ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22136ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22137DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22138ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22139EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22140DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22141DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22142JIT!$JIT$ac_delim
22143TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022144ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22146ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022147ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022148ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022149ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022150ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022151ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022155 break
22156 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22158echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22159 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022160 else
22161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022162 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022163done
22164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22166if test -n "$ac_eof"; then
22167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22168 ac_eof=`expr $ac_eof + 1`
22169fi
22170
22171cat >>$CONFIG_STATUS <<_ACEOF
22172cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022174_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022175sed '
22176s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22177s/^/s,@/; s/!/@,|#_!!_#|/
22178:n
22179t n
22180s/'"$ac_delim"'$/,g/; t
22181s/$/\\/; p
22182N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22183' >>$CONFIG_STATUS <conf$$subs.sed
22184rm -f conf$$subs.sed
22185cat >>$CONFIG_STATUS <<_ACEOF
22186CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022188
22189
22190ac_delim='%!_!# '
22191for ac_last_try in false false false false false :; do
22192 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000022193TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22194LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22195LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022196LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022197LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022198ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022199CLANGPATH!$CLANGPATH$ac_delim
22200CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022201ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022202OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022203EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022204EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022205BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206NM!$NM$ac_delim
22207ifGNUmake!$ifGNUmake$ac_delim
22208LN_S!$LN_S$ac_delim
22209CMP!$CMP$ac_delim
22210CP!$CP$ac_delim
22211DATE!$DATE$ac_delim
22212FIND!$FIND$ac_delim
22213MKDIR!$MKDIR$ac_delim
22214MV!$MV$ac_delim
22215RANLIB!$RANLIB$ac_delim
22216AR!$AR$ac_delim
22217RM!$RM$ac_delim
22218SED!$SED$ac_delim
22219TAR!$TAR$ac_delim
22220BINPWD!$BINPWD$ac_delim
22221GRAPHVIZ!$GRAPHVIZ$ac_delim
22222DOT!$DOT$ac_delim
22223FDP!$FDP$ac_delim
22224NEATO!$NEATO$ac_delim
22225TWOPI!$TWOPI$ac_delim
22226CIRCO!$CIRCO$ac_delim
22227GV!$GV$ac_delim
22228DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022229XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230PERL!$PERL$ac_delim
22231HAVE_PERL!$HAVE_PERL$ac_delim
22232INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22233INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22234INSTALL_DATA!$INSTALL_DATA$ac_delim
22235BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022236CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237DOXYGEN!$DOXYGEN$ac_delim
22238GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022239GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240POD2HTML!$POD2HTML$ac_delim
22241POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022242PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022243RUNTEST!$RUNTEST$ac_delim
22244TCLSH!$TCLSH$ac_delim
22245ZIP!$ZIP$ac_delim
22246OCAMLC!$OCAMLC$ac_delim
22247OCAMLOPT!$OCAMLOPT$ac_delim
22248OCAMLDEP!$OCAMLDEP$ac_delim
22249OCAMLDOC!$OCAMLDOC$ac_delim
22250GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022251HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022252INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22253INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22254CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22255CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22256LIBADD_DL!$LIBADD_DL$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022257LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22259NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22260USE_UDIS86!$USE_UDIS86$ac_delim
22261USE_OPROFILE!$USE_OPROFILE$ac_delim
22262HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22263HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22264MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022266SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022267LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22268LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22269LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22270LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22271LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22272LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22273LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22274LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22275LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22276LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22277BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22278ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022279OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22280ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22281RPATH!$RPATH$ac_delim
22282RDYNAMIC!$RDYNAMIC$ac_delim
22283LIBOBJS!$LIBOBJS$ac_delim
22284LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022285_ACEOF
22286
Eric Christophereeef9e82011-09-20 23:58:15 +000022287 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022288 break
22289 elif $ac_last_try; then
22290 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22291echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22292 { (exit 1); exit 1; }; }
22293 else
22294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22295 fi
22296done
22297
22298ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22299if test -n "$ac_eof"; then
22300 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22301 ac_eof=`expr $ac_eof + 1`
22302fi
22303
22304cat >>$CONFIG_STATUS <<_ACEOF
22305cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22307_ACEOF
22308sed '
22309s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22310s/^/s,@/; s/!/@,|#_!!_#|/
22311:n
22312t n
22313s/'"$ac_delim"'$/,g/; t
22314s/$/\\/; p
22315N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22316' >>$CONFIG_STATUS <conf$$subs.sed
22317rm -f conf$$subs.sed
22318cat >>$CONFIG_STATUS <<_ACEOF
22319:end
22320s/|#_!!_#|//g
22321CEOF$ac_eof
22322_ACEOF
22323
22324
Reid Spencera773bd52006-08-04 18:18:08 +000022325# VPATH may cause trouble with some makes, so we remove $(srcdir),
22326# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22327# trailing colons and then remove the whole line if VPATH becomes empty
22328# (actually we leave an empty line to preserve line numbers).
22329if test "x$srcdir" = x.; then
22330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22331s/:*\$(srcdir):*/:/
22332s/:*\${srcdir}:*/:/
22333s/:*@srcdir@:*/:/
22334s/^\([^=]*=[ ]*\):*/\1/
22335s/:*$//
22336s/^[^=]*=[ ]*$//
22337}'
22338fi
22339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022340cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022341fi # test -n "$CONFIG_FILES"
22342
Reid Spencera773bd52006-08-04 18:18:08 +000022343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022344for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022345do
22346 case $ac_tag in
22347 :[FHLC]) ac_mode=$ac_tag; continue;;
22348 esac
22349 case $ac_mode$ac_tag in
22350 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22352echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22353 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022354 :[FH]-) ac_tag=-:-;;
22355 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22356 esac
22357 ac_save_IFS=$IFS
22358 IFS=:
22359 set x $ac_tag
22360 IFS=$ac_save_IFS
22361 shift
22362 ac_file=$1
22363 shift
22364
22365 case $ac_mode in
22366 :L) ac_source=$1;;
22367 :[FH])
22368 ac_file_inputs=
22369 for ac_f
22370 do
22371 case $ac_f in
22372 -) ac_f="$tmp/stdin";;
22373 *) # Look for the file first in the build tree, then in the source tree
22374 # (if the path is not absolute). The absolute path cannot be DOS-style,
22375 # because $ac_f cannot contain `:'.
22376 test -f "$ac_f" ||
22377 case $ac_f in
22378 [\\/$]*) false;;
22379 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22380 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022381 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22382echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22383 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022384 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022385 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022386 done
22387
22388 # Let's still pretend it is `configure' which instantiates (i.e., don't
22389 # use $as_me), people would be surprised to read:
22390 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022391 configure_input="Generated from "`IFS=:
22392 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022393 if test x"$ac_file" != x-; then
22394 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 { echo "$as_me:$LINENO: creating $ac_file" >&5
22396echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022397 fi
22398
22399 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022401 esac
22402 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022403 esac
22404
Reid Spencera773bd52006-08-04 18:18:08 +000022405 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022406$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022407 X"$ac_file" : 'X\(//\)[^/]' \| \
22408 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\/\)[^/].*/{
22416 s//\1/
22417 q
22418 }
22419 /^X\(\/\/\)$/{
22420 s//\1/
22421 q
22422 }
22423 /^X\(\/\).*/{
22424 s//\1/
22425 q
22426 }
22427 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022428 { as_dir="$ac_dir"
22429 case $as_dir in #(
22430 -*) as_dir=./$as_dir;;
22431 esac
22432 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22433 as_dirs=
22434 while :; do
22435 case $as_dir in #(
22436 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22437 *) as_qdir=$as_dir;;
22438 esac
22439 as_dirs="'$as_qdir' $as_dirs"
22440 as_dir=`$as_dirname -- "$as_dir" ||
22441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22442 X"$as_dir" : 'X\(//\)[^/]' \| \
22443 X"$as_dir" : 'X\(//\)$' \| \
22444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22445echo X"$as_dir" |
22446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22447 s//\1/
22448 q
22449 }
22450 /^X\(\/\/\)[^/].*/{
22451 s//\1/
22452 q
22453 }
22454 /^X\(\/\/\)$/{
22455 s//\1/
22456 q
22457 }
22458 /^X\(\/\).*/{
22459 s//\1/
22460 q
22461 }
22462 s/.*/./; q'`
22463 test -d "$as_dir" && break
22464 done
22465 test -z "$as_dirs" || eval "mkdir $as_dirs"
22466 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22467echo "$as_me: error: cannot create directory $as_dir" >&2;}
22468 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022469 ac_builddir=.
22470
Reid Spencera773bd52006-08-04 18:18:08 +000022471case "$ac_dir" in
22472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22473*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022475 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022477 case $ac_top_builddir_sub in
22478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22480 esac ;;
22481esac
22482ac_abs_top_builddir=$ac_pwd
22483ac_abs_builddir=$ac_pwd$ac_dir_suffix
22484# for backward compatibility:
22485ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022486
22487case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022488 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022489 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022490 ac_top_srcdir=$ac_top_builddir_sub
22491 ac_abs_top_srcdir=$ac_pwd ;;
22492 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022493 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022494 ac_top_srcdir=$srcdir
22495 ac_abs_top_srcdir=$srcdir ;;
22496 *) # Relative name.
22497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22498 ac_top_srcdir=$ac_top_build_prefix$srcdir
22499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022500esac
Reid Spencera773bd52006-08-04 18:18:08 +000022501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022502
John Criswell7a73b802003-06-30 21:59:07 +000022503
Reid Spencera773bd52006-08-04 18:18:08 +000022504 case $ac_mode in
22505 :F)
22506 #
22507 # CONFIG_FILE
22508 #
John Criswell7a73b802003-06-30 21:59:07 +000022509
22510 case $INSTALL in
22511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022513 esac
John Criswell7a73b802003-06-30 21:59:07 +000022514_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022517# If the template does not know about datarootdir, expand it.
22518# FIXME: This hack should be removed a few years after 2.60.
22519ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022520
22521case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022522 p
22523 q
22524}
22525/@datadir@/p
22526/@docdir@/p
22527/@infodir@/p
22528/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022529/@mandir@/p
22530' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022531*datarootdir*) ac_datarootdir_seen=yes;;
22532*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022533 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22534echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022536cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022537 ac_datarootdir_hack='
22538 s&@datadir@&$datadir&g
22539 s&@docdir@&$docdir&g
22540 s&@infodir@&$infodir&g
22541 s&@localedir@&$localedir&g
22542 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022544esac
22545_ACEOF
22546
22547# Neutralize VPATH when `$srcdir' = `.'.
22548# Shell code in configure.ac might set extrasub.
22549# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550cat >>$CONFIG_STATUS <<_ACEOF
22551 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022552$extrasub
22553_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022554cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022555:t
22556/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022557s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022558s&@top_builddir@&$ac_top_builddir_sub&;t t
22559s&@srcdir@&$ac_srcdir&;t t
22560s&@abs_srcdir@&$ac_abs_srcdir&;t t
22561s&@top_srcdir@&$ac_top_srcdir&;t t
22562s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22563s&@builddir@&$ac_builddir&;t t
22564s&@abs_builddir@&$ac_abs_builddir&;t t
22565s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22566s&@INSTALL@&$ac_INSTALL&;t t
22567$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022568" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022569
Reid Spencera773bd52006-08-04 18:18:08 +000022570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022573 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022574which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022575echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022576which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022577
Reid Spencera773bd52006-08-04 18:18:08 +000022578 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022579 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022580 -) cat "$tmp/out"; rm -f "$tmp/out";;
22581 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22582 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022583 ;;
22584 :H)
22585 #
22586 # CONFIG_HEADER
22587 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022588_ACEOF
22589
22590# Transform confdefs.h into a sed script `conftest.defines', that
22591# substitutes the proper values into config.h.in to produce config.h.
22592rm -f conftest.defines conftest.tail
22593# First, append a space to every undef/define line, to ease matching.
22594echo 's/$/ /' >conftest.defines
22595# Then, protect against being on the right side of a sed subst, or in
22596# an unquoted here document, in config.status. If some macros were
22597# called several times there might be several #defines for the same
22598# symbol, which is useless. But do not sort them, since the last
22599# AC_DEFINE must be honored.
22600ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22601# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22602# NAME is the cpp macro being defined, VALUE is the value it is being given.
22603# PARAMS is the parameter list in the macro definition--in most cases, it's
22604# just an empty string.
22605ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22606ac_dB='\\)[ (].*,\\1define\\2'
22607ac_dC=' '
22608ac_dD=' ,'
22609
22610uniq confdefs.h |
22611 sed -n '
22612 t rset
22613 :rset
22614 s/^[ ]*#[ ]*define[ ][ ]*//
22615 t ok
22616 d
22617 :ok
22618 s/[\\&,]/\\&/g
22619 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22620 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22621 ' >>conftest.defines
22622
22623# Remove the space that was appended to ease matching.
22624# Then replace #undef with comments. This is necessary, for
22625# example, in the case of _POSIX_SOURCE, which is predefined and required
22626# on some systems where configure will not decide to define it.
22627# (The regexp can be short, since the line contains either #define or #undef.)
22628echo 's/ $//
22629s,^[ #]*u.*,/* & */,' >>conftest.defines
22630
22631# Break up conftest.defines:
22632ac_max_sed_lines=50
22633
22634# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22635# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22636# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22637# et cetera.
22638ac_in='$ac_file_inputs'
22639ac_out='"$tmp/out1"'
22640ac_nxt='"$tmp/out2"'
22641
22642while :
22643do
22644 # Write a here document:
22645 cat >>$CONFIG_STATUS <<_ACEOF
22646 # First, check the format of the line:
22647 cat >"\$tmp/defines.sed" <<\\CEOF
22648/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22649/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22650b
22651:def
22652_ACEOF
22653 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22654 echo 'CEOF
22655 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22656 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22657 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22658 grep . conftest.tail >/dev/null || break
22659 rm -f conftest.defines
22660 mv conftest.tail conftest.defines
22661done
22662rm -f conftest.defines conftest.tail
22663
22664echo "ac_result=$ac_in" >>$CONFIG_STATUS
22665cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022666 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022667 echo "/* $configure_input */" >"$tmp/config.h"
22668 cat "$ac_result" >>"$tmp/config.h"
22669 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22670 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22671echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022672 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022673 rm -f $ac_file
22674 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022675 fi
22676 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022677 echo "/* $configure_input */"
22678 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022679 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022680 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022681 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022683 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22684echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022685 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022686 esac
John Criswell7a73b802003-06-30 21:59:07 +000022687
Reid Spencera773bd52006-08-04 18:18:08 +000022688
22689 case $ac_file$ac_mode in
22690 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022692 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022694 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022696 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022698 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022700 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022702 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022704 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022706 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022708 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022709 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022710 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022711 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022712 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022713 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022714 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022715 ${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 +000022716
22717 esac
22718done # for ac_tag
22719
John Criswell7a73b802003-06-30 21:59:07 +000022720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022721{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022722_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022723chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022724ac_clean_files=$ac_clean_files_save
22725
22726
22727# configure is writing to config.log, and then calls config.status.
22728# config.status does its own redirection, appending to config.log.
22729# Unfortunately, on DOS this fails, as config.log is still kept open
22730# by configure, so config.status won't be able to write to it; its
22731# output is simply discarded. So we exec the FD to /dev/null,
22732# effectively closing config.log, so it can be properly (re)opened and
22733# appended to by config.status. When coming back to configure, we
22734# need to make the FD available again.
22735if test "$no_create" != yes; then
22736 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022737 ac_config_status_args=
22738 test "$silent" = yes &&
22739 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022740 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022742 exec 5>>config.log
22743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22744 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022745 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022746fi
22747
John Criswell12399a12003-09-30 15:55:44 +000022748#
22749# CONFIG_SUBDIRS section.
22750#
22751if test "$no_recursion" != yes; then
22752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022753 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022754 ac_sub_configure_args=
22755 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022756 eval "set x $ac_configure_args"
22757 shift
22758 for ac_arg
22759 do
John Criswell12399a12003-09-30 15:55:44 +000022760 if test -n "$ac_prev"; then
22761 ac_prev=
22762 continue
22763 fi
22764 case $ac_arg in
22765 -cache-file | --cache-file | --cache-fil | --cache-fi \
22766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22767 ac_prev=cache_file ;;
22768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22770 | --c=*)
22771 ;;
22772 --config-cache | -C)
22773 ;;
22774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22775 ac_prev=srcdir ;;
22776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22777 ;;
22778 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22779 ac_prev=prefix ;;
22780 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22781 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022782 *)
22783 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022785 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022787 esac
22788 done
22789
22790 # Always prepend --prefix to ensure using the same prefix
22791 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022792 ac_arg="--prefix=$prefix"
22793 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022794 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022795 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022796 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022797
22798 ac_popdir=`pwd`
22799 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22800
22801 # Do not complain, so a configure script can configure whichever
22802 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022803 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022804
Reid Spencera773bd52006-08-04 18:18:08 +000022805 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806 echo "$as_me:$LINENO: $ac_msg" >&5
22807 echo "$ac_msg" >&6
22808 { as_dir="$ac_dir"
22809 case $as_dir in #(
22810 -*) as_dir=./$as_dir;;
22811 esac
22812 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22813 as_dirs=
22814 while :; do
22815 case $as_dir in #(
22816 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22817 *) as_qdir=$as_dir;;
22818 esac
22819 as_dirs="'$as_qdir' $as_dirs"
22820 as_dir=`$as_dirname -- "$as_dir" ||
22821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22822 X"$as_dir" : 'X\(//\)[^/]' \| \
22823 X"$as_dir" : 'X\(//\)$' \| \
22824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22825echo X"$as_dir" |
22826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22827 s//\1/
22828 q
22829 }
22830 /^X\(\/\/\)[^/].*/{
22831 s//\1/
22832 q
22833 }
22834 /^X\(\/\/\)$/{
22835 s//\1/
22836 q
22837 }
22838 /^X\(\/\).*/{
22839 s//\1/
22840 q
22841 }
22842 s/.*/./; q'`
22843 test -d "$as_dir" && break
22844 done
22845 test -z "$as_dirs" || eval "mkdir $as_dirs"
22846 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22847echo "$as_me: error: cannot create directory $as_dir" >&2;}
22848 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022849 ac_builddir=.
22850
Reid Spencera773bd52006-08-04 18:18:08 +000022851case "$ac_dir" in
22852.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022855 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022856 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022857 case $ac_top_builddir_sub in
22858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22860 esac ;;
22861esac
22862ac_abs_top_builddir=$ac_pwd
22863ac_abs_builddir=$ac_pwd$ac_dir_suffix
22864# for backward compatibility:
22865ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022866
22867case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022868 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022869 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022870 ac_top_srcdir=$ac_top_builddir_sub
22871 ac_abs_top_srcdir=$ac_pwd ;;
22872 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022873 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022874 ac_top_srcdir=$srcdir
22875 ac_abs_top_srcdir=$srcdir ;;
22876 *) # Relative name.
22877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22878 ac_top_srcdir=$ac_top_build_prefix$srcdir
22879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022880esac
Reid Spencera773bd52006-08-04 18:18:08 +000022881ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022882
22883
Reid Spencera773bd52006-08-04 18:18:08 +000022884 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022885
22886 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022887 if test -f "$ac_srcdir/configure.gnu"; then
22888 ac_sub_configure=$ac_srcdir/configure.gnu
22889 elif test -f "$ac_srcdir/configure"; then
22890 ac_sub_configure=$ac_srcdir/configure
22891 elif test -f "$ac_srcdir/configure.in"; then
22892 # This should be Cygnus configure.
22893 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022894 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022895 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22896echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022897 ac_sub_configure=
22898 fi
22899
22900 # The recursion is here.
22901 if test -n "$ac_sub_configure"; then
22902 # Make the cache file name correct relative to the subdirectory.
22903 case $cache_file in
22904 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022905 *) # Relative name.
22906 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022907 esac
22908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022909 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22910echo "$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 +000022911 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022912 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22913 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022914 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22915echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22916 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022917 fi
22918
Reid Spencera773bd52006-08-04 18:18:08 +000022919 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022920 done
22921fi
22922