blob: 2a739d3efb65f1ecde180c19799c0c88959a8ac7 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
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#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 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-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
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
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711CXX
712CXXFLAGS
713ac_ct_CXX
714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738PERL
739HAVE_PERL
740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748POD2HTML
749POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751RUNTEST
752TCLSH
753ZIP
754OCAMLC
755OCAMLOPT
756OCAMLDEP
757OCAMLDOC
758GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000759HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000760INSTALL_LTDL_TRUE
761INSTALL_LTDL_FALSE
762CONVENIENCE_LTDL_TRUE
763CONVENIENCE_LTDL_FALSE
764LIBADD_DL
765LLVMGCCCOMMAND
766LLVMGXXCOMMAND
767LLVMGCC
768LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000769LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770NO_VARIADIC_MACROS
771NO_MISSING_FIELD_INITIALIZERS
772USE_UDIS86
773USE_OPROFILE
774HAVE_PTHREAD
775HUGE_VAL_SANITY
776MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000777LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVMCC1
779LLVMCC1PLUS
780LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000782LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000783LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000784SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000785SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000786LLVM_PREFIX
787LLVM_BINDIR
788LLVM_LIBDIR
789LLVM_DATADIR
790LLVM_DOCSDIR
791LLVM_ETCDIR
792LLVM_INCLUDEDIR
793LLVM_INFODIR
794LLVM_MANDIR
795LLVM_CONFIGTIME
796BINDINGS_TO_BUILD
797ALL_BINDINGS
798OCAML_LIBDIR
799ENABLE_VISIBILITY_INLINES_HIDDEN
800RPATH
801RDYNAMIC
802LIBOBJS
803LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000804ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000805 ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811CPPFLAGS
812CPP
813CXX
814CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000815CCC'
John Criswell0157f502010-03-19 21:31:39 +0000816ac_subdirs_all='projects/llvm-gcc
817projects/test-suite
818projects/llvm-test
819projects/poolalloc
820projects/llvm-poolalloc
821projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000823projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000824projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-java
826projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000827projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000828projects/llvm-kernel
829tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000856# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000876
877ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000878ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000883 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000884 ac_prev=
885 continue
886 fi
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Reid Spencera773bd52006-08-04 18:18:08 +0000895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000920 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000922 datadir=$ac_optarg ;;
923
Reid Spencera773bd52006-08-04 18:18:08 +0000924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
John Criswell7a73b802003-06-30 21:59:07 +0000931 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000933 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000952 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
Reid Spencera773bd52006-08-04 18:18:08 +0000984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
John Criswell7a73b802003-06-30 21:59:07 +0000990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
Reid Spencera773bd52006-08-04 18:18:08 +00001014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
John Criswell7a73b802003-06-30 21:59:07 +00001019 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001020 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
Reid Spencera773bd52006-08-04 18:18:08 +00001088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
John Criswell7a73b802003-06-30 21:59:07 +00001098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001158 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001194 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001212fi
1213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001219do
Reid Spencera773bd52006-08-04 18:18:08 +00001220 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001221 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001224 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
Reid Spencera773bd52006-08-04 18:18:08 +00001253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001261
1262
John Criswell7a73b802003-06-30 21:59:07 +00001263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001266 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001267 ac_confdir=`$as_dirname -- "$0" ||
1268$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001291 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
Reid Spencera773bd52006-08-04 18:18:08 +00001297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001301fi
Reid Spencera773bd52006-08-04 18:18:08 +00001302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001331\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001397 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001404 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1408 YES)
David Greenea696d242007-06-28 19:36:08 +00001409 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001410 Compile with expensive debug checks enabled (default
1411 is NO)
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001416 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001417 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001418 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001419 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001420 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001421 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001422 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001423 --enable-shared Build a shared library and link tools against it
1424 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001427 --enable-timestamps Enable embedding timestamp information in build
1428 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1433 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1435 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001438 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001439 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001440
1441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1445 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001446 --with-llvmgcc Specify location of llvm-gcc driver (default
1447 searches PATH)
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1449 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001450 --with-clang Specify location of clang compiler (default is
1451 --with-built-clang)
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1453 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001454 --with-optimize-option Select the compiler options to use for optimized
1455 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001456 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1461 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001462 --with-c-include-dirs Colon separated list of directories clang will
1463 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001472 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001475 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001480 CC C compiler command
1481 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001485 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001486 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to <llvmbugs@cs.uiuc.edu>.
1494_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001495ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001501 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_builddir=.
1503
Reid Spencera773bd52006-08-04 18:18:08 +00001504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001508 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001519
1520case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001521 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001522 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001533esac
Reid Spencera773bd52006-08-04 18:18:08 +00001534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001535
Reid Spencera773bd52006-08-04 18:18:08 +00001536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001544 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001548 done
1549fi
1550
Reid Spencera773bd52006-08-04 18:18:08 +00001551test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001552if $ac_init_version; then
1553 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001554llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001555generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561
John Criswell5a129712010-03-19 21:04:16 +00001562Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001564 exit
John Criswell7a73b802003-06-30 21:59:07 +00001565fi
Reid Spencera773bd52006-08-04 18:18:08 +00001566cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001567This file contains any messages produced by compilers while
1568running configure, to aid debugging if configure makes a mistake.
1569
Eric Christopherb26697c2010-09-06 18:47:10 +00001570It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001571generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001572
1573 $ $0 $@
1574
1575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001576exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001577{
1578cat <<_ASUNAME
1579## --------- ##
1580## Platform. ##
1581## --------- ##
1582
1583hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591
1592/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001595/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001596/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599
1600_ASUNAME
1601
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001607 echo "PATH: $as_dir"
1608done
Reid Spencera773bd52006-08-04 18:18:08 +00001609IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001610
1611} >&5
1612
1613cat >&5 <<_ACEOF
1614
1615
1616## ----------- ##
1617## Core tests. ##
1618## ----------- ##
1619
1620_ACEOF
1621
1622
1623# Keep a trace of the command line.
1624# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001625# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001626# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001628ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001629ac_configure_args0=
1630ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_must_keep_next=false
1632for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001633do
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 for ac_arg
1635 do
1636 case $ac_arg in
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001641 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 esac
1644 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001649 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 case $ac_arg in
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 esac
1659 ;;
1660 -* ) ac_must_keep_next=true ;;
1661 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001663 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ;;
1665 esac
1666 done
John Criswell7a73b802003-06-30 21:59:07 +00001667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001668$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669$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 +00001670
1671# When interrupted or exit'd, cleanup temporary files, and complete
1672# config.log. We remove comments because anyway the quotes in there
1673# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001674# WARNING: Use '\'' to represent an apostrophe within the trap.
1675# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001676trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1678 {
1679 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001680
John Criswell7a73b802003-06-30 21:59:07 +00001681 cat <<\_ASBOX
1682## ---------------- ##
1683## Cache variables. ##
1684## ---------------- ##
1685_ASBOX
1686 echo
1687 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001688(
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1691 case $ac_val in #(
1692 *${as_nl}*)
1693 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac
1697 case $ac_var in #(
1698 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001699 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac ;;
1701 esac
1702 done
John Criswell7a73b802003-06-30 21:59:07 +00001703 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001706 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001710 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001713 esac |
1714 sort
1715)
John Criswell7a73b802003-06-30 21:59:07 +00001716 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001717
1718 cat <<\_ASBOX
1719## ----------------- ##
1720## Output variables. ##
1721## ----------------- ##
1722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_vars
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733
1734 if test -n "$ac_subst_files"; then
1735 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001736## ------------------- ##
1737## File substitutions. ##
1738## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001739_ASBOX
1740 echo
1741 for ac_var in $ac_subst_files
1742 do
Reid Spencera773bd52006-08-04 18:18:08 +00001743 eval ac_val=\$$ac_var
1744 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001746 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 done | sort
1749 echo
1750 fi
1751
John Criswell7a73b802003-06-30 21:59:07 +00001752 if test -s confdefs.h; then
1753 cat <<\_ASBOX
1754## ----------- ##
1755## confdefs.h. ##
1756## ----------- ##
1757_ASBOX
1758 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001759 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760 echo
1761 fi
1762 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001765 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001768 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001769' 0
John Criswell7a73b802003-06-30 21:59:07 +00001770for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001772done
1773ac_signal=0
1774
1775# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001776rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001777
1778# Predefined preprocessor variables.
1779
1780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_NAME "$PACKAGE_NAME"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787_ACEOF
1788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_VERSION "$PACKAGE_VERSION"
1792_ACEOF
1793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_STRING "$PACKAGE_STRING"
1797_ACEOF
1798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799
John Criswell7a73b802003-06-30 21:59:07 +00001800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802_ACEOF
1803
1804
1805# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001807if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001809elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815shift
1816for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001817do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 sed 's/^/| /' "$ac_site_file" >&5
1822 . "$ac_site_file"
1823 fi
1824done
1825
1826if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001835 esac
1836 fi
1837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001840 >$cache_file
1841fi
1842
1843# Check that the precious variables saved in the cache have kept the same
1844# value.
1845ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001846for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001851 case $ac_old_set,$ac_new_set in
1852 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001855 ac_cache_corrupted=: ;;
1856 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,);;
1861 *)
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001870 fi;;
1871 esac
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1874 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001876 *) ac_arg=$ac_var=$ac_new_val ;;
1877 esac
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001881 esac
1882 fi
1883done
1884if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
Reid Spencera773bd52006-08-04 18:18:08 +00001915
John Criswell7a73b802003-06-30 21:59:07 +00001916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923
John Criswell5a129712010-03-19 21:04:16 +00001924LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001925
1926
1927
1928
1929
1930
1931
John Criswell7a73b802003-06-30 21:59:07 +00001932ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001933for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001934 if test -f "$ac_dir/install-sh"; then
1935 ac_aux_dir=$ac_dir
1936 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 break
1938 elif test -f "$ac_dir/install.sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 break
1942 elif test -f "$ac_dir/shtool"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 break
1946 fi
John Criswell7a73b802003-06-30 21:59:07 +00001947done
1948if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001952fi
Reid Spencera773bd52006-08-04 18:18:08 +00001953
1954# These three variables are undocumented and unsupported,
1955# and are intended to be withdrawn in a future Autoconf release.
1956# They can cause serious problems if a builder's source tree is in a directory
1957# whose full name contains unusual characters.
1958ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961
John Criswell7a73b802003-06-30 21:59:07 +00001962
John Criswell392aaa32003-07-22 19:18:09 +00001963
Reid Spencer2706f8c2004-09-19 23:53:36 +00001964if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001965 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 fi
John Criswell93e1c722003-09-15 17:04:06 +00001970fi
1971
John Criswell0157f502010-03-19 21:31:39 +00001972
1973
1974if test -d ${srcdir}/projects/llvm-gcc ; then
1975 subdirs="$subdirs projects/llvm-gcc"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/test-suite ; then
1980 subdirs="$subdirs projects/test-suite"
1981
1982fi
1983
1984if test -d ${srcdir}/projects/llvm-test ; then
1985 subdirs="$subdirs projects/llvm-test"
1986
1987fi
1988
1989if test -d ${srcdir}/projects/poolalloc ; then
1990 subdirs="$subdirs projects/poolalloc"
1991
1992fi
1993
1994if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995 subdirs="$subdirs projects/llvm-poolalloc"
1996
1997fi
1998
John Criswell33a911a2003-11-25 20:36:46 +00001999for i in `ls ${srcdir}/projects`
2000do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002001 if test -d ${srcdir}/projects/${i} ; then
2002 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002004 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002005 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002012 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014 ;;
John Criswell7def2932010-02-25 22:57:19 +00002015 safecode) subdirs="$subdirs projects/safecode"
2016 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002017 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002018 ;;
John Criswell52c02862010-03-25 13:59:09 +00002019 llvm-gcc) ;;
2020 test-suite) ;;
2021 llvm-test) ;;
2022 poolalloc) ;;
2023 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002024 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002027 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002028 esac
John Criswell33a911a2003-11-25 20:36:46 +00002029 fi
2030done
John Criswell559a6c12003-09-30 16:31:48 +00002031
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002032# Check whether --enable-polly was given.
2033if test "${enable_polly+set}" = set; then
2034 enableval=$enable_polly;
2035else
2036 enableval=default
2037fi
2038
2039case "$enableval" in
2040 yes) ENABLE_POLLY=1
2041 ;;
2042 no) ENABLE_POLLY=0
2043 ;;
2044 default) ENABLE_POLLY=1
2045 ;;
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2049esac
2050
2051
2052if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2053 LLVM_HAS_POLLY=1
2054
2055 subdirs="$subdirs tools/polly"
2056
2057fi
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002061$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066{ echo "$as_me:$LINENO: checking build system type" >&5
2067echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002070else
Reid Spencera773bd52006-08-04 18:18:08 +00002071 ac_build_alias=$build_alias
2072test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002082
2083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002086case $ac_cv_build in
2087*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002091esac
John Criswell7a73b802003-06-30 21:59:07 +00002092build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002093ac_save_IFS=$IFS; IFS='-'
2094set x $ac_cv_build
2095shift
2096build_cpu=$1
2097build_vendor=$2
2098shift; shift
2099# Remember, the first character of IFS is used to create $*,
2100# except with old shells:
2101build_os=$*
2102IFS=$ac_save_IFS
2103case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002104
2105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106{ echo "$as_me:$LINENO: checking host system type" >&5
2107echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002110else
Reid Spencera773bd52006-08-04 18:18:08 +00002111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2113else
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002118fi
John Criswell7a73b802003-06-30 21:59:07 +00002119
2120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002123case $ac_cv_host in
2124*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002128esac
John Criswell7a73b802003-06-30 21:59:07 +00002129host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002130ac_save_IFS=$IFS; IFS='-'
2131set x $ac_cv_host
2132shift
2133host_cpu=$1
2134host_vendor=$2
2135shift; shift
2136# Remember, the first character of IFS is used to create $*,
2137# except with old shells:
2138host_os=$*
2139IFS=$ac_save_IFS
2140case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002141
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking target system type" >&5
2144echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002147else
Reid Spencera773bd52006-08-04 18:18:08 +00002148 if test "x$target_alias" = x; then
2149 ac_cv_target=$ac_cv_host
2150else
2151 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002155fi
John Criswell7a73b802003-06-30 21:59:07 +00002156
2157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002160case $ac_cv_target in
2161*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002165esac
John Criswell7a73b802003-06-30 21:59:07 +00002166target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002167ac_save_IFS=$IFS; IFS='-'
2168set x $ac_cv_target
2169shift
2170target_cpu=$1
2171target_vendor=$2
2172shift; shift
2173# Remember, the first character of IFS is used to create $*,
2174# except with old shells:
2175target_os=$*
2176IFS=$ac_save_IFS
2177case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002178
2179
2180# The aliases save the names the user supplied, while $host etc.
2181# will get canonicalized.
2182test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2184 NONENONEs,x,x, &&
2185 program_prefix=${target_alias}-
2186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002192 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002193 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002196 llvm_cv_os_type="AIX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002198 *-*-irix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="IRIX"
2202 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002203 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Cygwin"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002210 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="Darwin"
2212 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002213 *-*-minix*)
2214 llvm_cv_link_all_option="-Wl,-all_load"
2215 llvm_cv_no_link_all_option="-Wl,-noall_load"
2216 llvm_cv_os_type="Minix"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="FreeBSD"
2222 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002223 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002226 llvm_cv_os_type="OpenBSD"
2227 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002228 *-*-netbsd*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="NetBSD"
2232 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002233 *-*-dragonfly*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="DragonFly"
2237 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002238 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002241 llvm_cv_os_type="HP-UX"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Interix"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="Linux"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="SunOS"
2257 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002258 *-*-auroraux*)
2259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261 llvm_cv_os_type="AuroraUX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Win32"
2267 llvm_cv_platform_type="Win32" ;;
2268 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="MingW"
2272 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002273 *-*-haiku*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Haiku"
2277 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002278 *-unknown-eabi*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-unknown-elf*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Freestanding"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002293esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302else
2303 case $target in
2304 *-*-aix*)
2305 llvm_cv_target_os_type="AIX" ;;
2306 *-*-irix*)
2307 llvm_cv_target_os_type="IRIX" ;;
2308 *-*-cygwin*)
2309 llvm_cv_target_os_type="Cygwin" ;;
2310 *-*-darwin*)
2311 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002312 *-*-minix*)
2313 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002314 *-*-freebsd*)
2315 llvm_cv_target_os_type="FreeBSD" ;;
2316 *-*-openbsd*)
2317 llvm_cv_target_os_type="OpenBSD" ;;
2318 *-*-netbsd*)
2319 llvm_cv_target_os_type="NetBSD" ;;
2320 *-*-dragonfly*)
2321 llvm_cv_target_os_type="DragonFly" ;;
2322 *-*-hpux*)
2323 llvm_cv_target_os_type="HP-UX" ;;
2324 *-*-interix*)
2325 llvm_cv_target_os_type="Interix" ;;
2326 *-*-linux*)
2327 llvm_cv_target_os_type="Linux" ;;
2328 *-*-solaris*)
2329 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002330 *-*-auroraux*)
2331 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002332 *-*-win32*)
2333 llvm_cv_target_os_type="Win32" ;;
2334 *-*-mingw*)
2335 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002336 *-*-haiku*)
2337 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002338 *-unknown-eabi*)
2339 llvm_cv_target_os_type="Freestanding" ;;
2340 *)
2341 llvm_cv_target_os_type="Unknown" ;;
2342esac
2343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002351fi
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002355HOST_OS=$llvm_cv_os_type
2356
2357TARGET_OS=$llvm_cv_target_os_type
2358
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359
Reid Spencera773bd52006-08-04 18:18:08 +00002360LINKALL=$llvm_cv_link_all_option
2361
2362NOLINKALL=$llvm_cv_no_link_all_option
2363
2364
Reid Spencer7b3e8512004-12-24 06:29:05 +00002365case $llvm_cv_platform_type in
2366 Unix)
2367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368cat >>confdefs.h <<\_ACEOF
2369#define LLVM_ON_UNIX 1
2370_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002372 LLVM_ON_UNIX=1
2373
2374 LLVM_ON_WIN32=0
2375
Reid Spencer7b3e8512004-12-24 06:29:05 +00002376 ;;
2377 Win32)
2378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002379cat >>confdefs.h <<\_ACEOF
2380#define LLVM_ON_WIN32 1
2381_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002383 LLVM_ON_UNIX=0
2384
2385 LLVM_ON_WIN32=1
2386
Reid Spencer7b3e8512004-12-24 06:29:05 +00002387 ;;
2388esac
2389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002390{ echo "$as_me:$LINENO: checking target architecture" >&5
2391echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394else
2395 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002396 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002397 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002398 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2399 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002400 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002401 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002402 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002403 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002404 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002405 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002406 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002407 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002408 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002409 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002410esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002414
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418fi
John Criswell76595452003-07-01 22:07:39 +00002419
Nick Lewycky83fc4472009-09-29 05:48:51 +00002420# Determine the LLVM native architecture for the target
2421case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425esac
2426
2427ARCH=$llvm_cv_target_arch
2428
2429
2430ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_cpp='$CPP $CPPFLAGS'
2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002435if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 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 +00002453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455 break 2
2456 fi
2457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458done
Reid Spencera773bd52006-08-04 18:18:08 +00002459IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460
2461fi
2462fi
2463CC=$ac_cv_prog_CC
2464if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: $CC" >&5
2466echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002468 { echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470fi
2471
Reid Spencera773bd52006-08-04 18:18:08 +00002472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473fi
2474if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 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 +00002493 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495 break 2
2496 fi
2497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498done
Reid Spencera773bd52006-08-04 18:18:08 +00002499IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 { echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510fi
2511
Reid Spencera773bd52006-08-04 18:18:08 +00002512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet. If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&5
2520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet. If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002523ac_tool_warned=yes ;;
2524esac
2525 CC=$ac_ct_CC
2526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527else
2528 CC="$ac_cv_prog_CC"
2529fi
2530
2531if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 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 +00002550 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562 { echo "$as_me:$LINENO: result: $CC" >&5
2563echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568
Reid Spencera773bd52006-08-04 18:18:08 +00002569
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583 ac_prog_rejected=no
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 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 +00002591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2594 fi
2595 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597 break 2
2598 fi
2599done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600done
Reid Spencera773bd52006-08-04 18:18:08 +00002601IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602
2603if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 fi
2614fi
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624fi
2625
Reid Spencera773bd52006-08-04 18:18:08 +00002626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627fi
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $CC" >&5
2662echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670 done
2671fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672if test -z "$CC"; then
2673 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002674 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002682else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 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 +00002693 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 break 2
2696 fi
2697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698done
Reid Spencera773bd52006-08-04 18:18:08 +00002699IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002700
2701fi
2702fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711
Reid Spencera773bd52006-08-04 18:18:08 +00002712
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002714done
John Criswell7a73b802003-06-30 21:59:07 +00002715
Reid Spencera773bd52006-08-04 18:18:08 +00002716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet. If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&5
2724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725whose name does not start with the host triplet. If you think this
2726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002727ac_tool_warned=yes ;;
2728esac
2729 CC=$ac_ct_CC
2730 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731fi
2732
John Criswell7a73b802003-06-30 21:59:07 +00002733fi
2734
2735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&5
2738echo "$as_me: error: no acceptable C compiler found in \$PATH
2739See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741
John Criswell7a73b802003-06-30 21:59:07 +00002742# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743echo "$as_me:$LINENO: checking for C compiler version" >&5
2744ac_compiler=`set X $ac_compile; echo $2`
2745{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002752 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755{ (ac_try="$ac_compiler -v >&5"
2756case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759esac
2760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765{ (ac_try="$ac_compiler -V >&5"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002776cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002782
John Criswell7a73b802003-06-30 21:59:07 +00002783int
2784main ()
2785{
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002793# Try to create an executable without -o first, disregard a.out.
2794# It will help us diagnose broken compilers, and finding out an intuition
2795# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799#
2800# List of possible output files, starting from the most likely.
2801# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802# only as a last resort. b.out is created by i960 compilers.
2803ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804#
2805# The IRIX 6 linker writes into existing files which may not be
2806# executable, retaining their permissions. Remove them first so a
2807# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002808ac_rmfiles=
2809for ac_file in $ac_files
2810do
2811 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815done
2816rm -f $ac_rmfiles
2817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002824 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002825 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830# in a Makefile. We should not override ac_cv_exeext if it was cached,
2831# so that the user can short-circuit this test for compilers unknown to
2832# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002833for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002834do
2835 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002836 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002838 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002839 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 fi
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002853 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002854 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002855 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002856 esac
2857done
Reid Spencera773bd52006-08-04 18:18:08 +00002858test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
John Criswell7a73b802003-06-30 21:59:07 +00002860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002862sed 's/^/| /' conftest.$ac_ext >&5
2863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865See \`config.log' for more details." >&5
2866echo "$as_me: error: C compiler cannot create executables
2867See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002869fi
John Criswell7a73b802003-06-30 21:59:07 +00002870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002871ac_exeext=$ac_cv_exeext
2872{ echo "$as_me:$LINENO: result: $ac_file" >&5
2873echo "${ECHO_T}$ac_file" >&6; }
2874
2875# Check that the compiler produces executables we can run. If not, either
2876# the compiler is broken, or we cross compile.
2877{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880# If not cross compiling, check that we can run a simple program.
2881if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&5
2900echo "$as_me: error: cannot run C compiled programs.
2901If you meant to cross compile, use \`--host'.
2902See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2904 fi
2905 fi
2906fi
2907{ echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6; }
2909
2910rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002911ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002912# Check that the compiler produces executables we can run. If not, either
2913# the compiler is broken, or we cross compile.
2914{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917echo "${ECHO_T}$cross_compiling" >&6; }
2918
2919{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002927 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002928 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933# work properly (i.e., refer to `conftest.exe'), while it won't with
2934# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002935for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002937 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002940 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 * ) break;;
2942 esac
2943done
2944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details." >&5
2947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002951
2952rm -f conftest$ac_cv_exeext
2953{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002955
2956rm -f conftest.$ac_ext
2957EXEEXT=$ac_cv_exeext
2958ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964 cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002980if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002986 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002987 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002992 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997done
2998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003000sed 's/^/| /' conftest.$ac_ext >&5
3001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003002{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008
John Criswell7a73b802003-06-30 21:59:07 +00003009rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003011{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003013OBJEXT=$ac_cv_objext
3014ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026
John Criswell7a73b802003-06-30 21:59:07 +00003027int
3028main ()
3029{
3030#ifndef __GNUC__
3031 choke me
3032#endif
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003072 ac_compiler_gnu=yes
3073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079
Reid Spencera773bd52006-08-04 18:18:08 +00003080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003081ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003082
3083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003084{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087ac_test_CFLAGS=${CFLAGS+set}
3088ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003089{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003093else
Reid Spencera773bd52006-08-04 18:18:08 +00003094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003104
John Criswell7a73b802003-06-30 21:59:07 +00003105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003147 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 :
Torok Edwin871384f2010-01-26 08:50:50 +00003203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003208 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224rm -f conftest.$ac_objext
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
John Criswell7a73b802003-06-30 21:59:07 +00003264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265
Reid Spencera773bd52006-08-04 18:18:08 +00003266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003268
Reid Spencera773bd52006-08-04 18:18:08 +00003269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271
Reid Spencera773bd52006-08-04 18:18:08 +00003272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003282 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003284 fi
3285else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003290 fi
3291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003292{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296else
Reid Spencera773bd52006-08-04 18:18:08 +00003297 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304/* end confdefs.h. */
3305#include <stdarg.h>
3306#include <stdio.h>
3307#include <sys/types.h>
3308#include <sys/stat.h>
3309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310struct buf { int x; };
3311FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312static char *e (p, i)
3313 char **p;
3314 int i;
3315{
3316 return p[i];
3317}
3318static char *f (char * (*g) (char **, int), char **p, ...)
3319{
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3326}
3327
3328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003331 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003334 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336
Reid Spencera773bd52006-08-04 18:18:08 +00003337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339#define FOO(x) 'x'
3340int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342int test (int i, double x);
3343struct s1 {int (*f) (int a);};
3344struct s2 {int (*f) (double a);};
3345int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346int argc;
3347char **argv;
3348int
3349main ()
3350{
3351return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 ;
3353 return 0;
3354}
3355_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358do
3359 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360 rm -f conftest.$ac_objext
3361if { (ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003394 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401
Reid Spencera773bd52006-08-04 18:18:08 +00003402rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404done
Reid Spencera773bd52006-08-04 18:18:08 +00003405rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406CC=$ac_save_CC
3407
3408fi
Reid Spencera773bd52006-08-04 18:18:08 +00003409# AC_CACHE_VAL
3410case "x$ac_cv_prog_cc_c89" in
3411 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412 { echo "$as_me:$LINENO: result: none needed" >&5
3413echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003414 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003418 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421esac
3422
John Criswell0c38eaf2003-09-10 15:17:25 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438# On Suns, sometimes $CPP names a directory.
3439if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3441fi
3442if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448 do
3449 ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463/* end confdefs.h. */
3464#ifdef __STDC__
3465# include <limits.h>
3466#else
3467# include <assert.h>
3468#endif
3469 Syntax error
3470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494 :
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Broken: fails on valid input.
3500continue
3501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503rm -f conftest.err conftest.$ac_ext
3504
Reid Spencera773bd52006-08-04 18:18:08 +00003505 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512/* end confdefs.h. */
3513#include <ac_nonexistent.h>
3514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515if { (ac_try="$ac_cpp conftest.$ac_ext"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3533 fi
3534else
3535 ac_cpp_err=yes
3536fi
3537if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538 # Broken: success on invalid input.
3539continue
3540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 # Passes both tests.
3545ac_preproc_ok=:
3546break
3547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003554if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555 break
3556fi
3557
3558 done
3559 ac_cv_prog_CPP=$CPP
3560
3561fi
3562 CPP=$ac_cv_prog_CPP
3563else
3564 ac_cv_prog_CPP=$CPP
3565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003566{ echo "$as_me:$LINENO: result: $CPP" >&5
3567echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003568ac_preproc_ok=false
3569for ac_c_preproc_warn_flag in '' yes
3570do
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582/* end confdefs.h. */
3583#ifdef __STDC__
3584# include <limits.h>
3585#else
3586# include <assert.h>
3587#endif
3588 Syntax error
3589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
3613 :
3614else
3615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: fails on valid input.
3619continue
3620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622rm -f conftest.err conftest.$ac_ext
3623
Reid Spencera773bd52006-08-04 18:18:08 +00003624 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631/* end confdefs.h. */
3632#include <ac_nonexistent.h>
3633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634if { (ac_try="$ac_cpp conftest.$ac_ext"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653else
3654 ac_cpp_err=yes
3655fi
3656if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003657 # Broken: success on invalid input.
3658continue
3659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003660 echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 # Passes both tests.
3664ac_preproc_ok=:
3665break
3666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003668rm -f conftest.err conftest.$ac_ext
3669
3670done
3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673if $ac_preproc_ok; then
3674 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677See \`config.log' for more details." >&5
3678echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003681fi
3682
John Criswell7a73b802003-06-30 21:59:07 +00003683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695 # Extract the first word of "grep ggrep" to use in msg output
3696if test -z "$GREP"; then
3697set dummy grep ggrep; ac_prog_name=$2
3698if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
Reid Spencera773bd52006-08-04 18:18:08 +00003701 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702# Loop through the user's path and test for each of PROGNAME-LIST
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003713 # Check for GNU $ac_path_GREP
3714case `"$ac_path_GREP" --version 2>&1` in
3715*GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717*)
3718 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003720 while :
3721 do
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003728 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003733 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738esac
3739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740
3741 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003742 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003743done
3744
3745done
Reid Spencera773bd52006-08-04 18:18:08 +00003746IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747
3748
3749fi
3750
3751GREP="$ac_cv_path_GREP"
3752if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3756fi
3757
Reid Spencera773bd52006-08-04 18:18:08 +00003758else
3759 ac_cv_path_GREP=$GREP
3760fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762
Reid Spencera773bd52006-08-04 18:18:08 +00003763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003766 GREP="$ac_cv_path_GREP"
3767
3768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769{ echo "$as_me:$LINENO: checking for egrep" >&5
3770echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003773else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777 # Extract the first word of "egrep" to use in msg output
3778if test -z "$EGREP"; then
3779set dummy egrep; ac_prog_name=$2
3780if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
Reid Spencera773bd52006-08-04 18:18:08 +00003783 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784# Loop through the user's path and test for each of PROGNAME-LIST
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003795 # Check for GNU $ac_path_EGREP
3796case `"$ac_path_EGREP" --version 2>&1` in
3797*GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799*)
3800 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003810 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3815 fi
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003822
3823 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003824 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003825done
3826
3827done
Reid Spencera773bd52006-08-04 18:18:08 +00003828IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829
3830
3831fi
3832
3833EGREP="$ac_cv_path_EGREP"
3834if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
Reid Spencera773bd52006-08-04 18:18:08 +00003840else
3841 ac_cv_path_EGREP=$EGREP
3842fi
3843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003844
Reid Spencera773bd52006-08-04 18:18:08 +00003845 fi
3846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003849 EGREP="$ac_cv_path_EGREP"
3850
3851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003852{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003863#include <stdlib.h>
3864#include <stdarg.h>
3865#include <string.h>
3866#include <float.h>
3867
John Criswell0c38eaf2003-09-10 15:17:25 +00003868int
3869main ()
3870{
3871
3872 ;
3873 return 0;
3874}
John Criswell7a73b802003-06-30 21:59:07 +00003875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003876rm -f conftest.$ac_objext
3877if { (ac_try="$ac_compile"
3878case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003910 ac_cv_header_stdc=yes
3911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917
Reid Spencera773bd52006-08-04 18:18:08 +00003918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003919
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <string.h>
3929
3930_ACEOF
3931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003932 $EGREP "memchr" >/dev/null 2>&1; then
3933 :
John Criswell7a73b802003-06-30 21:59:07 +00003934else
3935 ac_cv_header_stdc=no
3936fi
3937rm -f conftest*
3938
3939fi
3940
3941if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003949#include <stdlib.h>
3950
3951_ACEOF
3952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 $EGREP "free" >/dev/null 2>&1; then
3954 :
John Criswell7a73b802003-06-30 21:59:07 +00003955else
3956 ac_cv_header_stdc=no
3957fi
3958rm -f conftest*
3959
3960fi
3961
3962if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003965 :
3966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003973#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003974#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003975#if ((' ' & 0x0FF) == 0x020)
3976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003979# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984#endif
3985
3986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987int
3988main ()
3989{
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003993 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003994 return 2;
3995 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003996}
3997_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003998rm -f conftest$ac_exeext
3999if { (ac_try="$ac_link"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 :
John Criswell7a73b802003-06-30 21:59:07 +00004019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020 echo "$as_me: program exited with status $ac_status" >&5
4021echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024( exit $ac_status )
4025ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027rm -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 +00004028fi
4029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030
John Criswell7a73b802003-06-30 21:59:07 +00004031fi
4032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004035if test $ac_cv_header_stdc = yes; then
4036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037cat >>confdefs.h <<\_ACEOF
4038#define STDC_HEADERS 1
4039_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004040
4041fi
4042
Reid Spencera773bd52006-08-04 18:18:08 +00004043# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044
4045
4046
4047
4048
4049
4050
4051
4052
Reid Spencera773bd52006-08-04 18:18:08 +00004053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055do
4056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069
4070#include <$ac_header>
4071_ACEOF
4072rm -f conftest.$ac_objext
4073if { (ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 eval "$as_ac_Header=no"
4112fi
4113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
4116ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118echo "${ECHO_T}$ac_res" >&6; }
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004122_ACEOF
4123
4124fi
4125
4126done
4127
4128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134 # See if sys/param.h defines the BYTE_ORDER macro.
4135cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004140/* end confdefs.h. */
4141#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004143
4144int
4145main ()
4146{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 bogus endian macros
4149#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004150
4151 ;
4152 return 0;
4153}
4154_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155rm -f conftest.$ac_objext
4156if { (ac_try="$ac_compile"
4157case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004189 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004195/* end confdefs.h. */
4196#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004197#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004198
4199int
4200main ()
4201{
4202#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 not big endian
4204#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004205
4206 ;
4207 return 0;
4208}
4209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004244 ac_cv_c_bigendian=yes
4245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249 ac_cv_c_bigendian=no
4250fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # It does not; compile a test program.
4258if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004273int
4274main ()
4275{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004277 ;
4278 return 0;
4279}
4280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281rm -f conftest.$ac_objext
4282if { (ac_try="$ac_compile"
4283case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004316 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317fi
4318if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4324 fi
4325fi
Reid Spencera773bd52006-08-04 18:18:08 +00004326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004330
Torok Edwin871384f2010-01-26 08:50:50 +00004331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332
Reid Spencera773bd52006-08-04 18:18:08 +00004333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004340/* end confdefs.h. */
4341$ac_includes_default
4342int
4343main ()
4344{
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4348 {
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004354
4355 ;
4356 return 0;
4357}
4358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359rm -f conftest$ac_exeext
4360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004379 ac_cv_c_bigendian=no
4380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381 echo "$as_me: program exited with status $ac_status" >&5
4382echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385( exit $ac_status )
4386ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388rm -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 +00004389fi
4390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391
Reid Spencera773bd52006-08-04 18:18:08 +00004392fi
4393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395fi
4396{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4401 ;;
4402 no)
4403 ENDIAN=little
4404 ;;
4405 *)
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408echo "$as_me: error: unknown endianness
4409presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411esac
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413
4414if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4416
4417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004422else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425else
4426 ac_build_prefix=${build_alias}-
4427
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 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 +00004445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004447 break 2
4448 fi
4449done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450done
Reid Spencera773bd52006-08-04 18:18:08 +00004451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 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 +00004483 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 break 2
4486 fi
4487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488done
Reid Spencera773bd52006-08-04 18:18:08 +00004489IFS=$as_save_IFS
4490
4491fi
4492fi
4493BUILD_CC=$ac_cv_prog_BUILD_CC
4494if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004498 { echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004500fi
4501
4502
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004510else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513else
4514 ac_prog_rejected=no
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 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 +00004522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4525 fi
4526 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004528 break 2
4529 fi
4530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531done
Reid Spencera773bd52006-08-04 18:18:08 +00004532IFS=$as_save_IFS
4533
4534if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544 fi
4545fi
4546fi
4547fi
4548BUILD_CC=$ac_cv_prog_BUILD_CC
4549if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004555fi
4556
4557
4558 fi
4559 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004572 for file in conftest.*; do
4573 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004574 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004582 fi
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585fi
4586fi
4587
4588BUILD_EXEEXT=""
4589test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004592ac_build_exeext=$BUILD_EXEEXT
4593
Jim Grosbach673612e2008-10-02 22:56:44 +00004594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004601else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 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 +00004612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004614 break 2
4615 fi
4616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617done
Jim Grosbach673612e2008-10-02 22:56:44 +00004618IFS=$as_save_IFS
4619
4620fi
4621fi
4622BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627 { echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004629fi
4630
4631
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004639else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 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 +00004650 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 break 2
4653 fi
4654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655done
Jim Grosbach673612e2008-10-02 22:56:44 +00004656IFS=$as_save_IFS
4657
4658fi
4659fi
4660BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665 { echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004667fi
4668
4669
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004677else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680else
4681 ac_prog_rejected=no
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 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 +00004689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4692 fi
4693 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004695 break 2
4696 fi
4697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698done
Jim Grosbach673612e2008-10-02 22:56:44 +00004699IFS=$as_save_IFS
4700
4701if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711 fi
4712fi
4713fi
4714fi
4715BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004722fi
4723
4724
4725 fi
4726 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004727else
4728 LLVM_CROSS_COMPILING=0
4729
4730fi
4731
Dan Gohman56fb5f92010-08-04 16:25:01 +00004732if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4736
4737else
4738 cvsbuild="no"
4739 optimize="yes"
4740fi
4741
4742
4743# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004745 enableval=$enable_optimized;
4746else
4747 enableval=$optimize
4748fi
4749
4750if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4752
4753else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755
4756fi
4757
David Greene2a5a12c2009-04-17 14:50:39 +00004758# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004760 enableval=$enable_profiling;
4761else
4762 enableval="no"
4763fi
4764
4765if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4767
4768else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4770
4771fi
4772
Reid Spencera773bd52006-08-04 18:18:08 +00004773# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004774if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004775 enableval=$enable_assertions;
4776else
4777 enableval="yes"
4778fi
4779
4780if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4782
4783else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785
4786fi
4787
David Greenea696d242007-06-28 19:36:08 +00004788# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004790 enableval=$enable_expensive_checks;
4791else
4792 enableval="no"
4793fi
4794
4795if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797
4798 EXPENSIVE_CHECKS=yes
4799
4800else
4801 ENABLE_EXPENSIVE_CHECKS=
4802
4803 EXPENSIVE_CHECKS=no
4804
4805fi
4806
Reid Spencer8b2e1412006-11-17 03:32:33 +00004807# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004809 enableval=$enable_debug_runtime;
4810else
4811 enableval=no
4812fi
4813
4814if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4816
4817else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819
4820fi
4821
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004822# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004823if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004824 enableval=$enable_debug_symbols;
4825else
4826 enableval=no
4827fi
4828
4829if test ${enableval} = "no" ; then
4830 DEBUG_SYMBOLS=
4831
4832else
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4834
4835fi
4836
Reid Spencera773bd52006-08-04 18:18:08 +00004837# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 enableval=$enable_jit;
4840else
4841 enableval=default
4842fi
4843
4844if test ${enableval} = "no"
4845then
4846 JIT=
4847
4848else
4849 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004850 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004851 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004852 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004853 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004858 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004860 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004863 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004864 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 Blackfin) TARGET_HAS_JIT=0
4871 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004872 MBlaze) TARGET_HAS_JIT=0
4873 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004874 PTX) TARGET_HAS_JIT=0
4875 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004876 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004877 ;;
4878 esac
4879fi
4880
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004881# Check whether --enable-docs was given.
4882if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4884else
4885 enableval=default
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_DOCS=1
4890 ;;
4891 no) ENABLE_DOCS=0
4892 ;;
4893 default) ENABLE_DOCS=1
4894 ;;
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898esac
4899
Reid Spencera773bd52006-08-04 18:18:08 +00004900# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004902 enableval=$enable_doxygen;
4903else
4904 enableval=default
4905fi
4906
4907case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4909 ;;
4910 no) ENABLE_DOXYGEN=0
4911 ;;
4912 default) ENABLE_DOXYGEN=0
4913 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004917esac
4918
4919# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004921 enableval=$enable_threads;
4922else
Reid Spencer65c5d752006-11-05 17:08:18 +00004923 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004924fi
4925
4926case "$enableval" in
4927 yes) ENABLE_THREADS=1
4928 ;;
4929 no) ENABLE_THREADS=0
4930 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004931 default) ENABLE_THREADS=1
4932 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004936esac
4937
Owen Andersona8603702009-05-19 22:18:56 +00004938cat >>confdefs.h <<_ACEOF
4939#define ENABLE_THREADS $ENABLE_THREADS
4940_ACEOF
4941
4942
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004943# Check whether --enable-pthreads was given.
4944if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4946else
4947 enableval=default
4948fi
4949
4950case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4952 ;;
4953 no) ENABLE_PTHREADS=0
4954 ;;
4955 default) ENABLE_PTHREADS=1
4956 ;;
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960esac
4961
Reid Spencer89b0d992006-12-16 22:07:52 +00004962# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004964 enableval=$enable_pic;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_PIC=1
4971 ;;
4972 no) ENABLE_PIC=0
4973 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004974 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004975 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004979esac
4980
4981cat >>confdefs.h <<_ACEOF
4982#define ENABLE_PIC $ENABLE_PIC
4983_ACEOF
4984
4985
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004986# Check whether --enable-shared was given.
4987if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4989else
4990 enableval=default
4991fi
4992
4993case "$enableval" in
4994 yes) ENABLE_SHARED=1
4995 ;;
4996 no) ENABLE_SHARED=0
4997 ;;
4998 default) ENABLE_SHARED=0
4999 ;;
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003esac
5004
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005005# Check whether --enable-embed-stdcxx was given.
5006if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5008else
5009 enableval=default
5010fi
5011
5012case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5014 ;;
5015 no) ENABLE_EMBED_STDCXX=0
5016 ;;
5017 default) ENABLE_EMBED_STDCXX=1
5018 ;;
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022esac
5023
Daniel Dunbardd464df2010-05-10 20:11:56 +00005024# Check whether --enable-timestamps was given.
5025if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5027else
5028 enableval=default
5029fi
5030
5031case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5033 ;;
5034 no) ENABLE_TIMESTAMPS=0
5035 ;;
5036 default) ENABLE_TIMESTAMPS=1
5037 ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
5043cat >>confdefs.h <<_ACEOF
5044#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5045_ACEOF
5046
5047
Reid Spencera773bd52006-08-04 18:18:08 +00005048TARGETS_TO_BUILD=""
5049# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005050if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005051 enableval=$enable_targets;
5052else
5053 enableval=all
5054fi
5055
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005056if test "$enableval" = host-only ; then
5057 enableval=host
5058fi
Reid Spencera773bd52006-08-04 18:18:08 +00005059case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005060 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 +00005061 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005097 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005101 esac
5102 done
5103 ;;
5104esac
Reid Spencera773bd52006-08-04 18:18:08 +00005105TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5106
5107
Douglas Gregor0711c302009-06-17 00:43:20 +00005108# Determine whether we are building LLVM support for the native architecture.
5109# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5112
5113cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005114#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5115_ACEOF
5116
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5120
5121cat >>confdefs.h <<_ACEOF
5122#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005123_ACEOF
5124
5125
5126cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005127#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5128_ACEOF
5129
5130
5131cat >>confdefs.h <<_ACEOF
5132#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005133_ACEOF
5134
5135 fi
5136done
5137
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005138# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5139# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005140LLVM_ENUM_TARGETS=""
5141LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005142LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005143LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005144for target_to_build in $TARGETS_TO_BUILD; do
5145 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005146 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005147 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5148 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005149 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5150 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5151 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005152 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5153 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5154 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005155done
5156
5157
5158
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005159
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005160
Reid Spencer65c5d752006-11-05 17:08:18 +00005161# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005163 enableval=$enable_cbe_printf_a;
5164else
5165 enableval=default
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_CBE_PRINTF_A=1
5170 ;;
5171 no) ENABLE_CBE_PRINTF_A=0
5172 ;;
5173 default) ENABLE_CBE_PRINTF_A=1
5174 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005178esac
5179
5180cat >>confdefs.h <<_ACEOF
5181#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5182_ACEOF
5183
5184
Reid Spencera773bd52006-08-04 18:18:08 +00005185
5186# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005188 withval=$with_llvmgccdir;
5189else
5190 withval=default
5191fi
5192
5193case "$withval" in
5194 default) WITH_LLVMGCCDIR=default ;;
5195 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005196 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5197echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5198 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005199esac
5200
5201
Devang Patel5d28b882007-12-04 22:54:47 +00005202# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005203if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005204 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5205 WITH_LLVMGCCDIR=""
5206fi
5207
5208
5209
5210# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005212 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5213 WITH_LLVMGCCDIR=""
5214fi
5215
Douglas Gregor01746742009-05-11 18:05:52 +00005216
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005217if test -n "$LLVMGCC"; then
5218 LLVMGCCCOMMAND="$LLVMGCC"
5219fi
5220
5221if test -n "$LLVMGXX"; then
5222 LLVMGXXCOMMAND="$LLVMGXX"
5223fi
Devang Patel5d28b882007-12-04 22:54:47 +00005224
5225if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5227echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5228 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005229fi
5230
5231if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5233echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5234 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005235fi
5236
5237
Daniel Dunbar98515672010-02-23 10:00:49 +00005238# Check whether --with-clang was given.
5239if test "${with_clang+set}" = set; then
5240 withval=$with_clang;
5241else
5242 with_clang=default
5243fi
5244
5245
5246
5247# Check whether --with-built-clang was given.
5248if test "${with_built_clang+set}" = set; then
5249 withval=$with_built_clang;
5250else
5251 with_built_clang=check
5252fi
5253
5254
5255{ echo "$as_me:$LINENO: checking clang compiler" >&5
5256echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5257WITH_CLANGPATH=""
5258WITH_BUILT_CLANG=0
5259if test "$with_clang" != "default"; then
5260 WITH_CLANGPATH="$with_clang"
5261 if ! test -x "$WITH_CLANGPATH"; then
5262 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5263echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5264 { (exit 1); exit 1; }; }
5265 fi
5266elif test "$with_built_clang" = "yes"; then
5267 WITH_BUILT_CLANG=1
5268elif test "$with_built_clang" = "no"; then
5269 WITH_BUILT_CLANG=0
5270else
5271 if test "$with_built_clang" != "check"; then
5272 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5273echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5274 { (exit 1); exit 1; }; }
5275 fi
5276
5277 if test -f ${srcdir}/tools/clang/README.txt; then
5278 WITH_BUILT_CLANG=1
5279 fi
5280fi
5281
5282if ! test -z "$WITH_CLANGPATH"; then
5283 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5284echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5285 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5286elif test "$WITH_BUILT_CLANG" = "1"; then
5287 { echo "$as_me:$LINENO: result: built" >&5
5288echo "${ECHO_T}built" >&6; }
5289else
5290 { echo "$as_me:$LINENO: result: none" >&5
5291echo "${ECHO_T}none" >&6; }
5292fi
5293CLANGPATH=$WITH_CLANGPATH
5294
5295CLANGXXPATH=$WITH_CLANGXXPATH
5296
5297ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5298
5299
5300
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005301# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005303 withval=$with_optimize_option;
5304else
5305 withval=default
5306fi
5307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308{ echo "$as_me:$LINENO: checking optimization flags" >&5
5309echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005310case "$withval" in
5311 default)
5312 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005313 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005314 MingW) optimize_option=-O2 ;;
5315 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005316 esac ;;
5317 *) optimize_option="$withval" ;;
5318esac
5319OPTIMIZE_OPTION=$optimize_option
5320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5322echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005323
5324
Reid Spencera773bd52006-08-04 18:18:08 +00005325# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005327 withval=$with_extra_options;
5328else
5329 withval=default
5330fi
5331
5332case "$withval" in
5333 default) EXTRA_OPTIONS= ;;
5334 *) EXTRA_OPTIONS=$withval ;;
5335esac
5336EXTRA_OPTIONS=$EXTRA_OPTIONS
5337
5338
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005339# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005341 enableval=$enable_bindings;
5342else
5343 enableval=default
5344fi
5345
5346BINDINGS_TO_BUILD=""
5347case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005348 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005349 all ) BINDINGS_TO_BUILD="ocaml" ;;
5350 none | no) BINDINGS_TO_BUILD="" ;;
5351 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5352 case "$a_binding" in
5353 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5355echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5356 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005357 esac
5358 done
5359 ;;
5360esac
5361
Reid Spencera773bd52006-08-04 18:18:08 +00005362
Gordon Henriksenf0915682007-10-02 16:42:22 +00005363# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005364if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005365 withval=$with_ocaml_libdir;
5366else
5367 withval=auto
5368fi
5369
5370case "$withval" in
5371 auto) with_ocaml_libdir="$withval" ;;
5372 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005373 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5374echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5375 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005376esac
5377
5378
Chandler Carruth6b241162010-10-19 08:21:25 +00005379# Check whether --with-clang-resource-dir was given.
5380if test "${with_clang_resource_dir+set}" = set; then
5381 withval=$with_clang_resource_dir;
5382else
5383 withval=""
5384fi
5385
5386
5387cat >>confdefs.h <<_ACEOF
5388#define CLANG_RESOURCE_DIR "$withval"
5389_ACEOF
5390
5391
5392
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005393# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005394if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005395 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005396else
5397 withval=""
5398fi
5399
5400
5401cat >>confdefs.h <<_ACEOF
5402#define C_INCLUDE_DIRS "$withval"
5403_ACEOF
5404
5405
5406
Rafael Espindola420d23c2009-11-16 19:46:55 +00005407# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005408if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005409 withval=$with_cxx_include_root;
5410else
5411 withval=""
5412fi
5413
5414
5415cat >>confdefs.h <<_ACEOF
5416#define CXX_INCLUDE_ROOT "$withval"
5417_ACEOF
5418
5419
5420
5421# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005422if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005423 withval=$with_cxx_include_arch;
5424else
5425 withval=""
5426fi
5427
5428
5429cat >>confdefs.h <<_ACEOF
5430#define CXX_INCLUDE_ARCH "$withval"
5431_ACEOF
5432
5433
5434
5435# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005437 withval=$with_cxx_include_32bit_dir;
5438else
5439 withval=""
5440fi
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define CXX_INCLUDE_32BIT_DIR "$withval"
5445_ACEOF
5446
5447
5448
5449# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005451 withval=$with_cxx_include_64bit_dir;
5452else
5453 withval=""
5454fi
5455
5456
5457cat >>confdefs.h <<_ACEOF
5458#define CXX_INCLUDE_64BIT_DIR "$withval"
5459_ACEOF
5460
5461
5462
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005463# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005464if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005465 withval=$with_binutils_include;
5466else
5467 withval=default
5468fi
5469
5470case "$withval" in
5471 default) WITH_BINUTILS_INCDIR=default ;;
5472 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5474echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005476esac
5477if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5478 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5479
5480 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5481 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005482 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5483echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5484 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005485 fi
5486fi
5487
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005488# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005490 enableval=$enable_libffi; case "$enableval" in
5491 yes) llvm_cv_enable_libffi="yes" ;;
5492 no) llvm_cv_enable_libffi="no" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005496 esac
5497else
5498 llvm_cv_enable_libffi=no
5499fi
5500
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005501
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005502
Reid Spencera773bd52006-08-04 18:18:08 +00005503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005510# On Suns, sometimes $CPP names a directory.
5511if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5513fi
5514if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005517else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520 do
5521 ac_preproc_ok=false
5522for ac_c_preproc_warn_flag in '' yes
5523do
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530 cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005535/* end confdefs.h. */
5536#ifdef __STDC__
5537# include <limits.h>
5538#else
5539# include <assert.h>
5540#endif
5541 Syntax error
5542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543if { (ac_try="$ac_cpp conftest.$ac_ext"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5561 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563 ac_cpp_err=yes
5564fi
5565if test -z "$ac_cpp_err"; then
5566 :
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
Reid Spencera773bd52006-08-04 18:18:08 +00005571 # Broken: fails on valid input.
5572continue
5573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574
Reid Spencera773bd52006-08-04 18:18:08 +00005575rm -f conftest.err conftest.$ac_ext
5576
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005584/* end confdefs.h. */
5585#include <ac_nonexistent.h>
5586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603 else
5604 ac_cpp_err=
5605 fi
5606else
5607 ac_cpp_err=yes
5608fi
5609if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005610 # Broken: success on invalid input.
5611continue
5612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613 echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
Reid Spencera773bd52006-08-04 18:18:08 +00005616 # Passes both tests.
5617ac_preproc_ok=:
5618break
5619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620
Reid Spencera773bd52006-08-04 18:18:08 +00005621rm -f conftest.err conftest.$ac_ext
5622
5623done
5624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005627 break
5628fi
5629
5630 done
5631 ac_cv_prog_CPP=$CPP
5632
5633fi
5634 CPP=$ac_cv_prog_CPP
5635else
5636 ac_cv_prog_CPP=$CPP
5637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638{ echo "$as_me:$LINENO: result: $CPP" >&5
5639echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005640ac_preproc_ok=false
5641for ac_c_preproc_warn_flag in '' yes
5642do
5643 # Use a header file that comes with gcc, so configuring glibc
5644 # with a fresh cross-compiler works.
5645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 # <limits.h> exists even on freestanding compilers.
5647 # On the NeXT, cc -E runs the code through the compiler's parser,
5648 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005654/* end confdefs.h. */
5655#ifdef __STDC__
5656# include <limits.h>
5657#else
5658# include <assert.h>
5659#endif
5660 Syntax error
5661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662if { (ac_try="$ac_cpp conftest.$ac_ext"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678 else
5679 ac_cpp_err=
5680 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682 ac_cpp_err=yes
5683fi
5684if test -z "$ac_cpp_err"; then
5685 :
5686else
5687 echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
Reid Spencera773bd52006-08-04 18:18:08 +00005690 # Broken: fails on valid input.
5691continue
5692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693
Reid Spencera773bd52006-08-04 18:18:08 +00005694rm -f conftest.err conftest.$ac_ext
5695
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005703/* end confdefs.h. */
5704#include <ac_nonexistent.h>
5705_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null; then
5719 if test -s conftest.err; then
5720 ac_cpp_err=$ac_c_preproc_warn_flag
5721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722 else
5723 ac_cpp_err=
5724 fi
5725else
5726 ac_cpp_err=yes
5727fi
5728if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005729 # Broken: success on invalid input.
5730continue
5731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732 echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
Reid Spencera773bd52006-08-04 18:18:08 +00005735 # Passes both tests.
5736ac_preproc_ok=:
5737break
5738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739
Reid Spencera773bd52006-08-04 18:18:08 +00005740rm -f conftest.err conftest.$ac_ext
5741
5742done
5743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745if $ac_preproc_ok; then
5746 :
Reid Spencera773bd52006-08-04 18:18:08 +00005747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5749See \`config.log' for more details." >&5
5750echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5751See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005753fi
5754
5755ac_ext=c
5756ac_cpp='$CPP $CPPFLAGS'
5757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760
5761ac_ext=c
5762ac_cpp='$CPP $CPPFLAGS'
5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766if test -n "$ac_tool_prefix"; then
5767 for ac_prog in gcc
5768 do
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773if test "${ac_cv_prog_CC+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005775else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 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 +00005786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005788 break 2
5789 fi
5790done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791done
Reid Spencera773bd52006-08-04 18:18:08 +00005792IFS=$as_save_IFS
5793
5794fi
5795fi
5796CC=$ac_cv_prog_CC
5797if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798 { echo "$as_me:$LINENO: result: $CC" >&5
5799echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801 { echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005803fi
5804
5805
5806 test -n "$CC" && break
5807 done
5808fi
5809if test -z "$CC"; then
5810 ac_ct_CC=$CC
5811 for ac_prog in gcc
5812do
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005819else
5820 if test -n "$ac_ct_CC"; then
5821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 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 +00005830 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005832 break 2
5833 fi
5834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835done
Reid Spencera773bd52006-08-04 18:18:08 +00005836IFS=$as_save_IFS
5837
5838fi
5839fi
5840ac_ct_CC=$ac_cv_prog_ac_ct_CC
5841if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5843echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845 { echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005847fi
5848
5849
5850 test -n "$ac_ct_CC" && break
5851done
5852
5853 if test "x$ac_ct_CC" = x; then
5854 CC=""
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5859whose name does not start with the host triplet. If you think this
5860configuration is useful to you, please write to autoconf@gnu.org." >&5
5861echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5862whose name does not start with the host triplet. If you think this
5863configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005864ac_tool_warned=yes ;;
5865esac
5866 CC=$ac_ct_CC
5867 fi
5868fi
5869
5870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5872See \`config.log' for more details." >&5
5873echo "$as_me: error: no acceptable C compiler found in \$PATH
5874See \`config.log' for more details." >&2;}
5875 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876
5877# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878echo "$as_me:$LINENO: checking for C compiler version" >&5
5879ac_compiler=`set X $ac_compile; echo $2`
5880{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005881case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005887 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }
5890{ (ac_try="$ac_compiler -v >&5"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler -v >&5") 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }
5900{ (ac_try="$ac_compiler -V >&5"
5901case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compiler -V >&5") 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5912echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5913if test "${ac_cv_c_compiler_gnu+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005921/* end confdefs.h. */
5922
5923int
5924main ()
5925{
5926#ifndef __GNUC__
5927 choke me
5928#endif
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005968 ac_compiler_gnu=yes
5969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975
Reid Spencera773bd52006-08-04 18:18:08 +00005976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977ac_cv_c_compiler_gnu=$ac_compiler_gnu
5978
5979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5981echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5982GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005983ac_test_CFLAGS=${CFLAGS+set}
5984ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5986echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5987if test "${ac_cv_prog_cc_g+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005989else
5990 ac_save_c_werror_flag=$ac_c_werror_flag
5991 ac_c_werror_flag=yes
5992 ac_cv_prog_cc_g=no
5993 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009rm -f conftest.$ac_objext
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006043 ac_cv_prog_cc_g=yes
6044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 CFLAGS=""
6049 cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006054/* end confdefs.h. */
6055
6056int
6057main ()
6058{
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064rm -f conftest.$ac_objext
6065if { (ac_try="$ac_compile"
6066case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 :
Torok Edwin871384f2010-01-26 08:50:50 +00006099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006104 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006110/* end confdefs.h. */
6111
6112int
6113main ()
6114{
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120rm -f conftest.$ac_objext
6121if { (ac_try="$ac_compile"
6122case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125esac
6126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006154 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155else
6156 echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
Reid Spencera773bd52006-08-04 18:18:08 +00006160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161
Reid Spencera773bd52006-08-04 18:18:08 +00006162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164
Reid Spencera773bd52006-08-04 18:18:08 +00006165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167
Reid Spencera773bd52006-08-04 18:18:08 +00006168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 ac_c_werror_flag=$ac_save_c_werror_flag
6170fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6172echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006173if test "$ac_test_CFLAGS" = set; then
6174 CFLAGS=$ac_save_CFLAGS
6175elif test $ac_cv_prog_cc_g = yes; then
6176 if test "$GCC" = yes; then
6177 CFLAGS="-g -O2"
6178 else
6179 CFLAGS="-g"
6180 fi
6181else
6182 if test "$GCC" = yes; then
6183 CFLAGS="-O2"
6184 else
6185 CFLAGS=
6186 fi
6187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6189echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6190if test "${ac_cv_prog_cc_c89+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006192else
6193 ac_cv_prog_cc_c89=no
6194ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006200/* end confdefs.h. */
6201#include <stdarg.h>
6202#include <stdio.h>
6203#include <sys/types.h>
6204#include <sys/stat.h>
6205/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6206struct buf { int x; };
6207FILE * (*rcsopen) (struct buf *, struct stat *, int);
6208static char *e (p, i)
6209 char **p;
6210 int i;
6211{
6212 return p[i];
6213}
6214static char *f (char * (*g) (char **, int), char **p, ...)
6215{
6216 char *s;
6217 va_list v;
6218 va_start (v,p);
6219 s = g (p, va_arg (v,int));
6220 va_end (v);
6221 return s;
6222}
6223
6224/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6225 function prototypes and stuff, but not '\xHH' hex character constants.
6226 These don't provoke an error unfortunately, instead are silently treated
6227 as 'x'. The following induces an error, until -std is added to get
6228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6229 array size at least. It's necessary to write '\x00'==0 to get something
6230 that's true only with -std. */
6231int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6232
6233/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6234 inside strings and character constants. */
6235#define FOO(x) 'x'
6236int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6237
6238int test (int i, double x);
6239struct s1 {int (*f) (int a);};
6240struct s2 {int (*f) (double a);};
6241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6242int argc;
6243char **argv;
6244int
6245main ()
6246{
6247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6254do
6255 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256 rm -f conftest.$ac_objext
6257if { (ac_try="$ac_compile"
6258case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6271 { (case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_try") 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_try") 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006290 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295
Reid Spencera773bd52006-08-04 18:18:08 +00006296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297
Reid Spencera773bd52006-08-04 18:18:08 +00006298rm -f core conftest.err conftest.$ac_objext
6299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6300done
6301rm -f conftest.$ac_ext
6302CC=$ac_save_CC
6303
6304fi
6305# AC_CACHE_VAL
6306case "x$ac_cv_prog_cc_c89" in
6307 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308 { echo "$as_me:$LINENO: result: none needed" >&5
6309echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006310 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006311 { echo "$as_me:$LINENO: result: unsupported" >&5
6312echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006313 *)
6314 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6316echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006317esac
6318
6319
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326ac_ext=cpp
6327ac_cpp='$CXXCPP $CPPFLAGS'
6328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6331if test -z "$CXX"; then
6332 if test -n "$CCC"; then
6333 CXX=$CCC
6334 else
6335 if test -n "$ac_tool_prefix"; then
6336 for ac_prog in g++
6337 do
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_prog_CXX+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006344else
6345 if test -n "$CXX"; then
6346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6347else
6348as_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_prog_CXX="$ac_tool_prefix$ac_prog"
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
6363fi
6364fi
6365CXX=$ac_cv_prog_CXX
6366if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367 { echo "$as_me:$LINENO: result: $CXX" >&5
6368echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 { echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006372fi
6373
6374
6375 test -n "$CXX" && break
6376 done
6377fi
6378if test -z "$CXX"; then
6379 ac_ct_CXX=$CXX
6380 for ac_prog in g++
6381do
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
6389 if test -n "$ac_ct_CXX"; then
6390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 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 +00006399 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006401 break 2
6402 fi
6403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404done
Reid Spencera773bd52006-08-04 18:18:08 +00006405IFS=$as_save_IFS
6406
6407fi
6408fi
6409ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6410if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6412echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006416fi
6417
6418
6419 test -n "$ac_ct_CXX" && break
6420done
6421
6422 if test "x$ac_ct_CXX" = x; then
6423 CXX="g++"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6428whose name does not start with the host triplet. If you think this
6429configuration is useful to you, please write to autoconf@gnu.org." >&5
6430echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6431whose name does not start with the host triplet. If you think this
6432configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006433ac_tool_warned=yes ;;
6434esac
6435 CXX=$ac_ct_CXX
6436 fi
6437fi
6438
6439 fi
6440fi
6441# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6443ac_compiler=`set X $ac_compile; echo $2`
6444{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006445case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006451 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454{ (ac_try="$ac_compiler -v >&5"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464{ (ac_try="$ac_compiler -V >&5"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6476echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6477if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006485/* end confdefs.h. */
6486
6487int
6488main ()
6489{
6490#ifndef __GNUC__
6491 choke me
6492#endif
6493
6494 ;
6495 return 0;
6496}
6497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498rm -f conftest.$ac_objext
6499if { (ac_try="$ac_compile"
6500case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006532 ac_compiler_gnu=yes
6533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539
Reid Spencera773bd52006-08-04 18:18:08 +00006540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6542
6543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6545echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6546GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006547ac_test_CXXFLAGS=${CXXFLAGS+set}
6548ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6550echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6551if test "${ac_cv_prog_cxx_g+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006553else
6554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6555 ac_cxx_werror_flag=yes
6556 ac_cv_prog_cxx_g=no
6557 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006563/* end confdefs.h. */
6564
6565int
6566main ()
6567{
6568
6569 ;
6570 return 0;
6571}
6572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006607 ac_cv_prog_cxx_g=yes
6608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 CXXFLAGS=""
6613 cat >conftest.$ac_ext <<_ACEOF
6614/* confdefs.h. */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006618/* end confdefs.h. */
6619
6620int
6621main ()
6622{
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628rm -f conftest.$ac_objext
6629if { (ac_try="$ac_compile"
6630case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633esac
6634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656esac
6657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 :
Torok Edwin871384f2010-01-26 08:50:50 +00006663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006668 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669 cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006674/* end confdefs.h. */
6675
6676int
6677main ()
6678{
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684rm -f conftest.$ac_objext
6685if { (ac_try="$ac_compile"
6686case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689esac
6690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6699 { (case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_try") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest.$ac_objext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006718 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719else
6720 echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723
Reid Spencera773bd52006-08-04 18:18:08 +00006724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725
Reid Spencera773bd52006-08-04 18:18:08 +00006726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728
Reid Spencera773bd52006-08-04 18:18:08 +00006729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731
Reid Spencera773bd52006-08-04 18:18:08 +00006732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6736echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006737if test "$ac_test_CXXFLAGS" = set; then
6738 CXXFLAGS=$ac_save_CXXFLAGS
6739elif test $ac_cv_prog_cxx_g = yes; then
6740 if test "$GXX" = yes; then
6741 CXXFLAGS="-g -O2"
6742 else
6743 CXXFLAGS="-g"
6744 fi
6745else
6746 if test "$GXX" = yes; then
6747 CXXFLAGS="-O2"
6748 else
6749 CXXFLAGS=
6750 fi
6751fi
6752ac_ext=c
6753ac_cpp='$CPP $CPPFLAGS'
6754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756ac_compiler_gnu=$ac_cv_c_compiler_gnu
6757
Reid Spencera773bd52006-08-04 18:18:08 +00006758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6760echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6761if test "${lt_cv_path_NM+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006763else
6764 if test -n "$NM"; then
6765 # Let the user override the test.
6766 lt_cv_path_NM="$NM"
6767else
6768 lt_nm_to_check="${ac_tool_prefix}nm"
6769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6770 lt_nm_to_check="$lt_nm_to_check nm"
6771 fi
6772 for lt_tmp_nm in $lt_nm_to_check; do
6773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6775 IFS="$lt_save_ifs"
6776 test -z "$ac_dir" && ac_dir=.
6777 tmp_nm="$ac_dir/$lt_tmp_nm"
6778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6779 # Check to see if the nm accepts a BSD-compat flag.
6780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6781 # nm: unknown option "B" ignored
6782 # Tru64's nm complains that /dev/null is an invalid object file
6783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6784 */dev/null* | *'Invalid file or object type'*)
6785 lt_cv_path_NM="$tmp_nm -B"
6786 break
6787 ;;
6788 *)
6789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6790 */dev/null*)
6791 lt_cv_path_NM="$tmp_nm -p"
6792 break
6793 ;;
6794 *)
6795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6796 continue # so that we can try to find one that supports BSD flags
6797 ;;
6798 esac
6799 ;;
6800 esac
6801 fi
6802 done
6803 IFS="$lt_save_ifs"
6804 done
6805 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6806fi
6807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6809echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006810NM="$lt_cv_path_NM"
6811
6812
6813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814{ echo "$as_me:$LINENO: checking for GNU make" >&5
6815echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6816if test "${llvm_cv_gnu_make_command+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006818else
6819 llvm_cv_gnu_make_command=''
6820 for a in "$MAKE" make gmake gnumake ; do
6821 if test -z "$a" ; then continue ; fi ;
6822 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6823 then
6824 llvm_cv_gnu_make_command=$a ;
6825 break;
6826 fi
6827 done
6828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6830echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006831 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6832 ifGNUmake='' ;
6833 else
6834 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6836echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006837 fi
6838
6839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6841echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006842LN_S=$as_ln_s
6843if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6848echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006849fi
6850
6851# Extract the first word of "cmp", so it can be a program name with args.
6852set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_CMP+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006857else
6858 case $CMP in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 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 +00006870 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006872 break 2
6873 fi
6874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875done
Reid Spencera773bd52006-08-04 18:18:08 +00006876IFS=$as_save_IFS
6877
6878 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6879 ;;
6880esac
6881fi
6882CMP=$ac_cv_path_CMP
6883if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: $CMP" >&5
6885echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006889fi
6890
6891
6892# Extract the first word of "cp", so it can be a program name with args.
6893set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896if test "${ac_cv_path_CP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
6899 case $CP in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6902 ;;
6903 *)
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 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 +00006911 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006913 break 2
6914 fi
6915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916done
Reid Spencera773bd52006-08-04 18:18:08 +00006917IFS=$as_save_IFS
6918
6919 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6920 ;;
6921esac
6922fi
6923CP=$ac_cv_path_CP
6924if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: $CP" >&5
6926echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930fi
6931
6932
6933# Extract the first word of "date", so it can be a program name with args.
6934set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_DATE+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
6940 case $DATE in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 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 +00006952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006954 break 2
6955 fi
6956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957done
Reid Spencera773bd52006-08-04 18:18:08 +00006958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6961 ;;
6962esac
6963fi
6964DATE=$ac_cv_path_DATE
6965if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: $DATE" >&5
6967echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006971fi
6972
6973
6974# Extract the first word of "find", so it can be a program name with args.
6975set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978if test "${ac_cv_path_FIND+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
6981 case $FIND in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6984 ;;
6985 *)
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 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 +00006993 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006995 break 2
6996 fi
6997done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998done
Reid Spencera773bd52006-08-04 18:18:08 +00006999IFS=$as_save_IFS
7000
7001 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7002 ;;
7003esac
7004fi
7005FIND=$ac_cv_path_FIND
7006if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: $FIND" >&5
7008echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 { echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007012fi
7013
7014
7015# Extract the first word of "grep", so it can be a program name with args.
7016set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019if test "${ac_cv_path_GREP+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
7022 case $GREP in
7023 [\\/]* | ?:[\\/]*)
7024 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7025 ;;
7026 *)
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 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 +00007034 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007036 break 2
7037 fi
7038done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039done
Reid Spencera773bd52006-08-04 18:18:08 +00007040IFS=$as_save_IFS
7041
7042 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7043 ;;
7044esac
7045fi
7046GREP=$ac_cv_path_GREP
7047if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $GREP" >&5
7049echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053fi
7054
7055
7056# Extract the first word of "mkdir", so it can be a program name with args.
7057set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_MKDIR+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007062else
7063 case $MKDIR in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 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 +00007075 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007077 break 2
7078 fi
7079done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080done
Reid Spencera773bd52006-08-04 18:18:08 +00007081IFS=$as_save_IFS
7082
7083 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7084 ;;
7085esac
7086fi
7087MKDIR=$ac_cv_path_MKDIR
7088if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7090echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094fi
7095
7096
7097# Extract the first word of "mv", so it can be a program name with args.
7098set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_MV+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007103else
7104 case $MV in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007116 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007118 break 2
7119 fi
7120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121done
Reid Spencera773bd52006-08-04 18:18:08 +00007122IFS=$as_save_IFS
7123
7124 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7125 ;;
7126esac
7127fi
7128MV=$ac_cv_path_MV
7129if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: $MV" >&5
7131echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007135fi
7136
7137
7138if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_prog_RANLIB+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007145else
7146 if test -n "$RANLIB"; then
7147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007158 break 2
7159 fi
7160done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161done
Reid Spencera773bd52006-08-04 18:18:08 +00007162IFS=$as_save_IFS
7163
7164fi
7165fi
7166RANLIB=$ac_cv_prog_RANLIB
7167if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7169echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173fi
7174
7175
7176fi
7177if test -z "$ac_cv_prog_RANLIB"; then
7178 ac_ct_RANLIB=$RANLIB
7179 # Extract the first word of "ranlib", so it can be a program name with args.
7180set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
7186 if test -n "$ac_ct_RANLIB"; then
7187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007196 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007198 break 2
7199 fi
7200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201done
Reid Spencera773bd52006-08-04 18:18:08 +00007202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7209echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213fi
7214
7215 if test "x$ac_ct_RANLIB" = x; then
7216 RANLIB=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7221whose name does not start with the host triplet. If you think this
7222configuration is useful to you, please write to autoconf@gnu.org." >&5
7223echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7224whose name does not start with the host triplet. If you think this
7225configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007226ac_tool_warned=yes ;;
7227esac
7228 RANLIB=$ac_ct_RANLIB
7229 fi
7230else
7231 RANLIB="$ac_cv_prog_RANLIB"
7232fi
7233
Torok Edwin871384f2010-01-26 08:50:50 +00007234if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239if test "${ac_cv_prog_AR+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007241else
7242 if test -n "$AR"; then
7243 ac_cv_prog_AR="$AR" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 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 +00007252 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007254 break 2
7255 fi
7256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257done
Torok Edwin871384f2010-01-26 08:50:50 +00007258IFS=$as_save_IFS
7259
7260fi
7261fi
7262AR=$ac_cv_prog_AR
7263if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 { echo "$as_me:$LINENO: result: $AR" >&5
7265echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007269fi
7270
7271
7272fi
7273if test -z "$ac_cv_prog_AR"; then
7274 ac_ct_AR=$AR
7275 # Extract the first word of "ar", so it can be a program name with args.
7276set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007281else
7282 if test -n "$ac_ct_AR"; then
7283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 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 +00007292 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007294 break 2
7295 fi
7296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297done
Torok Edwin871384f2010-01-26 08:50:50 +00007298IFS=$as_save_IFS
7299
7300fi
7301fi
7302ac_ct_AR=$ac_cv_prog_ac_ct_AR
7303if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7305echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007309fi
7310
7311 if test "x$ac_ct_AR" = x; then
7312 AR="false"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7317whose name does not start with the host triplet. If you think this
7318configuration is useful to you, please write to autoconf@gnu.org." >&5
7319echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7320whose name does not start with the host triplet. If you think this
7321configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007322ac_tool_warned=yes ;;
7323esac
7324 AR=$ac_ct_AR
7325 fi
7326else
7327 AR="$ac_cv_prog_AR"
7328fi
7329
Reid Spencera773bd52006-08-04 18:18:08 +00007330# Extract the first word of "rm", so it can be a program name with args.
7331set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334if test "${ac_cv_path_RM+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
7337 case $RM in
7338 [\\/]* | ?:[\\/]*)
7339 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7340 ;;
7341 *)
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 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 +00007349 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007351 break 2
7352 fi
7353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354done
Reid Spencera773bd52006-08-04 18:18:08 +00007355IFS=$as_save_IFS
7356
7357 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7358 ;;
7359esac
7360fi
7361RM=$ac_cv_path_RM
7362if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 { echo "$as_me:$LINENO: result: $RM" >&5
7364echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007368fi
7369
7370
7371# Extract the first word of "sed", so it can be a program name with args.
7372set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_SED+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
7378 case $SED in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 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 +00007390 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007392 break 2
7393 fi
7394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395done
Reid Spencera773bd52006-08-04 18:18:08 +00007396IFS=$as_save_IFS
7397
7398 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7399 ;;
7400esac
7401fi
7402SED=$ac_cv_path_SED
7403if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: $SED" >&5
7405echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 { echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007409fi
7410
7411
7412# Extract the first word of "tar", so it can be a program name with args.
7413set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_TAR+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007418else
7419 case $TAR in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 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 +00007431 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
Reid Spencera773bd52006-08-04 18:18:08 +00007437IFS=$as_save_IFS
7438
7439 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7440 ;;
7441esac
7442fi
7443TAR=$ac_cv_path_TAR
7444if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 { echo "$as_me:$LINENO: result: $TAR" >&5
7446echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450fi
7451
7452
7453# Extract the first word of "pwd", so it can be a program name with args.
7454set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457if test "${ac_cv_path_BINPWD+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
7460 case $BINPWD in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 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 +00007472 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007474 break 2
7475 fi
7476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477done
Reid Spencera773bd52006-08-04 18:18:08 +00007478IFS=$as_save_IFS
7479
7480 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7481 ;;
7482esac
7483fi
7484BINPWD=$ac_cv_path_BINPWD
7485if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7487echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491fi
7492
7493
7494
7495# Extract the first word of "Graphviz", so it can be a program name with args.
7496set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007501else
7502 case $GRAPHVIZ in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 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 +00007514 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007516 break 2
7517 fi
7518done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519done
Reid Spencera773bd52006-08-04 18:18:08 +00007520IFS=$as_save_IFS
7521
7522 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7523 ;;
7524esac
7525fi
7526GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7527if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7529echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531 { echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007533fi
7534
7535
7536if test "$GRAPHVIZ" != "echo Graphviz" ; then
7537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538cat >>confdefs.h <<\_ACEOF
7539#define HAVE_GRAPHVIZ 1
7540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007541
Jeff Cohen28783c32007-01-12 18:22:38 +00007542 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007543 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7544 fi
7545
7546cat >>confdefs.h <<_ACEOF
7547#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7548_ACEOF
7549
7550fi
7551# Extract the first word of "dot", so it can be a program name with args.
7552set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_path_DOT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007557else
7558 case $DOT in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 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 +00007570 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007572 break 2
7573 fi
7574done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575done
Reid Spencera773bd52006-08-04 18:18:08 +00007576IFS=$as_save_IFS
7577
7578 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7579 ;;
7580esac
7581fi
7582DOT=$ac_cv_path_DOT
7583if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: $DOT" >&5
7585echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007589fi
7590
7591
7592if test "$DOT" != "echo dot" ; then
7593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594cat >>confdefs.h <<\_ACEOF
7595#define HAVE_DOT 1
7596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007597
Jeff Cohen28783c32007-01-12 18:22:38 +00007598 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007599 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7600 fi
7601
7602cat >>confdefs.h <<_ACEOF
7603#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7604_ACEOF
7605
7606fi
David Greenef0b9eff2009-07-09 17:16:26 +00007607# Extract the first word of "fdp", so it can be a program name with args.
7608set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611if test "${ac_cv_path_FDP+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007613else
7614 case $FDP in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 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 +00007626 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007628 break 2
7629 fi
7630done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631done
David Greenef0b9eff2009-07-09 17:16:26 +00007632IFS=$as_save_IFS
7633
7634 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7635 ;;
7636esac
7637fi
7638FDP=$ac_cv_path_FDP
7639if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 { echo "$as_me:$LINENO: result: $FDP" >&5
7641echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643 { echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007645fi
7646
7647
7648if test "$FDP" != "echo fdp" ; then
7649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650cat >>confdefs.h <<\_ACEOF
7651#define HAVE_FDP 1
7652_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007653
7654 if test "$llvm_cv_os_type" = "MingW" ; then
7655 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7656 fi
7657
7658cat >>confdefs.h <<_ACEOF
7659#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7660_ACEOF
7661
7662fi
7663# Extract the first word of "neato", so it can be a program name with args.
7664set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_NEATO+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007669else
7670 case $NEATO in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 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 +00007682 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007684 break 2
7685 fi
7686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687done
David Greenef0b9eff2009-07-09 17:16:26 +00007688IFS=$as_save_IFS
7689
7690 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7691 ;;
7692esac
7693fi
7694NEATO=$ac_cv_path_NEATO
7695if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 { echo "$as_me:$LINENO: result: $NEATO" >&5
7697echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 { echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007701fi
7702
7703
7704if test "$NEATO" != "echo neato" ; then
7705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706cat >>confdefs.h <<\_ACEOF
7707#define HAVE_NEATO 1
7708_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007709
7710 if test "$llvm_cv_os_type" = "MingW" ; then
7711 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7712 fi
7713
7714cat >>confdefs.h <<_ACEOF
7715#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7716_ACEOF
7717
7718fi
7719# Extract the first word of "twopi", so it can be a program name with args.
7720set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723if test "${ac_cv_path_TWOPI+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007725else
7726 case $TWOPI in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 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 +00007738 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007740 break 2
7741 fi
7742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743done
David Greenef0b9eff2009-07-09 17:16:26 +00007744IFS=$as_save_IFS
7745
7746 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7747 ;;
7748esac
7749fi
7750TWOPI=$ac_cv_path_TWOPI
7751if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7753echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007757fi
7758
7759
7760if test "$TWOPI" != "echo twopi" ; then
7761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762cat >>confdefs.h <<\_ACEOF
7763#define HAVE_TWOPI 1
7764_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007765
7766 if test "$llvm_cv_os_type" = "MingW" ; then
7767 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7768 fi
7769
7770cat >>confdefs.h <<_ACEOF
7771#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7772_ACEOF
7773
7774fi
7775# Extract the first word of "circo", so it can be a program name with args.
7776set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7779if test "${ac_cv_path_CIRCO+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007781else
7782 case $CIRCO in
7783 [\\/]* | ?:[\\/]*)
7784 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7785 ;;
7786 *)
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 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 +00007794 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007796 break 2
7797 fi
7798done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007799done
David Greenef0b9eff2009-07-09 17:16:26 +00007800IFS=$as_save_IFS
7801
7802 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7803 ;;
7804esac
7805fi
7806CIRCO=$ac_cv_path_CIRCO
7807if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7809echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 { echo "$as_me:$LINENO: result: no" >&5
7812echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007813fi
7814
7815
7816if test "$CIRCO" != "echo circo" ; then
7817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818cat >>confdefs.h <<\_ACEOF
7819#define HAVE_CIRCO 1
7820_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007821
7822 if test "$llvm_cv_os_type" = "MingW" ; then
7823 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7824 fi
7825
7826cat >>confdefs.h <<_ACEOF
7827#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7828_ACEOF
7829
7830fi
Reid Spencera773bd52006-08-04 18:18:08 +00007831for ac_prog in gv gsview32
7832do
7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
7834set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837if test "${ac_cv_path_GV+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007839else
7840 case $GV in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 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 +00007852 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007854 break 2
7855 fi
7856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857done
Reid Spencera773bd52006-08-04 18:18:08 +00007858IFS=$as_save_IFS
7859
7860 ;;
7861esac
7862fi
7863GV=$ac_cv_path_GV
7864if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: $GV" >&5
7866echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870fi
7871
7872
7873 test -n "$GV" && break
7874done
7875test -n "$GV" || GV="echo gv"
7876
7877if test "$GV" != "echo gv" ; then
7878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879cat >>confdefs.h <<\_ACEOF
7880#define HAVE_GV 1
7881_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007882
Jeff Cohen28783c32007-01-12 18:22:38 +00007883 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007884 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7885 fi
7886
7887cat >>confdefs.h <<_ACEOF
7888#define LLVM_PATH_GV "$GV${EXEEXT}"
7889_ACEOF
7890
7891fi
7892# Extract the first word of "dotty", so it can be a program name with args.
7893set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896if test "${ac_cv_path_DOTTY+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007898else
7899 case $DOTTY in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7902 ;;
7903 *)
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 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 +00007911 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007913 break 2
7914 fi
7915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916done
Reid Spencera773bd52006-08-04 18:18:08 +00007917IFS=$as_save_IFS
7918
7919 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7920 ;;
7921esac
7922fi
7923DOTTY=$ac_cv_path_DOTTY
7924if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7926echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928 { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007930fi
7931
7932
7933if test "$DOTTY" != "echo dotty" ; then
7934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935cat >>confdefs.h <<\_ACEOF
7936#define HAVE_DOTTY 1
7937_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007938
Jeff Cohen28783c32007-01-12 18:22:38 +00007939 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007940 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7941 fi
7942
7943cat >>confdefs.h <<_ACEOF
7944#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7945_ACEOF
7946
7947fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007948# Extract the first word of "xdot.py", so it can be a program name with args.
7949set dummy xdot.py; ac_word=$2
7950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952if test "${ac_cv_path_XDOT_PY+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955 case $XDOT_PY in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7958 ;;
7959 *)
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973IFS=$as_save_IFS
7974
7975 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7976 ;;
7977esac
7978fi
7979XDOT_PY=$ac_cv_path_XDOT_PY
7980if test -n "$XDOT_PY"; then
7981 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7982echo "${ECHO_T}$XDOT_PY" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
7989if test "$XDOT_PY" != "echo xdot.py" ; then
7990
7991cat >>confdefs.h <<\_ACEOF
7992#define HAVE_XDOT_PY 1
7993_ACEOF
7994
7995 if test "$llvm_cv_os_type" = "MingW" ; then
7996 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7997 fi
7998
7999cat >>confdefs.h <<_ACEOF
8000#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8001_ACEOF
8002
8003fi
Reid Spencera773bd52006-08-04 18:18:08 +00008004
8005
8006# Extract the first word of "perl", so it can be a program name with args.
8007set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010if test "${ac_cv_path_PERL+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008012else
8013 case $PERL in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8016 ;;
8017 *)
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 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 +00008025 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008027 break 2
8028 fi
8029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030done
Reid Spencera773bd52006-08-04 18:18:08 +00008031IFS=$as_save_IFS
8032
8033 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8034 ;;
8035esac
8036fi
8037PERL=$ac_cv_path_PERL
8038if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008039 { echo "$as_me:$LINENO: result: $PERL" >&5
8040echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042 { echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008044fi
8045
8046
8047if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8049echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008050 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051 { echo "$as_me:$LINENO: result: yes" >&5
8052echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008053 else
8054 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 { echo "$as_me:$LINENO: result: not found" >&5
8056echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008057 fi
8058fi
8059
8060
8061if test x"$PERL" = xnone; then
8062 HAVE_PERL=0
8063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8065echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8066 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067else
8068 HAVE_PERL=1
8069
8070fi
8071
8072# Find a good install program. We prefer a C program (faster),
8073# so one script is as good as another. But avoid the broken or
8074# incompatible versions:
8075# SysV /etc/install, /usr/sbin/install
8076# SunOS /usr/etc/install
8077# IRIX /sbin/install
8078# AIX /bin/install
8079# AmigaOS /C/install, which installs bootblocks on floppy discs
8080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8083# OS/2's system install, which has a completely different semantic
8084# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8086echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008087if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088if test "${ac_cv_path_install+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008090else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 # Account for people who put trailing slashes in PATH elements.
8097case $as_dir/ in
8098 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008099 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008101 /usr/ucb/* ) ;;
8102 *)
8103 # OSF1 and SCO ODT 3.0 have their own names for install.
8104 # Don't use installbsd from OSF since it installs stuff as root
8105 # by default.
8106 for ac_prog in ginstall scoinst install; do
8107 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 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 +00008109 if test $ac_prog = install &&
8110 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8111 # AIX install. It has an incompatible calling convention.
8112 :
8113 elif test $ac_prog = install &&
8114 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8115 # program-specific install script used by HP pwplus--don't use.
8116 :
8117 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8119 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008120 fi
8121 fi
8122 done
8123 done
8124 ;;
8125esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126done
Reid Spencera773bd52006-08-04 18:18:08 +00008127IFS=$as_save_IFS
8128
8129
8130fi
8131 if test "${ac_cv_path_install+set}" = set; then
8132 INSTALL=$ac_cv_path_install
8133 else
8134 # As a last resort, use the slow shell script. Don't cache a
8135 # value for INSTALL within a source directory, because that will
8136 # break other packages using the cache if that directory is
8137 # removed, or if the value is a relative name.
8138 INSTALL=$ac_install_sh
8139 fi
8140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8142echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008143
8144# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8145# It thinks the first close brace ends the variable substitution.
8146test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8147
8148test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8149
8150test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8151
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008152case "$INSTALL" in
8153 [\\/$]* | ?:[\\/]* ) ;;
8154 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8155esac
Reid Spencera773bd52006-08-04 18:18:08 +00008156
8157# Extract the first word of "bzip2", so it can be a program name with args.
8158set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161if test "${ac_cv_path_BZIP2+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008163else
8164 case $BZIP2 in
8165 [\\/]* | ?:[\\/]*)
8166 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8167 ;;
8168 *)
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 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 +00008176 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008178 break 2
8179 fi
8180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181done
Reid Spencera773bd52006-08-04 18:18:08 +00008182IFS=$as_save_IFS
8183
Reid Spencera773bd52006-08-04 18:18:08 +00008184 ;;
8185esac
8186fi
8187BZIP2=$ac_cv_path_BZIP2
8188if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8190echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192 { echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008194fi
8195
8196
mike-m68cb3192010-05-06 23:45:43 +00008197# Extract the first word of "cat", so it can be a program name with args.
8198set dummy cat; ac_word=$2
8199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201if test "${ac_cv_path_CAT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204 case $CAT in
8205 [\\/]* | ?:[\\/]*)
8206 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8207 ;;
8208 *)
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222IFS=$as_save_IFS
8223
8224 ;;
8225esac
8226fi
8227CAT=$ac_cv_path_CAT
8228if test -n "$CAT"; then
8229 { echo "$as_me:$LINENO: result: $CAT" >&5
8230echo "${ECHO_T}$CAT" >&6; }
8231else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6; }
8234fi
8235
8236
Reid Spencera773bd52006-08-04 18:18:08 +00008237# Extract the first word of "doxygen", so it can be a program name with args.
8238set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8241if test "${ac_cv_path_DOXYGEN+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008243else
8244 case $DOXYGEN in
8245 [\\/]* | ?:[\\/]*)
8246 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8247 ;;
8248 *)
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 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 +00008256 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008258 break 2
8259 fi
8260done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261done
Reid Spencera773bd52006-08-04 18:18:08 +00008262IFS=$as_save_IFS
8263
Reid Spencera773bd52006-08-04 18:18:08 +00008264 ;;
8265esac
8266fi
8267DOXYGEN=$ac_cv_path_DOXYGEN
8268if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8270echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 { echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008274fi
8275
8276
Reid Spencera773bd52006-08-04 18:18:08 +00008277# Extract the first word of "groff", so it can be a program name with args.
8278set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8281if test "${ac_cv_path_GROFF+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008283else
8284 case $GROFF in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 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 +00008296 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008298 break 2
8299 fi
8300done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008301done
Reid Spencera773bd52006-08-04 18:18:08 +00008302IFS=$as_save_IFS
8303
Reid Spencera773bd52006-08-04 18:18:08 +00008304 ;;
8305esac
8306fi
8307GROFF=$ac_cv_path_GROFF
8308if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 { echo "$as_me:$LINENO: result: $GROFF" >&5
8310echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 { echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008314fi
8315
8316
8317# Extract the first word of "gzip", so it can be a program name with args.
8318set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008321if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008323else
Eric Christopher031d3072010-12-10 01:31:51 +00008324 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008325 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008326 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 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 +00008336 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008338 break 2
8339 fi
8340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341done
Reid Spencera773bd52006-08-04 18:18:08 +00008342IFS=$as_save_IFS
8343
Reid Spencera773bd52006-08-04 18:18:08 +00008344 ;;
8345esac
8346fi
Eric Christopher031d3072010-12-10 01:31:51 +00008347GZIPBIN=$ac_cv_path_GZIPBIN
8348if test -n "$GZIPBIN"; then
8349 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8350echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 { echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008354fi
8355
8356
8357# Extract the first word of "pod2html", so it can be a program name with args.
8358set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361if test "${ac_cv_path_POD2HTML+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008363else
8364 case $POD2HTML in
8365 [\\/]* | ?:[\\/]*)
8366 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 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 +00008376 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008378 break 2
8379 fi
8380done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381done
Reid Spencera773bd52006-08-04 18:18:08 +00008382IFS=$as_save_IFS
8383
Reid Spencera773bd52006-08-04 18:18:08 +00008384 ;;
8385esac
8386fi
8387POD2HTML=$ac_cv_path_POD2HTML
8388if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8390echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392 { echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008394fi
8395
8396
8397# Extract the first word of "pod2man", so it can be a program name with args.
8398set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401if test "${ac_cv_path_POD2MAN+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008403else
8404 case $POD2MAN in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 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 +00008416 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008418 break 2
8419 fi
8420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421done
Reid Spencera773bd52006-08-04 18:18:08 +00008422IFS=$as_save_IFS
8423
Reid Spencera773bd52006-08-04 18:18:08 +00008424 ;;
8425esac
8426fi
8427POD2MAN=$ac_cv_path_POD2MAN
8428if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8430echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432 { echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008434fi
8435
8436
mike-m68cb3192010-05-06 23:45:43 +00008437# Extract the first word of "pdfroff", so it can be a program name with args.
8438set dummy pdfroff; ac_word=$2
8439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8441if test "${ac_cv_path_PDFROFF+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443else
8444 case $PDFROFF in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460done
8461done
8462IFS=$as_save_IFS
8463
8464 ;;
8465esac
8466fi
8467PDFROFF=$ac_cv_path_PDFROFF
8468if test -n "$PDFROFF"; then
8469 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8470echo "${ECHO_T}$PDFROFF" >&6; }
8471else
8472 { echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6; }
8474fi
8475
8476
Reid Spencera773bd52006-08-04 18:18:08 +00008477# Extract the first word of "runtest", so it can be a program name with args.
8478set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8481if test "${ac_cv_path_RUNTEST+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008483else
8484 case $RUNTEST in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8487 ;;
8488 *)
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 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 +00008496 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008498 break 2
8499 fi
8500done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501done
Reid Spencera773bd52006-08-04 18:18:08 +00008502IFS=$as_save_IFS
8503
Reid Spencera773bd52006-08-04 18:18:08 +00008504 ;;
8505esac
8506fi
8507RUNTEST=$ac_cv_path_RUNTEST
8508if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8510echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512 { echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008514fi
8515
8516
8517
8518no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8520echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008521
8522# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008524 withval=$with_tclinclude; with_tclinclude=${withval}
8525else
8526 with_tclinclude=''
8527fi
8528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529if test "${ac_cv_path_tclsh+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008531else
8532
8533if test x"${with_tclinclude}" != x ; then
8534 if test -f ${with_tclinclude}/tclsh ; then
8535 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8536 elif test -f ${with_tclinclude}/src/tclsh ; then
8537 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8538 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8540echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8541 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008542 fi
8543fi
Torok Edwin871384f2010-01-26 08:50:50 +00008544fi
8545
Reid Spencera773bd52006-08-04 18:18:08 +00008546
8547if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 { echo "$as_me:$LINENO: result: none" >&5
8549echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008550 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
8551do
8552 # Extract the first word of "$ac_prog", so it can be a program name with args.
8553set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556if test "${ac_cv_path_TCLSH+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008558else
8559 case $TCLSH in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8562 ;;
8563 *)
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 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 +00008571 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008573 break 2
8574 fi
8575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576done
Reid Spencera773bd52006-08-04 18:18:08 +00008577IFS=$as_save_IFS
8578
8579 ;;
8580esac
8581fi
8582TCLSH=$ac_cv_path_TCLSH
8583if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008584 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8585echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 { echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008589fi
8590
8591
8592 test -n "$TCLSH" && break
8593done
8594
8595 if test x"${TCLSH}" = x ; then
8596 ac_cv_path_tclsh='';
8597 else
8598 ac_cv_path_tclsh="${TCLSH}";
8599 fi
8600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8602echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008603 TCLSH="${ac_cv_path_tclsh}"
8604
8605fi
8606
Reid Spencera773bd52006-08-04 18:18:08 +00008607# Extract the first word of "zip", so it can be a program name with args.
8608set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8611if test "${ac_cv_path_ZIP+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008613else
8614 case $ZIP in
8615 [\\/]* | ?:[\\/]*)
8616 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8617 ;;
8618 *)
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 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 +00008626 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008628 break 2
8629 fi
8630done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008631done
Reid Spencera773bd52006-08-04 18:18:08 +00008632IFS=$as_save_IFS
8633
Reid Spencera773bd52006-08-04 18:18:08 +00008634 ;;
8635esac
8636fi
8637ZIP=$ac_cv_path_ZIP
8638if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008639 { echo "$as_me:$LINENO: result: $ZIP" >&5
8640echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008642 { echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008644fi
8645
8646
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008647for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008648do
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8653if test "${ac_cv_path_OCAMLC+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008655else
8656 case $OCAMLC in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8659 ;;
8660 *)
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 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 +00008668 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008670 break 2
8671 fi
8672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008673done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008674IFS=$as_save_IFS
8675
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008676 ;;
8677esac
8678fi
8679OCAMLC=$ac_cv_path_OCAMLC
8680if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8682echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684 { echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008686fi
8687
8688
Gordon Henriksene7072162008-03-07 18:20:01 +00008689 test -n "$OCAMLC" && break
8690done
8691
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008692for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008693do
8694 # Extract the first word of "$ac_prog", so it can be a program name with args.
8695set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8698if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008700else
8701 case $OCAMLOPT in
8702 [\\/]* | ?:[\\/]*)
8703 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8704 ;;
8705 *)
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 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 +00008713 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008715 break 2
8716 fi
8717done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008718done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008719IFS=$as_save_IFS
8720
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008721 ;;
8722esac
8723fi
8724OCAMLOPT=$ac_cv_path_OCAMLOPT
8725if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8727echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008729 { echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008731fi
8732
8733
Gordon Henriksene7072162008-03-07 18:20:01 +00008734 test -n "$OCAMLOPT" && break
8735done
8736
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008737for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008738do
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8743if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008745else
8746 case $OCAMLDEP in
8747 [\\/]* | ?:[\\/]*)
8748 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8749 ;;
8750 *)
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 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 +00008758 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008760 break 2
8761 fi
8762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008763done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008764IFS=$as_save_IFS
8765
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008766 ;;
8767esac
8768fi
8769OCAMLDEP=$ac_cv_path_OCAMLDEP
8770if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8772echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008774 { echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008776fi
8777
8778
Gordon Henriksene7072162008-03-07 18:20:01 +00008779 test -n "$OCAMLDEP" && break
8780done
8781
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008782for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008783do
8784 # Extract the first word of "$ac_prog", so it can be a program name with args.
8785set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008790else
8791 case $OCAMLDOC in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8794 ;;
8795 *)
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 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 +00008803 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008805 break 2
8806 fi
8807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008808done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008809IFS=$as_save_IFS
8810
8811 ;;
8812esac
8813fi
8814OCAMLDOC=$ac_cv_path_OCAMLDOC
8815if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8817echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008819 { echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008821fi
8822
8823
8824 test -n "$OCAMLDOC" && break
8825done
8826
Torok Edwincc499a42008-10-22 09:56:27 +00008827for ac_prog in gas as
8828do
8829 # Extract the first word of "$ac_prog", so it can be a program name with args.
8830set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8833if test "${ac_cv_path_GAS+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008835else
8836 case $GAS in
8837 [\\/]* | ?:[\\/]*)
8838 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8839 ;;
8840 *)
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 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 +00008848 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008850 break 2
8851 fi
8852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008853done
Torok Edwincc499a42008-10-22 09:56:27 +00008854IFS=$as_save_IFS
8855
8856 ;;
8857esac
8858fi
8859GAS=$ac_cv_path_GAS
8860if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861 { echo "$as_me:$LINENO: result: $GAS" >&5
8862echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008864 { echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008866fi
8867
8868
8869 test -n "$GAS" && break
8870done
8871
Reid Spencera773bd52006-08-04 18:18:08 +00008872
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008873{ echo "$as_me:$LINENO: checking for linker version" >&5
8874echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8875if test "${llvm_cv_link_version+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878
8879 version_string="$(ld -v 2>&1 | head -1)"
8880
8881 # Check for ld64.
8882 if (echo "$version_string" | grep -q "ld64"); then
8883 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8884 else
8885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8886 fi
8887
8888fi
8889{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8890echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8891
8892cat >>confdefs.h <<_ACEOF
8893#define HOST_LINK_VERSION "$llvm_cv_link_version"
8894_ACEOF
8895
8896
8897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008898{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8899echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8900if test "${llvm_cv_link_use_r+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008902else
8903 ac_ext=c
8904ac_cpp='$CPP $CPPFLAGS'
8905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908
8909 oldcflags="$CFLAGS"
8910 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008911 cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008916/* end confdefs.h. */
8917
8918int
8919main ()
8920{
Dan Gohman39ed6782010-04-25 00:12:20 +00008921
Reid Spencera773bd52006-08-04 18:18:08 +00008922 ;
8923 return 0;
8924}
8925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008960 llvm_cv_link_use_r=yes
8961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967
Bill Wendlingebcceee2009-04-18 11:20:33 +00008968rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008969 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008970 CFLAGS="$oldcflags"
8971 ac_ext=c
8972ac_cpp='$CPP $CPPFLAGS'
8973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975ac_compiler_gnu=$ac_cv_c_compiler_gnu
8976
8977
8978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8980echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008981if test "$llvm_cv_link_use_r" = yes ; then
8982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008983cat >>confdefs.h <<\_ACEOF
8984#define HAVE_LINK_R 1
8985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008986
8987 fi
8988
8989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008990{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8991echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8992if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008994else
8995 ac_ext=c
8996ac_cpp='$CPP $CPPFLAGS'
8997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001 oldcflags="$CFLAGS"
9002 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009003 cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009008/* end confdefs.h. */
9009
9010int
9011main ()
9012{
Dan Gohman39ed6782010-04-25 00:12:20 +00009013
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009014 ;
9015 return 0;
9016}
9017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018rm -f conftest.$ac_objext conftest$ac_exeext
9019if { (ac_try="$ac_link"
9020case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023esac
9024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036esac
9037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046esac
9047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009052 llvm_cv_link_use_export_dynamic=yes
9053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009059
Bill Wendlingebcceee2009-04-18 11:20:33 +00009060rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009061 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009062 CFLAGS="$oldcflags"
9063 ac_ext=c
9064ac_cpp='$CPP $CPPFLAGS'
9065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067ac_compiler_gnu=$ac_cv_c_compiler_gnu
9068
9069
9070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9072echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009073if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075cat >>confdefs.h <<\_ACEOF
9076#define HAVE_LINK_EXPORT_DYNAMIC 1
9077_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009078
9079 fi
9080
9081
Dan Gohmanda612d62010-06-01 14:56:56 +00009082{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9083echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9084if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087 ac_ext=c
9088ac_cpp='$CPP $CPPFLAGS'
9089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091ac_compiler_gnu=$ac_cv_c_compiler_gnu
9092
9093 oldcflags="$CFLAGS"
9094
9095 # The following code is from the autoconf manual,
9096 # "11.13: Limitations of Usual Tools".
9097 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9098 # Use mktemp if possible; otherwise fall back on mkdir,
9099 # with $RANDOM to make collisions less likely.
9100 : ${TMPDIR=/tmp}
9101 {
9102 tmp=`
9103 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9104 ` &&
9105 test -n "$tmp" && test -d "$tmp"
9106 } || {
9107 tmp=$TMPDIR/foo$$-$RANDOM
9108 (umask 077 && mkdir "$tmp")
9109 } || exit $?
9110
Dan Gohmanda612d62010-06-01 14:56:56 +00009111 echo "{" > "$tmp/export.map"
9112 echo " global: main;" >> "$tmp/export.map"
9113 echo " local: *;" >> "$tmp/export.map"
9114 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009115
Dan Gohmanda612d62010-06-01 14:56:56 +00009116 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009117 cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h. */
9123
9124int
9125main ()
9126{
Dan Gohman39ed6782010-04-25 00:12:20 +00009127
Dan Gohman391569c2010-04-16 22:59:06 +00009128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (ac_try="$ac_link"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest$ac_exeext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009166 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
Dan Gohman943005e2010-06-01 16:22:27 +00009171 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009172fi
9173
9174rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009176 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009177 rmdir "$tmp"
9178 CFLAGS="$oldcflags"
9179 ac_ext=c
9180ac_cpp='$CPP $CPPFLAGS'
9181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183ac_compiler_gnu=$ac_cv_c_compiler_gnu
9184
9185
9186fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009187{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9188echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9189if test "$llvm_cv_link_use_version_script" = yes ; then
9190 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009191
9192 fi
9193
9194
Reid Spencera773bd52006-08-04 18:18:08 +00009195
9196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009197{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9199if test "${ac_cv_c_const+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202 cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212/* FIXME: Include the comments suggested by Paul. */
9213#ifndef __cplusplus
9214 /* Ultrix mips cc rejects this. */
9215 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009217 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009218 char const *const *ccp;
9219 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009220 /* NEC SVR4.0.2 mips cc rejects this. */
9221 struct point {int x, y;};
9222 static struct point const zero = {0,0};
9223 /* AIX XL C 1.02.0.0 rejects this.
9224 It does not let you subtract one const X* pointer from another in
9225 an arm of an if-expression whose if-part is not a constant
9226 expression */
9227 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009229 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009230 ++ccp;
9231 p = (char**) ccp;
9232 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009233 { /* SCO 3.2v4 cc rejects this. */
9234 char *t;
9235 char const *s = 0 ? (char *) 0 : (char const *) 0;
9236
9237 *t++ = 0;
9238 if (s) return 0;
9239 }
9240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9241 int x[] = {25, 17};
9242 const int *foo = &x[0];
9243 ++foo;
9244 }
9245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9246 typedef const int *iptr;
9247 iptr p = 0;
9248 ++p;
9249 }
9250 { /* AIX XL C 1.02.0.0 rejects this saying
9251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9252 struct s { int j; const int *ap[3]; };
9253 struct s *b; b->j = 5;
9254 }
9255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9256 const int foo = 10;
9257 if (!foo) return 0;
9258 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009260#endif
9261
9262 ;
9263 return 0;
9264}
9265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266rm -f conftest.$ac_objext
9267if { (ac_try="$ac_compile"
9268case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271esac
9272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284esac
9285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294esac
9295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009300 ac_cv_c_const=yes
9301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302 echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307
Reid Spencera773bd52006-08-04 18:18:08 +00009308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009310{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9311echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009312if test $ac_cv_c_const = no; then
9313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314cat >>confdefs.h <<\_ACEOF
9315#define const
9316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009317
9318fi
9319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320
9321
9322
9323
9324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325ac_header_dirent=no
9326for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9328{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9329echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333 cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338/* end confdefs.h. */
9339#include <sys/types.h>
9340#include <$ac_hdr>
9341
9342int
9343main ()
9344{
9345if ((DIR *) 0)
9346return 0;
9347 ;
9348 return 0;
9349}
9350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351rm -f conftest.$ac_objext
9352if { (ac_try="$ac_compile"
9353case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356esac
9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385 eval "$as_ac_Header=yes"
9386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392
Reid Spencera773bd52006-08-04 18:18:08 +00009393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395ac_res=`eval echo '${'$as_ac_Header'}'`
9396 { echo "$as_me:$LINENO: result: $ac_res" >&5
9397echo "${ECHO_T}$ac_res" >&6; }
9398if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401_ACEOF
9402
9403ac_header_dirent=$ac_hdr; break
9404fi
9405
9406done
9407# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9408if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9411if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413else
9414 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415cat >conftest.$ac_ext <<_ACEOF
9416/* confdefs.h. */
9417_ACEOF
9418cat confdefs.h >>conftest.$ac_ext
9419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420/* end confdefs.h. */
9421
Reid Spencera773bd52006-08-04 18:18:08 +00009422/* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425#ifdef __cplusplus
9426extern "C"
9427#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428char opendir ();
9429int
9430main ()
9431{
Reid Spencera773bd52006-08-04 18:18:08 +00009432return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 ;
9434 return 0;
9435}
9436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009437for ac_lib in '' dir; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9440 else
9441 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009443 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (ac_try="$ac_link"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462esac
9463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472esac
9473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009478 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009479else
9480 echo "$as_me: failed program was:" >&5
9481sed 's/^/| /' conftest.$ac_ext >&5
9482
9483
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485
Bill Wendlingebcceee2009-04-18 11:20:33 +00009486rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009487 conftest$ac_exeext
9488 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009489 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490fi
John Criswell7a73b802003-06-30 21:59:07 +00009491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009492if test "${ac_cv_search_opendir+set}" = set; then
9493 :
Reid Spencera773bd52006-08-04 18:18:08 +00009494else
9495 ac_cv_search_opendir=no
9496fi
9497rm conftest.$ac_ext
9498LIBS=$ac_func_search_save_LIBS
9499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009500{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9501echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009502ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009503if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009505
Reid Spencera773bd52006-08-04 18:18:08 +00009506fi
9507
9508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9510echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9511if test "${ac_cv_search_opendir+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009513else
9514 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009520/* end confdefs.h. */
9521
9522/* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9525#ifdef __cplusplus
9526extern "C"
9527#endif
9528char opendir ();
9529int
9530main ()
9531{
9532return opendir ();
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537for ac_lib in '' x; do
9538 if test -z "$ac_lib"; then
9539 ac_res="none required"
9540 else
9541 ac_res=-l$ac_lib
9542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9543 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (ac_try="$ac_link"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest$ac_exeext'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009578 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583
Reid Spencera773bd52006-08-04 18:18:08 +00009584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585
Bill Wendlingebcceee2009-04-18 11:20:33 +00009586rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009587 conftest$ac_exeext
9588 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009589 break
9590fi
9591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009592if test "${ac_cv_search_opendir+set}" = set; then
9593 :
Reid Spencera773bd52006-08-04 18:18:08 +00009594else
9595 ac_cv_search_opendir=no
9596fi
9597rm conftest.$ac_ext
9598LIBS=$ac_func_search_save_LIBS
9599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009600{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9601echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009602ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009603if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605
9606fi
9607
9608fi
John Criswell7a73b802003-06-30 21:59:07 +00009609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610
John Criswell7a73b802003-06-30 21:59:07 +00009611for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612do
9613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619fi
9620ac_res=`eval echo '${'$as_ac_Header'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622echo "${ECHO_T}$ac_res" >&6; }
9623else
9624 # Is the header compilable?
9625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633$ac_includes_default
9634#include <$ac_header>
9635_ACEOF
9636rm -f conftest.$ac_objext
9637if { (ac_try="$ac_compile"
9638case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest.$ac_objext'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_header_compiler=yes
9671else
9672 echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_header_compiler=no
9676fi
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680echo "${ECHO_T}$ac_header_compiler" >&6; }
9681
9682# Is the header present?
9683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9685cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691#include <$ac_header>
9692_ACEOF
9693if { (ac_try="$ac_cpp conftest.$ac_ext"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 else
9710 ac_cpp_err=
9711 fi
9712else
9713 ac_cpp_err=yes
9714fi
9715if test -z "$ac_cpp_err"; then
9716 ac_header_preproc=yes
9717else
9718 echo "$as_me: failed program was:" >&5
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_preproc=no
9722fi
9723
9724rm -f conftest.err conftest.$ac_ext
9725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726echo "${ECHO_T}$ac_header_preproc" >&6; }
9727
9728# So? What about this header?
9729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 yes:no: )
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9735 ac_header_preproc=yes
9736 ;;
9737 no:yes:* )
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9750 ( cat <<\_ASBOX
9751## ----------------------------------- ##
9752## Report this to llvmbugs@cs.uiuc.edu ##
9753## ----------------------------------- ##
9754_ASBOX
9755 ) | sed "s/^/$as_me: WARNING: /" >&2
9756 ;;
9757esac
9758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9764fi
9765ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767echo "${ECHO_T}$ac_res" >&6; }
9768
9769fi
9770if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009771 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009773_ACEOF
9774
9775fi
9776
9777done
9778
Reid Spencera773bd52006-08-04 18:18:08 +00009779# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009780if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009781 enableval=$enable_ltdl_install;
9782fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009785
9786
9787if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788 INSTALL_LTDL_TRUE=
9789 INSTALL_LTDL_FALSE='#'
9790else
9791 INSTALL_LTDL_TRUE='#'
9792 INSTALL_LTDL_FALSE=
9793fi
9794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795
9796
9797if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798 CONVENIENCE_LTDL_TRUE=
9799 CONVENIENCE_LTDL_FALSE='#'
9800else
9801 CONVENIENCE_LTDL_TRUE='#'
9802 CONVENIENCE_LTDL_FALSE=
9803fi
9804
9805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009806{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9807echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808library_names_spec=
9809libname_spec='lib$name'
9810soname_spec=
9811shrext_cmds=".so"
9812postinstall_cmds=
9813postuninstall_cmds=
9814finish_cmds=
9815finish_eval=
9816shlibpath_var=
9817shlibpath_overrides_runpath=unknown
9818version_type=none
9819dynamic_linker="$host_os ld.so"
9820sys_lib_dlsearch_path_spec="/lib /usr/lib"
9821if test "$GCC" = yes; then
9822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9824 # if the path contains ";" then we assume it to be the separator
9825 # otherwise default to the standard path separator (i.e. ":") - it is
9826 # assumed that no part of a normal pathname contains ";" but that should
9827 # okay in the real world where ";" in dirpaths is itself problematic.
9828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9829 else
9830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9831 fi
9832else
9833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834fi
9835need_lib_prefix=unknown
9836hardcode_into_libs=no
9837
9838# when you set need_version to no, make sure it does not cause -set_version
9839# flags to be left without arguments
9840need_version=unknown
9841
9842case $host_os in
9843aix3*)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9847
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 ;;
9851
9852aix4* | aix5*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 else
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9867 case $host_os in
9868 aix4 | aix4.[01] | aix4.[01].*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870 echo ' yes '
9871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9872 :
9873 else
9874 can_build_shared=no
9875 fi
9876 ;;
9877 esac
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 else
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec='${libname}${release}.a $libname.a'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 fi
9892 shlibpath_var=LIBPATH
9893 fi
9894 ;;
9895
9896amigaos*)
9897 library_names_spec='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 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'
9900 ;;
9901
9902beos*)
9903 library_names_spec='${libname}${shared_ext}'
9904 dynamic_linker="$host_os ld.so"
9905 shlibpath_var=LIBRARY_PATH
9906 ;;
9907
9908bsdi[45]*)
9909 version_type=linux
9910 need_version=no
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9920 ;;
9921
9922cygwin* | mingw* | pw32*)
9923 version_type=windows
9924 shrext_cmds=".dll"
9925 need_version=no
9926 need_lib_prefix=no
9927
9928 case $GCC,$host_os in
9929 yes,cygwin* | yes,mingw* | yes,pw32*)
9930 library_names_spec='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939 dlpath=$dir/\$dldll~
9940 $rm \$dlpath'
9941 shlibpath_overrides_runpath=yes
9942
9943 case $host_os in
9944 cygwin*)
9945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9948 ;;
9949 mingw*)
9950 # MinGW DLLs use traditional 'lib' prefix
9951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9954 # It is most probably a Windows format PATH printed by
9955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956 # path with ; separators, and with drive letters. We can handle the
9957 # drive letters (cygwin fileutils understands them), so leave them,
9958 # especially as we might pass files found there to a mingw objdump,
9959 # which wouldn't understand a cygwinified path. Ahh.
9960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9961 else
9962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9963 fi
9964 ;;
9965 pw32*)
9966 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009967 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 +00009968 ;;
9969 esac
9970 ;;
9971
9972 *)
9973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9974 ;;
9975 esac
9976 dynamic_linker='Win32 ld.exe'
9977 # FIXME: first we should search . and the directory the executable is in
9978 shlibpath_var=PATH
9979 ;;
9980
9981darwin* | rhapsody*)
9982 dynamic_linker="$host_os dyld"
9983 version_type=darwin
9984 need_lib_prefix=no
9985 need_version=no
9986 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987 soname_spec='${libname}${release}${major}$shared_ext'
9988 shlibpath_overrides_runpath=yes
9989 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009990 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9992 if test "$GCC" = yes; then
9993 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"`
9994 else
9995 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9998 ;;
9999
10000dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009freebsd1*)
10010 dynamic_linker=no
10011 ;;
10012
10013kfreebsd*-gnu)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10022 dynamic_linker='GNU ld.so'
10023 ;;
10024
Reid Spencera773bd52006-08-04 18:18:08 +000010025freebsd* | dragonfly*)
10026 # DragonFly does not have aout. When/if they implement a new
10027 # versioning mechanism, adjust this.
10028 if test -x /usr/bin/objformat; then
10029 objformat=`/usr/bin/objformat`
10030 else
10031 case $host_os in
10032 freebsd[123]*) objformat=aout ;;
10033 *) objformat=elf ;;
10034 esac
10035 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036 version_type=freebsd-$objformat
10037 case $version_type in
10038 freebsd-elf*)
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 need_version=no
10041 need_lib_prefix=no
10042 ;;
10043 freebsd-*)
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10045 need_version=yes
10046 ;;
10047 esac
10048 shlibpath_var=LD_LIBRARY_PATH
10049 case $host_os in
10050 freebsd2*)
10051 shlibpath_overrides_runpath=yes
10052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010053 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054 shlibpath_overrides_runpath=yes
10055 hardcode_into_libs=yes
10056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010062 freebsd*) # from 4.6 on
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10065 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066 esac
10067 ;;
10068
10069gnu*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 hardcode_into_libs=yes
10077 ;;
10078
10079hpux9* | hpux10* | hpux11*)
10080 # Give a soname corresponding to the major version so that dld.sl refuses to
10081 # link against other versions.
10082 version_type=sunos
10083 need_lib_prefix=no
10084 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010085 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086 ia64*)
10087 shrext_cmds='.so'
10088 hardcode_into_libs=yes
10089 dynamic_linker="$host_os dld.so"
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 if test "X$HPUX_IA64_MODE" = X32; then
10095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096 else
10097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10098 fi
10099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10100 ;;
10101 hppa*64*)
10102 shrext_cmds='.sl'
10103 hardcode_into_libs=yes
10104 dynamic_linker="$host_os dld.sl"
10105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 ;;
10112 *)
10113 shrext_cmds='.sl'
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=SHLIB_PATH
10116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 ;;
10120 esac
10121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10122 postinstall_cmds='chmod 555 $lib'
10123 ;;
10124
Reid Spencera773bd52006-08-04 18:18:08 +000010125interix3*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10135 ;;
10136
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10140 *)
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10142 version_type=linux
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10154 ;;
10155 *)
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10165 ;;
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs=yes
10172 ;;
10173
10174# No shared lib support for Linux oldld, aout, or coff.
10175linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10177 ;;
10178
10179# This must be Linux ELF.
10180linux*)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189 # This implies no fast_install, which is unacceptable.
10190 # Some rework will be needed to allow for fast_install
10191 # before this can be enabled.
10192 hardcode_into_libs=yes
10193
10194 # Append ld.so.conf contents to the search path
10195 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010196 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 +000010197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10198 fi
10199
10200 # We used to test for /lib/ld.so.1 and disable shared libraries on
10201 # powerpc, because MkLinux only supported shared libraries with the
10202 # GNU dynamic linker. Since this was broken with cross compilers,
10203 # most powerpc-linux boxes support dynamic linking these days and
10204 # people can always --disable-shared, the test was removed, and we
10205 # assume the GNU/Linux dynamic linker is in use.
10206 dynamic_linker='GNU/Linux ld.so'
10207 ;;
10208
10209knetbsd*-gnu)
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='GNU ld.so'
10219 ;;
10220
10221netbsd*)
10222 version_type=sunos
10223 need_lib_prefix=no
10224 need_version=no
10225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 dynamic_linker='NetBSD (a.out) ld.so'
10229 else
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 dynamic_linker='NetBSD ld.elf_so'
10233 fi
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=yes
10236 hardcode_into_libs=yes
10237 ;;
10238
10239newsos6)
10240 version_type=linux
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes
10244 ;;
10245
10246nto-qnx*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 ;;
10255
10256openbsd*)
10257 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010258 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261 case $host_os in
10262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263 *) need_version=no ;;
10264 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269 case $host_os in
10270 openbsd2.[89] | openbsd2.[89].*)
10271 shlibpath_overrides_runpath=no
10272 ;;
10273 *)
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276 esac
10277 else
10278 shlibpath_overrides_runpath=yes
10279 fi
10280 ;;
10281
10282os2*)
10283 libname_spec='$name'
10284 shrext_cmds=".dll"
10285 need_lib_prefix=no
10286 library_names_spec='$libname${shared_ext} $libname.a'
10287 dynamic_linker='OS/2 ld.exe'
10288 shlibpath_var=LIBPATH
10289 ;;
10290
10291osf3* | osf4* | osf5*)
10292 version_type=osf
10293 need_lib_prefix=no
10294 need_version=no
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300 ;;
10301
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302solaris*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 # ldd complains unless libraries are executable
10312 postinstall_cmds='chmod +x $lib'
10313 ;;
10314
10315sunos4*)
10316 version_type=sunos
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 if test "$with_gnu_ld" = yes; then
10322 need_lib_prefix=no
10323 fi
10324 need_version=yes
10325 ;;
10326
Reid Spencera773bd52006-08-04 18:18:08 +000010327sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 case $host_vendor in
10333 sni)
10334 shlibpath_overrides_runpath=no
10335 need_lib_prefix=no
10336 export_dynamic_flag_spec='${wl}-Blargedynsym'
10337 runpath_var=LD_RUN_PATH
10338 ;;
10339 siemens)
10340 need_lib_prefix=no
10341 ;;
10342 motorola)
10343 need_lib_prefix=no
10344 need_version=no
10345 shlibpath_overrides_runpath=no
10346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10347 ;;
10348 esac
10349 ;;
10350
10351sysv4*MP*)
10352 if test -d /usr/nec ;then
10353 version_type=linux
10354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355 soname_spec='$libname${shared_ext}.$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 fi
10358 ;;
10359
Reid Spencera773bd52006-08-04 18:18:08 +000010360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10361 version_type=freebsd-elf
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 hardcode_into_libs=yes
10368 if test "$with_gnu_ld" = yes; then
10369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10370 shlibpath_overrides_runpath=no
10371 else
10372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10373 shlibpath_overrides_runpath=yes
10374 case $host_os in
10375 sco3.2v5*)
10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10377 ;;
10378 esac
10379 fi
10380 sys_lib_dlsearch_path_spec='/usr/lib'
10381 ;;
10382
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383uts4*)
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 ;;
10389
10390*)
10391 dynamic_linker=no
10392 ;;
10393esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010394{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10395echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396test "$dynamic_linker" = no && can_build_shared=no
10397
Reid Spencera773bd52006-08-04 18:18:08 +000010398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10399if test "$GCC" = yes; then
10400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10401fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402
Reid Spencera773bd52006-08-04 18:18:08 +000010403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10405echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10406if test "${libltdl_cv_shlibext+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408else
10409
10410module=yes
10411eval libltdl_cv_shlibext=$shrext_cmds
10412
10413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10415echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416if test -n "$libltdl_cv_shlibext"; then
10417
10418cat >>confdefs.h <<_ACEOF
10419#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10420_ACEOF
10421
10422fi
10423
10424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10426echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10427if test "${libltdl_cv_shlibpath_var+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429else
10430 libltdl_cv_shlibpath_var="$shlibpath_var"
10431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010432{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10433echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434if test -n "$libltdl_cv_shlibpath_var"; then
10435
10436cat >>confdefs.h <<_ACEOF
10437#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10438_ACEOF
10439
10440fi
10441
10442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10444echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10445if test "${libltdl_cv_sys_search_path+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447else
10448 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10451echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452if test -n "$libltdl_cv_sys_search_path"; then
10453 sys_search_path=
10454 for dir in $libltdl_cv_sys_search_path; do
10455 if test -z "$sys_search_path"; then
10456 sys_search_path="$dir"
10457 else
10458 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10459 fi
10460 done
10461
10462cat >>confdefs.h <<_ACEOF
10463#define LTDL_SYSSEARCHPATH "$sys_search_path"
10464_ACEOF
10465
10466fi
10467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010468{ echo "$as_me:$LINENO: checking for objdir" >&5
10469echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10470if test "${libltdl_cv_objdir+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472else
10473 libltdl_cv_objdir="$objdir"
10474 if test -n "$objdir"; then
10475 :
10476 else
10477 rm -f .libs 2>/dev/null
10478 mkdir .libs 2>/dev/null
10479 if test -d .libs; then
10480 libltdl_cv_objdir=.libs
10481 else
10482 # MS-DOS does not allow filenames that begin with a dot.
10483 libltdl_cv_objdir=_libs
10484 fi
10485 rmdir .libs 2>/dev/null
10486 fi
10487
10488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10490echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491
10492cat >>confdefs.h <<_ACEOF
10493#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10494_ACEOF
10495
10496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497
10498
10499
10500
10501# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10503echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506else
10507
10508# These are sane defaults that work on at least a few old systems.
10509# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10510
10511# Character class describing NM global symbol codes.
10512symcode='[BCDEGRST]'
10513
10514# Regexp to match symbols that can be accessed directly from C.
10515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10516
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517# Transform an extracted symbol line into a proper C declaration
10518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10519
10520# Transform an extracted symbol line into symbol name and symbol address
10521lt_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'"
10522
10523# Define system-specific variables.
10524case $host_os in
10525aix*)
10526 symcode='[BCDT]'
10527 ;;
10528cygwin* | mingw* | pw32*)
10529 symcode='[ABCDGISTW]'
10530 ;;
10531hpux*) # Its linker distinguishes data from code symbols
10532 if test "$host_cpu" = ia64; then
10533 symcode='[ABCDEGRST]'
10534 fi
10535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10536 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'"
10537 ;;
10538linux*)
10539 if test "$host_cpu" = ia64; then
10540 symcode='[ABCDGIRSTW]'
10541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 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'"
10543 fi
10544 ;;
10545irix* | nonstopux*)
10546 symcode='[BCDEGRST]'
10547 ;;
10548osf*)
10549 symcode='[BCDEGQRST]'
10550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010551solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552 symcode='[BDRT]'
10553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010554sco3.2v5*)
10555 symcode='[DT]'
10556 ;;
10557sysv4.2uw2*)
10558 symcode='[DT]'
10559 ;;
10560sysv5* | sco5v6* | unixware* | OpenUNIX*)
10561 symcode='[ABDT]'
10562 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563sysv4)
10564 symcode='[DFNSTU]'
10565 ;;
10566esac
10567
10568# Handle CRLF in mingw tool chain
10569opt_cr=
10570case $build_os in
10571mingw*)
10572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10573 ;;
10574esac
10575
10576# If we're using GNU nm, then use its standard symbol codes.
10577case `$NM -V 2>&1` in
10578*GNU* | *'with BFD'*)
10579 symcode='[ABCDGIRSTW]' ;;
10580esac
10581
10582# Try without a prefix undercore, then with it.
10583for ac_symprfx in "" "_"; do
10584
Reid Spencera773bd52006-08-04 18:18:08 +000010585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10586 symxfrm="\\1 $ac_symprfx\\2 \\2"
10587
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010589 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 +000010590
10591 # Check to see that the pipe works correctly.
10592 pipe_works=no
10593
10594 rm -f conftest*
10595 cat > conftest.$ac_ext <<EOF
10596#ifdef __cplusplus
10597extern "C" {
10598#endif
10599char nm_test_var;
10600void nm_test_func(){}
10601#ifdef __cplusplus
10602}
10603#endif
10604int main(){nm_test_var='a';nm_test_func();return(0);}
10605EOF
10606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608 (eval $ac_compile) 2>&5
10609 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612 # Now try to grab the symbols.
10613 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010614 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 +000010615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10616 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619 # Try sorting and uniquifying the output.
10620 if sort "$nlist" | uniq > "$nlist"T; then
10621 mv -f "$nlist"T "$nlist"
10622 else
10623 rm -f "$nlist"T
10624 fi
10625
10626 # Make sure that we snagged all the symbols we need.
10627 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10628 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10629 cat <<EOF > conftest.$ac_ext
10630#ifdef __cplusplus
10631extern "C" {
10632#endif
10633
10634EOF
10635 # Now generate the symbol file.
10636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10637
10638 cat <<EOF >> conftest.$ac_ext
10639#if defined (__STDC__) && __STDC__
10640# define lt_ptr_t void *
10641#else
10642# define lt_ptr_t char *
10643# define const
10644#endif
10645
10646/* The mapping between symbol names and symbols. */
10647const struct {
10648 const char *name;
10649 lt_ptr_t address;
10650}
10651lt_preloaded_symbols[] =
10652{
10653EOF
10654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10655 cat <<\EOF >> conftest.$ac_ext
10656 {0, (lt_ptr_t) 0}
10657};
10658
10659#ifdef __cplusplus
10660}
10661#endif
10662EOF
10663 # Now try linking the two files.
10664 mv conftest.$ac_objext conftstm.$ac_objext
10665 lt_save_LIBS="$LIBS"
10666 lt_save_CFLAGS="$CFLAGS"
10667 LIBS="conftstm.$ac_objext"
10668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 (eval $ac_link) 2>&5
10671 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674 pipe_works=yes
10675 fi
10676 LIBS="$lt_save_LIBS"
10677 CFLAGS="$lt_save_CFLAGS"
10678 else
10679 echo "cannot find nm_test_func in $nlist" >&5
10680 fi
10681 else
10682 echo "cannot find nm_test_var in $nlist" >&5
10683 fi
10684 else
10685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10686 fi
10687 else
10688 echo "$progname: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10690 fi
10691 rm -f conftest* conftst*
10692
10693 # Do not use the global_symbol_pipe unless it works.
10694 if test "$pipe_works" = yes; then
10695 break
10696 else
10697 lt_cv_sys_global_symbol_pipe=
10698 fi
10699done
10700
10701fi
10702
10703if test -z "$lt_cv_sys_global_symbol_pipe"; then
10704 lt_cv_sys_global_symbol_to_cdecl=
10705fi
10706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707 { echo "$as_me:$LINENO: result: failed" >&5
10708echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010710 { echo "$as_me:$LINENO: result: ok" >&5
10711echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712fi
10713
10714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010715{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10716echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10717if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719else
10720 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10721 libltdl_cv_preloaded_symbols=yes
10722 else
10723 libltdl_cv_preloaded_symbols=no
10724 fi
10725
10726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010727{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10728echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731cat >>confdefs.h <<\_ACEOF
10732#define HAVE_PRELOADED_SYMBOLS 1
10733_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734
10735fi
10736
10737LIBADD_DL=
10738
10739ac_ext=c
10740ac_cpp='$CPP $CPPFLAGS'
10741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743ac_compiler_gnu=$ac_cv_c_compiler_gnu
10744
10745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746{ echo "$as_me:$LINENO: checking for shl_load" >&5
10747echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10748if test "${ac_cv_func_shl_load+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 cat >conftest.$ac_ext <<_ACEOF
10752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
10757/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761/* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char shl_load (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10765
10766#ifdef __STDC__
10767# include <limits.h>
10768#else
10769# include <assert.h>
10770#endif
10771
10772#undef shl_load
10773
10774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777#ifdef __cplusplus
10778extern "C"
10779#endif
10780char shl_load ();
10781/* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784#if defined __stub_shl_load || defined __stub___shl_load
10785choke me
10786#endif
10787
10788int
10789main ()
10790{
10791return shl_load ();
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext conftest$ac_exeext
10797if { (ac_try="$ac_link"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_func_shl_load=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_func_shl_load=no
10836fi
10837
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840fi
10841{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10842echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10843if test $ac_cv_func_shl_load = yes; then
10844
10845cat >>confdefs.h <<\_ACEOF
10846#define HAVE_SHL_LOAD 1
10847_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848
10849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10851echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10852if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854else
10855 ac_check_lib_save_LIBS=$LIBS
10856LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862/* end confdefs.h. */
10863
Reid Spencera773bd52006-08-04 18:18:08 +000010864/* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867#ifdef __cplusplus
10868extern "C"
10869#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870char shl_load ();
10871int
10872main ()
10873{
Reid Spencera773bd52006-08-04 18:18:08 +000010874return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 ;
10876 return 0;
10877}
10878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879rm -f conftest.$ac_objext conftest$ac_exeext
10880if { (ac_try="$ac_link"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 ac_cv_lib_dld_shl_load=yes
10914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920
Bill Wendlingebcceee2009-04-18 11:20:33 +000010921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010922 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923LIBS=$ac_check_lib_save_LIBS
10924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10926echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10927if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010929cat >>confdefs.h <<\_ACEOF
10930#define HAVE_SHL_LOAD 1
10931_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932
10933 LIBADD_DL="$LIBADD_DL -ldld"
10934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939else
10940 ac_check_lib_save_LIBS=$LIBS
10941LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947/* end confdefs.h. */
10948
Reid Spencera773bd52006-08-04 18:18:08 +000010949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952#ifdef __cplusplus
10953extern "C"
10954#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955char dlopen ();
10956int
10957main ()
10958{
Reid Spencera773bd52006-08-04 18:18:08 +000010959return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 ;
10961 return 0;
10962}
10963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964rm -f conftest.$ac_objext conftest$ac_exeext
10965if { (ac_try="$ac_link"
10966case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_try") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest$ac_exeext'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998 ac_cv_lib_dl_dlopen=yes
10999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011005
Bill Wendlingebcceee2009-04-18 11:20:33 +000011006rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011007 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008LIBS=$ac_check_lib_save_LIBS
11009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11012if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011014cat >>confdefs.h <<\_ACEOF
11015#define HAVE_LIBDL 1
11016_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017
11018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011020 cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025/* end confdefs.h. */
11026#if HAVE_DLFCN_H
11027# include <dlfcn.h>
11028#endif
11029
11030int
11031main ()
11032{
11033dlopen(0, 0);
11034 ;
11035 return 0;
11036}
11037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011038rm -f conftest.$ac_objext conftest$ac_exeext
11039if { (ac_try="$ac_link"
11040case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073cat >>confdefs.h <<\_ACEOF
11074#define HAVE_LIBDL 1
11075_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 libltdl_cv_func_dlopen="yes"
11077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011078 echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11082echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11083if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085else
11086 ac_check_lib_save_LIBS=$LIBS
11087LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093/* end confdefs.h. */
11094
Reid Spencera773bd52006-08-04 18:18:08 +000011095/* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098#ifdef __cplusplus
11099extern "C"
11100#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101char dlopen ();
11102int
11103main ()
11104{
Reid Spencera773bd52006-08-04 18:18:08 +000011105return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011106 ;
11107 return 0;
11108}
11109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110rm -f conftest.$ac_objext conftest$ac_exeext
11111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144 ac_cv_lib_svld_dlopen=yes
11145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011146 echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011151
Bill Wendlingebcceee2009-04-18 11:20:33 +000011152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011153 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154LIBS=$ac_check_lib_save_LIBS
11155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11157echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11158if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160cat >>confdefs.h <<\_ACEOF
11161#define HAVE_LIBDL 1
11162_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11167echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11168if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170else
11171 ac_check_lib_save_LIBS=$LIBS
11172LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173cat >conftest.$ac_ext <<_ACEOF
11174/* confdefs.h. */
11175_ACEOF
11176cat confdefs.h >>conftest.$ac_ext
11177cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178/* end confdefs.h. */
11179
Reid Spencera773bd52006-08-04 18:18:08 +000011180/* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183#ifdef __cplusplus
11184extern "C"
11185#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186char dld_link ();
11187int
11188main ()
11189{
Reid Spencera773bd52006-08-04 18:18:08 +000011190return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 ;
11192 return 0;
11193}
11194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011195rm -f conftest.$ac_objext conftest$ac_exeext
11196if { (ac_try="$ac_link"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 ac_cv_lib_dld_dld_link=yes
11230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011236
Bill Wendlingebcceee2009-04-18 11:20:33 +000011237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011238 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239LIBS=$ac_check_lib_save_LIBS
11240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011241{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11242echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11243if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011245cat >>confdefs.h <<\_ACEOF
11246#define HAVE_DLD 1
11247_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248
11249 LIBADD_DL="$LIBADD_DL -ldld"
11250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11252echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11253if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 cat >conftest.$ac_ext <<_ACEOF
11257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
11262/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011266/* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char _dyld_func_lookup (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011271#ifdef __STDC__
11272# include <limits.h>
11273#else
11274# include <assert.h>
11275#endif
11276
11277#undef _dyld_func_lookup
11278
11279/* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282#ifdef __cplusplus
11283extern "C"
11284#endif
11285char _dyld_func_lookup ();
11286/* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11290choke me
11291#endif
11292
11293int
11294main ()
11295{
11296return _dyld_func_lookup ();
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext conftest$ac_exeext
11302if { (ac_try="$ac_link"
11303case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_func__dyld_func_lookup=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342
Bill Wendlingebcceee2009-04-18 11:20:33 +000011343rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 conftest$ac_exeext conftest.$ac_ext
11345fi
11346{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11347echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11348if test $ac_cv_func__dyld_func_lookup = yes; then
11349
11350cat >>confdefs.h <<\_ACEOF
11351#define HAVE_DYLD 1
11352_ACEOF
11353
11354fi
11355
11356
11357fi
11358
11359
11360fi
11361
11362
11363fi
11364
11365rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367
11368fi
11369
11370
11371fi
11372
11373
11374fi
11375
11376
11377if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11378then
11379 lt_save_LIBS="$LIBS"
11380 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011381
11382for ac_func in dlerror
11383do
11384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else
11390 cat >conftest.$ac_ext <<_ACEOF
11391/* confdefs.h. */
11392_ACEOF
11393cat confdefs.h >>conftest.$ac_ext
11394cat >>conftest.$ac_ext <<_ACEOF
11395/* end confdefs.h. */
11396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398#define $ac_func innocuous_$ac_func
11399
11400/* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11404
11405#ifdef __STDC__
11406# include <limits.h>
11407#else
11408# include <assert.h>
11409#endif
11410
11411#undef $ac_func
11412
11413/* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419char $ac_func ();
11420/* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423#if defined __stub_$ac_func || defined __stub___$ac_func
11424choke me
11425#endif
11426
11427int
11428main ()
11429{
11430return $ac_func ();
11431 ;
11432 return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext conftest$ac_exeext
11436if { (ac_try="$ac_link"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11470else
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 eval "$as_ac_var=no"
11475fi
11476
11477rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479fi
11480ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
11483if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486_ACEOF
11487
11488fi
11489done
11490
11491 LIBS="$lt_save_LIBS"
11492fi
11493ac_ext=c
11494ac_cpp='$CPP $CPPFLAGS'
11495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498
11499
11500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011501{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11502echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11503if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505else
11506 ac_cv_sys_symbol_underscore=no
11507 cat > conftest.$ac_ext <<EOF
11508void nm_test_func(){}
11509int main(){nm_test_func;return 0;}
11510EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 (eval $ac_compile) 2>&5
11513 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516 # Now try to grab the symbols.
11517 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011518 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 +000011519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11520 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 # See whether the symbols have a leading underscore.
11524 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11525 ac_cv_sys_symbol_underscore=yes
11526 else
11527 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11528 :
11529 else
11530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11531 fi
11532 fi
11533 else
11534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11535 fi
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.c >&5
11539 fi
11540 rm -rf conftest*
11541
11542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011543{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11544echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545
11546
11547if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11548 if test x"$libltdl_cv_func_dlopen" = xyes ||
11549 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11551echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11552if test "${libltdl_cv_need_uscore+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554else
11555 libltdl_cv_need_uscore=unknown
11556 save_LIBS="$LIBS"
11557 LIBS="$LIBS $LIBADD_DL"
11558 if test "$cross_compiling" = yes; then :
11559 libltdl_cv_need_uscore=cross
11560else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000011564#line 11564 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565#include "confdefs.h"
11566
11567#if HAVE_DLFCN_H
11568#include <dlfcn.h>
11569#endif
11570
11571#include <stdio.h>
11572
11573#ifdef RTLD_GLOBAL
11574# define LT_DLGLOBAL RTLD_GLOBAL
11575#else
11576# ifdef DL_GLOBAL
11577# define LT_DLGLOBAL DL_GLOBAL
11578# else
11579# define LT_DLGLOBAL 0
11580# endif
11581#endif
11582
11583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585#ifndef LT_DLLAZY_OR_NOW
11586# ifdef RTLD_LAZY
11587# define LT_DLLAZY_OR_NOW RTLD_LAZY
11588# else
11589# ifdef DL_LAZY
11590# define LT_DLLAZY_OR_NOW DL_LAZY
11591# else
11592# ifdef RTLD_NOW
11593# define LT_DLLAZY_OR_NOW RTLD_NOW
11594# else
11595# ifdef DL_NOW
11596# define LT_DLLAZY_OR_NOW DL_NOW
11597# else
11598# define LT_DLLAZY_OR_NOW 0
11599# endif
11600# endif
11601# endif
11602# endif
11603#endif
11604
11605#ifdef __cplusplus
11606extern "C" void exit (int);
11607#endif
11608
11609void fnord() { int i=42;}
11610int main ()
11611{
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11614
11615 if (self)
11616 {
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11620 }
Reid Spencera773bd52006-08-04 18:18:08 +000011621 else
11622 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623
11624 exit (status);
11625}
11626EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 (eval $ac_link) 2>&5
11629 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011632 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011637 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 esac
11639 else :
11640 # compilation failed
11641
11642 fi
11643fi
11644rm -fr conftest*
11645
11646 LIBS="$save_LIBS"
11647
11648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011649{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11650echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651 fi
11652fi
11653
11654if test x"$libltdl_cv_need_uscore" = xyes; then
11655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011656cat >>confdefs.h <<\_ACEOF
11657#define NEED_USCORE 1
11658_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659
11660fi
11661
11662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011663{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11664echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11665if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667else
11668 # PORTME does your system automatically load deplibs for dlopen?
11669 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11670 # For now, we just catch OSes we know something about -- in the
11671 # future, we'll try test this programmatically.
11672 libltdl_cv_sys_dlopen_deplibs=unknown
11673 case "$host_os" in
11674 aix3*|aix4.1.*|aix4.2.*)
11675 # Unknown whether this is true for these versions of AIX, but
11676 # we want this `case' here to explicitly catch those versions.
11677 libltdl_cv_sys_dlopen_deplibs=unknown
11678 ;;
11679 aix[45]*)
11680 libltdl_cv_sys_dlopen_deplibs=yes
11681 ;;
11682 darwin*)
11683 # Assuming the user has installed a libdl from somewhere, this is true
11684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11685 libltdl_cv_sys_dlopen_deplibs=yes
11686 ;;
11687 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11688 # GNU and its variants, using gnu ld.so (Glibc)
11689 libltdl_cv_sys_dlopen_deplibs=yes
11690 ;;
11691 hpux10*|hpux11*)
11692 libltdl_cv_sys_dlopen_deplibs=yes
11693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011694 interix*)
11695 libltdl_cv_sys_dlopen_deplibs=yes
11696 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697 irix[12345]*|irix6.[01]*)
11698 # Catch all versions of IRIX before 6.2, and indicate that we don't
11699 # know how it worked for any of those versions.
11700 libltdl_cv_sys_dlopen_deplibs=unknown
11701 ;;
11702 irix*)
11703 # The case above catches anything before 6.2, and it's known that
11704 # at 6.2 and later dlopen does load deplibs.
11705 libltdl_cv_sys_dlopen_deplibs=yes
11706 ;;
11707 netbsd*)
11708 libltdl_cv_sys_dlopen_deplibs=yes
11709 ;;
11710 openbsd*)
11711 libltdl_cv_sys_dlopen_deplibs=yes
11712 ;;
11713 osf[1234]*)
11714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11715 # it did *not* use an RPATH in a shared library to find objects the
11716 # library depends on, so we explictly say `no'.
11717 libltdl_cv_sys_dlopen_deplibs=no
11718 ;;
11719 osf5.0|osf5.0a|osf5.1)
11720 # dlopen *does* load deplibs and with the right loader patch applied
11721 # it even uses RPATH in a shared library to search for shared objects
11722 # that the library depends on, but there's no easy way to know if that
11723 # patch is installed. Since this is the case, all we can really
11724 # say is unknown -- it depends on the patch being installed. If
11725 # it is, this changes to `yes'. Without it, it would be `no'.
11726 libltdl_cv_sys_dlopen_deplibs=unknown
11727 ;;
11728 osf*)
11729 # the two cases above should catch all versions of osf <= 5.1. Read
11730 # the comments above for what we know about them.
11731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11732 # is used to find them so we can finally say `yes'.
11733 libltdl_cv_sys_dlopen_deplibs=yes
11734 ;;
11735 solaris*)
11736 libltdl_cv_sys_dlopen_deplibs=yes
11737 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739 libltdl_cv_sys_dlopen_deplibs=yes
11740 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741 esac
11742
11743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011744{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11745echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011748cat >>confdefs.h <<\_ACEOF
11749#define LTDL_DLOPEN_DEPLIBS 1
11750_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751
11752fi
11753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011756do
11757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763fi
11764ac_res=`eval echo '${'$as_ac_Header'}'`
11765 { echo "$as_me:$LINENO: result: $ac_res" >&5
11766echo "${ECHO_T}$ac_res" >&6; }
11767else
11768 # Is the header compilable?
11769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11771cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778#include <$ac_header>
11779_ACEOF
11780rm -f conftest.$ac_objext
11781if { (ac_try="$ac_compile"
11782case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler=yes
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_header_compiler=no
11820fi
11821
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824echo "${ECHO_T}$ac_header_compiler" >&6; }
11825
11826# Is the header present?
11827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835#include <$ac_header>
11836_ACEOF
11837if { (ac_try="$ac_cpp conftest.$ac_ext"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11853 else
11854 ac_cpp_err=
11855 fi
11856else
11857 ac_cpp_err=yes
11858fi
11859if test -z "$ac_cpp_err"; then
11860 ac_header_preproc=yes
11861else
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ac_header_preproc=no
11866fi
11867
11868rm -f conftest.err conftest.$ac_ext
11869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870echo "${ECHO_T}$ac_header_preproc" >&6; }
11871
11872# So? What about this header?
11873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874 yes:no: )
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879 ac_header_preproc=yes
11880 ;;
11881 no:yes:* )
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11894 ( cat <<\_ASBOX
11895## ----------------------------------- ##
11896## Report this to llvmbugs@cs.uiuc.edu ##
11897## ----------------------------------- ##
11898_ASBOX
11899 ) | sed "s/^/$as_me: WARNING: /" >&2
11900 ;;
11901esac
11902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 eval "$as_ac_Header=\$ac_header_preproc"
11908fi
11909ac_res=`eval echo '${'$as_ac_Header'}'`
11910 { echo "$as_me:$LINENO: result: $ac_res" >&5
11911echo "${ECHO_T}$ac_res" >&6; }
11912
11913fi
11914if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917_ACEOF
11918
11919fi
11920
11921done
11922
11923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011924{ echo "$as_me:$LINENO: checking for error_t" >&5
11925echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11926if test "${ac_cv_type_error_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
11935#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011936# include <argz.h>
11937#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938
11939typedef error_t ac__type_new_;
11940int
11941main ()
11942{
11943if ((ac__type_new_ *) 0)
11944 return 0;
11945if (sizeof (ac__type_new_))
11946 return 0;
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (ac_try="$ac_compile"
11953case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_error_t=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_cv_type_error_t=no
11991fi
11992
11993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11996echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11997if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011998
11999cat >>confdefs.h <<_ACEOF
12000#define HAVE_ERROR_T 1
12001_ACEOF
12002
12003
12004else
12005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012006cat >>confdefs.h <<\_ACEOF
12007#define error_t int
12008_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009
12010fi
12011
12012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013
12014
12015
12016
12017
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012019do
12020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034#define $ac_func innocuous_$ac_func
12035
12036/* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12040
12041#ifdef __STDC__
12042# include <limits.h>
12043#else
12044# include <assert.h>
12045#endif
12046
12047#undef $ac_func
12048
12049/* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052#ifdef __cplusplus
12053extern "C"
12054#endif
12055char $ac_func ();
12056/* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059#if defined __stub_$ac_func || defined __stub___$ac_func
12060choke me
12061#endif
12062
12063int
12064main ()
12065{
12066return $ac_func ();
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext conftest$ac_exeext
12072if { (ac_try="$ac_link"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089esac
12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106else
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 eval "$as_ac_var=no"
12111fi
12112
12113rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115fi
12116ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118echo "${ECHO_T}$ac_res" >&6; }
12119if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122_ACEOF
12123
12124fi
12125done
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146
12147
12148
12149
12150
12151
12152
12153
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12155 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156do
12157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163fi
12164ac_res=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166echo "${ECHO_T}$ac_res" >&6; }
12167else
12168 # Is the header compilable?
12169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178#include <$ac_header>
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (ac_try="$ac_compile"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_header_compiler=no
12220fi
12221
12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224echo "${ECHO_T}$ac_header_compiler" >&6; }
12225
12226# Is the header present?
12227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235#include <$ac_header>
12236_ACEOF
12237if { (ac_try="$ac_cpp conftest.$ac_ext"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12255 fi
12256else
12257 ac_cpp_err=yes
12258fi
12259if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12261else
12262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_preproc=no
12266fi
12267
12268rm -f conftest.err conftest.$ac_ext
12269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270echo "${ECHO_T}$ac_header_preproc" >&6; }
12271
12272# So? What about this header?
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 ( cat <<\_ASBOX
12295## ----------------------------------- ##
12296## Report this to llvmbugs@cs.uiuc.edu ##
12297## ----------------------------------- ##
12298_ASBOX
12299 ) | sed "s/^/$as_me: WARNING: /" >&2
12300 ;;
12301esac
12302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 eval "$as_ac_Header=\$ac_header_preproc"
12308fi
12309ac_res=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311echo "${ECHO_T}$ac_res" >&6; }
12312
12313fi
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317_ACEOF
12318
12319fi
12320
12321done
12322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
12324
12325
12326
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328do
12329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335fi
12336ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338echo "${ECHO_T}$ac_res" >&6; }
12339else
12340 # Is the header compilable?
12341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (ac_try="$ac_compile"
12354case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_header_compiler=no
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396echo "${ECHO_T}$ac_header_compiler" >&6; }
12397
12398# Is the header present?
12399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407#include <$ac_header>
12408_ACEOF
12409if { (ac_try="$ac_cpp conftest.$ac_ext"
12410case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 else
12426 ac_cpp_err=
12427 fi
12428else
12429 ac_cpp_err=yes
12430fi
12431if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ----------------------------------- ##
12468## Report this to llvmbugs@cs.uiuc.edu ##
12469## ----------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489_ACEOF
12490
12491fi
12492
12493done
12494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495
12496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498do
12499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505fi
12506ac_res=`eval echo '${'$as_ac_Header'}'`
12507 { echo "$as_me:$LINENO: result: $ac_res" >&5
12508echo "${ECHO_T}$ac_res" >&6; }
12509else
12510 # Is the header compilable?
12511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519$ac_includes_default
12520#include <$ac_header>
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (ac_try="$ac_compile"
12524case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527esac
12528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 ac_header_compiler=no
12562fi
12563
12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566echo "${ECHO_T}$ac_header_compiler" >&6; }
12567
12568# Is the header present?
12569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12571cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577#include <$ac_header>
12578_ACEOF
12579if { (ac_try="$ac_cpp conftest.$ac_ext"
12580case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } >/dev/null; then
12592 if test -s conftest.err; then
12593 ac_cpp_err=$ac_c_preproc_warn_flag
12594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12595 else
12596 ac_cpp_err=
12597 fi
12598else
12599 ac_cpp_err=yes
12600fi
12601if test -z "$ac_cpp_err"; then
12602 ac_header_preproc=yes
12603else
12604 echo "$as_me: failed program was:" >&5
12605sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 ac_header_preproc=no
12608fi
12609
12610rm -f conftest.err conftest.$ac_ext
12611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612echo "${ECHO_T}$ac_header_preproc" >&6; }
12613
12614# So? What about this header?
12615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12622 ;;
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12636 ( cat <<\_ASBOX
12637## ----------------------------------- ##
12638## Report this to llvmbugs@cs.uiuc.edu ##
12639## ----------------------------------- ##
12640_ASBOX
12641 ) | sed "s/^/$as_me: WARNING: /" >&2
12642 ;;
12643esac
12644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649 eval "$as_ac_Header=\$ac_header_preproc"
12650fi
12651ac_res=`eval echo '${'$as_ac_Header'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653echo "${ECHO_T}$ac_res" >&6; }
12654
12655fi
12656if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659_ACEOF
12660 break
12661fi
12662
12663done
12664
12665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666
12667
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012668for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669do
12670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684#define $ac_func innocuous_$ac_func
12685
12686/* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12690
12691#ifdef __STDC__
12692# include <limits.h>
12693#else
12694# include <assert.h>
12695#endif
12696
12697#undef $ac_func
12698
12699/* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702#ifdef __cplusplus
12703extern "C"
12704#endif
12705char $ac_func ();
12706/* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709#if defined __stub_$ac_func || defined __stub___$ac_func
12710choke me
12711#endif
12712
12713int
12714main ()
12715{
12716return $ac_func ();
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (ac_try="$ac_link"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 eval "$as_ac_var=no"
12761fi
12762
12763rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765fi
12766ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768echo "${ECHO_T}$ac_res" >&6; }
12769if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012772_ACEOF
12773 break
12774fi
12775done
12776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777
12778
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012780do
12781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795#define $ac_func innocuous_$ac_func
12796
12797/* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12801
12802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
12807
12808#undef $ac_func
12809
12810/* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813#ifdef __cplusplus
12814extern "C"
12815#endif
12816char $ac_func ();
12817/* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820#if defined __stub_$ac_func || defined __stub___$ac_func
12821choke me
12822#endif
12823
12824int
12825main ()
12826{
12827return $ac_func ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (ac_try="$ac_link"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 eval "$as_ac_var=no"
12872fi
12873
12874rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876fi
12877ac_res=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879echo "${ECHO_T}$ac_res" >&6; }
12880if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012883_ACEOF
12884 break
12885fi
12886done
12887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888
12889
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891do
12892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h. */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h. */
12904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906#define $ac_func innocuous_$ac_func
12907
12908/* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12912
12913#ifdef __STDC__
12914# include <limits.h>
12915#else
12916# include <assert.h>
12917#endif
12918
12919#undef $ac_func
12920
12921/* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12924#ifdef __cplusplus
12925extern "C"
12926#endif
12927char $ac_func ();
12928/* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931#if defined __stub_$ac_func || defined __stub___$ac_func
12932choke me
12933#endif
12934
12935int
12936main ()
12937{
12938return $ac_func ();
12939 ;
12940 return 0;
12941}
12942_ACEOF
12943rm -f conftest.$ac_objext conftest$ac_exeext
12944if { (ac_try="$ac_link"
12945case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12978else
12979 echo "$as_me: failed program was:" >&5
12980sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 eval "$as_ac_var=no"
12983fi
12984
12985rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987fi
12988ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990echo "${ECHO_T}$ac_res" >&6; }
12991if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012992 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012994_ACEOF
12995 break
12996fi
12997done
12998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999
13000
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013001for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002do
13003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13017#define $ac_func innocuous_$ac_func
13018
13019/* System header to define __stub macros and hopefully few prototypes,
13020 which can conflict with char $ac_func (); below.
13021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022 <limits.h> exists even on freestanding compilers. */
13023
13024#ifdef __STDC__
13025# include <limits.h>
13026#else
13027# include <assert.h>
13028#endif
13029
13030#undef $ac_func
13031
13032/* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038char $ac_func ();
13039/* The GNU C library defines this for functions which it implements
13040 to always fail with ENOSYS. Some functions are actually named
13041 something starting with __ and the normal name is an alias. */
13042#if defined __stub_$ac_func || defined __stub___$ac_func
13043choke me
13044#endif
13045
13046int
13047main ()
13048{
13049return $ac_func ();
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext conftest$ac_exeext
13055if { (ac_try="$ac_link"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 eval "$as_ac_var=yes"
13089else
13090 echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 eval "$as_ac_var=no"
13094fi
13095
13096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098fi
13099ac_res=`eval echo '${'$as_ac_var'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101echo "${ECHO_T}$ac_res" >&6; }
13102if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013105_ACEOF
13106
13107fi
13108done
13109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110
13111
13112
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013113for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114do
13115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
13121 cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13129#define $ac_func innocuous_$ac_func
13130
13131/* System header to define __stub macros and hopefully few prototypes,
13132 which can conflict with char $ac_func (); below.
13133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13134 <limits.h> exists even on freestanding compilers. */
13135
13136#ifdef __STDC__
13137# include <limits.h>
13138#else
13139# include <assert.h>
13140#endif
13141
13142#undef $ac_func
13143
13144/* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147#ifdef __cplusplus
13148extern "C"
13149#endif
13150char $ac_func ();
13151/* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154#if defined __stub_$ac_func || defined __stub___$ac_func
13155choke me
13156#endif
13157
13158int
13159main ()
13160{
13161return $ac_func ();
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166rm -f conftest.$ac_objext conftest$ac_exeext
13167if { (ac_try="$ac_link"
13168case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 eval "$as_ac_var=yes"
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 eval "$as_ac_var=no"
13206fi
13207
13208rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210fi
13211ac_res=`eval echo '${'$as_ac_var'}'`
13212 { echo "$as_me:$LINENO: result: $ac_res" >&5
13213echo "${ECHO_T}$ac_res" >&6; }
13214if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013217_ACEOF
13218
13219fi
13220done
13221
13222
Douglas Gregor01746742009-05-11 18:05:52 +000013223
Reid Spencer7931a782004-12-27 06:15:02 +000013224if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013225 LLVMGCC="llvm-gcc${EXEEXT}"
13226 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013227 LLVMGCCCOMMAND="$LLVMGCC"
13228 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013229 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13230
13231 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13232
Reid Spencerc84492c2005-06-02 22:34:49 +000013233 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13234set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13237if test "${ac_cv_path_LLVMGCC+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013239else
13240 case $LLVMGCC in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13243 ;;
13244 *)
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013252 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013254 break 2
13255 fi
13256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257done
Reid Spencera773bd52006-08-04 18:18:08 +000013258IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013259
Reid Spencer59473af2004-12-25 07:31:29 +000013260 ;;
13261esac
13262fi
13263LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013264if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13266echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 { echo "$as_me:$LINENO: result: no" >&5
13269echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013270fi
13271
Reid Spencera773bd52006-08-04 18:18:08 +000013272
Reid Spencerc84492c2005-06-02 22:34:49 +000013273 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13274set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277if test "${ac_cv_path_LLVMGXX+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013279else
13280 case $LLVMGXX in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13283 ;;
13284 *)
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286for as_dir in $PATH
13287do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013292 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013294 break 2
13295 fi
13296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297done
Reid Spencera773bd52006-08-04 18:18:08 +000013298IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013299
Reid Spencer59473af2004-12-25 07:31:29 +000013300 ;;
13301esac
13302fi
13303LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013304if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013305 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13306echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308 { echo "$as_me:$LINENO: result: no" >&5
13309echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013310fi
13311
Reid Spencera773bd52006-08-04 18:18:08 +000013312
Reid Spencer59473af2004-12-25 07:31:29 +000013313else
Devang Patel5d28b882007-12-04 22:54:47 +000013314 if test -z "$LLVMGCC"; then
13315 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013316 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013317 fi
13318 if test -z "$LLVMGXX"; then
13319 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013320 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013321 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013322
Reid Spencer59473af2004-12-25 07:31:29 +000013323 LLVMGCC=$LLVMGCC
13324
13325 LLVMGXX=$LLVMGXX
13326
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013327 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13328
13329 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13330
Reid Spencer59473af2004-12-25 07:31:29 +000013331fi
13332
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013333
Daniel Dunbar98515672010-02-23 10:00:49 +000013334# Check whether --with-llvmcc was given.
13335if test "${with_llvmcc+set}" = set; then
13336 withval=$with_llvmcc;
13337else
13338 with_llvmcc=check
13339fi
13340
13341{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13342echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13343if test "$with_llvmcc" != "check"; then
13344 if (test "$with_llvmcc" != "llvm-gcc" &&
13345 test "$with_llvmcc" != "clang" &&
13346 test "$with_llvmcc" != "none"); then
13347 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13348echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13349 { (exit 1); exit 1; }; }
13350 fi
13351 WITH_LLVMCC="$with_llvmcc"
13352elif test -n "$LLVMGCC"; then
13353 WITH_LLVMCC=llvm-gcc
13354elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13355 WITH_LLVMCC=clang
13356else
13357 WITH_LLVMCC=none
13358fi
13359{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13360echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13361LLVMCC_OPTION=$WITH_LLVMCC
13362
13363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13365echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013366
Reid Spencer86901802004-12-08 23:07:27 +000013367ICC=no
13368IXX=no
13369case $CC in
13370 icc*|icpc*)
13371 ICC=yes
13372 IXX=yes
13373 ;;
13374 *)
13375 ;;
13376esac
13377
Duraid Madina937c60a2006-02-15 07:57:42 +000013378if test "$GCC" != "yes" && test "$ICC" != "yes"
13379then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13381echo "$as_me: error: gcc|icc required but not found" >&2;}
13382 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013383fi
13384
13385if test "$GXX" != "yes" && test "$IXX" != "yes"
13386then
Eric Christopher73e36da2010-12-08 02:02:14 +000013387 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13388echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013389 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013390fi
13391
Reid Spencer86901802004-12-08 23:07:27 +000013392if test "$GCC" = "yes"
13393then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013394 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013395#if !defined(__GNUC__) || __GNUC__ < 3
13396#error Unsupported GCC version
13397#endif
13398
13399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400rm -f conftest.$ac_objext
13401if { (ac_try="$ac_compile"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13440echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13441 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443
Chris Lattner399c7c72008-02-05 19:43:53 +000013444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013445fi
13446
13447if test -z "$llvm_cv_gnu_make_command"
13448then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13450echo "$as_me: error: GNU Make required but not found" >&2;}
13451 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013452fi
13453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013454{ echo "$as_me:$LINENO: result: ok" >&5
13455echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13458echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013459NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13460
13461NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13464echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013465
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467
13468{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13469echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13470if test "${ac_cv_lib_m_sin+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013472else
13473 ac_check_lib_save_LIBS=$LIBS
13474LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013480/* end confdefs.h. */
13481
Reid Spencera773bd52006-08-04 18:18:08 +000013482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013485#ifdef __cplusplus
13486extern "C"
13487#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013488char sin ();
13489int
13490main ()
13491{
Reid Spencera773bd52006-08-04 18:18:08 +000013492return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013493 ;
13494 return 0;
13495}
13496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497rm -f conftest.$ac_objext conftest$ac_exeext
13498if { (ac_try="$ac_link"
13499case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515esac
13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013531 ac_cv_lib_m_sin=yes
13532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538
Bill Wendlingebcceee2009-04-18 11:20:33 +000013539rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013541LIBS=$ac_check_lib_save_LIBS
13542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013543{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13544echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13545if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013546 cat >>confdefs.h <<_ACEOF
13547#define HAVE_LIBM 1
13548_ACEOF
13549
13550 LIBS="-lm $LIBS"
13551
13552fi
13553
Jeff Cohen28783c32007-01-12 18:22:38 +000013554if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555
13556{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13557echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13558if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013560else
13561 ac_check_lib_save_LIBS=$LIBS
13562LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013568/* end confdefs.h. */
13569
Reid Spencer48fdf912006-06-01 19:03:21 +000013570
Reid Spencer484fc8e2006-06-01 16:55:59 +000013571int
13572main ()
13573{
Reid Spencera773bd52006-08-04 18:18:08 +000013574return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013575 ;
13576 return 0;
13577}
13578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013579rm -f conftest.$ac_objext conftest$ac_exeext
13580if { (ac_try="$ac_link"
13581case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013613 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620
Bill Wendlingebcceee2009-04-18 11:20:33 +000013621rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013622 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013623LIBS=$ac_check_lib_save_LIBS
13624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13626echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13627if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013628 cat >>confdefs.h <<_ACEOF
13629#define HAVE_LIBIMAGEHLP 1
13630_ACEOF
13631
13632 LIBS="-limagehlp $LIBS"
13633
13634fi
13635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636
13637{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13638echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13639if test "${ac_cv_lib_psapi_main+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013641else
13642 ac_check_lib_save_LIBS=$LIBS
13643LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013649/* end confdefs.h. */
13650
Reid Spencer48fdf912006-06-01 19:03:21 +000013651
Reid Spencer484fc8e2006-06-01 16:55:59 +000013652int
13653main ()
13654{
Reid Spencera773bd52006-08-04 18:18:08 +000013655return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013656 ;
13657 return 0;
13658}
13659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660rm -f conftest.$ac_objext conftest$ac_exeext
13661if { (ac_try="$ac_link"
13662case "(($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_link") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688esac
13689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013694 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701
Bill Wendlingebcceee2009-04-18 11:20:33 +000013702rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013704LIBS=$ac_check_lib_save_LIBS
13705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13707echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13708if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013709 cat >>confdefs.h <<_ACEOF
13710#define HAVE_LIBPSAPI 1
13711_ACEOF
13712
13713 LIBS="-lpsapi $LIBS"
13714
13715fi
13716
13717fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13720echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13721if test "${ac_cv_search_dlopen+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013723else
13724 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013731
Reid Spencera773bd52006-08-04 18:18:08 +000013732/* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013735#ifdef __cplusplus
13736extern "C"
13737#endif
John Criswell7a73b802003-06-30 21:59:07 +000013738char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013739int
13740main ()
13741{
Reid Spencera773bd52006-08-04 18:18:08 +000013742return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013743 ;
13744 return 0;
13745}
13746_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013747for ac_lib in '' dl; do
13748 if test -z "$ac_lib"; then
13749 ac_res="none required"
13750 else
13751 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013753 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754 rm -f conftest.$ac_objext conftest$ac_exeext
13755if { (ac_try="$ac_link"
13756case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13769 { (case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_try") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013788 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793
John Criswell7a73b802003-06-30 21:59:07 +000013794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795
Bill Wendlingebcceee2009-04-18 11:20:33 +000013796rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797 conftest$ac_exeext
13798 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013799 break
John Criswell7a73b802003-06-30 21:59:07 +000013800fi
Reid Spencera773bd52006-08-04 18:18:08 +000013801done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802if test "${ac_cv_search_dlopen+set}" = set; then
13803 :
Reid Spencera773bd52006-08-04 18:18:08 +000013804else
13805 ac_cv_search_dlopen=no
13806fi
13807rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013808LIBS=$ac_func_search_save_LIBS
13809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13811echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013812ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816cat >>confdefs.h <<\_ACEOF
13817#define HAVE_DLOPEN 1
13818_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013819
13820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13822echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013823fi
13824
13825
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013826if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13828echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13829if test "${ac_cv_search_ffi_call+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013831else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013832 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013838/* end confdefs.h. */
13839
13840/* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843#ifdef __cplusplus
13844extern "C"
13845#endif
13846char ffi_call ();
13847int
13848main ()
13849{
13850return ffi_call ();
13851 ;
13852 return 0;
13853}
13854_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013855for ac_lib in '' ffi; do
13856 if test -z "$ac_lib"; then
13857 ac_res="none required"
13858 else
13859 ac_res=-l$ac_lib
13860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862 rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (ac_try="$ac_link"
13864case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880esac
13881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013896 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897else
13898 echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
13900
13901
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903
Bill Wendlingebcceee2009-04-18 11:20:33 +000013904rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905 conftest$ac_exeext
13906 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013907 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013908fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910if test "${ac_cv_search_ffi_call+set}" = set; then
13911 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013912else
13913 ac_cv_search_ffi_call=no
13914fi
13915rm conftest.$ac_ext
13916LIBS=$ac_func_search_save_LIBS
13917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13919echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013920ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013921if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924cat >>confdefs.h <<\_ACEOF
13925#define HAVE_FFI_CALL 1
13926_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013927
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013928else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013929 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13930echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13931 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013932fi
13933
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013934fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13937echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13938if test "${ac_cv_search_mallinfo+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013940else
13941 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013948
Reid Spencera773bd52006-08-04 18:18:08 +000013949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013952#ifdef __cplusplus
13953extern "C"
13954#endif
John Criswell7a73b802003-06-30 21:59:07 +000013955char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013956int
13957main ()
13958{
Reid Spencera773bd52006-08-04 18:18:08 +000013959return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013960 ;
13961 return 0;
13962}
13963_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013964for ac_lib in '' malloc; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013970 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971 rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (ac_try="$ac_link"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014005 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010
John Criswell7a73b802003-06-30 21:59:07 +000014011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012
Bill Wendlingebcceee2009-04-18 11:20:33 +000014013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014 conftest$ac_exeext
14015 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014016 break
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
Reid Spencera773bd52006-08-04 18:18:08 +000014018done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014019if test "${ac_cv_search_mallinfo+set}" = set; then
14020 :
Reid Spencera773bd52006-08-04 18:18:08 +000014021else
14022 ac_cv_search_mallinfo=no
14023fi
14024rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014025LIBS=$ac_func_search_save_LIBS
14026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14028echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014029ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033cat >>confdefs.h <<\_ACEOF
14034#define HAVE_MALLINFO 1
14035_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014036
14037fi
14038
14039
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014040if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041
14042{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14043echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14044if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014046else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014047 ac_check_lib_save_LIBS=$LIBS
14048LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014054/* end confdefs.h. */
14055
Reid Spencera773bd52006-08-04 18:18:08 +000014056/* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014059#ifdef __cplusplus
14060extern "C"
14061#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014062char pthread_mutex_init ();
14063int
14064main ()
14065{
Reid Spencera773bd52006-08-04 18:18:08 +000014066return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014067 ;
14068 return 0;
14069}
14070_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071rm -f conftest.$ac_objext conftest$ac_exeext
14072if { (ac_try="$ac_link"
14073case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089esac
14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014105 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112
Bill Wendlingebcceee2009-04-18 11:20:33 +000014113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014115LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14118echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14119if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014120 cat >>confdefs.h <<_ACEOF
14121#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014122_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014123
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014124 LIBS="-lpthread $LIBS"
14125
Reid Spencer22177fe2005-07-12 15:24:20 +000014126fi
14127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14129echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14130if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014132else
14133 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014139/* end confdefs.h. */
14140
Reid Spencera773bd52006-08-04 18:18:08 +000014141/* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014144#ifdef __cplusplus
14145extern "C"
14146#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014147char pthread_mutex_lock ();
14148int
14149main ()
14150{
Reid Spencera773bd52006-08-04 18:18:08 +000014151return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014152 ;
14153 return 0;
14154}
14155_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014156for ac_lib in '' pthread; do
14157 if test -z "$ac_lib"; then
14158 ac_res="none required"
14159 else
14160 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014162 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163 rm -f conftest.$ac_objext conftest$ac_exeext
14164if { (ac_try="$ac_link"
14165case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168esac
14169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191esac
14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202
Brian Gaeke5f268f72003-12-05 19:29:01 +000014203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204
Bill Wendlingebcceee2009-04-18 11:20:33 +000014205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206 conftest$ac_exeext
14207 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014208 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014209fi
Reid Spencera773bd52006-08-04 18:18:08 +000014210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14212 :
Reid Spencera773bd52006-08-04 18:18:08 +000014213else
14214 ac_cv_search_pthread_mutex_lock=no
14215fi
14216rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014217LIBS=$ac_func_search_save_LIBS
14218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014219{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14220echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014221ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225cat >>confdefs.h <<\_ACEOF
14226#define HAVE_PTHREAD_MUTEX_LOCK 1
14227_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014228
14229fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14232echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14233if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014235else
14236 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237cat >conftest.$ac_ext <<_ACEOF
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014242/* end confdefs.h. */
14243
14244/* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14247#ifdef __cplusplus
14248extern "C"
14249#endif
14250char pthread_rwlock_init ();
14251int
14252main ()
14253{
14254return pthread_rwlock_init ();
14255 ;
14256 return 0;
14257}
14258_ACEOF
14259for ac_lib in '' pthread; do
14260 if test -z "$ac_lib"; then
14261 ac_res="none required"
14262 else
14263 ac_res=-l$ac_lib
14264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14265 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 rm -f conftest.$ac_objext conftest$ac_exeext
14267if { (ac_try="$ac_link"
14268case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271esac
14272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest$ac_exeext'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294esac
14295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014300 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301else
14302 echo "$as_me: failed program was:" >&5
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
14305
Owen Andersonde8aed22009-06-16 18:20:20 +000014306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307
Owen Andersonde8aed22009-06-16 18:20:20 +000014308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309 conftest$ac_exeext
14310 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014311 break
14312fi
14313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14315 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014316else
14317 ac_cv_search_pthread_rwlock_init=no
14318fi
14319rm conftest.$ac_ext
14320LIBS=$ac_func_search_save_LIBS
14321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14323echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014324ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014325if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328cat >>confdefs.h <<\_ACEOF
14329#define HAVE_PTHREAD_RWLOCK_INIT 1
14330_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014331
14332fi
14333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14335echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14336if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014338else
14339 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014345/* end confdefs.h. */
14346
14347/* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350#ifdef __cplusplus
14351extern "C"
14352#endif
14353char pthread_getspecific ();
14354int
14355main ()
14356{
14357return pthread_getspecific ();
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362for ac_lib in '' pthread; do
14363 if test -z "$ac_lib"; then
14364 ac_res="none required"
14365 else
14366 ac_res=-l$ac_lib
14367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14368 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369 rm -f conftest.$ac_objext conftest$ac_exeext
14370if { (ac_try="$ac_link"
14371case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387esac
14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014403 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408
Owen Anderson27fcfe12009-06-25 23:10:26 +000014409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410
Owen Anderson27fcfe12009-06-25 23:10:26 +000014411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412 conftest$ac_exeext
14413 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014414 break
14415fi
14416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14418 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014419else
14420 ac_cv_search_pthread_getspecific=no
14421fi
14422rm conftest.$ac_ext
14423LIBS=$ac_func_search_save_LIBS
14424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014425{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14426echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014427ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431cat >>confdefs.h <<\_ACEOF
14432#define HAVE_PTHREAD_GETSPECIFIC 1
14433_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014434
14435fi
14436
Reid Spencer0a262ba2005-08-24 10:07:20 +000014437fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014438
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014439
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014440# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014442 withval=$with_udis86;
14443 USE_UDIS86=1
14444
14445 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014446 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014447 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14448 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449
14450{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14451echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14452if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014454else
14455 ac_check_lib_save_LIBS=$LIBS
14456LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014462/* end confdefs.h. */
14463
14464/* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467#ifdef __cplusplus
14468extern "C"
14469#endif
14470char ud_init ();
14471int
14472main ()
14473{
14474return ud_init ();
14475 ;
14476 return 0;
14477}
14478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479rm -f conftest.$ac_objext conftest$ac_exeext
14480if { (ac_try="$ac_link"
14481case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484esac
14485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497esac
14498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507esac
14508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014513 ac_cv_lib_udis86_ud_init=yes
14514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520
Bill Wendlingebcceee2009-04-18 11:20:33 +000014521rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014523LIBS=$ac_check_lib_save_LIBS
14524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14526echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14527if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014528 cat >>confdefs.h <<_ACEOF
14529#define HAVE_LIBUDIS86 1
14530_ACEOF
14531
14532 LIBS="-ludis86 $LIBS"
14533
14534else
14535
14536 echo "Error! You need to have libudis86 around."
14537 exit -1
14538
14539fi
14540
14541
14542else
14543 USE_UDIS86=0
14544
14545fi
14546
14547
14548cat >>confdefs.h <<_ACEOF
14549#define USE_UDIS86 $USE_UDIS86
14550_ACEOF
14551
14552
14553
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014554# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014556 withval=$with_oprofile;
14557 USE_OPROFILE=1
14558
14559 case "$withval" in
14560 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014561 no) llvm_cv_oppath=
14562 USE_OPROFILE=0
14563 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014564 *) llvm_cv_oppath="${withval}/lib/oprofile"
14565 CPPFLAGS="-I${withval}/include";;
14566 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014567 if test -n "$llvm_cv_oppath" ; then
14568 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14570echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14571if test "${ac_cv_search_bfd_init+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014573else
14574 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575cat >conftest.$ac_ext <<_ACEOF
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014580/* end confdefs.h. */
14581
14582/* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585#ifdef __cplusplus
14586extern "C"
14587#endif
14588char bfd_init ();
14589int
14590main ()
14591{
14592return bfd_init ();
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597for ac_lib in '' bfd; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14600 else
14601 ac_res=-l$ac_lib
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14603 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604 rm -f conftest.$ac_objext conftest$ac_exeext
14605if { (ac_try="$ac_link"
14606case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609esac
14610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632esac
14633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014638 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014646rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014647 conftest$ac_exeext
14648 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014649 break
14650fi
14651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652if test "${ac_cv_search_bfd_init+set}" = set; then
14653 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014654else
14655 ac_cv_search_bfd_init=no
14656fi
14657rm conftest.$ac_ext
14658LIBS=$ac_func_search_save_LIBS
14659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14661echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014662ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14665
14666fi
14667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14669echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14670if test "${ac_cv_search_op_open_agent+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014672else
14673 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014679/* end confdefs.h. */
14680
14681/* Override any GCC internal prototype to avoid an error.
14682 Use char because int might match the return type of a GCC
14683 builtin and then its argument prototype would still apply. */
14684#ifdef __cplusplus
14685extern "C"
14686#endif
14687char op_open_agent ();
14688int
14689main ()
14690{
14691return op_open_agent ();
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696for ac_lib in '' opagent; do
14697 if test -z "$ac_lib"; then
14698 ac_res="none required"
14699 else
14700 ac_res=-l$ac_lib
14701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14702 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703 rm -f conftest.$ac_objext conftest$ac_exeext
14704if { (ac_try="$ac_link"
14705case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721esac
14722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try='test -s conftest$ac_exeext'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014737 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014738else
14739 echo "$as_me: failed program was:" >&5
14740sed 's/^/| /' conftest.$ac_ext >&5
14741
14742
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014744
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014745rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014746 conftest$ac_exeext
14747 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014748 break
14749fi
14750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014751if test "${ac_cv_search_op_open_agent+set}" = set; then
14752 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014753else
14754 ac_cv_search_op_open_agent=no
14755fi
14756rm conftest.$ac_ext
14757LIBS=$ac_func_search_save_LIBS
14758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14760echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014761ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014762if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14764
14765else
14766
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014767 echo "Error! You need to have libopagent around."
14768 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014769
14770fi
14771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772 if test "${ac_cv_header_opagent_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14774echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14775if test "${ac_cv_header_opagent_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777fi
14778{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14779echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14780else
14781 # Is the header compilable?
14782{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14783echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14784cat >conftest.$ac_ext <<_ACEOF
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790$ac_includes_default
14791#include <opagent.h>
14792_ACEOF
14793rm -f conftest.$ac_objext
14794if { (ac_try="$ac_compile"
14795case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798esac
14799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_header_compiler=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832 ac_header_compiler=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837echo "${ECHO_T}$ac_header_compiler" >&6; }
14838
14839# Is the header present?
14840{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14841echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14842cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848#include <opagent.h>
14849_ACEOF
14850if { (ac_try="$ac_cpp conftest.$ac_ext"
14851case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854esac
14855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } >/dev/null; then
14863 if test -s conftest.err; then
14864 ac_cpp_err=$ac_c_preproc_warn_flag
14865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 else
14867 ac_cpp_err=
14868 fi
14869else
14870 ac_cpp_err=yes
14871fi
14872if test -z "$ac_cpp_err"; then
14873 ac_header_preproc=yes
14874else
14875 echo "$as_me: failed program was:" >&5
14876sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 ac_header_preproc=no
14879fi
14880
14881rm -f conftest.err conftest.$ac_ext
14882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14883echo "${ECHO_T}$ac_header_preproc" >&6; }
14884
14885# So? What about this header?
14886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14887 yes:no: )
14888 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14889echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14891echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14892 ac_header_preproc=yes
14893 ;;
14894 no:yes:* )
14895 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14896echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14898echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14900echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14902echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14904echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14906echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14907 ( cat <<\_ASBOX
14908## ----------------------------------- ##
14909## Report this to llvmbugs@cs.uiuc.edu ##
14910## ----------------------------------- ##
14911_ASBOX
14912 ) | sed "s/^/$as_me: WARNING: /" >&2
14913 ;;
14914esac
14915{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14916echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14917if test "${ac_cv_header_opagent_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919else
14920 ac_cv_header_opagent_h=$ac_header_preproc
14921fi
14922{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14923echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14924
14925fi
14926if test $ac_cv_header_opagent_h = yes; then
14927 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014928else
14929
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014930 echo "Error! You need to have opagent.h around."
14931 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014932
14933fi
14934
14935
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014936 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014937
14938else
14939
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014940 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014941
14942
14943fi
14944
14945
14946cat >>confdefs.h <<_ACEOF
14947#define USE_OPROFILE $USE_OPROFILE
14948_ACEOF
14949
14950
14951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952
14953
14954
14955
14956
Reid Spencer59473af2004-12-25 07:31:29 +000014957ac_header_dirent=no
14958for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14960{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14961echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965 cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014970/* end confdefs.h. */
14971#include <sys/types.h>
14972#include <$ac_hdr>
14973
14974int
14975main ()
14976{
14977if ((DIR *) 0)
14978return 0;
14979 ;
14980 return 0;
14981}
14982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014983rm -f conftest.$ac_objext
14984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015017 eval "$as_ac_Header=yes"
15018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024
Reid Spencera773bd52006-08-04 18:18:08 +000015025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015027ac_res=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029echo "${ECHO_T}$ac_res" >&6; }
15030if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015032#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015033_ACEOF
15034
15035ac_header_dirent=$ac_hdr; break
15036fi
15037
15038done
15039# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15040if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15042echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15043if test "${ac_cv_search_opendir+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015045else
15046 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047cat >conftest.$ac_ext <<_ACEOF
15048/* confdefs.h. */
15049_ACEOF
15050cat confdefs.h >>conftest.$ac_ext
15051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015052/* end confdefs.h. */
15053
Reid Spencera773bd52006-08-04 18:18:08 +000015054/* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015057#ifdef __cplusplus
15058extern "C"
15059#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015060char opendir ();
15061int
15062main ()
15063{
Reid Spencera773bd52006-08-04 18:18:08 +000015064return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015065 ;
15066 return 0;
15067}
15068_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015069for ac_lib in '' dir; do
15070 if test -z "$ac_lib"; then
15071 ac_res="none required"
15072 else
15073 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015075 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 rm -f conftest.$ac_objext conftest$ac_exeext
15077if { (ac_try="$ac_link"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest$ac_exeext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015110 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015111else
15112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115
Reid Spencer59473af2004-12-25 07:31:29 +000015116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117
Bill Wendlingebcceee2009-04-18 11:20:33 +000015118rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119 conftest$ac_exeext
15120 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015121 break
Reid Spencer59473af2004-12-25 07:31:29 +000015122fi
Reid Spencera773bd52006-08-04 18:18:08 +000015123done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015124if test "${ac_cv_search_opendir+set}" = set; then
15125 :
Reid Spencera773bd52006-08-04 18:18:08 +000015126else
15127 ac_cv_search_opendir=no
15128fi
15129rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015130LIBS=$ac_func_search_save_LIBS
15131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15133echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015134ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015135if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015137
15138fi
15139
15140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15142echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15143if test "${ac_cv_search_opendir+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015145else
15146 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015147cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015152/* end confdefs.h. */
15153
Reid Spencera773bd52006-08-04 18:18:08 +000015154/* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015157#ifdef __cplusplus
15158extern "C"
15159#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015160char opendir ();
15161int
15162main ()
15163{
Reid Spencera773bd52006-08-04 18:18:08 +000015164return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015165 ;
15166 return 0;
15167}
15168_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015169for ac_lib in '' x; do
15170 if test -z "$ac_lib"; then
15171 ac_res="none required"
15172 else
15173 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015175 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176 rm -f conftest.$ac_objext conftest$ac_exeext
15177if { (ac_try="$ac_link"
15178case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_link") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015210 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215
Reid Spencer59473af2004-12-25 07:31:29 +000015216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217
Bill Wendlingebcceee2009-04-18 11:20:33 +000015218rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015219 conftest$ac_exeext
15220 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015221 break
Reid Spencer59473af2004-12-25 07:31:29 +000015222fi
Reid Spencera773bd52006-08-04 18:18:08 +000015223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015224if test "${ac_cv_search_opendir+set}" = set; then
15225 :
Reid Spencera773bd52006-08-04 18:18:08 +000015226else
15227 ac_cv_search_opendir=no
15228fi
15229rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015230LIBS=$ac_func_search_save_LIBS
15231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015232{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15233echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015234ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015237
15238fi
15239
15240fi
15241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15243echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15244if test "${ac_cv_header_mmap_anon+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015246else
15247 ac_ext=c
15248ac_cpp='$CPP $CPPFLAGS'
15249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015258/* end confdefs.h. */
15259#include <sys/mman.h>
15260#include <unistd.h>
15261#include <fcntl.h>
15262int
15263main ()
15264{
15265mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15266 ;
15267 return 0;
15268}
15269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270rm -f conftest.$ac_objext
15271if { (ac_try="$ac_compile"
15272case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_compile") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298esac
15299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_try") 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015304 ac_cv_header_mmap_anon=yes
15305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015306 echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015311
Reid Spencera773bd52006-08-04 18:18:08 +000015312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015313 ac_ext=c
15314ac_cpp='$CPP $CPPFLAGS'
15315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317ac_compiler_gnu=$ac_cv_c_compiler_gnu
15318
15319
15320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15322echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015323if test "$ac_cv_header_mmap_anon" = yes; then
15324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015325cat >>confdefs.h <<\_ACEOF
15326#define HAVE_MMAP_ANONYMOUS 1
15327_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015328
15329fi
15330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15332echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15333if test "${ac_cv_header_stat_broken+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015341/* end confdefs.h. */
15342#include <sys/types.h>
15343#include <sys/stat.h>
15344
Reid Spencera773bd52006-08-04 18:18:08 +000015345#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015346# if S_ISBLK (S_IFDIR)
15347You lose.
15348# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015349#endif
15350
Reid Spencera773bd52006-08-04 18:18:08 +000015351#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352# if S_ISBLK (S_IFCHR)
15353You lose.
15354# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015355#endif
15356
Reid Spencera773bd52006-08-04 18:18:08 +000015357#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358# if S_ISLNK (S_IFREG)
15359You lose.
15360# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015361#endif
15362
Reid Spencera773bd52006-08-04 18:18:08 +000015363#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364# if S_ISSOCK (S_IFREG)
15365You lose.
15366# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015367#endif
15368
15369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15371 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015372 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015373else
15374 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376rm -f conftest*
15377
Reid Spencer59473af2004-12-25 07:31:29 +000015378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015379{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15380echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015381if test $ac_cv_header_stat_broken = yes; then
15382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383cat >>confdefs.h <<\_ACEOF
15384#define STAT_MACROS_BROKEN 1
15385_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015386
15387fi
15388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15390echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15391if test "${ac_cv_header_stdc+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394 cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015400#include <stdlib.h>
15401#include <stdarg.h>
15402#include <string.h>
15403#include <float.h>
15404
John Criswell0c38eaf2003-09-10 15:17:25 +000015405int
15406main ()
15407{
15408
15409 ;
15410 return 0;
15411}
John Criswell7a73b802003-06-30 21:59:07 +000015412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015413rm -f conftest.$ac_objext
15414if { (ac_try="$ac_compile"
15415case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015447 ac_cv_header_stdc=yes
15448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015454
Reid Spencera773bd52006-08-04 18:18:08 +000015455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015456
15457if test $ac_cv_header_stdc = yes; then
15458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459 cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015465#include <string.h>
15466
15467_ACEOF
15468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469 $EGREP "memchr" >/dev/null 2>&1; then
15470 :
John Criswell7a73b802003-06-30 21:59:07 +000015471else
15472 ac_cv_header_stdc=no
15473fi
15474rm -f conftest*
15475
15476fi
15477
15478if test $ac_cv_header_stdc = yes; then
15479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015486#include <stdlib.h>
15487
15488_ACEOF
15489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015490 $EGREP "free" >/dev/null 2>&1; then
15491 :
John Criswell7a73b802003-06-30 21:59:07 +000015492else
15493 ac_cv_header_stdc=no
15494fi
15495rm -f conftest*
15496
15497fi
15498
15499if test $ac_cv_header_stdc = yes; then
15500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015501 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015502 :
15503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504 cat >conftest.$ac_ext <<_ACEOF
15505/* confdefs.h. */
15506_ACEOF
15507cat confdefs.h >>conftest.$ac_ext
15508cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015510#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015511#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015512#if ((' ' & 0x0FF) == 0x020)
15513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15515#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015516# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015517 (('a' <= (c) && (c) <= 'i') \
15518 || ('j' <= (c) && (c) <= 'r') \
15519 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15521#endif
15522
15523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15524int
15525main ()
15526{
15527 int i;
15528 for (i = 0; i < 256; i++)
15529 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015531 return 2;
15532 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015533}
15534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535rm -f conftest$ac_exeext
15536if { (ac_try="$ac_link"
15537case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 :
John Criswell7a73b802003-06-30 21:59:07 +000015556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557 echo "$as_me: program exited with status $ac_status" >&5
15558echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561( exit $ac_status )
15562ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564rm -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 +000015565fi
15566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567
John Criswell7a73b802003-06-30 21:59:07 +000015568fi
15569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015570{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15571echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015572if test $ac_cv_header_stdc = yes; then
15573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015574cat >>confdefs.h <<\_ACEOF
15575#define STDC_HEADERS 1
15576_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015577
15578fi
15579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015580{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15581echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15582if test "${ac_cv_header_sys_wait_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015585 cat >conftest.$ac_ext <<_ACEOF
15586/* confdefs.h. */
15587_ACEOF
15588cat confdefs.h >>conftest.$ac_ext
15589cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015591#include <sys/types.h>
15592#include <sys/wait.h>
15593#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015594# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015595#endif
15596#ifndef WIFEXITED
15597# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15598#endif
15599
John Criswell7a73b802003-06-30 21:59:07 +000015600int
15601main ()
15602{
15603 int s;
15604 wait (&s);
15605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15606 ;
15607 return 0;
15608}
15609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015610rm -f conftest.$ac_objext
15611if { (ac_try="$ac_compile"
15612case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015644 ac_cv_header_sys_wait_h=yes
15645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015651
Reid Spencera773bd52006-08-04 18:18:08 +000015652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015654{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15655echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015656if test $ac_cv_header_sys_wait_h = yes; then
15657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015658cat >>confdefs.h <<\_ACEOF
15659#define HAVE_SYS_WAIT_H 1
15660_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015661
15662fi
15663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15665echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15666if test "${ac_cv_header_time+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015669 cat >conftest.$ac_ext <<_ACEOF
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015674/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015675#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015676#include <sys/time.h>
15677#include <time.h>
15678
15679int
15680main ()
15681{
15682if ((struct tm *) 0)
15683return 0;
15684 ;
15685 return 0;
15686}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015688rm -f conftest.$ac_objext
15689if { (ac_try="$ac_compile"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
15694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($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_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015722 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015729
Reid Spencera773bd52006-08-04 18:18:08 +000015730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015732{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15733echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015734if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015736cat >>confdefs.h <<\_ACEOF
15737#define TIME_WITH_SYS_TIME 1
15738_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015739
15740fi
15741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015743
15744
15745
15746
15747
15748
Reid Spencer59473af2004-12-25 07:31:29 +000015749for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015750do
15751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757fi
15758ac_res=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result: $ac_res" >&5
15760echo "${ECHO_T}$ac_res" >&6; }
15761else
15762 # Is the header compilable?
15763{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15765cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771$ac_includes_default
15772#include <$ac_header>
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (ac_try="$ac_compile"
15776case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802esac
15803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_try") 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_header_compiler=yes
15809else
15810 echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_header_compiler=no
15814fi
15815
15816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818echo "${ECHO_T}$ac_header_compiler" >&6; }
15819
15820# Is the header present?
15821{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15823cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829#include <$ac_header>
15830_ACEOF
15831if { (ac_try="$ac_cpp conftest.$ac_ext"
15832case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } >/dev/null; then
15844 if test -s conftest.err; then
15845 ac_cpp_err=$ac_c_preproc_warn_flag
15846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15847 else
15848 ac_cpp_err=
15849 fi
15850else
15851 ac_cpp_err=yes
15852fi
15853if test -z "$ac_cpp_err"; then
15854 ac_header_preproc=yes
15855else
15856 echo "$as_me: failed program was:" >&5
15857sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 ac_header_preproc=no
15860fi
15861
15862rm -f conftest.err conftest.$ac_ext
15863{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15864echo "${ECHO_T}$ac_header_preproc" >&6; }
15865
15866# So? What about this header?
15867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15868 yes:no: )
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15872echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15873 ac_header_preproc=yes
15874 ;;
15875 no:yes:* )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15881echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15883echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15887echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15888 ( cat <<\_ASBOX
15889## ----------------------------------- ##
15890## Report this to llvmbugs@cs.uiuc.edu ##
15891## ----------------------------------- ##
15892_ASBOX
15893 ) | sed "s/^/$as_me: WARNING: /" >&2
15894 ;;
15895esac
15896{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15900else
15901 eval "$as_ac_Header=\$ac_header_preproc"
15902fi
15903ac_res=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905echo "${ECHO_T}$ac_res" >&6; }
15906
15907fi
15908if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015909 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015911_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015912
15913fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015914
Reid Spencer59473af2004-12-25 07:31:29 +000015915done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015917
15918
15919
15920
15921
15922
Douglas Gregor071d73d2009-05-18 17:21:34 +000015923for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015924do
15925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931fi
15932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
15935else
15936 # Is the header compilable?
15937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945$ac_includes_default
15946#include <$ac_header>
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (ac_try="$ac_compile"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_header_compiler=no
15988fi
15989
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992echo "${ECHO_T}$ac_header_compiler" >&6; }
15993
15994# Is the header present?
15995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#include <$ac_header>
16004_ACEOF
16005if { (ac_try="$ac_cpp conftest.$ac_ext"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_header_preproc=no
16034fi
16035
16036rm -f conftest.err conftest.$ac_ext
16037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038echo "${ECHO_T}$ac_header_preproc" >&6; }
16039
16040# So? What about this header?
16041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16048 ;;
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
16063## ----------------------------------- ##
16064## Report this to llvmbugs@cs.uiuc.edu ##
16065## ----------------------------------- ##
16066_ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16068 ;;
16069esac
16070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16076fi
16077ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079echo "${ECHO_T}$ac_res" >&6; }
16080
16081fi
16082if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016085_ACEOF
16086
16087fi
16088
16089done
16090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016091
16092
Douglas Gregor071d73d2009-05-18 17:21:34 +000016093for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016094do
16095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101fi
16102ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104echo "${ECHO_T}$ac_res" >&6; }
16105else
16106 # Is the header compilable?
16107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116#include <$ac_header>
16117_ACEOF
16118rm -f conftest.$ac_objext
16119if { (ac_try="$ac_compile"
16120case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123esac
16124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157 ac_header_compiler=no
16158fi
16159
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162echo "${ECHO_T}$ac_header_compiler" >&6; }
16163
16164# Is the header present?
16165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
16174_ACEOF
16175if { (ac_try="$ac_cpp conftest.$ac_ext"
16176case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16193 fi
16194else
16195 ac_cpp_err=yes
16196fi
16197if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_header_preproc=no
16204fi
16205
16206rm -f conftest.err conftest.$ac_ext
16207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208echo "${ECHO_T}$ac_header_preproc" >&6; }
16209
16210# So? What about this header?
16211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16218 ;;
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ( cat <<\_ASBOX
16233## ----------------------------------- ##
16234## Report this to llvmbugs@cs.uiuc.edu ##
16235## ----------------------------------- ##
16236_ASBOX
16237 ) | sed "s/^/$as_me: WARNING: /" >&2
16238 ;;
16239esac
16240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 eval "$as_ac_Header=\$ac_header_preproc"
16246fi
16247ac_res=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249echo "${ECHO_T}$ac_res" >&6; }
16250
16251fi
16252if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016253 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016255_ACEOF
16256
16257fi
16258
16259done
Reid Spencer59473af2004-12-25 07:31:29 +000016260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016261
16262
16263
16264
Reid Spencerbe3e4192007-08-17 05:45:26 +000016265for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016266do
16267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273fi
16274ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276echo "${ECHO_T}$ac_res" >&6; }
16277else
16278 # Is the header compilable?
16279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287$ac_includes_default
16288#include <$ac_header>
16289_ACEOF
16290rm -f conftest.$ac_objext
16291if { (ac_try="$ac_compile"
16292case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295esac
16296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16325else
16326 echo "$as_me: failed program was:" >&5
16327sed 's/^/| /' conftest.$ac_ext >&5
16328
16329 ac_header_compiler=no
16330fi
16331
16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334echo "${ECHO_T}$ac_header_compiler" >&6; }
16335
16336# Is the header present?
16337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16339cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345#include <$ac_header>
16346_ACEOF
16347if { (ac_try="$ac_cpp conftest.$ac_ext"
16348case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16351esac
16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16354 ac_status=$?
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } >/dev/null; then
16360 if test -s conftest.err; then
16361 ac_cpp_err=$ac_c_preproc_warn_flag
16362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16363 else
16364 ac_cpp_err=
16365 fi
16366else
16367 ac_cpp_err=yes
16368fi
16369if test -z "$ac_cpp_err"; then
16370 ac_header_preproc=yes
16371else
16372 echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
16375 ac_header_preproc=no
16376fi
16377
16378rm -f conftest.err conftest.$ac_ext
16379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380echo "${ECHO_T}$ac_header_preproc" >&6; }
16381
16382# So? What about this header?
16383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 yes:no: )
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc=yes
16390 ;;
16391 no:yes:* )
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16404 ( cat <<\_ASBOX
16405## ----------------------------------- ##
16406## Report this to llvmbugs@cs.uiuc.edu ##
16407## ----------------------------------- ##
16408_ASBOX
16409 ) | sed "s/^/$as_me: WARNING: /" >&2
16410 ;;
16411esac
16412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416else
16417 eval "$as_ac_Header=\$ac_header_preproc"
16418fi
16419ac_res=`eval echo '${'$as_ac_Header'}'`
16420 { echo "$as_me:$LINENO: result: $ac_res" >&5
16421echo "${ECHO_T}$ac_res" >&6; }
16422
16423fi
16424if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016425 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016427_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016428
16429fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016430
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016431done
16432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016433
16434
16435
16436
Douglas Gregor01746742009-05-11 18:05:52 +000016437for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016438do
16439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445fi
16446ac_res=`eval echo '${'$as_ac_Header'}'`
16447 { echo "$as_me:$LINENO: result: $ac_res" >&5
16448echo "${ECHO_T}$ac_res" >&6; }
16449else
16450 # Is the header compilable?
16451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16453cat >conftest.$ac_ext <<_ACEOF
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
16459$ac_includes_default
16460#include <$ac_header>
16461_ACEOF
16462rm -f conftest.$ac_objext
16463if { (ac_try="$ac_compile"
16464case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467esac
16468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_compile") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16477 { (case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480esac
16481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_try") 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490esac
16491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_header_compiler=yes
16497else
16498 echo "$as_me: failed program was:" >&5
16499sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 ac_header_compiler=no
16502fi
16503
16504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16506echo "${ECHO_T}$ac_header_compiler" >&6; }
16507
16508# Is the header present?
16509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16511cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517#include <$ac_header>
16518_ACEOF
16519if { (ac_try="$ac_cpp conftest.$ac_ext"
16520case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523esac
16524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } >/dev/null; then
16532 if test -s conftest.err; then
16533 ac_cpp_err=$ac_c_preproc_warn_flag
16534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16535 else
16536 ac_cpp_err=
16537 fi
16538else
16539 ac_cpp_err=yes
16540fi
16541if test -z "$ac_cpp_err"; then
16542 ac_header_preproc=yes
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_header_preproc=no
16548fi
16549
16550rm -f conftest.err conftest.$ac_ext
16551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16552echo "${ECHO_T}$ac_header_preproc" >&6; }
16553
16554# So? What about this header?
16555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16556 yes:no: )
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16561 ac_header_preproc=yes
16562 ;;
16563 no:yes:* )
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16576 ( cat <<\_ASBOX
16577## ----------------------------------- ##
16578## Report this to llvmbugs@cs.uiuc.edu ##
16579## ----------------------------------- ##
16580_ASBOX
16581 ) | sed "s/^/$as_me: WARNING: /" >&2
16582 ;;
16583esac
16584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588else
16589 eval "$as_ac_Header=\$ac_header_preproc"
16590fi
16591ac_res=`eval echo '${'$as_ac_Header'}'`
16592 { echo "$as_me:$LINENO: result: $ac_res" >&5
16593echo "${ECHO_T}$ac_res" >&6; }
16594
16595fi
16596if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016597 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016599_ACEOF
16600
16601fi
16602
16603done
16604
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016605
16606for ac_header in valgrind/valgrind.h
16607do
16608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614fi
16615ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617echo "${ECHO_T}$ac_res" >&6; }
16618else
16619 # Is the header compilable?
16620{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628$ac_includes_default
16629#include <$ac_header>
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (ac_try="$ac_compile"
16633case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16666else
16667 echo "$as_me: failed program was:" >&5
16668sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 ac_header_compiler=no
16671fi
16672
16673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675echo "${ECHO_T}$ac_header_compiler" >&6; }
16676
16677# Is the header present?
16678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686#include <$ac_header>
16687_ACEOF
16688if { (ac_try="$ac_cpp conftest.$ac_ext"
16689case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16704 else
16705 ac_cpp_err=
16706 fi
16707else
16708 ac_cpp_err=yes
16709fi
16710if test -z "$ac_cpp_err"; then
16711 ac_header_preproc=yes
16712else
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_header_preproc=no
16717fi
16718
16719rm -f conftest.err conftest.$ac_ext
16720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721echo "${ECHO_T}$ac_header_preproc" >&6; }
16722
16723# So? What about this header?
16724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16731 ;;
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16745 ( cat <<\_ASBOX
16746## ----------------------------------- ##
16747## Report this to llvmbugs@cs.uiuc.edu ##
16748## ----------------------------------- ##
16749_ASBOX
16750 ) | sed "s/^/$as_me: WARNING: /" >&2
16751 ;;
16752esac
16753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16759fi
16760ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762echo "${ECHO_T}$ac_res" >&6; }
16763
16764fi
16765if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768_ACEOF
16769
16770fi
16771
16772done
16773
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016774
16775for ac_header in fenv.h
16776do
16777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783fi
16784ac_res=`eval echo '${'$as_ac_Header'}'`
16785 { echo "$as_me:$LINENO: result: $ac_res" >&5
16786echo "${ECHO_T}$ac_res" >&6; }
16787else
16788 # Is the header compilable?
16789{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16791cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797$ac_includes_default
16798#include <$ac_header>
16799_ACEOF
16800rm -f conftest.$ac_objext
16801if { (ac_try="$ac_compile"
16802case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_compile") 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_header_compiler=yes
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ac_header_compiler=no
16840fi
16841
16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16844echo "${ECHO_T}$ac_header_compiler" >&6; }
16845
16846# Is the header present?
16847{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16849cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855#include <$ac_header>
16856_ACEOF
16857if { (ac_try="$ac_cpp conftest.$ac_ext"
16858case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } >/dev/null; then
16870 if test -s conftest.err; then
16871 ac_cpp_err=$ac_c_preproc_warn_flag
16872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16873 else
16874 ac_cpp_err=
16875 fi
16876else
16877 ac_cpp_err=yes
16878fi
16879if test -z "$ac_cpp_err"; then
16880 ac_header_preproc=yes
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 ac_header_preproc=no
16886fi
16887
16888rm -f conftest.err conftest.$ac_ext
16889{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16890echo "${ECHO_T}$ac_header_preproc" >&6; }
16891
16892# So? What about this header?
16893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16894 yes:no: )
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16899 ac_header_preproc=yes
16900 ;;
16901 no:yes:* )
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16914 ( cat <<\_ASBOX
16915## ----------------------------------- ##
16916## Report this to llvmbugs@cs.uiuc.edu ##
16917## ----------------------------------- ##
16918_ASBOX
16919 ) | sed "s/^/$as_me: WARNING: /" >&2
16920 ;;
16921esac
16922{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926else
16927 eval "$as_ac_Header=\$ac_header_preproc"
16928fi
16929ac_res=`eval echo '${'$as_ac_Header'}'`
16930 { echo "$as_me:$LINENO: result: $ac_res" >&5
16931echo "${ECHO_T}$ac_res" >&6; }
16932
16933fi
16934if test `eval echo '${'$as_ac_Header'}'` = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16937_ACEOF
16938
16939fi
16940
16941done
16942
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016943if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016944
16945for ac_header in pthread.h
16946do
16947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953fi
16954ac_res=`eval echo '${'$as_ac_Header'}'`
16955 { echo "$as_me:$LINENO: result: $ac_res" >&5
16956echo "${ECHO_T}$ac_res" >&6; }
16957else
16958 # Is the header compilable?
16959{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16960echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16961cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968#include <$ac_header>
16969_ACEOF
16970rm -f conftest.$ac_objext
16971if { (ac_try="$ac_compile"
16972case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_compile") 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 ac_header_compiler=yes
17005else
17006 echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_header_compiler=no
17010fi
17011
17012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17014echo "${ECHO_T}$ac_header_compiler" >&6; }
17015
17016# Is the header present?
17017{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17019cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025#include <$ac_header>
17026_ACEOF
17027if { (ac_try="$ac_cpp conftest.$ac_ext"
17028case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031esac
17032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } >/dev/null; then
17040 if test -s conftest.err; then
17041 ac_cpp_err=$ac_c_preproc_warn_flag
17042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17043 else
17044 ac_cpp_err=
17045 fi
17046else
17047 ac_cpp_err=yes
17048fi
17049if test -z "$ac_cpp_err"; then
17050 ac_header_preproc=yes
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055 ac_header_preproc=no
17056fi
17057
17058rm -f conftest.err conftest.$ac_ext
17059{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17060echo "${ECHO_T}$ac_header_preproc" >&6; }
17061
17062# So? What about this header?
17063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17064 yes:no: )
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17068echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17069 ac_header_preproc=yes
17070 ;;
17071 no:yes:* )
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17075echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17077echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17079echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17084 ( cat <<\_ASBOX
17085## ----------------------------------- ##
17086## Report this to llvmbugs@cs.uiuc.edu ##
17087## ----------------------------------- ##
17088_ASBOX
17089 ) | sed "s/^/$as_me: WARNING: /" >&2
17090 ;;
17091esac
17092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 eval "$as_ac_Header=\$ac_header_preproc"
17098fi
17099ac_res=`eval echo '${'$as_ac_Header'}'`
17100 { echo "$as_me:$LINENO: result: $ac_res" >&5
17101echo "${ECHO_T}$ac_res" >&6; }
17102
17103fi
17104if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017105 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017107_ACEOF
17108 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017109
17110else
17111 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017112
17113fi
17114
Reid Spencerbe3e4192007-08-17 05:45:26 +000017115done
Reid Spencer1000b732006-12-01 00:37:14 +000017116
17117else
17118 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017119
17120fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017121
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017122if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017123
17124
17125for ac_header in ffi.h ffi/ffi.h
17126do
17127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133fi
17134ac_res=`eval echo '${'$as_ac_Header'}'`
17135 { echo "$as_me:$LINENO: result: $ac_res" >&5
17136echo "${ECHO_T}$ac_res" >&6; }
17137else
17138 # Is the header compilable?
17139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17141cat >conftest.$ac_ext <<_ACEOF
17142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
17147$ac_includes_default
17148#include <$ac_header>
17149_ACEOF
17150rm -f conftest.$ac_objext
17151if { (ac_try="$ac_compile"
17152case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155esac
17156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest.$ac_objext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_header_compiler=yes
17185else
17186 echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 ac_header_compiler=no
17190fi
17191
17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194echo "${ECHO_T}$ac_header_compiler" >&6; }
17195
17196# Is the header present?
17197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17199cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205#include <$ac_header>
17206_ACEOF
17207if { (ac_try="$ac_cpp conftest.$ac_ext"
17208case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211esac
17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev/null; then
17220 if test -s conftest.err; then
17221 ac_cpp_err=$ac_c_preproc_warn_flag
17222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17223 else
17224 ac_cpp_err=
17225 fi
17226else
17227 ac_cpp_err=yes
17228fi
17229if test -z "$ac_cpp_err"; then
17230 ac_header_preproc=yes
17231else
17232 echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_header_preproc=no
17236fi
17237
17238rm -f conftest.err conftest.$ac_ext
17239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17240echo "${ECHO_T}$ac_header_preproc" >&6; }
17241
17242# So? What about this header?
17243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17244 yes:no: )
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17249 ac_header_preproc=yes
17250 ;;
17251 no:yes:* )
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17264 ( cat <<\_ASBOX
17265## ----------------------------------- ##
17266## Report this to llvmbugs@cs.uiuc.edu ##
17267## ----------------------------------- ##
17268_ASBOX
17269 ) | sed "s/^/$as_me: WARNING: /" >&2
17270 ;;
17271esac
17272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276else
17277 eval "$as_ac_Header=\$ac_header_preproc"
17278fi
17279ac_res=`eval echo '${'$as_ac_Header'}'`
17280 { echo "$as_me:$LINENO: result: $ac_res" >&5
17281echo "${ECHO_T}$ac_res" >&6; }
17282
17283fi
17284if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017285 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017287_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017288
17289fi
17290
17291done
17292
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017293fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017294
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017295
Eric Christopher654dee42010-06-22 21:01:04 +000017296for ac_header in CrashReporterClient.h
17297do
17298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304fi
17305ac_res=`eval echo '${'$as_ac_Header'}'`
17306 { echo "$as_me:$LINENO: result: $ac_res" >&5
17307echo "${ECHO_T}$ac_res" >&6; }
17308else
17309 # Is the header compilable?
17310{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17312cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318$ac_includes_default
17319#include <$ac_header>
17320_ACEOF
17321rm -f conftest.$ac_objext
17322if { (ac_try="$ac_compile"
17323case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17329 ac_status=$?
17330 grep -v '^ *+' conftest.er1 >conftest.err
17331 rm -f conftest.er1
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest.$ac_objext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_header_compiler=yes
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_header_compiler=no
17361fi
17362
17363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17365echo "${ECHO_T}$ac_header_compiler" >&6; }
17366
17367# Is the header present?
17368{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17370cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376#include <$ac_header>
17377_ACEOF
17378if { (ac_try="$ac_cpp conftest.$ac_ext"
17379case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382esac
17383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } >/dev/null; then
17391 if test -s conftest.err; then
17392 ac_cpp_err=$ac_c_preproc_warn_flag
17393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17394 else
17395 ac_cpp_err=
17396 fi
17397else
17398 ac_cpp_err=yes
17399fi
17400if test -z "$ac_cpp_err"; then
17401 ac_header_preproc=yes
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 ac_header_preproc=no
17407fi
17408
17409rm -f conftest.err conftest.$ac_ext
17410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17411echo "${ECHO_T}$ac_header_preproc" >&6; }
17412
17413# So? What about this header?
17414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17415 yes:no: )
17416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17420 ac_header_preproc=yes
17421 ;;
17422 no:yes:* )
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17435 ( cat <<\_ASBOX
17436## ----------------------------------- ##
17437## Report this to llvmbugs@cs.uiuc.edu ##
17438## ----------------------------------- ##
17439_ASBOX
17440 ) | sed "s/^/$as_me: WARNING: /" >&2
17441 ;;
17442esac
17443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447else
17448 eval "$as_ac_Header=\$ac_header_preproc"
17449fi
17450ac_res=`eval echo '${'$as_ac_Header'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452echo "${ECHO_T}$ac_res" >&6; }
17453
17454fi
17455if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17458_ACEOF
17459
17460fi
17461
17462done
17463
17464
Eric Christopher51e57132010-12-07 02:05:42 +000017465{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17466echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017467cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017473extern const char *__crashreporter_info__;
17474 int main() {
17475 __crashreporter_info__ = "test";
17476 return 0;
17477 }
Eric Christopher481d4022010-12-03 07:45:22 +000017478
Eric Christopher481d4022010-12-03 07:45:22 +000017479_ACEOF
17480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017514 { echo "$as_me:$LINENO: result: yes" >&5
17515echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017516
17517cat >>confdefs.h <<\_ACEOF
17518#define HAVE_CRASHREPORTER_INFO 1
17519_ACEOF
17520
Eric Christopher51e57132010-12-07 02:05:42 +000017521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 { echo "$as_me:$LINENO: result: no" >&5
17526echo "${ECHO_T}no" >&6; }
17527
17528cat >>confdefs.h <<\_ACEOF
17529#define HAVE_CRASHREPORTER_INFO 0
17530_ACEOF
17531
Eric Christopher481d4022010-12-03 07:45:22 +000017532fi
Eric Christopher654dee42010-06-22 21:01:04 +000017533
Eric Christopher51e57132010-12-07 02:05:42 +000017534rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536
17537
Reid Spencer8085cff2005-01-16 02:58:39 +000017538
Torok Edwin871384f2010-01-26 08:50:50 +000017539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017540 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17541echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17542if test "${ac_cv_huge_val_sanity+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017544else
17545
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017546 ac_ext=cpp
17547ac_cpp='$CXXCPP $CPPFLAGS'
17548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017551
Eric Christopherc7718502010-03-02 05:06:54 +000017552 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017553 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017554 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017555 ac_cv_huge_val_sanity=yes
17556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017557 cat >conftest.$ac_ext <<_ACEOF
17558/* confdefs.h. */
17559_ACEOF
17560cat confdefs.h >>conftest.$ac_ext
17561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017562/* end confdefs.h. */
17563#include <math.h>
17564int
17565main ()
17566{
17567double x = HUGE_VAL; return x != x;
17568 ;
17569 return 0;
17570}
17571_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017572rm -f conftest$ac_exeext
17573if { (ac_try="$ac_link"
17574case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_link") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586esac
17587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017592 ac_cv_huge_val_sanity=yes
17593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017594 echo "$as_me: program exited with status $ac_status" >&5
17595echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598( exit $ac_status )
17599ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601rm -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 +000017602fi
17603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017604
Eric Christopherc7718502010-03-02 05:06:54 +000017605 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017606 ac_ext=c
17607ac_cpp='$CPP $CPPFLAGS'
17608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610ac_compiler_gnu=$ac_cv_c_compiler_gnu
17611
17612
17613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017614{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17615echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017616 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17617
17618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619{ echo "$as_me:$LINENO: checking for pid_t" >&5
17620echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17621if test "${ac_cv_type_pid_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623else
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
17630$ac_includes_default
17631typedef pid_t ac__type_new_;
17632int
17633main ()
17634{
17635if ((ac__type_new_ *) 0)
17636 return 0;
17637if (sizeof (ac__type_new_))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (ac_try="$ac_compile"
17645case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_pid_t=yes
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682 ac_cv_type_pid_t=no
17683fi
17684
17685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17686fi
17687{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17688echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17689if test $ac_cv_type_pid_t = yes; then
17690 :
John Criswell7a73b802003-06-30 21:59:07 +000017691else
17692
17693cat >>confdefs.h <<_ACEOF
17694#define pid_t int
17695_ACEOF
17696
17697fi
17698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017699{ echo "$as_me:$LINENO: checking for size_t" >&5
17700echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17701if test "${ac_cv_type_size_t+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704 cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h. */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h. */
17710$ac_includes_default
17711typedef size_t ac__type_new_;
17712int
17713main ()
17714{
17715if ((ac__type_new_ *) 0)
17716 return 0;
17717if (sizeof (ac__type_new_))
17718 return 0;
17719 ;
17720 return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext
17724if { (ac_try="$ac_compile"
17725case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728esac
17729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17751esac
17752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_type_size_t=yes
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762 ac_cv_type_size_t=no
17763fi
17764
17765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766fi
17767{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17768echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17769if test $ac_cv_type_size_t = yes; then
17770 :
John Criswell7a73b802003-06-30 21:59:07 +000017771else
17772
17773cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017774#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017775_ACEOF
17776
17777fi
17778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017779
17780cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017781#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017782_ACEOF
17783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17785echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17786if test "${ac_cv_struct_tm+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017789 cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017794/* end confdefs.h. */
17795#include <sys/types.h>
17796#include <time.h>
17797
17798int
17799main ()
17800{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017801struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017802 ;
17803 return 0;
17804}
17805_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017806rm -f conftest.$ac_objext
17807if { (ac_try="$ac_compile"
17808case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811esac
17812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824esac
17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017840 ac_cv_struct_tm=time.h
17841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017842 echo "$as_me: failed program was:" >&5
17843sed 's/^/| /' conftest.$ac_ext >&5
17844
17845 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017847
Reid Spencera773bd52006-08-04 18:18:08 +000017848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017850{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17851echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017852if test $ac_cv_struct_tm = sys/time.h; then
17853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017854cat >>confdefs.h <<\_ACEOF
17855#define TM_IN_SYS_TIME 1
17856_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017857
17858fi
17859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017860{ echo "$as_me:$LINENO: checking for int64_t" >&5
17861echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17862if test "${ac_cv_type_int64_t+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864else
17865 cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
17871$ac_includes_default
17872typedef int64_t ac__type_new_;
17873int
17874main ()
17875{
17876if ((ac__type_new_ *) 0)
17877 return 0;
17878if (sizeof (ac__type_new_))
17879 return 0;
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext
17885if { (ac_try="$ac_compile"
17886case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889esac
17890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17899 { (case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902esac
17903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_try") 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest.$ac_objext'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912esac
17913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_type_int64_t=yes
17919else
17920 echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923 ac_cv_type_int64_t=no
17924fi
17925
17926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927fi
17928{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17929echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17930if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017931
17932cat >>confdefs.h <<_ACEOF
17933#define HAVE_INT64_T 1
17934_ACEOF
17935
17936
17937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17939echo "$as_me: error: Type int64_t required but not found" >&2;}
17940 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017941fi
17942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017943{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17944echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17945if test "${ac_cv_type_uint64_t+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17947else
17948 cat >conftest.$ac_ext <<_ACEOF
17949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
17954$ac_includes_default
17955typedef uint64_t ac__type_new_;
17956int
17957main ()
17958{
17959if ((ac__type_new_ *) 0)
17960 return 0;
17961if (sizeof (ac__type_new_))
17962 return 0;
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext
17968if { (ac_try="$ac_compile"
17969case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972esac
17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17982 { (case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17985esac
17986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_try") 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_type_uint64_t=yes
18002else
18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 ac_cv_type_uint64_t=no
18007fi
18008
18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010fi
18011{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18012echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18013if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018014
18015cat >>confdefs.h <<_ACEOF
18016#define HAVE_UINT64_T 1
18017_ACEOF
18018
18019
18020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018021 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18022echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18023if test "${ac_cv_type_u_int64_t+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025else
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033typedef u_int64_t ac__type_new_;
18034int
18035main ()
18036{
18037if ((ac__type_new_ *) 0)
18038 return 0;
18039if (sizeof (ac__type_new_))
18040 return 0;
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045rm -f conftest.$ac_objext
18046if { (ac_try="$ac_compile"
18047case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18050esac
18051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063esac
18064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest.$ac_objext'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073esac
18074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_type_u_int64_t=yes
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 ac_cv_type_u_int64_t=no
18085fi
18086
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088fi
18089{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18090echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18091if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018092
18093cat >>confdefs.h <<_ACEOF
18094#define HAVE_U_INT64_T 1
18095_ACEOF
18096
18097
Misha Brukmanceca9042004-09-02 23:02:30 +000018098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018099 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18100echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18101 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018102fi
18103
John Criswell679ff312004-09-02 18:44:44 +000018104fi
18105
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018106
18107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018108
18109
18110
18111
18112
18113
18114
Reid Spencerdf3be822006-01-23 08:15:53 +000018115for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018116do
18117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18118{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18120if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123 cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
18129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18131#define $ac_func innocuous_$ac_func
18132
18133/* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char $ac_func (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18137
18138#ifdef __STDC__
18139# include <limits.h>
18140#else
18141# include <assert.h>
18142#endif
18143
18144#undef $ac_func
18145
18146/* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18149#ifdef __cplusplus
18150extern "C"
18151#endif
18152char $ac_func ();
18153/* The GNU C library defines this for functions which it implements
18154 to always fail with ENOSYS. Some functions are actually named
18155 something starting with __ and the normal name is an alias. */
18156#if defined __stub_$ac_func || defined __stub___$ac_func
18157choke me
18158#endif
18159
18160int
18161main ()
18162{
18163return $ac_func ();
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext conftest$ac_exeext
18169if { (ac_try="$ac_link"
18170case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186esac
18187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196esac
18197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 eval "$as_ac_var=yes"
18203else
18204 echo "$as_me: failed program was:" >&5
18205sed 's/^/| /' conftest.$ac_ext >&5
18206
18207 eval "$as_ac_var=no"
18208fi
18209
18210rm -f core conftest.err conftest.$ac_objext \
18211 conftest$ac_exeext conftest.$ac_ext
18212fi
18213ac_res=`eval echo '${'$as_ac_var'}'`
18214 { echo "$as_me:$LINENO: result: $ac_res" >&5
18215echo "${ECHO_T}$ac_res" >&6; }
18216if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018217 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018219_ACEOF
18220
18221fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018222done
John Criswell7a73b802003-06-30 21:59:07 +000018223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018224
18225
18226
18227
Reid Spencer96cf5872007-07-13 10:05:30 +000018228for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018229do
18230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18231{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235else
18236 cat >conftest.$ac_ext <<_ACEOF
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
18242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18244#define $ac_func innocuous_$ac_func
18245
18246/* System header to define __stub macros and hopefully few prototypes,
18247 which can conflict with char $ac_func (); below.
18248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 <limits.h> exists even on freestanding compilers. */
18250
18251#ifdef __STDC__
18252# include <limits.h>
18253#else
18254# include <assert.h>
18255#endif
18256
18257#undef $ac_func
18258
18259/* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18262#ifdef __cplusplus
18263extern "C"
18264#endif
18265char $ac_func ();
18266/* The GNU C library defines this for functions which it implements
18267 to always fail with ENOSYS. Some functions are actually named
18268 something starting with __ and the normal name is an alias. */
18269#if defined __stub_$ac_func || defined __stub___$ac_func
18270choke me
18271#endif
18272
18273int
18274main ()
18275{
18276return $ac_func ();
18277 ;
18278 return 0;
18279}
18280_ACEOF
18281rm -f conftest.$ac_objext conftest$ac_exeext
18282if { (ac_try="$ac_link"
18283case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286esac
18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18299esac
18300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest$ac_exeext'
18306 { (case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309esac
18310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18316else
18317 echo "$as_me: failed program was:" >&5
18318sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 eval "$as_ac_var=no"
18321fi
18322
18323rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325fi
18326ac_res=`eval echo '${'$as_ac_var'}'`
18327 { echo "$as_me:$LINENO: result: $ac_res" >&5
18328echo "${ECHO_T}$ac_res" >&6; }
18329if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018330 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018332_ACEOF
18333
18334fi
18335done
18336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018337
18338
18339
18340
18341
Reid Spencerb90645c2007-02-16 19:17:20 +000018342for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018343do
18344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349else
18350 cat >conftest.$ac_ext <<_ACEOF
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
18356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18358#define $ac_func innocuous_$ac_func
18359
18360/* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18364
18365#ifdef __STDC__
18366# include <limits.h>
18367#else
18368# include <assert.h>
18369#endif
18370
18371#undef $ac_func
18372
18373/* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18376#ifdef __cplusplus
18377extern "C"
18378#endif
18379char $ac_func ();
18380/* The GNU C library defines this for functions which it implements
18381 to always fail with ENOSYS. Some functions are actually named
18382 something starting with __ and the normal name is an alias. */
18383#if defined __stub_$ac_func || defined __stub___$ac_func
18384choke me
18385#endif
18386
18387int
18388main ()
18389{
18390return $ac_func ();
18391 ;
18392 return 0;
18393}
18394_ACEOF
18395rm -f conftest.$ac_objext conftest$ac_exeext
18396if { (ac_try="$ac_link"
18397case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400esac
18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423esac
18424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 eval "$as_ac_var=yes"
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434 eval "$as_ac_var=no"
18435fi
18436
18437rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439fi
18440ac_res=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442echo "${ECHO_T}$ac_res" >&6; }
18443if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018444 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018446_ACEOF
18447
18448fi
18449done
18450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018451
18452
18453
Reid Spencerb90645c2007-02-16 19:17:20 +000018454for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018455do
18456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461else
18462 cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470#define $ac_func innocuous_$ac_func
18471
18472/* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18476
18477#ifdef __STDC__
18478# include <limits.h>
18479#else
18480# include <assert.h>
18481#endif
18482
18483#undef $ac_func
18484
18485/* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18488#ifdef __cplusplus
18489extern "C"
18490#endif
18491char $ac_func ();
18492/* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495#if defined __stub_$ac_func || defined __stub___$ac_func
18496choke me
18497#endif
18498
18499int
18500main ()
18501{
18502return $ac_func ();
18503 ;
18504 return 0;
18505}
18506_ACEOF
18507rm -f conftest.$ac_objext conftest$ac_exeext
18508if { (ac_try="$ac_link"
18509case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525esac
18526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535esac
18536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 eval "$as_ac_var=yes"
18542else
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 eval "$as_ac_var=no"
18547fi
18548
18549rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551fi
18552ac_res=`eval echo '${'$as_ac_var'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554echo "${ECHO_T}$ac_res" >&6; }
18555if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018556 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018558_ACEOF
18559
18560fi
18561done
18562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018563
18564
18565
18566
18567
Eric Christophere4291822010-04-16 05:14:21 +000018568
18569for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018570do
18571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577 cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h. */
18583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585#define $ac_func innocuous_$ac_func
18586
18587/* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18591
18592#ifdef __STDC__
18593# include <limits.h>
18594#else
18595# include <assert.h>
18596#endif
18597
18598#undef $ac_func
18599
18600/* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603#ifdef __cplusplus
18604extern "C"
18605#endif
18606char $ac_func ();
18607/* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610#if defined __stub_$ac_func || defined __stub___$ac_func
18611choke me
18612#endif
18613
18614int
18615main ()
18616{
18617return $ac_func ();
18618 ;
18619 return 0;
18620}
18621_ACEOF
18622rm -f conftest.$ac_objext conftest$ac_exeext
18623if { (ac_try="$ac_link"
18624case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627esac
18628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640esac
18641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650esac
18651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 eval "$as_ac_var=yes"
18657else
18658 echo "$as_me: failed program was:" >&5
18659sed 's/^/| /' conftest.$ac_ext >&5
18660
18661 eval "$as_ac_var=no"
18662fi
18663
18664rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666fi
18667ac_res=`eval echo '${'$as_ac_var'}'`
18668 { echo "$as_me:$LINENO: result: $ac_res" >&5
18669echo "${ECHO_T}$ac_res" >&6; }
18670if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018671 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018673_ACEOF
18674
18675fi
18676done
Reid Spencerdf3be822006-01-23 08:15:53 +000018677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018678
18679
18680
18681
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018682for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018683do
18684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690 cat >conftest.$ac_ext <<_ACEOF
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18698#define $ac_func innocuous_$ac_func
18699
18700/* System header to define __stub macros and hopefully few prototypes,
18701 which can conflict with char $ac_func (); below.
18702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18703 <limits.h> exists even on freestanding compilers. */
18704
18705#ifdef __STDC__
18706# include <limits.h>
18707#else
18708# include <assert.h>
18709#endif
18710
18711#undef $ac_func
18712
18713/* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18716#ifdef __cplusplus
18717extern "C"
18718#endif
18719char $ac_func ();
18720/* The GNU C library defines this for functions which it implements
18721 to always fail with ENOSYS. Some functions are actually named
18722 something starting with __ and the normal name is an alias. */
18723#if defined __stub_$ac_func || defined __stub___$ac_func
18724choke me
18725#endif
18726
18727int
18728main ()
18729{
18730return $ac_func ();
18731 ;
18732 return 0;
18733}
18734_ACEOF
18735rm -f conftest.$ac_objext conftest$ac_exeext
18736if { (ac_try="$ac_link"
18737case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 eval "$as_ac_var=yes"
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 eval "$as_ac_var=no"
18775fi
18776
18777rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779fi
18780ac_res=`eval echo '${'$as_ac_var'}'`
18781 { echo "$as_me:$LINENO: result: $ac_res" >&5
18782echo "${ECHO_T}$ac_res" >&6; }
18783if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018784 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018786_ACEOF
18787
18788fi
18789done
18790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018791
18792
18793
18794
Chris Lattner511f11d2005-11-14 07:25:50 +000018795for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018796do
18797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18802else
18803 cat >conftest.$ac_ext <<_ACEOF
18804/* confdefs.h. */
18805_ACEOF
18806cat confdefs.h >>conftest.$ac_ext
18807cat >>conftest.$ac_ext <<_ACEOF
18808/* end confdefs.h. */
18809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18811#define $ac_func innocuous_$ac_func
18812
18813/* System header to define __stub macros and hopefully few prototypes,
18814 which can conflict with char $ac_func (); below.
18815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18816 <limits.h> exists even on freestanding compilers. */
18817
18818#ifdef __STDC__
18819# include <limits.h>
18820#else
18821# include <assert.h>
18822#endif
18823
18824#undef $ac_func
18825
18826/* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18829#ifdef __cplusplus
18830extern "C"
18831#endif
18832char $ac_func ();
18833/* The GNU C library defines this for functions which it implements
18834 to always fail with ENOSYS. Some functions are actually named
18835 something starting with __ and the normal name is an alias. */
18836#if defined __stub_$ac_func || defined __stub___$ac_func
18837choke me
18838#endif
18839
18840int
18841main ()
18842{
18843return $ac_func ();
18844 ;
18845 return 0;
18846}
18847_ACEOF
18848rm -f conftest.$ac_objext conftest$ac_exeext
18849if { (ac_try="$ac_link"
18850case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853esac
18854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_link") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866esac
18867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 eval "$as_ac_var=yes"
18883else
18884 echo "$as_me: failed program was:" >&5
18885sed 's/^/| /' conftest.$ac_ext >&5
18886
18887 eval "$as_ac_var=no"
18888fi
18889
18890rm -f core conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext conftest.$ac_ext
18892fi
18893ac_res=`eval echo '${'$as_ac_var'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895echo "${ECHO_T}$ac_res" >&6; }
18896if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018897 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018899_ACEOF
18900
18901fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018902done
John Criswell7a73b802003-06-30 21:59:07 +000018903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018904
18905
18906
18907
Reid Spencerafa22e22006-12-10 23:29:19 +000018908for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018909do
18910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924#define $ac_func innocuous_$ac_func
18925
18926/* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18930
18931#ifdef __STDC__
18932# include <limits.h>
18933#else
18934# include <assert.h>
18935#endif
18936
18937#undef $ac_func
18938
18939/* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942#ifdef __cplusplus
18943extern "C"
18944#endif
18945char $ac_func ();
18946/* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949#if defined __stub_$ac_func || defined __stub___$ac_func
18950choke me
18951#endif
18952
18953int
18954main ()
18955{
18956return $ac_func ();
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961rm -f conftest.$ac_objext conftest$ac_exeext
18962if { (ac_try="$ac_link"
18963case "(($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_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979esac
18980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989esac
18990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 eval "$as_ac_var=yes"
18996else
18997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000 eval "$as_ac_var=no"
19001fi
19002
19003rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19005fi
19006ac_res=`eval echo '${'$as_ac_var'}'`
19007 { echo "$as_me:$LINENO: result: $ac_res" >&5
19008echo "${ECHO_T}$ac_res" >&6; }
19009if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019010 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019012_ACEOF
19013
19014fi
19015done
19016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019017{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19018echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19019if test "${llvm_cv_c_printf_a+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019021else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019022 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019023ac_cpp='$CPP $CPPFLAGS'
19024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19026ac_compiler_gnu=$ac_cv_c_compiler_gnu
19027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019028 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019029 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019031 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019033 /* confdefs.h. */
19034_ACEOF
19035cat confdefs.h >>conftest.$ac_ext
19036cat >>conftest.$ac_ext <<_ACEOF
19037/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019038
John Criswella0137d32003-10-13 16:22:01 +000019039#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019040#include <stdlib.h>
19041
John Criswella0137d32003-10-13 16:22:01 +000019042int
19043main ()
19044{
19045
Reid Spencer2706f8c2004-09-19 23:53:36 +000019046volatile double A, B;
19047char Buffer[100];
19048A = 1;
19049A /= 10.0;
19050sprintf(Buffer, "%a", A);
19051B = atof(Buffer);
19052if (A != B)
19053 return (1);
19054if (A != 0x1.999999999999ap-4)
19055 return (1);
19056return (0);
John Criswella0137d32003-10-13 16:22:01 +000019057 ;
19058 return 0;
19059}
19060_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061rm -f conftest$ac_exeext
19062if { (ac_try="$ac_link"
19063case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075esac
19076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019081 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019083 echo "$as_me: program exited with status $ac_status" >&5
19084echo "$as_me: failed program was:" >&5
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
19087( exit $ac_status )
19088llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090rm -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 +000019091fi
Reid Spencera773bd52006-08-04 18:18:08 +000019092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019093
Reid Spencer2706f8c2004-09-19 23:53:36 +000019094 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019095ac_cpp='$CPP $CPPFLAGS'
19096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098ac_compiler_gnu=$ac_cv_c_compiler_gnu
19099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19102echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019103 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019105cat >>confdefs.h <<\_ACEOF
19106#define HAVE_PRINTF_A 1
19107_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019108
Reid Spencer2706f8c2004-09-19 23:53:36 +000019109 fi
John Criswella0137d32003-10-13 16:22:01 +000019110
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019112{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19113echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19114if test "${ac_cv_func_rand48+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019116else
Reid Spencera773bd52006-08-04 18:18:08 +000019117 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019118ac_cpp='$CXXCPP $CPPFLAGS'
19119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123 cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019128/* end confdefs.h. */
19129#include <stdlib.h>
19130int
19131main ()
19132{
19133srand48(0);lrand48();drand48();
19134 ;
19135 return 0;
19136}
19137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019138rm -f conftest.$ac_objext
19139if { (ac_try="$ac_compile"
19140case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156esac
19157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019172 ac_cv_func_rand48=yes
19173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019179
Reid Spencera773bd52006-08-04 18:18:08 +000019180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019181 ac_ext=c
19182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019188{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19189echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019190
19191if test "$ac_cv_func_rand48" = "yes" ; then
19192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_RAND48 1
19195_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019196
19197fi
John Criswell0021c312004-02-13 21:57:29 +000019198
19199
Torok Edwin871384f2010-01-26 08:50:50 +000019200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019201{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19202echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19203if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019205else
Reid Spencera773bd52006-08-04 18:18:08 +000019206 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019207ac_cpp='$CXXCPP $CPPFLAGS'
19208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019212 cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019217/* end confdefs.h. */
19218#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019219int
19220main ()
19221{
19222float f; isnan(f);
19223 ;
19224 return 0;
19225}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019227rm -f conftest.$ac_objext
19228if { (ac_try="$ac_compile"
19229case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245esac
19246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019261 ac_cv_func_isnan_in_math_h=yes
19262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019268
Reid Spencera773bd52006-08-04 18:18:08 +000019269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019270 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019271ac_cpp='$CPP $CPPFLAGS'
19272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274ac_compiler_gnu=$ac_cv_c_compiler_gnu
19275
19276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019277{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19278echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019279
19280
19281if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019283cat >>confdefs.h <<\_ACEOF
19284#define HAVE_ISNAN_IN_MATH_H 1
19285_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019286
Reid Spencerabec8f92004-10-27 23:03:44 +000019287fi
19288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019289{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19290echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19291if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019293else
Reid Spencera773bd52006-08-04 18:18:08 +000019294 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019295ac_cpp='$CXXCPP $CPPFLAGS'
19296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019300 cat >conftest.$ac_ext <<_ACEOF
19301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019305/* end confdefs.h. */
19306#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019307int
19308main ()
19309{
19310float f; isnan(f);
19311 ;
19312 return 0;
19313}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019314_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315rm -f conftest.$ac_objext
19316if { (ac_try="$ac_compile"
19317case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320esac
19321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19333esac
19334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343esac
19344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_try") 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019349 ac_cv_func_isnan_in_cmath=yes
19350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019351 echo "$as_me: failed program was:" >&5
19352sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019356
Reid Spencera773bd52006-08-04 18:18:08 +000019357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019358 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019359ac_cpp='$CPP $CPPFLAGS'
19360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362ac_compiler_gnu=$ac_cv_c_compiler_gnu
19363
19364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19366echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019367
19368if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019370cat >>confdefs.h <<\_ACEOF
19371#define HAVE_ISNAN_IN_CMATH 1
19372_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019373
Reid Spencerabec8f92004-10-27 23:03:44 +000019374fi
19375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019376{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19377echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19378if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019380else
Reid Spencera773bd52006-08-04 18:18:08 +000019381 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019382ac_cpp='$CXXCPP $CPPFLAGS'
19383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019387 cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019392/* end confdefs.h. */
19393#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019394int
19395main ()
19396{
19397float f; std::isnan(f);
19398 ;
19399 return 0;
19400}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019402rm -f conftest.$ac_objext
19403if { (ac_try="$ac_compile"
19404case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_compile") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19417 { (case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420esac
19421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_try") 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430esac
19431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019436 ac_cv_func_std_isnan_in_cmath=yes
19437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019438 echo "$as_me: failed program was:" >&5
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019443
Reid Spencera773bd52006-08-04 18:18:08 +000019444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019445 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019446ac_cpp='$CPP $CPPFLAGS'
19447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449ac_compiler_gnu=$ac_cv_c_compiler_gnu
19450
19451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19453echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019454
19455if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457cat >>confdefs.h <<\_ACEOF
19458#define HAVE_STD_ISNAN_IN_CMATH 1
19459_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019460
Reid Spencerabec8f92004-10-27 23:03:44 +000019461fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019462
19463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19465echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19466if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019468else
Reid Spencera773bd52006-08-04 18:18:08 +000019469 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019470ac_cpp='$CXXCPP $CPPFLAGS'
19471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019480/* end confdefs.h. */
19481#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019482int
19483main ()
19484{
19485float f; isinf(f);
19486 ;
19487 return 0;
19488}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019490rm -f conftest.$ac_objext
19491if { (ac_try="$ac_compile"
19492case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508esac
19509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019524 ac_cv_func_isinf_in_math_h=yes
19525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531
Reid Spencera773bd52006-08-04 18:18:08 +000019532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019533 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019534ac_cpp='$CPP $CPPFLAGS'
19535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537ac_compiler_gnu=$ac_cv_c_compiler_gnu
19538
19539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19541echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019542
19543if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545cat >>confdefs.h <<\_ACEOF
19546#define HAVE_ISINF_IN_MATH_H 1
19547_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019548
Reid Spencerabec8f92004-10-27 23:03:44 +000019549fi
19550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019551{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19552echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19553if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019555else
Reid Spencera773bd52006-08-04 18:18:08 +000019556 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019557ac_cpp='$CXXCPP $CPPFLAGS'
19558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019562 cat >conftest.$ac_ext <<_ACEOF
19563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019567/* end confdefs.h. */
19568#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019569int
19570main ()
19571{
19572float f; isinf(f);
19573 ;
19574 return 0;
19575}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019577rm -f conftest.$ac_objext
19578if { (ac_try="$ac_compile"
19579case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19582esac
19583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19592 { (case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19595esac
19596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_try") 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest.$ac_objext'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019611 ac_cv_func_isinf_in_cmath=yes
19612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019613 echo "$as_me: failed program was:" >&5
19614sed 's/^/| /' conftest.$ac_ext >&5
19615
19616 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618
Reid Spencera773bd52006-08-04 18:18:08 +000019619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019620 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019621ac_cpp='$CPP $CPPFLAGS'
19622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19624ac_compiler_gnu=$ac_cv_c_compiler_gnu
19625
19626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19628echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019629
19630if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632cat >>confdefs.h <<\_ACEOF
19633#define HAVE_ISINF_IN_CMATH 1
19634_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019635
Reid Spencerabec8f92004-10-27 23:03:44 +000019636fi
19637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019638{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19639echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19640if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019642else
Reid Spencera773bd52006-08-04 18:18:08 +000019643 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019644ac_cpp='$CXXCPP $CPPFLAGS'
19645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649 cat >conftest.$ac_ext <<_ACEOF
19650/* confdefs.h. */
19651_ACEOF
19652cat confdefs.h >>conftest.$ac_ext
19653cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019654/* end confdefs.h. */
19655#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019656int
19657main ()
19658{
19659float f; std::isinf(f)}
19660 ;
19661 return 0;
19662}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019663_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664rm -f conftest.$ac_objext
19665if { (ac_try="$ac_compile"
19666case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669esac
19670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19679 { (case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682esac
19683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_try") 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692esac
19693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019698 ac_cv_func_std_isinf_in_cmath=yes
19699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705
Reid Spencera773bd52006-08-04 18:18:08 +000019706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019707 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019708ac_cpp='$CPP $CPPFLAGS'
19709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711ac_compiler_gnu=$ac_cv_c_compiler_gnu
19712
19713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019714{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19715echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019716
19717if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719cat >>confdefs.h <<\_ACEOF
19720#define HAVE_STD_ISINF_IN_CMATH 1
19721_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019722
Reid Spencerabec8f92004-10-27 23:03:44 +000019723fi
19724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19726echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19727if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019729else
Reid Spencera773bd52006-08-04 18:18:08 +000019730 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019731ac_cpp='$CXXCPP $CPPFLAGS'
19732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019741/* end confdefs.h. */
19742#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019743int
19744main ()
19745{
19746float f; finite(f);
19747 ;
19748 return 0;
19749}
Brian Gaeked59a6472004-07-21 03:33:58 +000019750_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751rm -f conftest.$ac_objext
19752if { (ac_try="$ac_compile"
19753case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756esac
19757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019785 ac_cv_func_finite_in_ieeefp_h=yes
19786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019787 echo "$as_me: failed program was:" >&5
19788sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792
Reid Spencera773bd52006-08-04 18:18:08 +000019793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019794 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
19800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19802echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019803
Brian Gaeke6802b552004-10-28 05:06:45 +000019804if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806cat >>confdefs.h <<\_ACEOF
19807#define HAVE_FINITE_IN_IEEEFP_H 1
19808_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019809
Reid Spencerabec8f92004-10-27 23:03:44 +000019810fi
19811
19812
19813
Reid Spencer30fe5262007-01-20 07:48:49 +000019814if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019815
19816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817for ac_header in stdlib.h unistd.h
19818do
19819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825fi
19826ac_res=`eval echo '${'$as_ac_Header'}'`
19827 { echo "$as_me:$LINENO: result: $ac_res" >&5
19828echo "${ECHO_T}$ac_res" >&6; }
19829else
19830 # Is the header compilable?
19831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
19839$ac_includes_default
19840#include <$ac_header>
19841_ACEOF
19842rm -f conftest.$ac_objext
19843if { (ac_try="$ac_compile"
19844case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19857 { (case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870esac
19871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_header_compiler=yes
19877else
19878 echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881 ac_header_compiler=no
19882fi
19883
19884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19886echo "${ECHO_T}$ac_header_compiler" >&6; }
19887
19888# Is the header present?
19889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19891cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
19897#include <$ac_header>
19898_ACEOF
19899if { (ac_try="$ac_cpp conftest.$ac_ext"
19900case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19915 else
19916 ac_cpp_err=
19917 fi
19918else
19919 ac_cpp_err=yes
19920fi
19921if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19923else
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927 ac_header_preproc=no
19928fi
19929
19930rm -f conftest.err conftest.$ac_ext
19931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932echo "${ECHO_T}$ac_header_preproc" >&6; }
19933
19934# So? What about this header?
19935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 yes:no: )
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19942 ;;
19943 no:yes:* )
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19956 ( cat <<\_ASBOX
19957## ----------------------------------- ##
19958## Report this to llvmbugs@cs.uiuc.edu ##
19959## ----------------------------------- ##
19960_ASBOX
19961 ) | sed "s/^/$as_me: WARNING: /" >&2
19962 ;;
19963esac
19964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968else
19969 eval "$as_ac_Header=\$ac_header_preproc"
19970fi
19971ac_res=`eval echo '${'$as_ac_Header'}'`
19972 { echo "$as_me:$LINENO: result: $ac_res" >&5
19973echo "${ECHO_T}$ac_res" >&6; }
19974
19975fi
19976if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019977 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019979_ACEOF
19980
19981fi
19982
19983done
19984
19985
19986for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987do
19988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993else
19994 cat >conftest.$ac_ext <<_ACEOF
19995/* confdefs.h. */
19996_ACEOF
19997cat confdefs.h >>conftest.$ac_ext
19998cat >>conftest.$ac_ext <<_ACEOF
19999/* end confdefs.h. */
20000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20002#define $ac_func innocuous_$ac_func
20003
20004/* System header to define __stub macros and hopefully few prototypes,
20005 which can conflict with char $ac_func (); below.
20006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20007 <limits.h> exists even on freestanding compilers. */
20008
20009#ifdef __STDC__
20010# include <limits.h>
20011#else
20012# include <assert.h>
20013#endif
20014
20015#undef $ac_func
20016
20017/* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
20020#ifdef __cplusplus
20021extern "C"
20022#endif
20023char $ac_func ();
20024/* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027#if defined __stub_$ac_func || defined __stub___$ac_func
20028choke me
20029#endif
20030
20031int
20032main ()
20033{
20034return $ac_func ();
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039rm -f conftest.$ac_objext conftest$ac_exeext
20040if { (ac_try="$ac_link"
20041case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044esac
20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20054 { (case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057esac
20058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_try") 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067esac
20068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 eval "$as_ac_var=yes"
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 eval "$as_ac_var=no"
20079fi
20080
20081rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20083fi
20084ac_res=`eval echo '${'$as_ac_var'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086echo "${ECHO_T}$ac_res" >&6; }
20087if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020088 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020090_ACEOF
20091
20092fi
20093done
20094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020095{ echo "$as_me:$LINENO: checking for working mmap" >&5
20096echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20097if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020100 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020101 ac_cv_func_mmap_fixed_mapped=no
20102else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020103 cat >conftest.$ac_ext <<_ACEOF
20104/* confdefs.h. */
20105_ACEOF
20106cat confdefs.h >>conftest.$ac_ext
20107cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020109$ac_includes_default
20110/* malloc might have been renamed as rpl_malloc. */
20111#undef malloc
20112
20113/* Thanks to Mike Haertel and Jim Avera for this test.
20114 Here is a matrix of mmap possibilities:
20115 mmap private not fixed
20116 mmap private fixed at somewhere currently unmapped
20117 mmap private fixed at somewhere already mapped
20118 mmap shared not fixed
20119 mmap shared fixed at somewhere currently unmapped
20120 mmap shared fixed at somewhere already mapped
20121 For private mappings, we should verify that changes cannot be read()
20122 back from the file, nor mmap's back from the file at a different
20123 address. (There have been systems where private was not correctly
20124 implemented like the infamous i386 svr4.0, and systems where the
20125 VM page cache was not coherent with the file system buffer cache
20126 like early versions of FreeBSD and possibly contemporary NetBSD.)
20127 For shared mappings, we should conversely verify that changes get
20128 propagated back to all the places they're supposed to be.
20129
20130 Grep wants private fixed already mapped.
20131 The main things grep needs to know about mmap are:
20132 * does it exist and is it safe to write into the mmap'd area
20133 * how to use it (BSD variants) */
20134
20135#include <fcntl.h>
20136#include <sys/mman.h>
20137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020139char *malloc ();
20140#endif
20141
20142/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143#if !HAVE_GETPAGESIZE
20144/* Assume that all systems that can run configure have sys/param.h. */
20145# if !HAVE_SYS_PARAM_H
20146# define HAVE_SYS_PARAM_H 1
20147# endif
20148
John Criswell7a73b802003-06-30 21:59:07 +000020149# ifdef _SC_PAGESIZE
20150# define getpagesize() sysconf(_SC_PAGESIZE)
20151# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020152# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020153# include <sys/param.h>
20154# ifdef EXEC_PAGESIZE
20155# define getpagesize() EXEC_PAGESIZE
20156# else /* no EXEC_PAGESIZE */
20157# ifdef NBPG
20158# define getpagesize() NBPG * CLSIZE
20159# ifndef CLSIZE
20160# define CLSIZE 1
20161# endif /* no CLSIZE */
20162# else /* no NBPG */
20163# ifdef NBPC
20164# define getpagesize() NBPC
20165# else /* no NBPC */
20166# ifdef PAGESIZE
20167# define getpagesize() PAGESIZE
20168# endif /* PAGESIZE */
20169# endif /* no NBPC */
20170# endif /* no NBPG */
20171# endif /* no EXEC_PAGESIZE */
20172# else /* no HAVE_SYS_PARAM_H */
20173# define getpagesize() 8192 /* punt totally */
20174# endif /* no HAVE_SYS_PARAM_H */
20175# endif /* no _SC_PAGESIZE */
20176
20177#endif /* no HAVE_GETPAGESIZE */
20178
20179int
20180main ()
20181{
20182 char *data, *data2, *data3;
20183 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020185
20186 pagesize = getpagesize ();
20187
20188 /* First, make a file with some known garbage in it. */
20189 data = (char *) malloc (pagesize);
20190 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020191 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020192 for (i = 0; i < pagesize; ++i)
20193 *(data + i) = rand ();
20194 umask (0);
20195 fd = creat ("conftest.mmap", 0600);
20196 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020197 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020198 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020199 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020200 close (fd);
20201
20202 /* Next, try to mmap the file at a fixed address which already has
20203 something else allocated at it. If we can, also make sure that
20204 we see the same garbage. */
20205 fd = open ("conftest.mmap", O_RDWR);
20206 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207 return 1;
20208 data2 = (char *) malloc (2 * pagesize);
20209 if (!data2)
20210 return 1;
20211 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020214 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020215 for (i = 0; i < pagesize; ++i)
20216 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020217 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020218
20219 /* Finally, make sure that changes to the mapped area do not
20220 percolate back to the file as seen by read(). (This is a bug on
20221 some variants of i386 svr4.0.) */
20222 for (i = 0; i < pagesize; ++i)
20223 *(data2 + i) = *(data2 + i) + 1;
20224 data3 = (char *) malloc (pagesize);
20225 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020227 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020229 for (i = 0; i < pagesize; ++i)
20230 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020232 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020233 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020234}
20235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236rm -f conftest$ac_exeext
20237if { (ac_try="$ac_link"
20238case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241esac
20242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250esac
20251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020256 ac_cv_func_mmap_fixed_mapped=yes
20257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020258 echo "$as_me: program exited with status $ac_status" >&5
20259echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
20262( exit $ac_status )
20263ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020265rm -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 +000020266fi
Reid Spencera773bd52006-08-04 18:18:08 +000020267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020268
John Criswell7a73b802003-06-30 21:59:07 +000020269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20271echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020272if test $ac_cv_func_mmap_fixed_mapped = yes; then
20273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274cat >>confdefs.h <<\_ACEOF
20275#define HAVE_MMAP 1
20276_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020277
20278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020281 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20282echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20283if test "${ac_cv_func_mmap_file+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020285else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020286 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020287ac_cpp='$CPP $CPPFLAGS'
20288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20290ac_compiler_gnu=$ac_cv_c_compiler_gnu
20291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020292 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020293 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020295 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297 /* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020302
John Criswell7a73b802003-06-30 21:59:07 +000020303#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020304#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020305#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020306
20307int
20308main ()
20309{
John Criswell7a73b802003-06-30 21:59:07 +000020310
20311 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020312 fd = creat ("foo",0777);
20313 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20314 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020315 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020316 ;
20317 return 0;
20318}
John Criswell7a73b802003-06-30 21:59:07 +000020319_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320rm -f conftest$ac_exeext
20321if { (ac_try="$ac_link"
20322case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325esac
20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334esac
20335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020340 ac_cv_func_mmap_file=yes
20341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342 echo "$as_me: program exited with status $ac_status" >&5
20343echo "$as_me: failed program was:" >&5
20344sed 's/^/| /' conftest.$ac_ext >&5
20345
20346( exit $ac_status )
20347ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020349rm -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 +000020350fi
Reid Spencera773bd52006-08-04 18:18:08 +000020351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352
John Criswell7a73b802003-06-30 21:59:07 +000020353 ac_ext=c
20354ac_cpp='$CPP $CPPFLAGS'
20355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357ac_compiler_gnu=$ac_cv_c_compiler_gnu
20358
20359
20360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20362echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020363if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365cat >>confdefs.h <<\_ACEOF
20366#define HAVE_MMAP_FILE
20367_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020368
20369 MMAP_FILE=yes
20370
20371fi
20372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20374echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20375if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020377else
Reid Spencer582a23c2004-12-29 07:07:57 +000020378 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020379 ac_cv_need_dev_zero_for_mmap=yes
20380 else
20381 ac_cv_need_dev_zero_for_mmap=no
20382 fi
20383
20384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20386echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020387if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389cat >>confdefs.h <<\_ACEOF
20390#define NEED_DEV_ZERO_FOR_MMAP 1
20391_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020392
20393fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020394
Reid Spencer30fe5262007-01-20 07:48:49 +000020395 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20396 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20398echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020399 fi
20400 if test "$ac_cv_func_mmap_file" = "no"
20401 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20403echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020404 fi
John Criswellb13092b2003-07-22 21:00:24 +000020405fi
John Criswell7a73b802003-06-30 21:59:07 +000020406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20408echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020409ac_ext=cpp
20410ac_cpp='$CXXCPP $CPPFLAGS'
20411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020420/* end confdefs.h. */
20421int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020422 volatile unsigned long val = 1;
20423 __sync_synchronize();
20424 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020425 __sync_add_and_fetch(&val, 1);
20426 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020427 return 0;
20428 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020429
20430_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431rm -f conftest.$ac_objext conftest$ac_exeext
20432if { (ac_try="$ac_link"
20433case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_link") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449esac
20450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest$ac_exeext'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020465 ac_ext=c
20466ac_cpp='$CPP $CPPFLAGS'
20467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471 { echo "$as_me:$LINENO: result: yes" >&5
20472echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474cat >>confdefs.h <<\_ACEOF
20475#define LLVM_MULTITHREADED 1
20476_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020477
Owen Andersond4b272b2009-05-18 23:58:51 +000020478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479 echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020482 { echo "$as_me:$LINENO: result: no" >&5
20483echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485cat >>confdefs.h <<\_ACEOF
20486#define LLVM_MULTITHREADED 0
20487_ACEOF
20488
20489 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20490echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492
Owen Andersond4b272b2009-05-18 23:58:51 +000020493rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020495
John Criswell7a73b802003-06-30 21:59:07 +000020496
Nick Lewycky4372e692009-09-29 06:18:23 +000020497if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20499echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20500if test "${llvm_cv_linux_mixed+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020502else
20503 ac_ext=c
20504ac_cpp='$CPP $CPPFLAGS'
20505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020514/* end confdefs.h. */
20515#ifndef __x86_64__
20516 error: Not x86-64 even if uname says so!
20517 #endif
20518
20519int
20520main ()
20521{
20522
20523 ;
20524 return 0;
20525}
20526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527rm -f conftest.$ac_objext
20528if { (ac_try="$ac_compile"
20529case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532esac
20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20542 { (case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_try") 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020561 llvm_cv_linux_mixed=no
20562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568
Nick Lewycky4372e692009-09-29 06:18:23 +000020569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 ac_ext=c
20571ac_cpp='$CPP $CPPFLAGS'
20572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574ac_compiler_gnu=$ac_cv_c_compiler_gnu
20575
20576
20577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20579echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020580
20581 if test "$llvm_cv_linux_mixed" = "yes"; then
20582 llvm_cv_target_arch="x86"
20583 ARCH="x86"
20584 fi
20585fi
20586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587
Reid Spencer9372f152007-07-30 20:13:24 +000020588for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589do
20590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604#define $ac_func innocuous_$ac_func
20605
20606/* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20610
20611#ifdef __STDC__
20612# include <limits.h>
20613#else
20614# include <assert.h>
20615#endif
20616
20617#undef $ac_func
20618
20619/* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20622#ifdef __cplusplus
20623extern "C"
20624#endif
20625char $ac_func ();
20626/* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629#if defined __stub_$ac_func || defined __stub___$ac_func
20630choke me
20631#endif
20632
20633int
20634main ()
20635{
20636return $ac_func ();
20637 ;
20638 return 0;
20639}
20640_ACEOF
20641rm -f conftest.$ac_objext conftest$ac_exeext
20642if { (ac_try="$ac_link"
20643case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646esac
20647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_link") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } &&
20655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659esac
20660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest$ac_exeext'
20666 { (case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669esac
20670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_try") 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 eval "$as_ac_var=yes"
20676else
20677 echo "$as_me: failed program was:" >&5
20678sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 eval "$as_ac_var=no"
20681fi
20682
20683rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20685fi
20686ac_res=`eval echo '${'$as_ac_var'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688echo "${ECHO_T}$ac_res" >&6; }
20689if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020690 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020692_ACEOF
20693
20694fi
20695done
20696
20697
Tobias Grossera84b5672010-11-10 16:31:34 +000020698{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20699echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20700if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20702else
20703 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020704if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000020705 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020706 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000020707 if test $? -eq 0 ; then
20708 llvm_cv_llvmgcc_dragonegg="yes"
20709 fi
20710 rm conftest.c
20711fi
20712fi
20713{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20714echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20715
20716if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20717 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020718 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020719else
20720 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020721 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020722fi
20723
20724
20725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20727echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20728if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020730else
20731 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020732if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020733 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020734 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000020735 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020736 if test $? -eq 0 ; then
20737 llvm_cv_llvmgcc_sanity="yes"
20738 fi
20739 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020740fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020742{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20743echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020744
20745if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20747echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000020748 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020749 LLVMCC1=$llvmcc1path
20750
Duncan Sands1526b192010-11-25 17:47:42 +000020751 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020752 LLVMCC1PLUS=$llvmcc1pluspath
20753
Reid Spencer502935f2004-12-22 05:56:56 +000020754 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20755 LLVMGCCDIR=$llvmgccdir
20756
Duncan Sands1526b192010-11-25 17:47:42 +000020757 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020758 LLVMGCC_LANGS=$llvmgcclangs
20759
Tobias Grossera84b5672010-11-10 16:31:34 +000020760 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20761
20762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763 { echo "$as_me:$LINENO: result: ok" >&5
20764echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020765fi
20766
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020767SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020768
20769
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020770SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20771
20772
Reid Spencere9de0912004-08-20 09:03:57 +000020773# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020774# information into substitutions that will end up in Makefile.config.in
20775# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020776if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020777 prefix="/usr/local"
20778fi
Reid Spencere9de0912004-08-20 09:03:57 +000020779eval LLVM_PREFIX="${prefix}";
20780eval LLVM_BINDIR="${prefix}/bin";
20781eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020782eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020783eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020784eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020785eval LLVM_INCLUDEDIR="${prefix}/include";
20786eval LLVM_INFODIR="${prefix}/info";
20787eval LLVM_MANDIR="${prefix}/man";
20788LLVM_CONFIGTIME=`date`
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020800# Place the various directores into the config.h file as #defines so that we
20801# can know about the installation paths within LLVM.
20802
Reid Spencere9de0912004-08-20 09:03:57 +000020803cat >>confdefs.h <<_ACEOF
20804#define LLVM_PREFIX "$LLVM_PREFIX"
20805_ACEOF
20806
20807
20808cat >>confdefs.h <<_ACEOF
20809#define LLVM_BINDIR "$LLVM_BINDIR"
20810_ACEOF
20811
20812
20813cat >>confdefs.h <<_ACEOF
20814#define LLVM_LIBDIR "$LLVM_LIBDIR"
20815_ACEOF
20816
20817
20818cat >>confdefs.h <<_ACEOF
20819#define LLVM_DATADIR "$LLVM_DATADIR"
20820_ACEOF
20821
20822
20823cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020824#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020825_ACEOF
20826
20827
20828cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020829#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020830_ACEOF
20831
20832
20833cat >>confdefs.h <<_ACEOF
20834#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20835_ACEOF
20836
20837
20838cat >>confdefs.h <<_ACEOF
20839#define LLVM_INFODIR "$LLVM_INFODIR"
20840_ACEOF
20841
20842
20843cat >>confdefs.h <<_ACEOF
20844#define LLVM_MANDIR "$LLVM_MANDIR"
20845_ACEOF
20846
20847
20848cat >>confdefs.h <<_ACEOF
20849#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20850_ACEOF
20851
20852
Eric Christopher790e11c2007-12-01 00:34:39 +000020853cat >>confdefs.h <<_ACEOF
20854#define LLVM_HOSTTRIPLE "$host"
20855_ACEOF
20856
20857
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020858# Determine which bindings to build.
20859if test "$BINDINGS_TO_BUILD" = auto ; then
20860 BINDINGS_TO_BUILD=""
20861 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20862 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20863 fi
20864fi
20865BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20866
20867
20868# This isn't really configurey, but it avoids having to repeat the list in
20869# other files.
20870ALL_BINDINGS=ocaml
20871
20872
Gordon Henriksenf0915682007-10-02 16:42:22 +000020873# Do any work necessary to ensure that bindings have what they need.
20874binding_prereqs_failed=0
20875for a_binding in $BINDINGS_TO_BUILD ; do
20876 case "$a_binding" in
20877 ocaml)
20878 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020879 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20880echo "$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 +000020881 binding_prereqs_failed=1
20882 fi
20883 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020884 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20885echo "$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 +000020886 binding_prereqs_failed=1
20887 fi
20888 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020889 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20890echo "$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 +000020891 fi
20892 if test "x$with_ocaml_libdir" != xauto ; then
20893 OCAML_LIBDIR=$with_ocaml_libdir
20894
20895 else
20896 ocaml_stdlib="`"$OCAMLC" -where`"
20897 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20898 then
20899 # ocaml stdlib is beneath our prefix; use stdlib
20900 OCAML_LIBDIR=$ocaml_stdlib
20901
20902 else
20903 # ocaml stdlib is outside our prefix; use libdir/ocaml
20904 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20905
20906 fi
20907 fi
20908 ;;
20909 esac
20910done
20911if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20913echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20914 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020915fi
20916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020917{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20918echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20919if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020921else
20922 ac_ext=cpp
20923ac_cpp='$CXXCPP $CPPFLAGS'
20924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20927
20928 oldcxxflags="$CXXFLAGS"
20929 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020930 cat >conftest.$ac_ext <<_ACEOF
20931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020935/* end confdefs.h. */
20936
20937int
20938main ()
20939{
20940
20941 ;
20942 return 0;
20943}
20944_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020945rm -f conftest.$ac_objext
20946if { (ac_try="$ac_compile"
20947case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950esac
20951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963esac
20964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20973esac
20974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020979 llvm_cv_cxx_visibility_inlines_hidden=yes
20980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981 echo "$as_me: failed program was:" >&5
20982sed 's/^/| /' conftest.$ac_ext >&5
20983
20984 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 CXXFLAGS="$oldcxxflags"
20989 ac_ext=c
20990ac_cpp='$CPP $CPPFLAGS'
20991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994
20995
20996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20998echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020999if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21000 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21001
21002else
21003 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21004
21005fi
21006
Gordon Henriksenf0915682007-10-02 16:42:22 +000021007
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021008if test "$llvm_cv_link_use_r" = "yes" ; then
21009 RPATH="-Wl,-R"
21010else
21011 RPATH="-Wl,-rpath"
21012fi
21013
21014
21015if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21016 RDYNAMIC="-Wl,-export-dynamic"
21017else
21018 RDYNAMIC=""
21019fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021020
21021
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021022
Eric Christophera1cba682010-08-08 02:44:25 +000021023ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021024
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021025
21026
21027
21028
21029
Douglas Gregor1555a232009-06-16 20:12:29 +000021030ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21031
21032ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21033
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021034ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21035
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021036ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21037
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021038ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021039
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021040
Reid Spencera773bd52006-08-04 18:18:08 +000021041ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021042
21043
Reid Spencerea949cf2006-08-16 00:45:38 +000021044ac_config_files="$ac_config_files llvm.spec"
21045
21046
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021047ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021048
21049
Reid Spencera773bd52006-08-04 18:18:08 +000021050ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021051
21052
Reid Spencera773bd52006-08-04 18:18:08 +000021053ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021054
Reid Spencera773bd52006-08-04 18:18:08 +000021055ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021056
21057
Reid Spencera773bd52006-08-04 18:18:08 +000021058ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021059
21060
Reid Spencera773bd52006-08-04 18:18:08 +000021061ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021062
21063
Reid Spencera773bd52006-08-04 18:18:08 +000021064ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021065
21066
Reid Spencer8b2e1412006-11-17 03:32:33 +000021067ac_config_commands="$ac_config_commands runtime/Makefile"
21068
21069
Reid Spencera773bd52006-08-04 18:18:08 +000021070ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021071
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021074
21075
Bill Wendlingf24eb392009-01-04 23:12:30 +000021076ac_config_commands="$ac_config_commands unittests/Makefile"
21077
21078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021080
21081
Reid Spencera773bd52006-08-04 18:18:08 +000021082ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021083
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021086
21087
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021088ac_config_commands="$ac_config_commands bindings/Makefile"
21089
21090
21091ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21092
21093
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021094
John Criswell7a73b802003-06-30 21:59:07 +000021095cat >confcache <<\_ACEOF
21096# This file is a shell script that caches the results of configure
21097# tests run on this system so they can be shared between configure
21098# scripts and configure runs, see configure's option --config-cache.
21099# It is not useful on other systems. If it contains results you don't
21100# want to keep, you may remove or edit it.
21101#
21102# config.status only pays attention to the cache file if you give it
21103# the --recheck option to rerun configure.
21104#
John Criswell0c38eaf2003-09-10 15:17:25 +000021105# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021106# loading this file, other *unset* `ac_cv_foo' will be assigned the
21107# following values.
21108
21109_ACEOF
21110
21111# The following way of writing the cache mishandles newlines in values,
21112# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021113# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021114# Ultrix sh set writes to stderr and can't be redirected directly,
21115# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021116(
21117 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21118 eval ac_val=\$$ac_var
21119 case $ac_val in #(
21120 *${as_nl}*)
21121 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21123echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021124 esac
21125 case $ac_var in #(
21126 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021127 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021128 esac ;;
21129 esac
21130 done
21131
John Criswell7a73b802003-06-30 21:59:07 +000021132 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21134 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021135 # `set' does not quote correctly, so add quotes (double-quote
21136 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021137 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021138 "s/'/'\\\\''/g;
21139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021140 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021141 *)
21142 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021144 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021145 esac |
21146 sort
21147) |
John Criswell7a73b802003-06-30 21:59:07 +000021148 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021149 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021150 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021151 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21153 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21155 :end' >>confcache
21156if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21157 if test -w "$cache_file"; then
21158 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21160echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021161 cat confcache >$cache_file
21162 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21164echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021165 fi
21166fi
21167rm -f confcache
21168
21169test "x$prefix" = xNONE && prefix=$ac_default_prefix
21170# Let make expand exec_prefix.
21171test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21172
John Criswell7a73b802003-06-30 21:59:07 +000021173DEFS=-DHAVE_CONFIG_H
21174
John Criswell0c38eaf2003-09-10 15:17:25 +000021175ac_libobjs=
21176ac_ltlibobjs=
21177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21178 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21182 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021183 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21184 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021185done
21186LIBOBJS=$ac_libobjs
21187
21188LTLIBOBJS=$ac_ltlibobjs
21189
21190
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021191if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21193Usually this means the macro was only invoked conditionally." >&5
21194echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21195Usually this means the macro was only invoked conditionally." >&2;}
21196 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021197fi
21198if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21200Usually this means the macro was only invoked conditionally." >&5
21201echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21202Usually this means the macro was only invoked conditionally." >&2;}
21203 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021204fi
John Criswell7a73b802003-06-30 21:59:07 +000021205
21206: ${CONFIG_STATUS=./config.status}
21207ac_clean_files_save=$ac_clean_files
21208ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21210echo "$as_me: creating $CONFIG_STATUS" >&6;}
21211cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021212#! $SHELL
21213# Generated by $as_me.
21214# Run this file to recreate the current configuration.
21215# Compiler output produced by configure, useful for debugging
21216# configure, is in config.log if it exists.
21217
21218debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021219ac_cs_recheck=false
21220ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021221SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021224cat >>$CONFIG_STATUS <<\_ACEOF
21225## --------------------- ##
21226## M4sh Initialization. ##
21227## --------------------- ##
21228
21229# Be Bourne compatible
21230if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021231 emulate sh
21232 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021234 # is contrary to our usage. Disable this feature.
21235 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021236 setopt NO_GLOB_SUBST
21237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021240BIN_SH=xpg4; export BIN_SH # for Tru64
21241DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021242
John Criswell7a73b802003-06-30 21:59:07 +000021243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021244# PATH needs CR
21245# Avoid depending upon Character Ranges.
21246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21249as_cr_digits='0123456789'
21250as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021251
21252# The user is always right.
21253if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254 echo "#! /bin/sh" >conf$$.sh
21255 echo "exit 0" >>conf$$.sh
21256 chmod +x conf$$.sh
21257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21258 PATH_SEPARATOR=';'
21259 else
21260 PATH_SEPARATOR=:
21261 fi
21262 rm -f conf$$.sh
21263fi
21264
21265# Support unset when possible.
21266if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21267 as_unset=unset
21268else
21269 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021270fi
John Criswell7a73b802003-06-30 21:59:07 +000021271
Reid Spencera773bd52006-08-04 18:18:08 +000021272
21273# IFS
21274# We need space, tab and new line, in precisely that order. Quoting is
21275# there to prevent editors from complaining about space-tab.
21276# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21277# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278as_nl='
21279'
Reid Spencera773bd52006-08-04 18:18:08 +000021280IFS=" "" $as_nl"
21281
21282# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021284 *[\\/]* ) as_myself=$0 ;;
21285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021286for as_dir in $PATH
21287do
21288 IFS=$as_save_IFS
21289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21291done
Reid Spencera773bd52006-08-04 18:18:08 +000021292IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021293
Reid Spencera773bd52006-08-04 18:18:08 +000021294 ;;
21295esac
21296# We did not find ourselves, most probably we were run as `sh COMMAND'
21297# in which case we are not to be found in the path.
21298if test "x$as_myself" = x; then
21299 as_myself=$0
21300fi
21301if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21303 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021304fi
21305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306# Work around bugs in pre-3.0 UWIN ksh.
21307for as_var in ENV MAIL MAILPATH
21308do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021309done
21310PS1='$ '
21311PS2='> '
21312PS4='+ '
21313
21314# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315for as_var in \
21316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21318 LC_TELEPHONE LC_TIME
21319do
21320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21321 eval $as_var=C; export $as_var
21322 else
21323 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021324 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021325done
Torok Edwin871384f2010-01-26 08:50:50 +000021326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021328if expr a : '\(a\)' >/dev/null 2>&1 &&
21329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21330 as_expr=expr
21331else
21332 as_expr=false
21333fi
21334
21335if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21336 as_basename=basename
21337else
21338 as_basename=false
21339fi
21340
21341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021343as_me=`$as_basename -- "$0" ||
21344$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21345 X"$0" : 'X\(//\)$' \| \
21346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021348 sed '/^.*\/\([^/][^/]*\)\/*$/{
21349 s//\1/
21350 q
21351 }
21352 /^X\/\(\/\/\)$/{
21353 s//\1/
21354 q
21355 }
21356 /^X\/\(\/\).*/{
21357 s//\1/
21358 q
21359 }
21360 s/.*/./; q'`
21361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362# CDPATH.
21363$as_unset CDPATH
21364
21365
21366
21367 as_lineno_1=$LINENO
21368 as_lineno_2=$LINENO
21369 test "x$as_lineno_1" != "x$as_lineno_2" &&
21370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21371
21372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21373 # uniformly replaced by the line number. The first 'sed' inserts a
21374 # line-number line after each line using $LINENO; the second 'sed'
21375 # does the real work. The second script uses 'N' to pair each
21376 # line-number line with the line containing $LINENO, and appends
21377 # trailing '-' during substitution so that $LINENO is not a special
21378 # case at line end.
21379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21380 # scripts with optimization help from Paolo Bonzini. Blame Lee
21381 # E. McMahon (1931-1989) for sed's syntax. :-)
21382 sed -n '
21383 p
21384 /[$]LINENO/=
21385 ' <$as_myself |
21386 sed '
21387 s/[$]LINENO.*/&-/
21388 t lineno
21389 b
21390 :lineno
21391 N
21392 :loop
21393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21394 t loop
21395 s/-\n.*//
21396 ' >$as_me.lineno &&
21397 chmod +x "$as_me.lineno" ||
21398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21399 { (exit 1); exit 1; }; }
21400
21401 # Don't try to exec as it changes $[0], causing all sort of problems
21402 # (the dirname of $[0] is not the place where we might find the
21403 # original and so on. Autoconf is especially sensitive to this).
21404 . "./$as_me.lineno"
21405 # Exit status is that of the last command.
21406 exit
21407}
21408
21409
21410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21411 as_dirname=dirname
21412else
21413 as_dirname=false
21414fi
Reid Spencera773bd52006-08-04 18:18:08 +000021415
21416ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021418-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021420 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021422 esac;;
21423*)
21424 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021425esac
21426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021427if expr a : '\(a\)' >/dev/null 2>&1 &&
21428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21429 as_expr=expr
21430else
21431 as_expr=false
21432fi
21433
John Criswell7a73b802003-06-30 21:59:07 +000021434rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021435if test -d conf$$.dir; then
21436 rm -f conf$$.dir/conf$$.file
21437else
21438 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021441echo >conf$$.file
21442if ln -s conf$$.file conf$$ 2>/dev/null; then
21443 as_ln_s='ln -s'
21444 # ... but there are two gotchas:
21445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21447 # In both cases, we have to default to `cp -p'.
21448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021449 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450elif ln conf$$.file conf$$ 2>/dev/null; then
21451 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021452else
21453 as_ln_s='cp -p'
21454fi
Reid Spencera773bd52006-08-04 18:18:08 +000021455rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21456rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021457
John Criswell0c38eaf2003-09-10 15:17:25 +000021458if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021459 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021460else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021461 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021462 as_mkdir_p=false
21463fi
21464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21466# systems may use methods other than mode bits to determine executability.
21467cat >conf$$.file <<_ASEOF
21468#! /bin/sh
21469exit 0
21470_ASEOF
21471chmod +x conf$$.file
21472if test -x conf$$.file >/dev/null 2>&1; then
21473 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021478
21479# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021480as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021481
21482# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021483as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021484
21485
John Criswell7a73b802003-06-30 21:59:07 +000021486exec 6>&1
21487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021489# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021490# values after options handling.
21491ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021492This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021494
21495 CONFIG_FILES = $CONFIG_FILES
21496 CONFIG_HEADERS = $CONFIG_HEADERS
21497 CONFIG_LINKS = $CONFIG_LINKS
21498 CONFIG_COMMANDS = $CONFIG_COMMANDS
21499 $ $0 $@
21500
Reid Spencera773bd52006-08-04 18:18:08 +000021501on `(hostname || uname -n) 2>/dev/null | sed 1q`
21502"
21503
John Criswell7a73b802003-06-30 21:59:07 +000021504_ACEOF
21505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021507# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021508config_files="$ac_config_files"
21509config_headers="$ac_config_headers"
21510config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021511
Reid Spencera773bd52006-08-04 18:18:08 +000021512_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021515ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516\`$as_me' instantiates files from templates according to the
21517current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522 -V, --version print version number, then exit
21523 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021524 -d, --debug don't remove temporary files
21525 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021526 --file=FILE[:TEMPLATE]
21527 instantiate the configuration file FILE
21528 --header=FILE[:TEMPLATE]
21529 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021530
21531Configuration files:
21532$config_files
21533
21534Configuration headers:
21535$config_headers
21536
John Criswellc764fbc2003-09-06 15:17:13 +000021537Configuration commands:
21538$config_commands
21539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021541
Reid Spencera773bd52006-08-04 18:18:08 +000021542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021544ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021545llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546configured by $0, generated by GNU Autoconf 2.60,
21547 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021550This config.status script is free software; the Free Software Foundation
21551gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021552
21553ac_pwd='$ac_pwd'
21554srcdir='$srcdir'
21555INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021556_ACEOF
21557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558cat >>$CONFIG_STATUS <<\_ACEOF
21559# If no file are specified by the user, then we need to provide default
21560# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021561ac_need_defaults=:
21562while test $# != 0
21563do
21564 case $1 in
21565 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021568 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021570 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021571 ac_option=$1
21572 ac_optarg=$2
21573 ac_shift=shift
21574 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021575 esac
21576
John Criswell0c38eaf2003-09-10 15:17:25 +000021577 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021578 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21580 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021583 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021584 debug=: ;;
21585 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021586 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021588 ac_need_defaults=false;;
21589 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021590 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021592 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021593 --he | --h)
21594 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021595 { echo "$as_me: error: ambiguous option: $1
21596Try \`$0 --help' for more information." >&2
21597 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021598 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21602 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021603
21604 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605 -*) { echo "$as_me: error: unrecognized option: $1
21606Try \`$0 --help' for more information." >&2
21607 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021610 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021611
21612 esac
21613 shift
21614done
21615
John Criswell0c38eaf2003-09-10 15:17:25 +000021616ac_configure_extra_args=
21617
21618if $ac_cs_silent; then
21619 exec 6>/dev/null
21620 ac_configure_extra_args="$ac_configure_extra_args --silent"
21621fi
21622
21623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021625if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21627 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021628 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021630fi
21631
John Criswell7a73b802003-06-30 21:59:07 +000021632_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021634exec 5>>config.log
21635{
21636 echo
21637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21638## Running $as_me. ##
21639_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021641} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021642
Reid Spencera773bd52006-08-04 18:18:08 +000021643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021644cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021645#
Reid Spencera773bd52006-08-04 18:18:08 +000021646# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021647#
Reid Spencerc0682832005-02-24 19:05:19 +000021648llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021649
21650_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021653
21654# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021655for ac_config_target in $ac_config_targets
21656do
Reid Spencera773bd52006-08-04 18:18:08 +000021657 case $ac_config_target in
21658 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021659 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021660 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21661 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021662 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021663 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021664 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021665 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021666 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021667 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021668 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21669 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21670 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21671 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21672 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21673 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021674 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021675 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21676 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021677 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021678 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21679 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21680 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021681 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21682 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21685echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21686 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021687 esac
21688done
21689
Reid Spencera773bd52006-08-04 18:18:08 +000021690
John Criswell7a73b802003-06-30 21:59:07 +000021691# If the user did not use the arguments to specify the items to instantiate,
21692# then the envvar interface is used. Set only those that are not.
21693# We use the long form for the default assignment because of an extremely
21694# bizarre bug on SunOS 4.1.3.
21695if $ac_need_defaults; then
21696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021699fi
21700
John Criswell0c38eaf2003-09-10 15:17:25 +000021701# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021702# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021703# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021704# Hook for its removal unless debugging.
21705# Note that there is a small window in which the directory will not be cleaned:
21706# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021707$debug ||
21708{
Reid Spencera773bd52006-08-04 18:18:08 +000021709 tmp=
21710 trap 'exit_status=$?
21711 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21712' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021714}
John Criswell7a73b802003-06-30 21:59:07 +000021715# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021716
John Criswell7a73b802003-06-30 21:59:07 +000021717{
Reid Spencera773bd52006-08-04 18:18:08 +000021718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021719 test -n "$tmp" && test -d "$tmp"
21720} ||
21721{
Reid Spencera773bd52006-08-04 18:18:08 +000021722 tmp=./conf$$-$RANDOM
21723 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021724} ||
21725{
21726 echo "$me: cannot create a temporary directory in ." >&2
21727 { (exit 1); exit 1; }
21728}
John Criswell7a73b802003-06-30 21:59:07 +000021729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730#
21731# Set up the sed scripts for CONFIG_FILES section.
21732#
21733
21734# No need to generate the scripts if there are no CONFIG_FILES.
21735# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021736if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021737
21738_ACEOF
21739
Reid Spencera773bd52006-08-04 18:18:08 +000021740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741
Reid Spencera773bd52006-08-04 18:18:08 +000021742ac_delim='%!_!# '
21743for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 cat >conf$$subs.sed <<_ACEOF
21745SHELL!$SHELL$ac_delim
21746PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21747PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21748PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21749PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21750PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21751PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21752exec_prefix!$exec_prefix$ac_delim
21753prefix!$prefix$ac_delim
21754program_transform_name!$program_transform_name$ac_delim
21755bindir!$bindir$ac_delim
21756sbindir!$sbindir$ac_delim
21757libexecdir!$libexecdir$ac_delim
21758datarootdir!$datarootdir$ac_delim
21759datadir!$datadir$ac_delim
21760sysconfdir!$sysconfdir$ac_delim
21761sharedstatedir!$sharedstatedir$ac_delim
21762localstatedir!$localstatedir$ac_delim
21763includedir!$includedir$ac_delim
21764oldincludedir!$oldincludedir$ac_delim
21765docdir!$docdir$ac_delim
21766infodir!$infodir$ac_delim
21767htmldir!$htmldir$ac_delim
21768dvidir!$dvidir$ac_delim
21769pdfdir!$pdfdir$ac_delim
21770psdir!$psdir$ac_delim
21771libdir!$libdir$ac_delim
21772localedir!$localedir$ac_delim
21773mandir!$mandir$ac_delim
21774DEFS!$DEFS$ac_delim
21775ECHO_C!$ECHO_C$ac_delim
21776ECHO_N!$ECHO_N$ac_delim
21777ECHO_T!$ECHO_T$ac_delim
21778LIBS!$LIBS$ac_delim
21779build_alias!$build_alias$ac_delim
21780host_alias!$host_alias$ac_delim
21781target_alias!$target_alias$ac_delim
21782LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21783subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021784ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21785LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786build!$build$ac_delim
21787build_cpu!$build_cpu$ac_delim
21788build_vendor!$build_vendor$ac_delim
21789build_os!$build_os$ac_delim
21790host!$host$ac_delim
21791host_cpu!$host_cpu$ac_delim
21792host_vendor!$host_vendor$ac_delim
21793host_os!$host_os$ac_delim
21794target!$target$ac_delim
21795target_cpu!$target_cpu$ac_delim
21796target_vendor!$target_vendor$ac_delim
21797target_os!$target_os$ac_delim
21798OS!$OS$ac_delim
21799HOST_OS!$HOST_OS$ac_delim
21800TARGET_OS!$TARGET_OS$ac_delim
21801LINKALL!$LINKALL$ac_delim
21802NOLINKALL!$NOLINKALL$ac_delim
21803LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21804LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21805ARCH!$ARCH$ac_delim
21806ENDIAN!$ENDIAN$ac_delim
21807CC!$CC$ac_delim
21808CFLAGS!$CFLAGS$ac_delim
21809LDFLAGS!$LDFLAGS$ac_delim
21810CPPFLAGS!$CPPFLAGS$ac_delim
21811ac_ct_CC!$ac_ct_CC$ac_delim
21812EXEEXT!$EXEEXT$ac_delim
21813OBJEXT!$OBJEXT$ac_delim
21814CPP!$CPP$ac_delim
21815GREP!$GREP$ac_delim
21816EGREP!$EGREP$ac_delim
21817LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21818BUILD_CC!$BUILD_CC$ac_delim
21819BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21820BUILD_CXX!$BUILD_CXX$ac_delim
21821CVSBUILD!$CVSBUILD$ac_delim
21822ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21823ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21824DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21825ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21826EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21827DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21828DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21829JIT!$JIT$ac_delim
21830TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021831ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21833ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021834ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021836ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021837ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021838ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21840LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21841LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021845 break
21846 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21848echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21849 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021850 else
21851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021852 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021853done
21854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21856if test -n "$ac_eof"; then
21857 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21858 ac_eof=`expr $ac_eof + 1`
21859fi
21860
21861cat >>$CONFIG_STATUS <<_ACEOF
21862cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865sed '
21866s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21867s/^/s,@/; s/!/@,|#_!!_#|/
21868:n
21869t n
21870s/'"$ac_delim"'$/,g/; t
21871s/$/\\/; p
21872N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21873' >>$CONFIG_STATUS <conf$$subs.sed
21874rm -f conf$$subs.sed
21875cat >>$CONFIG_STATUS <<_ACEOF
21876CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878
21879
21880ac_delim='%!_!# '
21881for ac_last_try in false false false false false :; do
21882 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021883LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021884LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021885ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021886CLANGPATH!$CLANGPATH$ac_delim
21887CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021888ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021889OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021890EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21891BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021892CXX!$CXX$ac_delim
21893CXXFLAGS!$CXXFLAGS$ac_delim
21894ac_ct_CXX!$ac_ct_CXX$ac_delim
21895NM!$NM$ac_delim
21896ifGNUmake!$ifGNUmake$ac_delim
21897LN_S!$LN_S$ac_delim
21898CMP!$CMP$ac_delim
21899CP!$CP$ac_delim
21900DATE!$DATE$ac_delim
21901FIND!$FIND$ac_delim
21902MKDIR!$MKDIR$ac_delim
21903MV!$MV$ac_delim
21904RANLIB!$RANLIB$ac_delim
21905AR!$AR$ac_delim
21906RM!$RM$ac_delim
21907SED!$SED$ac_delim
21908TAR!$TAR$ac_delim
21909BINPWD!$BINPWD$ac_delim
21910GRAPHVIZ!$GRAPHVIZ$ac_delim
21911DOT!$DOT$ac_delim
21912FDP!$FDP$ac_delim
21913NEATO!$NEATO$ac_delim
21914TWOPI!$TWOPI$ac_delim
21915CIRCO!$CIRCO$ac_delim
21916GV!$GV$ac_delim
21917DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021918XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919PERL!$PERL$ac_delim
21920HAVE_PERL!$HAVE_PERL$ac_delim
21921INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21922INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21923INSTALL_DATA!$INSTALL_DATA$ac_delim
21924BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021925CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926DOXYGEN!$DOXYGEN$ac_delim
21927GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021928GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929POD2HTML!$POD2HTML$ac_delim
21930POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021931PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932RUNTEST!$RUNTEST$ac_delim
21933TCLSH!$TCLSH$ac_delim
21934ZIP!$ZIP$ac_delim
21935OCAMLC!$OCAMLC$ac_delim
21936OCAMLOPT!$OCAMLOPT$ac_delim
21937OCAMLDEP!$OCAMLDEP$ac_delim
21938OCAMLDOC!$OCAMLDOC$ac_delim
21939GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021940HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21942INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21943CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21944CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21945LIBADD_DL!$LIBADD_DL$ac_delim
21946LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21947LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21948LLVMGCC!$LLVMGCC$ac_delim
21949LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021950LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21952NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21953USE_UDIS86!$USE_UDIS86$ac_delim
21954USE_OPROFILE!$USE_OPROFILE$ac_delim
21955HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21956HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21957MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021958LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959LLVMCC1!$LLVMCC1$ac_delim
21960LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21961LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021963LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000021964LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021965SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021966SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021967LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21968LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21969LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21970LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21971LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21972LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21973LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21974LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21975LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21976LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21977BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21978ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21979OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021980_ACEOF
21981
Tobias Grossera84b5672010-11-10 16:31:34 +000021982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021983 break
21984 elif $ac_last_try; then
21985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21986echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21987 { (exit 1); exit 1; }; }
21988 else
21989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21990 fi
21991done
21992
21993ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21994if test -n "$ac_eof"; then
21995 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21996 ac_eof=`expr $ac_eof + 1`
21997fi
21998
21999cat >>$CONFIG_STATUS <<_ACEOF
22000cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022001/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002_ACEOF
22003sed '
22004s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22005s/^/s,@/; s/!/@,|#_!!_#|/
22006:n
22007t n
22008s/'"$ac_delim"'$/,g/; t
22009s/$/\\/; p
22010N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22011' >>$CONFIG_STATUS <conf$$subs.sed
22012rm -f conf$$subs.sed
22013cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014CEOF$ac_eof
22015_ACEOF
22016
22017
Tobias Grossera84b5672010-11-10 16:31:34 +000022018ac_delim='%!_!# '
22019for ac_last_try in false false false false false :; do
22020 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022021ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022022RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022023RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022024LIBOBJS!$LIBOBJS$ac_delim
22025LTLIBOBJS!$LTLIBOBJS$ac_delim
22026_ACEOF
22027
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022028 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022029 break
22030 elif $ac_last_try; then
22031 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22032echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22033 { (exit 1); exit 1; }; }
22034 else
22035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22036 fi
22037done
22038
22039ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22040if test -n "$ac_eof"; then
22041 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22042 ac_eof=`expr $ac_eof + 1`
22043fi
22044
22045cat >>$CONFIG_STATUS <<_ACEOF
22046cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22048_ACEOF
22049sed '
22050s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22051s/^/s,@/; s/!/@,|#_!!_#|/
22052:n
22053t n
22054s/'"$ac_delim"'$/,g/; t
22055s/$/\\/; p
22056N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22057' >>$CONFIG_STATUS <conf$$subs.sed
22058rm -f conf$$subs.sed
22059cat >>$CONFIG_STATUS <<_ACEOF
22060:end
22061s/|#_!!_#|//g
22062CEOF$ac_eof
22063_ACEOF
22064
22065
Reid Spencera773bd52006-08-04 18:18:08 +000022066# VPATH may cause trouble with some makes, so we remove $(srcdir),
22067# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22068# trailing colons and then remove the whole line if VPATH becomes empty
22069# (actually we leave an empty line to preserve line numbers).
22070if test "x$srcdir" = x.; then
22071 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22072s/:*\$(srcdir):*/:/
22073s/:*\${srcdir}:*/:/
22074s/:*@srcdir@:*/:/
22075s/^\([^=]*=[ ]*\):*/\1/
22076s/:*$//
22077s/^[^=]*=[ ]*$//
22078}'
22079fi
22080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022082fi # test -n "$CONFIG_FILES"
22083
Reid Spencera773bd52006-08-04 18:18:08 +000022084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022085for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022086do
22087 case $ac_tag in
22088 :[FHLC]) ac_mode=$ac_tag; continue;;
22089 esac
22090 case $ac_mode$ac_tag in
22091 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022092 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22093echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22094 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022095 :[FH]-) ac_tag=-:-;;
22096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22097 esac
22098 ac_save_IFS=$IFS
22099 IFS=:
22100 set x $ac_tag
22101 IFS=$ac_save_IFS
22102 shift
22103 ac_file=$1
22104 shift
22105
22106 case $ac_mode in
22107 :L) ac_source=$1;;
22108 :[FH])
22109 ac_file_inputs=
22110 for ac_f
22111 do
22112 case $ac_f in
22113 -) ac_f="$tmp/stdin";;
22114 *) # Look for the file first in the build tree, then in the source tree
22115 # (if the path is not absolute). The absolute path cannot be DOS-style,
22116 # because $ac_f cannot contain `:'.
22117 test -f "$ac_f" ||
22118 case $ac_f in
22119 [\\/$]*) false;;
22120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22121 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22123echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22124 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022125 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022126 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022127 done
22128
22129 # Let's still pretend it is `configure' which instantiates (i.e., don't
22130 # use $as_me), people would be surprised to read:
22131 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132 configure_input="Generated from "`IFS=:
22133 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022134 if test x"$ac_file" != x-; then
22135 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136 { echo "$as_me:$LINENO: creating $ac_file" >&5
22137echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022138 fi
22139
22140 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022141 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022142 esac
22143 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022144 esac
22145
Reid Spencera773bd52006-08-04 18:18:08 +000022146 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022148 X"$ac_file" : 'X\(//\)[^/]' \| \
22149 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22153 s//\1/
22154 q
22155 }
22156 /^X\(\/\/\)[^/].*/{
22157 s//\1/
22158 q
22159 }
22160 /^X\(\/\/\)$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\).*/{
22165 s//\1/
22166 q
22167 }
22168 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022169 { as_dir="$ac_dir"
22170 case $as_dir in #(
22171 -*) as_dir=./$as_dir;;
22172 esac
22173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22174 as_dirs=
22175 while :; do
22176 case $as_dir in #(
22177 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22178 *) as_qdir=$as_dir;;
22179 esac
22180 as_dirs="'$as_qdir' $as_dirs"
22181 as_dir=`$as_dirname -- "$as_dir" ||
22182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183 X"$as_dir" : 'X\(//\)[^/]' \| \
22184 X"$as_dir" : 'X\(//\)$' \| \
22185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22186echo X"$as_dir" |
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22188 s//\1/
22189 q
22190 }
22191 /^X\(\/\/\)[^/].*/{
22192 s//\1/
22193 q
22194 }
22195 /^X\(\/\/\)$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\).*/{
22200 s//\1/
22201 q
22202 }
22203 s/.*/./; q'`
22204 test -d "$as_dir" && break
22205 done
22206 test -z "$as_dirs" || eval "mkdir $as_dirs"
22207 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22208echo "$as_me: error: cannot create directory $as_dir" >&2;}
22209 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022210 ac_builddir=.
22211
Reid Spencera773bd52006-08-04 18:18:08 +000022212case "$ac_dir" in
22213.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22214*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022216 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022217 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022218 case $ac_top_builddir_sub in
22219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22221 esac ;;
22222esac
22223ac_abs_top_builddir=$ac_pwd
22224ac_abs_builddir=$ac_pwd$ac_dir_suffix
22225# for backward compatibility:
22226ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022227
22228case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022229 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022230 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022231 ac_top_srcdir=$ac_top_builddir_sub
22232 ac_abs_top_srcdir=$ac_pwd ;;
22233 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022234 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022235 ac_top_srcdir=$srcdir
22236 ac_abs_top_srcdir=$srcdir ;;
22237 *) # Relative name.
22238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22239 ac_top_srcdir=$ac_top_build_prefix$srcdir
22240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022241esac
Reid Spencera773bd52006-08-04 18:18:08 +000022242ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022243
John Criswell7a73b802003-06-30 21:59:07 +000022244
Reid Spencera773bd52006-08-04 18:18:08 +000022245 case $ac_mode in
22246 :F)
22247 #
22248 # CONFIG_FILE
22249 #
John Criswell7a73b802003-06-30 21:59:07 +000022250
22251 case $INSTALL in
22252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022254 esac
John Criswell7a73b802003-06-30 21:59:07 +000022255_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022257cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022258# If the template does not know about datarootdir, expand it.
22259# FIXME: This hack should be removed a few years after 2.60.
22260ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261
22262case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022263 p
22264 q
22265}
22266/@datadir@/p
22267/@docdir@/p
22268/@infodir@/p
22269/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270/@mandir@/p
22271' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022272*datarootdir*) ac_datarootdir_seen=yes;;
22273*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22275echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022277cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022278 ac_datarootdir_hack='
22279 s&@datadir@&$datadir&g
22280 s&@docdir@&$docdir&g
22281 s&@infodir@&$infodir&g
22282 s&@localedir@&$localedir&g
22283 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022285esac
22286_ACEOF
22287
22288# Neutralize VPATH when `$srcdir' = `.'.
22289# Shell code in configure.ac might set extrasub.
22290# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291cat >>$CONFIG_STATUS <<_ACEOF
22292 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022293$extrasub
22294_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022296:t
22297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022299s&@top_builddir@&$ac_top_builddir_sub&;t t
22300s&@srcdir@&$ac_srcdir&;t t
22301s&@abs_srcdir@&$ac_abs_srcdir&;t t
22302s&@top_srcdir@&$ac_top_srcdir&;t t
22303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22304s&@builddir@&$ac_builddir&;t t
22305s&@abs_builddir@&$ac_abs_builddir&;t t
22306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22307s&@INSTALL@&$ac_INSTALL&;t t
22308$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022309" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022310
Reid Spencera773bd52006-08-04 18:18:08 +000022311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22312 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022314 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022315which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022316echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022317which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022318
Reid Spencera773bd52006-08-04 18:18:08 +000022319 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022320 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 -) cat "$tmp/out"; rm -f "$tmp/out";;
22322 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22323 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022324 ;;
22325 :H)
22326 #
22327 # CONFIG_HEADER
22328 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329_ACEOF
22330
22331# Transform confdefs.h into a sed script `conftest.defines', that
22332# substitutes the proper values into config.h.in to produce config.h.
22333rm -f conftest.defines conftest.tail
22334# First, append a space to every undef/define line, to ease matching.
22335echo 's/$/ /' >conftest.defines
22336# Then, protect against being on the right side of a sed subst, or in
22337# an unquoted here document, in config.status. If some macros were
22338# called several times there might be several #defines for the same
22339# symbol, which is useless. But do not sort them, since the last
22340# AC_DEFINE must be honored.
22341ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22342# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22343# NAME is the cpp macro being defined, VALUE is the value it is being given.
22344# PARAMS is the parameter list in the macro definition--in most cases, it's
22345# just an empty string.
22346ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22347ac_dB='\\)[ (].*,\\1define\\2'
22348ac_dC=' '
22349ac_dD=' ,'
22350
22351uniq confdefs.h |
22352 sed -n '
22353 t rset
22354 :rset
22355 s/^[ ]*#[ ]*define[ ][ ]*//
22356 t ok
22357 d
22358 :ok
22359 s/[\\&,]/\\&/g
22360 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22361 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22362 ' >>conftest.defines
22363
22364# Remove the space that was appended to ease matching.
22365# Then replace #undef with comments. This is necessary, for
22366# example, in the case of _POSIX_SOURCE, which is predefined and required
22367# on some systems where configure will not decide to define it.
22368# (The regexp can be short, since the line contains either #define or #undef.)
22369echo 's/ $//
22370s,^[ #]*u.*,/* & */,' >>conftest.defines
22371
22372# Break up conftest.defines:
22373ac_max_sed_lines=50
22374
22375# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22376# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22377# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22378# et cetera.
22379ac_in='$ac_file_inputs'
22380ac_out='"$tmp/out1"'
22381ac_nxt='"$tmp/out2"'
22382
22383while :
22384do
22385 # Write a here document:
22386 cat >>$CONFIG_STATUS <<_ACEOF
22387 # First, check the format of the line:
22388 cat >"\$tmp/defines.sed" <<\\CEOF
22389/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22390/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22391b
22392:def
22393_ACEOF
22394 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22395 echo 'CEOF
22396 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22397 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22398 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22399 grep . conftest.tail >/dev/null || break
22400 rm -f conftest.defines
22401 mv conftest.tail conftest.defines
22402done
22403rm -f conftest.defines conftest.tail
22404
22405echo "ac_result=$ac_in" >>$CONFIG_STATUS
22406cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022407 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022408 echo "/* $configure_input */" >"$tmp/config.h"
22409 cat "$ac_result" >>"$tmp/config.h"
22410 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22412echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022413 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414 rm -f $ac_file
22415 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022416 fi
22417 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022418 echo "/* $configure_input */"
22419 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022420 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022421 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022422 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022424 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22425echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022426 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022427 esac
John Criswell7a73b802003-06-30 21:59:07 +000022428
Reid Spencera773bd52006-08-04 18:18:08 +000022429
22430 case $ac_file$ac_mode in
22431 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022433 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022435 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022437 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022439 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022443 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022445 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022447 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022449 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022451 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022453 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022455 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022456 ${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 +000022457
22458 esac
22459done # for ac_tag
22460
John Criswell7a73b802003-06-30 21:59:07 +000022461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022462{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022464chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022465ac_clean_files=$ac_clean_files_save
22466
22467
22468# configure is writing to config.log, and then calls config.status.
22469# config.status does its own redirection, appending to config.log.
22470# Unfortunately, on DOS this fails, as config.log is still kept open
22471# by configure, so config.status won't be able to write to it; its
22472# output is simply discarded. So we exec the FD to /dev/null,
22473# effectively closing config.log, so it can be properly (re)opened and
22474# appended to by config.status. When coming back to configure, we
22475# need to make the FD available again.
22476if test "$no_create" != yes; then
22477 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022478 ac_config_status_args=
22479 test "$silent" = yes &&
22480 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022481 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022483 exec 5>>config.log
22484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22485 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022487fi
22488
John Criswell12399a12003-09-30 15:55:44 +000022489#
22490# CONFIG_SUBDIRS section.
22491#
22492if test "$no_recursion" != yes; then
22493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022495 ac_sub_configure_args=
22496 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022497 eval "set x $ac_configure_args"
22498 shift
22499 for ac_arg
22500 do
John Criswell12399a12003-09-30 15:55:44 +000022501 if test -n "$ac_prev"; then
22502 ac_prev=
22503 continue
22504 fi
22505 case $ac_arg in
22506 -cache-file | --cache-file | --cache-fil | --cache-fi \
22507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22508 ac_prev=cache_file ;;
22509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22511 | --c=*)
22512 ;;
22513 --config-cache | -C)
22514 ;;
22515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22516 ac_prev=srcdir ;;
22517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22518 ;;
22519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22520 ac_prev=prefix ;;
22521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022523 *)
22524 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022526 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022528 esac
22529 done
22530
22531 # Always prepend --prefix to ensure using the same prefix
22532 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022533 ac_arg="--prefix=$prefix"
22534 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022535 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022536 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022537 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022538
22539 ac_popdir=`pwd`
22540 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22541
22542 # Do not complain, so a configure script can configure whichever
22543 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022544 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022545
Reid Spencera773bd52006-08-04 18:18:08 +000022546 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022547 echo "$as_me:$LINENO: $ac_msg" >&5
22548 echo "$ac_msg" >&6
22549 { as_dir="$ac_dir"
22550 case $as_dir in #(
22551 -*) as_dir=./$as_dir;;
22552 esac
22553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22554 as_dirs=
22555 while :; do
22556 case $as_dir in #(
22557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22558 *) as_qdir=$as_dir;;
22559 esac
22560 as_dirs="'$as_qdir' $as_dirs"
22561 as_dir=`$as_dirname -- "$as_dir" ||
22562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22563 X"$as_dir" : 'X\(//\)[^/]' \| \
22564 X"$as_dir" : 'X\(//\)$' \| \
22565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22566echo X"$as_dir" |
22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22568 s//\1/
22569 q
22570 }
22571 /^X\(\/\/\)[^/].*/{
22572 s//\1/
22573 q
22574 }
22575 /^X\(\/\/\)$/{
22576 s//\1/
22577 q
22578 }
22579 /^X\(\/\).*/{
22580 s//\1/
22581 q
22582 }
22583 s/.*/./; q'`
22584 test -d "$as_dir" && break
22585 done
22586 test -z "$as_dirs" || eval "mkdir $as_dirs"
22587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22588echo "$as_me: error: cannot create directory $as_dir" >&2;}
22589 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022590 ac_builddir=.
22591
Reid Spencera773bd52006-08-04 18:18:08 +000022592case "$ac_dir" in
22593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22594*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022596 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022597 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022598 case $ac_top_builddir_sub in
22599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22601 esac ;;
22602esac
22603ac_abs_top_builddir=$ac_pwd
22604ac_abs_builddir=$ac_pwd$ac_dir_suffix
22605# for backward compatibility:
22606ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022607
22608case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022609 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022610 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022611 ac_top_srcdir=$ac_top_builddir_sub
22612 ac_abs_top_srcdir=$ac_pwd ;;
22613 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022614 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022615 ac_top_srcdir=$srcdir
22616 ac_abs_top_srcdir=$srcdir ;;
22617 *) # Relative name.
22618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22619 ac_top_srcdir=$ac_top_build_prefix$srcdir
22620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022621esac
Reid Spencera773bd52006-08-04 18:18:08 +000022622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022623
22624
Reid Spencera773bd52006-08-04 18:18:08 +000022625 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022626
22627 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022628 if test -f "$ac_srcdir/configure.gnu"; then
22629 ac_sub_configure=$ac_srcdir/configure.gnu
22630 elif test -f "$ac_srcdir/configure"; then
22631 ac_sub_configure=$ac_srcdir/configure
22632 elif test -f "$ac_srcdir/configure.in"; then
22633 # This should be Cygnus configure.
22634 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022635 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022636 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22637echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022638 ac_sub_configure=
22639 fi
22640
22641 # The recursion is here.
22642 if test -n "$ac_sub_configure"; then
22643 # Make the cache file name correct relative to the subdirectory.
22644 case $cache_file in
22645 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022646 *) # Relative name.
22647 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022648 esac
22649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022650 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22651echo "$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 +000022652 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022653 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22654 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022655 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22656echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22657 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022658 fi
22659
Reid Spencera773bd52006-08-04 18:18:08 +000022660 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022661 done
22662fi
22663